blob: e76a0b32f3f1c4a2dea91c3c41ba3229f5a6d260 [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)
Chandler Carruth6b241162010-10-19 08:21:25 +00001445 --with-clang-resource-dir
1446 Relative directory from the Clang binary for
1447 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001448 --with-c-include-dirs Colon separated list of directories clang will
1449 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001450 --with-cxx-include-root Directory with the libstdc++ headers.
1451 --with-cxx-include-arch Architecture of the libstdc++ headers.
1452 --with-cxx-include-32bit-dir
1453 32 bit multilib dir.
1454 --with-cxx-include-64bit-dir
1455 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001456 --with-binutils-include Specify path to binutils/include/ containing
1457 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001458 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001459 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1460 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001461 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001462 --with-oprofile=<prefix>
1463 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001466 CC C compiler command
1467 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001471 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001472 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to <llvmbugs@cs.uiuc.edu>.
1480_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001481ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001487 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001488 ac_builddir=.
1489
Reid Spencera773bd52006-08-04 18:18:08 +00001490case "$ac_dir" in
1491.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001493 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001494 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001495 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500esac
1501ac_abs_top_builddir=$ac_pwd
1502ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503# for backward compatibility:
1504ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001505
1506case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001507 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001512 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001519esac
Reid Spencera773bd52006-08-04 18:18:08 +00001520ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001521
Reid Spencera773bd52006-08-04 18:18:08 +00001522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001530 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001531 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001534 done
1535fi
1536
Reid Spencera773bd52006-08-04 18:18:08 +00001537test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001538if $ac_init_version; then
1539 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001540llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001541generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001543Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15442002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001545This configure script is free software; the Free Software Foundation
1546gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001547
John Criswell5a129712010-03-19 21:04:16 +00001548Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001549_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001550 exit
John Criswell7a73b802003-06-30 21:59:07 +00001551fi
Reid Spencera773bd52006-08-04 18:18:08 +00001552cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001553This file contains any messages produced by compilers while
1554running configure, to aid debugging if configure makes a mistake.
1555
Eric Christopherb26697c2010-09-06 18:47:10 +00001556It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001557generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001558
1559 $ $0 $@
1560
1561_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001562exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001563{
1564cat <<_ASUNAME
1565## --------- ##
1566## Platform. ##
1567## --------- ##
1568
1569hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1570uname -m = `(uname -m) 2>/dev/null || echo unknown`
1571uname -r = `(uname -r) 2>/dev/null || echo unknown`
1572uname -s = `(uname -s) 2>/dev/null || echo unknown`
1573uname -v = `(uname -v) 2>/dev/null || echo unknown`
1574
1575/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1576/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1577
1578/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1579/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1580/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001581/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001582/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1583/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1584/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1585
1586_ASUNAME
1587
1588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589for as_dir in $PATH
1590do
1591 IFS=$as_save_IFS
1592 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001593 echo "PATH: $as_dir"
1594done
Reid Spencera773bd52006-08-04 18:18:08 +00001595IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001596
1597} >&5
1598
1599cat >&5 <<_ACEOF
1600
1601
1602## ----------- ##
1603## Core tests. ##
1604## ----------- ##
1605
1606_ACEOF
1607
1608
1609# Keep a trace of the command line.
1610# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001611# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001612# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001613# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001614ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001615ac_configure_args0=
1616ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001617ac_must_keep_next=false
1618for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001619do
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 for ac_arg
1621 do
1622 case $ac_arg in
1623 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1625 | -silent | --silent | --silen | --sile | --sil)
1626 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001627 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 esac
1630 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001631 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001633 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001635 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001637 case $ac_arg in
1638 *=* | --config-cache | -C | -disable-* | --disable-* \
1639 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1640 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1641 | -with-* | --with-* | -without-* | --without-* | --x)
1642 case "$ac_configure_args0 " in
1643 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1644 esac
1645 ;;
1646 -* ) ac_must_keep_next=true ;;
1647 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001648 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ;;
1651 esac
1652 done
John Criswell7a73b802003-06-30 21:59:07 +00001653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001654$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1655$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 +00001656
1657# When interrupted or exit'd, cleanup temporary files, and complete
1658# config.log. We remove comments because anyway the quotes in there
1659# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001660# WARNING: Use '\'' to represent an apostrophe within the trap.
1661# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001662trap 'exit_status=$?
1663 # Save into config.log some information that might help in debugging.
1664 {
1665 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001666
John Criswell7a73b802003-06-30 21:59:07 +00001667 cat <<\_ASBOX
1668## ---------------- ##
1669## Cache variables. ##
1670## ---------------- ##
1671_ASBOX
1672 echo
1673 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001674(
1675 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1676 eval ac_val=\$$ac_var
1677 case $ac_val in #(
1678 *${as_nl}*)
1679 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001680 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1681echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac
1683 case $ac_var in #(
1684 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001685 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001686 esac ;;
1687 esac
1688 done
John Criswell7a73b802003-06-30 21:59:07 +00001689 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001690 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1691 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001692 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001693 "s/'\''/'\''\\\\'\'''\''/g;
1694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1695 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001696 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001698 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001699 esac |
1700 sort
1701)
John Criswell7a73b802003-06-30 21:59:07 +00001702 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001703
1704 cat <<\_ASBOX
1705## ----------------- ##
1706## Output variables. ##
1707## ----------------- ##
1708_ASBOX
1709 echo
1710 for ac_var in $ac_subst_vars
1711 do
Reid Spencera773bd52006-08-04 18:18:08 +00001712 eval ac_val=\$$ac_var
1713 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001714 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001715 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001716 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001717 done | sort
1718 echo
1719
1720 if test -n "$ac_subst_files"; then
1721 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001722## ------------------- ##
1723## File substitutions. ##
1724## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001725_ASBOX
1726 echo
1727 for ac_var in $ac_subst_files
1728 do
Reid Spencera773bd52006-08-04 18:18:08 +00001729 eval ac_val=\$$ac_var
1730 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001731 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001732 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001733 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001734 done | sort
1735 echo
1736 fi
1737
John Criswell7a73b802003-06-30 21:59:07 +00001738 if test -s confdefs.h; then
1739 cat <<\_ASBOX
1740## ----------- ##
1741## confdefs.h. ##
1742## ----------- ##
1743_ASBOX
1744 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001745 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001746 echo
1747 fi
1748 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001749 echo "$as_me: caught signal $ac_signal"
1750 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001751 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001752 rm -f core *.core core.conftest.* &&
1753 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001754 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001755' 0
John Criswell7a73b802003-06-30 21:59:07 +00001756for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001757 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001758done
1759ac_signal=0
1760
1761# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001762rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001763
1764# Predefined preprocessor variables.
1765
1766cat >>confdefs.h <<_ACEOF
1767#define PACKAGE_NAME "$PACKAGE_NAME"
1768_ACEOF
1769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001770
John Criswell7a73b802003-06-30 21:59:07 +00001771cat >>confdefs.h <<_ACEOF
1772#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773_ACEOF
1774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775
John Criswell7a73b802003-06-30 21:59:07 +00001776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_VERSION "$PACKAGE_VERSION"
1778_ACEOF
1779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001780
John Criswell7a73b802003-06-30 21:59:07 +00001781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_STRING "$PACKAGE_STRING"
1783_ACEOF
1784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785
John Criswell7a73b802003-06-30 21:59:07 +00001786cat >>confdefs.h <<_ACEOF
1787#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788_ACEOF
1789
1790
1791# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001793if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001795elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001798 set x "$ac_default_prefix/share/config.site" \
1799 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801shift
1802for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001803do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001804 if test -r "$ac_site_file"; then
1805 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001807 sed 's/^/| /' "$ac_site_file" >&5
1808 . "$ac_site_file"
1809 fi
1810done
1811
1812if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001813 # Some versions of bash will fail to source /dev/null (special
1814 # files actually), so we avoid doing that.
1815 if test -f "$cache_file"; then
1816 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001818 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001819 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001821 esac
1822 fi
1823else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001824 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001826 >$cache_file
1827fi
1828
1829# Check that the precious variables saved in the cache have kept the same
1830# value.
1831ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001832for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001833 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001835 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001837 case $ac_old_set,$ac_new_set in
1838 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001843 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001845 ac_cache_corrupted=: ;;
1846 ,);;
1847 *)
1848 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001849 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1850echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1851 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1852echo "$as_me: former value: $ac_old_val" >&2;}
1853 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1854echo "$as_me: current value: $ac_new_val" >&2;}
1855 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001856 fi;;
1857 esac
1858 # Pass precious variables to config.status.
1859 if test "$ac_new_set" = set; then
1860 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001862 *) ac_arg=$ac_var=$ac_new_val ;;
1863 esac
1864 case " $ac_configure_args " in
1865 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001866 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001867 esac
1868 fi
1869done
1870if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001871 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1872echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1873 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1874echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1875 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
Reid Spencera773bd52006-08-04 18:18:08 +00001901
John Criswell7a73b802003-06-30 21:59:07 +00001902ac_ext=c
1903ac_cpp='$CPP $CPPFLAGS'
1904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907
1908
1909
John Criswell5a129712010-03-19 21:04:16 +00001910LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001911
1912
1913
1914
1915
1916
1917
John Criswell7a73b802003-06-30 21:59:07 +00001918ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001919for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001920 if test -f "$ac_dir/install-sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install-sh -c"
1923 break
1924 elif test -f "$ac_dir/install.sh"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/install.sh -c"
1927 break
1928 elif test -f "$ac_dir/shtool"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/shtool install -c"
1931 break
1932 fi
John Criswell7a73b802003-06-30 21:59:07 +00001933done
1934if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001935 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1936echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1937 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001938fi
Reid Spencera773bd52006-08-04 18:18:08 +00001939
1940# These three variables are undocumented and unsupported,
1941# and are intended to be withdrawn in a future Autoconf release.
1942# They can cause serious problems if a builder's source tree is in a directory
1943# whose full name contains unusual characters.
1944ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1945ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1946ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947
John Criswell7a73b802003-06-30 21:59:07 +00001948
John Criswell392aaa32003-07-22 19:18:09 +00001949
Reid Spencer2706f8c2004-09-19 23:53:36 +00001950if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001952 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1953echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1954 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001955 fi
John Criswell93e1c722003-09-15 17:04:06 +00001956fi
1957
John Criswell0157f502010-03-19 21:31:39 +00001958
1959
1960if test -d ${srcdir}/projects/llvm-gcc ; then
1961 subdirs="$subdirs projects/llvm-gcc"
1962
1963fi
1964
1965if test -d ${srcdir}/projects/test-suite ; then
1966 subdirs="$subdirs projects/test-suite"
1967
1968fi
1969
1970if test -d ${srcdir}/projects/llvm-test ; then
1971 subdirs="$subdirs projects/llvm-test"
1972
1973fi
1974
1975if test -d ${srcdir}/projects/poolalloc ; then
1976 subdirs="$subdirs projects/poolalloc"
1977
1978fi
1979
1980if test -d ${srcdir}/projects/llvm-poolalloc ; then
1981 subdirs="$subdirs projects/llvm-poolalloc"
1982
1983fi
1984
John Criswell33a911a2003-11-25 20:36:46 +00001985for i in `ls ${srcdir}/projects`
1986do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 if test -d ${srcdir}/projects/${i} ; then
1988 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001989 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001990 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001992 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001997 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001998 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002000 ;;
John Criswell7def2932010-02-25 22:57:19 +00002001 safecode) subdirs="$subdirs projects/safecode"
2002 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002003 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002004 ;;
John Criswell52c02862010-03-25 13:59:09 +00002005 llvm-gcc) ;;
2006 test-suite) ;;
2007 llvm-test) ;;
2008 poolalloc) ;;
2009 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2012echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002013 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002014 esac
John Criswell33a911a2003-11-25 20:36:46 +00002015 fi
2016done
John Criswell559a6c12003-09-30 16:31:48 +00002017
John Criswell7a73b802003-06-30 21:59:07 +00002018
2019# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002020$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025{ echo "$as_me:$LINENO: checking build system type" >&5
2026echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027if test "${ac_cv_build+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002029else
Reid Spencera773bd52006-08-04 18:18:08 +00002030 ac_build_alias=$build_alias
2031test "x$ac_build_alias" = x &&
2032 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002037ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002041
2042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002045case $ac_cv_build in
2046*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048echo "$as_me: error: invalid value of canonical build" >&2;}
2049 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002050esac
John Criswell7a73b802003-06-30 21:59:07 +00002051build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002052ac_save_IFS=$IFS; IFS='-'
2053set x $ac_cv_build
2054shift
2055build_cpu=$1
2056build_vendor=$2
2057shift; shift
2058# Remember, the first character of IFS is used to create $*,
2059# except with old shells:
2060build_os=$*
2061IFS=$ac_save_IFS
2062case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002063
2064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002065{ echo "$as_me:$LINENO: checking host system type" >&5
2066echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067if test "${ac_cv_host+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002069else
Reid Spencera773bd52006-08-04 18:18:08 +00002070 if test "x$host_alias" = x; then
2071 ac_cv_host=$ac_cv_build
2072else
2073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002077fi
John Criswell7a73b802003-06-30 21:59:07 +00002078
2079fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002082case $ac_cv_host in
2083*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085echo "$as_me: error: invalid value of canonical host" >&2;}
2086 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002087esac
John Criswell7a73b802003-06-30 21:59:07 +00002088host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002089ac_save_IFS=$IFS; IFS='-'
2090set x $ac_cv_host
2091shift
2092host_cpu=$1
2093host_vendor=$2
2094shift; shift
2095# Remember, the first character of IFS is used to create $*,
2096# except with old shells:
2097host_os=$*
2098IFS=$ac_save_IFS
2099case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002100
2101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002102{ echo "$as_me:$LINENO: checking target system type" >&5
2103echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2104if test "${ac_cv_target+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002106else
Reid Spencera773bd52006-08-04 18:18:08 +00002107 if test "x$target_alias" = x; then
2108 ac_cv_target=$ac_cv_host
2109else
2110 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2112echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002114fi
John Criswell7a73b802003-06-30 21:59:07 +00002115
2116fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2118echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002119case $ac_cv_target in
2120*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002121*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2122echo "$as_me: error: invalid value of canonical target" >&2;}
2123 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002124esac
John Criswell7a73b802003-06-30 21:59:07 +00002125target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002126ac_save_IFS=$IFS; IFS='-'
2127set x $ac_cv_target
2128shift
2129target_cpu=$1
2130target_vendor=$2
2131shift; shift
2132# Remember, the first character of IFS is used to create $*,
2133# except with old shells:
2134target_os=$*
2135IFS=$ac_save_IFS
2136case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002137
2138
2139# The aliases save the names the user supplied, while $host etc.
2140# will get canonicalized.
2141test -n "$target_alias" &&
2142 test "$program_prefix$program_suffix$program_transform_name" = \
2143 NONENONEs,x,x, &&
2144 program_prefix=${target_alias}-
2145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002146{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2147echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2148if test "${llvm_cv_os_type+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002150else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002151 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002152 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002155 llvm_cv_os_type="AIX"
2156 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002157 *-*-irix*)
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="IRIX"
2161 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002165 llvm_cv_os_type="Cygwin"
2166 llvm_cv_platform_type="Unix" ;;
2167 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002168 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002169 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002170 llvm_cv_os_type="Darwin"
2171 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002172 *-*-minix*)
2173 llvm_cv_link_all_option="-Wl,-all_load"
2174 llvm_cv_no_link_all_option="-Wl,-noall_load"
2175 llvm_cv_os_type="Minix"
2176 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002177 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002178 llvm_cv_link_all_option="-Wl,--whole-archive"
2179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002180 llvm_cv_os_type="FreeBSD"
2181 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002182 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002183 llvm_cv_link_all_option="-Wl,--whole-archive"
2184 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002185 llvm_cv_os_type="OpenBSD"
2186 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002187 *-*-netbsd*)
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="NetBSD"
2191 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002192 *-*-dragonfly*)
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="DragonFly"
2196 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002197 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002200 llvm_cv_os_type="HP-UX"
2201 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 llvm_cv_os_type="Interix"
2206 llvm_cv_platform_type="Unix" ;;
2207 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002210 llvm_cv_os_type="Linux"
2211 llvm_cv_platform_type="Unix" ;;
2212 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002213 llvm_cv_link_all_option="-Wl,-z,allextract"
2214 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215 llvm_cv_os_type="SunOS"
2216 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002217 *-*-auroraux*)
2218 llvm_cv_link_all_option="-Wl,-z,allextract"
2219 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2220 llvm_cv_os_type="AuroraUX"
2221 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 llvm_cv_os_type="Win32"
2226 llvm_cv_platform_type="Win32" ;;
2227 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002230 llvm_cv_os_type="MingW"
2231 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002232 *-*-haiku*)
2233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235 llvm_cv_os_type="Haiku"
2236 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002237 *-unknown-eabi*)
2238 llvm_cv_link_all_option="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240 llvm_cv_os_type="Freestanding"
2241 llvm_cv_platform_type="Unix" ;;
2242 *-unknown-elf*)
2243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245 llvm_cv_os_type="Freestanding"
2246 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002248 llvm_cv_link_all_option=""
2249 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 llvm_cv_os_type="Unknown"
2251 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002252esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2255echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002257{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2258echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2259if test "${llvm_cv_target_os_type+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002261else
2262 case $target in
2263 *-*-aix*)
2264 llvm_cv_target_os_type="AIX" ;;
2265 *-*-irix*)
2266 llvm_cv_target_os_type="IRIX" ;;
2267 *-*-cygwin*)
2268 llvm_cv_target_os_type="Cygwin" ;;
2269 *-*-darwin*)
2270 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002271 *-*-minix*)
2272 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002273 *-*-freebsd*)
2274 llvm_cv_target_os_type="FreeBSD" ;;
2275 *-*-openbsd*)
2276 llvm_cv_target_os_type="OpenBSD" ;;
2277 *-*-netbsd*)
2278 llvm_cv_target_os_type="NetBSD" ;;
2279 *-*-dragonfly*)
2280 llvm_cv_target_os_type="DragonFly" ;;
2281 *-*-hpux*)
2282 llvm_cv_target_os_type="HP-UX" ;;
2283 *-*-interix*)
2284 llvm_cv_target_os_type="Interix" ;;
2285 *-*-linux*)
2286 llvm_cv_target_os_type="Linux" ;;
2287 *-*-solaris*)
2288 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002289 *-*-auroraux*)
2290 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002291 *-*-win32*)
2292 llvm_cv_target_os_type="Win32" ;;
2293 *-*-mingw*)
2294 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002295 *-*-haiku*)
2296 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002297 *-unknown-eabi*)
2298 llvm_cv_target_os_type="Freestanding" ;;
2299 *)
2300 llvm_cv_target_os_type="Unknown" ;;
2301esac
2302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2304echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002305
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002307 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2308echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2309 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002310fi
2311
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002313
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002314HOST_OS=$llvm_cv_os_type
2315
2316TARGET_OS=$llvm_cv_target_os_type
2317
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002318
Reid Spencera773bd52006-08-04 18:18:08 +00002319LINKALL=$llvm_cv_link_all_option
2320
2321NOLINKALL=$llvm_cv_no_link_all_option
2322
2323
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324case $llvm_cv_platform_type in
2325 Unix)
2326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327cat >>confdefs.h <<\_ACEOF
2328#define LLVM_ON_UNIX 1
2329_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002331 LLVM_ON_UNIX=1
2332
2333 LLVM_ON_WIN32=0
2334
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335 ;;
2336 Win32)
2337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338cat >>confdefs.h <<\_ACEOF
2339#define LLVM_ON_WIN32 1
2340_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002342 LLVM_ON_UNIX=0
2343
2344 LLVM_ON_WIN32=1
2345
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346 ;;
2347esac
2348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349{ echo "$as_me:$LINENO: checking target architecture" >&5
2350echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2351if test "${llvm_cv_target_arch+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353else
2354 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002355 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002356 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002357 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2358 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002359 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002360 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002361 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002362 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002363 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002364 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002365 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002366 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002367 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002368 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002369esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2372echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002373
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002375 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2376echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002377fi
John Criswell76595452003-07-01 22:07:39 +00002378
Nick Lewycky83fc4472009-09-29 05:48:51 +00002379# Determine the LLVM native architecture for the target
2380case "$llvm_cv_target_arch" in
2381 x86) LLVM_NATIVE_ARCH="X86" ;;
2382 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2383 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2384esac
2385
2386ARCH=$llvm_cv_target_arch
2387
2388
2389ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390ac_cpp='$CPP $CPPFLAGS'
2391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002394if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401else
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC="$CC" # Let the user override the test.
2404else
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 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 +00002412 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414 break 2
2415 fi
2416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417done
Reid Spencera773bd52006-08-04 18:18:08 +00002418IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419
2420fi
2421fi
2422CC=$ac_cv_prog_CC
2423if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 { echo "$as_me:$LINENO: result: $CC" >&5
2425echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427 { echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429fi
2430
Reid Spencera773bd52006-08-04 18:18:08 +00002431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432fi
2433if test -z "$ac_cv_prog_CC"; then
2434 ac_ct_CC=$CC
2435 # Extract the first word of "gcc", so it can be a program name with args.
2436set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441else
2442 if test -n "$ac_ct_CC"; then
2443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 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 +00002452 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454 break 2
2455 fi
2456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002457done
Reid Spencera773bd52006-08-04 18:18:08 +00002458IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459
2460fi
2461fi
2462ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002467 { echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469fi
2470
Reid Spencera773bd52006-08-04 18:18:08 +00002471 if test "x$ac_ct_CC" = x; then
2472 CC=""
2473 else
2474 case $cross_compiling:$ac_tool_warned in
2475yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002476{ echo "$as_me:$LINENO: 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." >&5
2479echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2480whose name does not start with the host triplet. If you think this
2481configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002482ac_tool_warned=yes ;;
2483esac
2484 CC=$ac_ct_CC
2485 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
2487 CC="$ac_cv_prog_CC"
2488fi
2489
2490if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002491 if test -n "$ac_tool_prefix"; then
2492 # 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 +00002493set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496if test "${ac_cv_prog_CC+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498else
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC="$CC" # Let the user override the test.
2501else
2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503for as_dir in $PATH
2504do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 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 +00002509 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511 break 2
2512 fi
2513done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002514done
Reid Spencera773bd52006-08-04 18:18:08 +00002515IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516
2517fi
2518fi
2519CC=$ac_cv_prog_CC
2520if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521 { echo "$as_me:$LINENO: result: $CC" >&5
2522echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002524 { echo "$as_me:$LINENO: result: no" >&5
2525echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526fi
2527
Reid Spencera773bd52006-08-04 18:18:08 +00002528
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530fi
2531if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542 ac_prog_rejected=no
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected=yes
2552 continue
2553 fi
2554 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 break 2
2557 fi
2558done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002559done
Reid Spencera773bd52006-08-04 18:18:08 +00002560IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002561
2562if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy $ac_cv_prog_CC
2565 shift
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2570 shift
2571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572 fi
2573fi
2574fi
2575fi
2576CC=$ac_cv_prog_CC
2577if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: $CC" >&5
2579echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002581 { echo "$as_me:$LINENO: result: no" >&5
2582echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583fi
2584
Reid Spencera773bd52006-08-04 18:18:08 +00002585
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586fi
2587if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002589 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002590 do
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595if test "${ac_cv_prog_CC+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002597else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002600else
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604 IFS=$as_save_IFS
2605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 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 +00002608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002610 break 2
2611 fi
2612done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002613done
Reid Spencera773bd52006-08-04 18:18:08 +00002614IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002615
2616fi
2617fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618CC=$ac_cv_prog_CC
2619if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620 { echo "$as_me:$LINENO: result: $CC" >&5
2621echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623 { echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002625fi
2626
Reid Spencera773bd52006-08-04 18:18:08 +00002627
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002629 done
2630fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631if test -z "$CC"; then
2632 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002633 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002634do
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002641else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 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 +00002652 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002654 break 2
2655 fi
2656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002657done
Reid Spencera773bd52006-08-04 18:18:08 +00002658IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002659
2660fi
2661fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002667 { echo "$as_me:$LINENO: result: no" >&5
2668echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002669fi
2670
Reid Spencera773bd52006-08-04 18:18:08 +00002671
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002673done
John Criswell7a73b802003-06-30 21:59:07 +00002674
Reid Spencera773bd52006-08-04 18:18:08 +00002675 if test "x$ac_ct_CC" = x; then
2676 CC=""
2677 else
2678 case $cross_compiling:$ac_tool_warned in
2679yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002680{ echo "$as_me:$LINENO: 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." >&5
2683echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2684whose name does not start with the host triplet. If you think this
2685configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002686ac_tool_warned=yes ;;
2687esac
2688 CC=$ac_ct_CC
2689 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690fi
2691
John Criswell7a73b802003-06-30 21:59:07 +00002692fi
2693
2694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002695test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2696See \`config.log' for more details." >&5
2697echo "$as_me: error: no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." >&2;}
2699 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002700
John Criswell7a73b802003-06-30 21:59:07 +00002701# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702echo "$as_me:$LINENO: checking for C compiler version" >&5
2703ac_compiler=`set X $ac_compile; echo $2`
2704{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002705case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002711 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714{ (ac_try="$ac_compiler -v >&5"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -v >&5") 2>&5
2721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2724{ (ac_try="$ac_compiler -V >&5"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler -V >&5") 2>&5
2731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002735cat >conftest.$ac_ext <<_ACEOF
2736/* confdefs.h. */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002740/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002741
John Criswell7a73b802003-06-30 21:59:07 +00002742int
2743main ()
2744{
2745
2746 ;
2747 return 0;
2748}
2749_ACEOF
2750ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002752# Try to create an executable without -o first, disregard a.out.
2753# It will help us diagnose broken compilers, and finding out an intuition
2754# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2756echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2757ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2758#
2759# List of possible output files, starting from the most likely.
2760# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2761# only as a last resort. b.out is created by i960 compilers.
2762ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2763#
2764# The IRIX 6 linker writes into existing files which may not be
2765# executable, retaining their permissions. Remove them first so a
2766# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002767ac_rmfiles=
2768for ac_file in $ac_files
2769do
2770 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774done
2775rm -f $ac_rmfiles
2776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002777if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002783 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002784 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2788# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2789# in a Makefile. We should not override ac_cv_exeext if it was cached,
2790# so that the user can short-circuit this test for compilers unknown to
2791# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002793do
2794 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002795 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 # We found the default executable, but exeext='' is most
2800 # certainly right.
2801 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002802 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002804 then :; else
2805 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 fi
2807 # We set ac_cv_exeext here because the later test for it is not
2808 # safe: cross compilers may not add the suffix if given an `-o'
2809 # argument, so we may need to know it at that point already.
2810 # Even if this section looks crufty: it has the advantage of
2811 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002812 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002813 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002815 esac
2816done
Reid Spencera773bd52006-08-04 18:18:08 +00002817test "$ac_cv_exeext" = no && ac_cv_exeext=
2818
John Criswell7a73b802003-06-30 21:59:07 +00002819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002821sed 's/^/| /' conftest.$ac_ext >&5
2822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2824See \`config.log' for more details." >&5
2825echo "$as_me: error: C compiler cannot create executables
2826See \`config.log' for more details." >&2;}
2827 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002828fi
John Criswell7a73b802003-06-30 21:59:07 +00002829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002830ac_exeext=$ac_cv_exeext
2831{ echo "$as_me:$LINENO: result: $ac_file" >&5
2832echo "${ECHO_T}$ac_file" >&6; }
2833
2834# Check that the compiler produces executables we can run. If not, either
2835# the compiler is broken, or we cross compile.
2836{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839# If not cross compiling, check that we can run a simple program.
2840if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 cross_compiling=no
2852 else
2853 if test "$cross_compiling" = maybe; then
2854 cross_compiling=yes
2855 else
2856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857If you meant to cross compile, use \`--host'.
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: cannot run C compiled programs.
2860If you meant to cross compile, use \`--host'.
2861See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2863 fi
2864 fi
2865fi
2866{ echo "$as_me:$LINENO: result: yes" >&5
2867echo "${ECHO_T}yes" >&6; }
2868
2869rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002870ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002871# Check that the compiler produces executables we can run. If not, either
2872# the compiler is broken, or we cross compile.
2873{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876echo "${ECHO_T}$cross_compiling" >&6; }
2877
2878{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002881case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002886 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002887 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892# work properly (i.e., refer to `conftest.exe'), while it won't with
2893# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002894for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002896 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002899 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002900 * ) break;;
2901 esac
2902done
2903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905See \`config.log' for more details." >&5
2906echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002910
2911rm -f conftest$ac_cv_exeext
2912{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002914
2915rm -f conftest.$ac_ext
2916EXEEXT=$ac_cv_exeext
2917ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002918{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920if test "${ac_cv_objext+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002923 cat >conftest.$ac_ext <<_ACEOF
2924/* confdefs.h. */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002929
John Criswell7a73b802003-06-30 21:59:07 +00002930int
2931main ()
2932{
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002939if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002940case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002945 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002946 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002949 for ac_file in conftest.o conftest.obj conftest.*; do
2950 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002951 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954 break;;
2955 esac
2956done
2957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002959sed 's/^/| /' conftest.$ac_ext >&5
2960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002961{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962See \`config.log' for more details." >&5
2963echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details." >&2;}
2965 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002967
John Criswell7a73b802003-06-30 21:59:07 +00002968rm -f conftest.$ac_cv_objext conftest.$ac_ext
2969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002972OBJEXT=$ac_cv_objext
2973ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002974{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002979 cat >conftest.$ac_ext <<_ACEOF
2980/* confdefs.h. */
2981_ACEOF
2982cat confdefs.h >>conftest.$ac_ext
2983cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002985
John Criswell7a73b802003-06-30 21:59:07 +00002986int
2987main ()
2988{
2989#ifndef __GNUC__
2990 choke me
2991#endif
2992
2993 ;
2994 return 0;
2995}
2996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002997rm -f conftest.$ac_objext
2998if { (ac_try="$ac_compile"
2999case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002esac
3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3005 ac_status=$?
3006 grep -v '^ *+' conftest.er1 >conftest.err
3007 rm -f conftest.er1
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003031 ac_compiler_gnu=yes
3032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003033 echo "$as_me: failed program was:" >&5
3034sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003038
Reid Spencera773bd52006-08-04 18:18:08 +00003039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003040ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003041
3042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003043{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3045GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003046ac_test_CFLAGS=${CFLAGS+set}
3047ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003048{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3049echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3050if test "${ac_cv_prog_cc_g+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003052else
Reid Spencera773bd52006-08-04 18:18:08 +00003053 ac_save_c_werror_flag=$ac_c_werror_flag
3054 ac_c_werror_flag=yes
3055 ac_cv_prog_cc_g=no
3056 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003057 cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003063
John Criswell7a73b802003-06-30 21:59:07 +00003064int
3065main ()
3066{
3067
3068 ;
3069 return 0;
3070}
3071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003072rm -f conftest.$ac_objext
3073if { (ac_try="$ac_compile"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003106 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003108 echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 CFLAGS=""
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 :
Torok Edwin871384f2010-01-26 08:50:50 +00003162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003163 echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003167 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003168 cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h. */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003183rm -f conftest.$ac_objext
3184if { (ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3191 ac_status=$?
3192 grep -v '^ *+' conftest.er1 >conftest.err
3193 rm -f conftest.er1
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3201esac
3202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3204 ac_status=$?
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003217 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003218else
3219 echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222
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
John Criswell7a73b802003-06-30 21:59:07 +00003226fi
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
3229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230
Reid Spencera773bd52006-08-04 18:18:08 +00003231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3233fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003234{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3235echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003236if test "$ac_test_CFLAGS" = set; then
3237 CFLAGS=$ac_save_CFLAGS
3238elif test $ac_cv_prog_cc_g = yes; then
3239 if test "$GCC" = yes; then
3240 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003241 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003243 fi
3244else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245 if test "$GCC" = yes; then
3246 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003247 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003248 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003249 fi
3250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003251{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3252echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3253if test "${ac_cv_prog_cc_c89+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255else
Reid Spencera773bd52006-08-04 18:18:08 +00003256 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263/* end confdefs.h. */
3264#include <stdarg.h>
3265#include <stdio.h>
3266#include <sys/types.h>
3267#include <sys/stat.h>
3268/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3269struct buf { int x; };
3270FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271static char *e (p, i)
3272 char **p;
3273 int i;
3274{
3275 return p[i];
3276}
3277static char *f (char * (*g) (char **, int), char **p, ...)
3278{
3279 char *s;
3280 va_list v;
3281 va_start (v,p);
3282 s = g (p, va_arg (v,int));
3283 va_end (v);
3284 return s;
3285}
3286
3287/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3288 function prototypes and stuff, but not '\xHH' hex character constants.
3289 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003290 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3292 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003293 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295
Reid Spencera773bd52006-08-04 18:18:08 +00003296/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3297 inside strings and character constants. */
3298#define FOO(x) 'x'
3299int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301int test (int i, double x);
3302struct s1 {int (*f) (int a);};
3303struct s2 {int (*f) (double a);};
3304int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305int argc;
3306char **argv;
3307int
3308main ()
3309{
3310return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 ;
3312 return 0;
3313}
3314_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003315for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317do
3318 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003319 rm -f conftest.$ac_objext
3320if { (ac_try="$ac_compile"
3321case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324esac
3325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3327 ac_status=$?
3328 grep -v '^ *+' conftest.er1 >conftest.err
3329 rm -f conftest.er1
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337esac
3338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
3348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003353 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003354else
3355 echo "$as_me: failed program was:" >&5
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
3358
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003360
Reid Spencera773bd52006-08-04 18:18:08 +00003361rm -f core conftest.err conftest.$ac_objext
3362 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363done
Reid Spencera773bd52006-08-04 18:18:08 +00003364rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365CC=$ac_save_CC
3366
3367fi
Reid Spencera773bd52006-08-04 18:18:08 +00003368# AC_CACHE_VAL
3369case "x$ac_cv_prog_cc_c89" in
3370 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003371 { echo "$as_me:$LINENO: result: none needed" >&5
3372echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003373 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 { echo "$as_me:$LINENO: result: unsupported" >&5
3375echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003377 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003378 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3379echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380esac
3381
John Criswell0c38eaf2003-09-10 15:17:25 +00003382
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383ac_ext=c
3384ac_cpp='$CPP $CPPFLAGS'
3385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388
3389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390ac_ext=c
3391ac_cpp='$CPP $CPPFLAGS'
3392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003395{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397# On Suns, sometimes $CPP names a directory.
3398if test -n "$CPP" && test -d "$CPP"; then
3399 CPP=
3400fi
3401if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 if test "${ac_cv_prog_CPP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404else
3405 # Double quotes because CPP needs to be expanded
3406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407 do
3408 ac_preproc_ok=false
3409for ac_c_preproc_warn_flag in '' yes
3410do
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003417 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422/* end confdefs.h. */
3423#ifdef __STDC__
3424# include <limits.h>
3425#else
3426# include <assert.h>
3427#endif
3428 Syntax error
3429_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003430if { (ac_try="$ac_cpp conftest.$ac_ext"
3431case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434esac
3435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3446 else
3447 ac_cpp_err=
3448 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003449else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003450 ac_cpp_err=yes
3451fi
3452if test -z "$ac_cpp_err"; then
3453 :
3454else
3455 echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458 # Broken: fails on valid input.
3459continue
3460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003461
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462rm -f conftest.err conftest.$ac_ext
3463
Reid Spencera773bd52006-08-04 18:18:08 +00003464 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003465 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003466 cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h. */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471/* end confdefs.h. */
3472#include <ac_nonexistent.h>
3473_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003474if { (ac_try="$ac_cpp conftest.$ac_ext"
3475case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478esac
3479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_c_preproc_warn_flag
3489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3490 else
3491 ac_cpp_err=
3492 fi
3493else
3494 ac_cpp_err=yes
3495fi
3496if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497 # Broken: success on invalid input.
3498continue
3499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503 # Passes both tests.
3504ac_preproc_ok=:
3505break
3506fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003507
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508rm -f conftest.err conftest.$ac_ext
3509
3510done
3511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003513if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003514 break
3515fi
3516
3517 done
3518 ac_cv_prog_CPP=$CPP
3519
3520fi
3521 CPP=$ac_cv_prog_CPP
3522else
3523 ac_cv_prog_CPP=$CPP
3524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003525{ echo "$as_me:$LINENO: result: $CPP" >&5
3526echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003527ac_preproc_ok=false
3528for ac_c_preproc_warn_flag in '' yes
3529do
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003536 cat >conftest.$ac_ext <<_ACEOF
3537/* confdefs.h. */
3538_ACEOF
3539cat confdefs.h >>conftest.$ac_ext
3540cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541/* end confdefs.h. */
3542#ifdef __STDC__
3543# include <limits.h>
3544#else
3545# include <assert.h>
3546#endif
3547 Syntax error
3548_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003549if { (ac_try="$ac_cpp conftest.$ac_ext"
3550case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553esac
3554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null; then
3562 if test -s conftest.err; then
3563 ac_cpp_err=$ac_c_preproc_warn_flag
3564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3565 else
3566 ac_cpp_err=
3567 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003568else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003569 ac_cpp_err=yes
3570fi
3571if test -z "$ac_cpp_err"; then
3572 :
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577 # Broken: fails on valid input.
3578continue
3579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003580
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581rm -f conftest.err conftest.$ac_ext
3582
Reid Spencera773bd52006-08-04 18:18:08 +00003583 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003584 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003585 cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h. */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590/* end confdefs.h. */
3591#include <ac_nonexistent.h>
3592_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003593if { (ac_try="$ac_cpp conftest.$ac_ext"
3594case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597esac
3598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600 ac_status=$?
3601 grep -v '^ *+' conftest.er1 >conftest.err
3602 rm -f conftest.er1
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); } >/dev/null; then
3606 if test -s conftest.err; then
3607 ac_cpp_err=$ac_c_preproc_warn_flag
3608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3609 else
3610 ac_cpp_err=
3611 fi
3612else
3613 ac_cpp_err=yes
3614fi
3615if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003616 # Broken: success on invalid input.
3617continue
3618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003619 echo "$as_me: failed program was:" >&5
3620sed 's/^/| /' conftest.$ac_ext >&5
3621
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622 # Passes both tests.
3623ac_preproc_ok=:
3624break
3625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003626
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003627rm -f conftest.err conftest.$ac_ext
3628
3629done
3630# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003632if $ac_preproc_ok; then
3633 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003635 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636See \`config.log' for more details." >&5
3637echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003640fi
3641
John Criswell7a73b802003-06-30 21:59:07 +00003642ac_ext=c
3643ac_cpp='$CPP $CPPFLAGS'
3644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
John Criswell7a73b802003-06-30 21:59:07 +00003648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003649{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3650echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3651if test "${ac_cv_path_GREP+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003654 # Extract the first word of "grep ggrep" to use in msg output
3655if test -z "$GREP"; then
3656set dummy grep ggrep; ac_prog_name=$2
3657if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659else
Reid Spencera773bd52006-08-04 18:18:08 +00003660 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003661# Loop through the user's path and test for each of PROGNAME-LIST
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003667 for ac_prog in grep ggrep; do
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3670 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3671 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003672 # Check for GNU $ac_path_GREP
3673case `"$ac_path_GREP" --version 2>&1` in
3674*GNU*)
3675 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3676*)
3677 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003678 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003679 while :
3680 do
3681 cat "conftest.in" "conftest.in" >"conftest.tmp"
3682 mv "conftest.tmp" "conftest.in"
3683 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003687 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003688 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3689 # Best one so far, save it but keep looking for a better one
3690 ac_cv_path_GREP="$ac_path_GREP"
3691 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003692 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003693 # 10*(2^10) chars as input seems more than enough
3694 test $ac_count -gt 10 && break
3695 done
3696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697esac
3698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699
3700 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003701 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702done
3703
3704done
Reid Spencera773bd52006-08-04 18:18:08 +00003705IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706
3707
3708fi
3709
3710GREP="$ac_cv_path_GREP"
3711if test -z "$GREP"; then
3712 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714 { (exit 1); exit 1; }; }
3715fi
3716
Reid Spencera773bd52006-08-04 18:18:08 +00003717else
3718 ac_cv_path_GREP=$GREP
3719fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721
Reid Spencera773bd52006-08-04 18:18:08 +00003722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003723{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3724echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003725 GREP="$ac_cv_path_GREP"
3726
3727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003728{ echo "$as_me:$LINENO: checking for egrep" >&5
3729echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3730if test "${ac_cv_path_EGREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003732else
3733 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3734 then ac_cv_path_EGREP="$GREP -E"
3735 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736 # Extract the first word of "egrep" to use in msg output
3737if test -z "$EGREP"; then
3738set dummy egrep; ac_prog_name=$2
3739if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
Reid Spencera773bd52006-08-04 18:18:08 +00003742 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003743# Loop through the user's path and test for each of PROGNAME-LIST
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003749 for ac_prog in egrep; do
3750 for ac_exec_ext in '' $ac_executable_extensions; do
3751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3752 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3753 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003754 # Check for GNU $ac_path_EGREP
3755case `"$ac_path_EGREP" --version 2>&1` in
3756*GNU*)
3757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3758*)
3759 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003760 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003761 while :
3762 do
3763 cat "conftest.in" "conftest.in" >"conftest.tmp"
3764 mv "conftest.tmp" "conftest.in"
3765 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003769 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771 # Best one so far, save it but keep looking for a better one
3772 ac_cv_path_EGREP="$ac_path_EGREP"
3773 ac_path_EGREP_max=$ac_count
3774 fi
3775 # 10*(2^10) chars as input seems more than enough
3776 test $ac_count -gt 10 && break
3777 done
3778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779esac
3780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781
3782 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003783 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784done
3785
3786done
Reid Spencera773bd52006-08-04 18:18:08 +00003787IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003788
3789
3790fi
3791
3792EGREP="$ac_cv_path_EGREP"
3793if test -z "$EGREP"; then
3794 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3795echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3796 { (exit 1); exit 1; }; }
3797fi
3798
Reid Spencera773bd52006-08-04 18:18:08 +00003799else
3800 ac_cv_path_EGREP=$EGREP
3801fi
3802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003803
Reid Spencera773bd52006-08-04 18:18:08 +00003804 fi
3805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003806{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3807echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003808 EGREP="$ac_cv_path_EGREP"
3809
3810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003811{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3812echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3813if test "${ac_cv_header_stdc+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003816 cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h. */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003822#include <stdlib.h>
3823#include <stdarg.h>
3824#include <string.h>
3825#include <float.h>
3826
John Criswell0c38eaf2003-09-10 15:17:25 +00003827int
3828main ()
3829{
3830
3831 ;
3832 return 0;
3833}
John Criswell7a73b802003-06-30 21:59:07 +00003834_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003835rm -f conftest.$ac_objext
3836if { (ac_try="$ac_compile"
3837case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
3841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3850 { (case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853esac
3854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try='test -s conftest.$ac_objext'
3860 { (case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863esac
3864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_try") 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003869 ac_cv_header_stdc=yes
3870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003871 echo "$as_me: failed program was:" >&5
3872sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003876
Reid Spencera773bd52006-08-04 18:18:08 +00003877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003878
3879if test $ac_cv_header_stdc = yes; then
3880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003881 cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h. */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003886/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003887#include <string.h>
3888
3889_ACEOF
3890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003891 $EGREP "memchr" >/dev/null 2>&1; then
3892 :
John Criswell7a73b802003-06-30 21:59:07 +00003893else
3894 ac_cv_header_stdc=no
3895fi
3896rm -f conftest*
3897
3898fi
3899
3900if test $ac_cv_header_stdc = yes; then
3901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003902 cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003908#include <stdlib.h>
3909
3910_ACEOF
3911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912 $EGREP "free" >/dev/null 2>&1; then
3913 :
John Criswell7a73b802003-06-30 21:59:07 +00003914else
3915 ac_cv_header_stdc=no
3916fi
3917rm -f conftest*
3918
3919fi
3920
3921if test $ac_cv_header_stdc = yes; then
3922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003924 :
3925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003926 cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003932#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003933#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003934#if ((' ' & 0x0FF) == 0x020)
3935# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3936# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3937#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003938# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003939 (('a' <= (c) && (c) <= 'i') \
3940 || ('j' <= (c) && (c) <= 'r') \
3941 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003942# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943#endif
3944
3945#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946int
3947main ()
3948{
3949 int i;
3950 for (i = 0; i < 256; i++)
3951 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003952 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003953 return 2;
3954 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003955}
3956_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957rm -f conftest$ac_exeext
3958if { (ac_try="$ac_link"
3959case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_link") 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968 { (case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_try") 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 :
John Criswell7a73b802003-06-30 21:59:07 +00003978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003979 echo "$as_me: program exited with status $ac_status" >&5
3980echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983( exit $ac_status )
3984ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986rm -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 +00003987fi
3988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989
John Criswell7a73b802003-06-30 21:59:07 +00003990fi
3991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003994if test $ac_cv_header_stdc = yes; then
3995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003996cat >>confdefs.h <<\_ACEOF
3997#define STDC_HEADERS 1
3998_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003999
4000fi
4001
Reid Spencera773bd52006-08-04 18:18:08 +00004002# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004003
4004
4005
4006
4007
4008
4009
4010
4011
Reid Spencera773bd52006-08-04 18:18:08 +00004012for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004014do
4015as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021 cat >conftest.$ac_ext <<_ACEOF
4022/* confdefs.h. */
4023_ACEOF
4024cat confdefs.h >>conftest.$ac_ext
4025cat >>conftest.$ac_ext <<_ACEOF
4026/* end confdefs.h. */
4027$ac_includes_default
4028
4029#include <$ac_header>
4030_ACEOF
4031rm -f conftest.$ac_objext
4032if { (ac_try="$ac_compile"
4033case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036esac
4037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4039 ac_status=$?
4040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049esac
4050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059esac
4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 eval "$as_ac_Header=yes"
4066else
4067 echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070 eval "$as_ac_Header=no"
4071fi
4072
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074fi
4075ac_res=`eval echo '${'$as_ac_Header'}'`
4076 { echo "$as_me:$LINENO: result: $ac_res" >&5
4077echo "${ECHO_T}$ac_res" >&6; }
4078if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004079 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004081_ACEOF
4082
4083fi
4084
4085done
4086
4087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004088{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090if test "${ac_cv_c_bigendian+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004092else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093 # See if sys/param.h defines the BYTE_ORDER macro.
4094cat >conftest.$ac_ext <<_ACEOF
4095/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097cat confdefs.h >>conftest.$ac_ext
4098cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004099/* end confdefs.h. */
4100#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004101#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004102
4103int
4104main ()
4105{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004106#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4107 bogus endian macros
4108#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004109
4110 ;
4111 return 0;
4112}
4113_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114rm -f conftest.$ac_objext
4115if { (ac_try="$ac_compile"
4116case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119esac
4120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4122 ac_status=$?
4123 grep -v '^ *+' conftest.er1 >conftest.err
4124 rm -f conftest.er1
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142esac
4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004148 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004149cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004154/* end confdefs.h. */
4155#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004156#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004157
4158int
4159main ()
4160{
4161#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004162 not big endian
4163#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004164
4165 ;
4166 return 0;
4167}
4168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004169rm -f conftest.$ac_objext
4170if { (ac_try="$ac_compile"
4171case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174esac
4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (case "(($ac_try" in
4185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4187esac
4188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004203 ac_cv_c_bigendian=yes
4204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004208 ac_cv_c_bigendian=no
4209fi
4210
4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 # It does not; compile a test program.
4217if test "$cross_compiling" = yes; then
4218 # try to guess the endianness by grepping values into an object file
4219 ac_cv_c_bigendian=unknown
4220 cat >conftest.$ac_ext <<_ACEOF
4221/* confdefs.h. */
4222_ACEOF
4223cat confdefs.h >>conftest.$ac_ext
4224cat >>conftest.$ac_ext <<_ACEOF
4225/* end confdefs.h. */
4226short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004232int
4233main ()
4234{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004235 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004236 ;
4237 return 0;
4238}
4239_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004240rm -f conftest.$ac_objext
4241if { (ac_try="$ac_compile"
4242case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245esac
4246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4248 ac_status=$?
4249 grep -v '^ *+' conftest.er1 >conftest.err
4250 rm -f conftest.er1
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258esac
4259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4261 ac_status=$?
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try='test -s conftest.$ac_objext'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004275 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004276fi
4277if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278 if test "$ac_cv_c_bigendian" = unknown; then
4279 ac_cv_c_bigendian=no
4280 else
4281 # finding both strings is unlikely to happen, but who knows?
4282 ac_cv_c_bigendian=unknown
4283 fi
4284fi
Reid Spencera773bd52006-08-04 18:18:08 +00004285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286 echo "$as_me: failed program was:" >&5
4287sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004289
Torok Edwin871384f2010-01-26 08:50:50 +00004290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291
Reid Spencera773bd52006-08-04 18:18:08 +00004292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004294 cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004299/* end confdefs.h. */
4300$ac_includes_default
4301int
4302main ()
4303{
4304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305 /* Are we little or big endian? From Harbison&Steele. */
4306 union
4307 {
4308 long int l;
4309 char c[sizeof (long int)];
4310 } u;
4311 u.l = 1;
4312 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004313
4314 ;
4315 return 0;
4316}
4317_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004318rm -f conftest$ac_exeext
4319if { (ac_try="$ac_link"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_link") 2>&5
4326 ac_status=$?
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329 { (case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004338 ac_cv_c_bigendian=no
4339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004340 echo "$as_me: program exited with status $ac_status" >&5
4341echo "$as_me: failed program was:" >&5
4342sed 's/^/| /' conftest.$ac_ext >&5
4343
4344( exit $ac_status )
4345ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347rm -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 +00004348fi
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350
Reid Spencera773bd52006-08-04 18:18:08 +00004351fi
4352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354fi
4355{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357case $ac_cv_c_bigendian in
4358 yes)
4359 ENDIAN=big
4360 ;;
4361 no)
4362 ENDIAN=little
4363 ;;
4364 *)
4365 { { echo "$as_me:$LINENO: error: unknown endianness
4366presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4367echo "$as_me: error: unknown endianness
4368presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4369 { (exit 1); exit 1; }; } ;;
4370esac
Reid Spencera773bd52006-08-04 18:18:08 +00004371
4372
4373if test "$cross_compiling" = yes; then
4374 LLVM_CROSS_COMPILING=1
4375
4376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004377{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4378echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4379if test "${ac_cv_build_exeext+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004381else
4382 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4383 ac_cv_build_exeext=.exe
4384else
4385 ac_build_prefix=${build_alias}-
4386
4387 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4388set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004393else
4394 if test -n "$BUILD_CC"; then
4395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 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 +00004404 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004406 break 2
4407 fi
4408done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409done
Reid Spencera773bd52006-08-04 18:18:08 +00004410IFS=$as_save_IFS
4411
4412fi
4413fi
4414BUILD_CC=$ac_cv_prog_BUILD_CC
4415if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004419 { echo "$as_me:$LINENO: result: no" >&5
4420echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004421fi
4422
4423
4424 if test -z "$BUILD_CC"; then
4425 # Extract the first word of "gcc", so it can be a program name with args.
4426set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004431else
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434else
4435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004442 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004444 break 2
4445 fi
4446done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004447done
Reid Spencera773bd52006-08-04 18:18:08 +00004448IFS=$as_save_IFS
4449
4450fi
4451fi
4452BUILD_CC=$ac_cv_prog_BUILD_CC
4453if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457 { echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004459fi
4460
4461
4462 if test -z "$BUILD_CC"; then
4463 # Extract the first word of "cc", so it can be a program name with args.
4464set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004469else
4470 if test -n "$BUILD_CC"; then
4471 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472else
4473 ac_prog_rejected=no
4474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475for as_dir in $PATH
4476do
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 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 +00004481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482 ac_prog_rejected=yes
4483 continue
4484 fi
4485 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004487 break 2
4488 fi
4489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490done
Reid Spencera773bd52006-08-04 18:18:08 +00004491IFS=$as_save_IFS
4492
4493if test $ac_prog_rejected = yes; then
4494 # We found a bogon in the path, so make sure we never use it.
4495 set dummy $ac_cv_prog_BUILD_CC
4496 shift
4497 if test $# != 0; then
4498 # We chose a different compiler from the bogus one.
4499 # However, it has the same basename, so the bogon will be chosen
4500 # first if we set BUILD_CC to just the basename; use the full file name.
4501 shift
4502 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503 fi
4504fi
4505fi
4506fi
4507BUILD_CC=$ac_cv_prog_BUILD_CC
4508if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4510echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004511else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004512 { echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004514fi
4515
4516
4517 fi
4518 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004519 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4520echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4521 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004522 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4523 rm -f conftest*
4524 echo 'int main () { return 0; }' > conftest.$ac_ext
4525 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004527 (eval $ac_build_link) 2>&5
4528 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004531 for file in conftest.*; do
4532 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004533 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004534 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535 esac
4536 done
4537 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4539echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4540 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004541 fi
4542 rm -f conftest*
4543 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544fi
4545fi
4546
4547BUILD_EXEEXT=""
4548test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4550echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004551ac_build_exeext=$BUILD_EXEEXT
4552
Jim Grosbach673612e2008-10-02 22:56:44 +00004553 ac_build_prefix=${build_alias}-
4554 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4555set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004560else
4561 if test -n "$BUILD_CXX"; then
4562 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4563else
4564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 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 +00004571 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004573 break 2
4574 fi
4575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576done
Jim Grosbach673612e2008-10-02 22:56:44 +00004577IFS=$as_save_IFS
4578
4579fi
4580fi
4581BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004586 { echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004588fi
4589
4590
4591 if test -z "$BUILD_CXX"; then
4592 # Extract the first word of "g++", so it can be a program name with args.
4593set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004598else
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601else
4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004609 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004611 break 2
4612 fi
4613done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004614done
Jim Grosbach673612e2008-10-02 22:56:44 +00004615IFS=$as_save_IFS
4616
4617fi
4618fi
4619BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624 { echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004626fi
4627
4628
4629 if test -z "$BUILD_CXX"; then
4630 # Extract the first word of "c++", so it can be a program name with args.
4631set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004632{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004636else
4637 if test -n "$BUILD_CXX"; then
4638 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639else
4640 ac_prog_rejected=no
4641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 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 +00004648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4649 ac_prog_rejected=yes
4650 continue
4651 fi
4652 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004654 break 2
4655 fi
4656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004657done
Jim Grosbach673612e2008-10-02 22:56:44 +00004658IFS=$as_save_IFS
4659
4660if test $ac_prog_rejected = yes; then
4661 # We found a bogon in the path, so make sure we never use it.
4662 set dummy $ac_cv_prog_BUILD_CXX
4663 shift
4664 if test $# != 0; then
4665 # We chose a different compiler from the bogus one.
4666 # However, it has the same basename, so the bogon will be chosen
4667 # first if we set BUILD_CXX to just the basename; use the full file name.
4668 shift
4669 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670 fi
4671fi
4672fi
4673fi
4674BUILD_CXX=$ac_cv_prog_BUILD_CXX
4675if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4677echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004679 { echo "$as_me:$LINENO: result: no" >&5
4680echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004681fi
4682
4683
4684 fi
4685 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004686else
4687 LLVM_CROSS_COMPILING=0
4688
4689fi
4690
Dan Gohman56fb5f92010-08-04 16:25:01 +00004691if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004692 cvsbuild="yes"
4693 optimize="no"
4694 CVSBUILD=CVSBUILD=1
4695
4696else
4697 cvsbuild="no"
4698 optimize="yes"
4699fi
4700
4701
4702# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004704 enableval=$enable_optimized;
4705else
4706 enableval=$optimize
4707fi
4708
4709if test ${enableval} = "no" ; then
4710 ENABLE_OPTIMIZED=
4711
4712else
4713 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714
4715fi
4716
David Greene2a5a12c2009-04-17 14:50:39 +00004717# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004719 enableval=$enable_profiling;
4720else
4721 enableval="no"
4722fi
4723
4724if test ${enableval} = "no" ; then
4725 ENABLE_PROFILING=
4726
4727else
4728 ENABLE_PROFILING=ENABLE_PROFILING=1
4729
4730fi
4731
Reid Spencera773bd52006-08-04 18:18:08 +00004732# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004733if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004734 enableval=$enable_assertions;
4735else
4736 enableval="yes"
4737fi
4738
4739if test ${enableval} = "yes" ; then
4740 DISABLE_ASSERTIONS=
4741
4742else
4743 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744
4745fi
4746
David Greenea696d242007-06-28 19:36:08 +00004747# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004748if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004749 enableval=$enable_expensive_checks;
4750else
4751 enableval="no"
4752fi
4753
4754if test ${enableval} = "yes" ; then
4755 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4756
4757 EXPENSIVE_CHECKS=yes
4758
4759else
4760 ENABLE_EXPENSIVE_CHECKS=
4761
4762 EXPENSIVE_CHECKS=no
4763
4764fi
4765
Reid Spencer8b2e1412006-11-17 03:32:33 +00004766# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004768 enableval=$enable_debug_runtime;
4769else
4770 enableval=no
4771fi
4772
4773if test ${enableval} = "no" ; then
4774 DEBUG_RUNTIME=
4775
4776else
4777 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778
4779fi
4780
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004781# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004783 enableval=$enable_debug_symbols;
4784else
4785 enableval=no
4786fi
4787
4788if test ${enableval} = "no" ; then
4789 DEBUG_SYMBOLS=
4790
4791else
4792 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793
4794fi
4795
Reid Spencera773bd52006-08-04 18:18:08 +00004796# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004797if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004798 enableval=$enable_jit;
4799else
4800 enableval=default
4801fi
4802
4803if test ${enableval} = "no"
4804then
4805 JIT=
4806
4807else
4808 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004815 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004818 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004819 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004828 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004829 Blackfin) TARGET_HAS_JIT=0
4830 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004831 MBlaze) TARGET_HAS_JIT=0
4832 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004833 PTX) TARGET_HAS_JIT=0
4834 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004835 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004836 ;;
4837 esac
4838fi
4839
4840# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004841if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004842 enableval=$enable_doxygen;
4843else
4844 enableval=default
4845fi
4846
4847case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4849 ;;
4850 no) ENABLE_DOXYGEN=0
4851 ;;
4852 default) ENABLE_DOXYGEN=0
4853 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004857esac
4858
4859# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004860if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004861 enableval=$enable_threads;
4862else
Reid Spencer65c5d752006-11-05 17:08:18 +00004863 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004864fi
4865
4866case "$enableval" in
4867 yes) ENABLE_THREADS=1
4868 ;;
4869 no) ENABLE_THREADS=0
4870 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004871 default) ENABLE_THREADS=1
4872 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004876esac
4877
Owen Andersona8603702009-05-19 22:18:56 +00004878cat >>confdefs.h <<_ACEOF
4879#define ENABLE_THREADS $ENABLE_THREADS
4880_ACEOF
4881
4882
Reid Spencer89b0d992006-12-16 22:07:52 +00004883# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004884if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004885 enableval=$enable_pic;
4886else
4887 enableval=default
4888fi
4889
4890case "$enableval" in
4891 yes) ENABLE_PIC=1
4892 ;;
4893 no) ENABLE_PIC=0
4894 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004895 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004896 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004900esac
4901
4902cat >>confdefs.h <<_ACEOF
4903#define ENABLE_PIC $ENABLE_PIC
4904_ACEOF
4905
4906
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004907# Check whether --enable-shared was given.
4908if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4910else
4911 enableval=default
4912fi
4913
4914case "$enableval" in
4915 yes) ENABLE_SHARED=1
4916 ;;
4917 no) ENABLE_SHARED=0
4918 ;;
4919 default) ENABLE_SHARED=0
4920 ;;
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4924esac
4925
Daniel Dunbardd464df2010-05-10 20:11:56 +00004926# Check whether --enable-timestamps was given.
4927if test "${enable_timestamps+set}" = set; then
4928 enableval=$enable_timestamps;
4929else
4930 enableval=default
4931fi
4932
4933case "$enableval" in
4934 yes) ENABLE_TIMESTAMPS=1
4935 ;;
4936 no) ENABLE_TIMESTAMPS=0
4937 ;;
4938 default) ENABLE_TIMESTAMPS=1
4939 ;;
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4943esac
4944
4945cat >>confdefs.h <<_ACEOF
4946#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947_ACEOF
4948
4949
Reid Spencera773bd52006-08-04 18:18:08 +00004950TARGETS_TO_BUILD=""
4951# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004952if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004953 enableval=$enable_targets;
4954else
4955 enableval=all
4956fi
4957
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004958if test "$enableval" = host-only ; then
4959 enableval=host
4960fi
Reid Spencera773bd52006-08-04 18:18:08 +00004961case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00004962 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 +00004963 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004965 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004979 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004980 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004981 host) case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004989 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004991 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4992 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004993 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004994 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004995 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004996 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4997echo "$as_me: error: Can not set target to build" >&2;}
4998 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004999 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005000 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5001echo "$as_me: error: Unrecognized target $a_target" >&2;}
5002 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005003 esac
5004 done
5005 ;;
5006esac
Reid Spencera773bd52006-08-04 18:18:08 +00005007TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5008
5009
Douglas Gregor0711c302009-06-17 00:43:20 +00005010# Determine whether we are building LLVM support for the native architecture.
5011# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5012for a_target in $TARGETS_TO_BUILD; do
5013 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5014
5015cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005016#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5017_ACEOF
5018
5019 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5020 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5021 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5022
5023cat >>confdefs.h <<_ACEOF
5024#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005025_ACEOF
5026
5027
5028cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005029#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5030_ACEOF
5031
5032
5033cat >>confdefs.h <<_ACEOF
5034#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005035_ACEOF
5036
5037 fi
5038done
5039
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005040# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5041# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005042LLVM_ENUM_TARGETS=""
5043LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005044LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005045LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005046for target_to_build in $TARGETS_TO_BUILD; do
5047 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5048 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5049 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5050 fi
Jim Grosbach7ac16092010-10-01 22:39:28 +00005051 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5052 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5053 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5054 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005055 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5056 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5057 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005058 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5059 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5060 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005061done
5062
5063
5064
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005065
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005066
Reid Spencer65c5d752006-11-05 17:08:18 +00005067# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005068if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005069 enableval=$enable_cbe_printf_a;
5070else
5071 enableval=default
5072fi
5073
5074case "$enableval" in
5075 yes) ENABLE_CBE_PRINTF_A=1
5076 ;;
5077 no) ENABLE_CBE_PRINTF_A=0
5078 ;;
5079 default) ENABLE_CBE_PRINTF_A=1
5080 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005081 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5082echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5083 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005084esac
5085
5086cat >>confdefs.h <<_ACEOF
5087#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5088_ACEOF
5089
5090
Reid Spencera773bd52006-08-04 18:18:08 +00005091
5092# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005093if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005094 withval=$with_llvmgccdir;
5095else
5096 withval=default
5097fi
5098
5099case "$withval" in
5100 default) WITH_LLVMGCCDIR=default ;;
5101 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005102 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5103echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5104 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005105esac
5106
5107
Devang Patel5d28b882007-12-04 22:54:47 +00005108# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005109if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005110 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5111 WITH_LLVMGCCDIR=""
5112fi
5113
5114
5115
5116# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005117if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005118 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5119 WITH_LLVMGCCDIR=""
5120fi
5121
Douglas Gregor01746742009-05-11 18:05:52 +00005122
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005123if test -n "$LLVMGCC"; then
5124 LLVMGCCCOMMAND="$LLVMGCC"
5125fi
5126
5127if test -n "$LLVMGXX"; then
5128 LLVMGXXCOMMAND="$LLVMGXX"
5129fi
Devang Patel5d28b882007-12-04 22:54:47 +00005130
5131if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005132 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5133echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5134 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005135fi
5136
5137if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005138 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5139echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5140 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005141fi
5142
5143
Daniel Dunbar98515672010-02-23 10:00:49 +00005144# Check whether --with-clang was given.
5145if test "${with_clang+set}" = set; then
5146 withval=$with_clang;
5147else
5148 with_clang=default
5149fi
5150
5151
5152
5153# Check whether --with-built-clang was given.
5154if test "${with_built_clang+set}" = set; then
5155 withval=$with_built_clang;
5156else
5157 with_built_clang=check
5158fi
5159
5160
5161{ echo "$as_me:$LINENO: checking clang compiler" >&5
5162echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5163WITH_CLANGPATH=""
5164WITH_BUILT_CLANG=0
5165if test "$with_clang" != "default"; then
5166 WITH_CLANGPATH="$with_clang"
5167 if ! test -x "$WITH_CLANGPATH"; then
5168 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5169echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5170 { (exit 1); exit 1; }; }
5171 fi
5172elif test "$with_built_clang" = "yes"; then
5173 WITH_BUILT_CLANG=1
5174elif test "$with_built_clang" = "no"; then
5175 WITH_BUILT_CLANG=0
5176else
5177 if test "$with_built_clang" != "check"; then
5178 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5179echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5180 { (exit 1); exit 1; }; }
5181 fi
5182
5183 if test -f ${srcdir}/tools/clang/README.txt; then
5184 WITH_BUILT_CLANG=1
5185 fi
5186fi
5187
5188if ! test -z "$WITH_CLANGPATH"; then
5189 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5190echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5191 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5192elif test "$WITH_BUILT_CLANG" = "1"; then
5193 { echo "$as_me:$LINENO: result: built" >&5
5194echo "${ECHO_T}built" >&6; }
5195else
5196 { echo "$as_me:$LINENO: result: none" >&5
5197echo "${ECHO_T}none" >&6; }
5198fi
5199CLANGPATH=$WITH_CLANGPATH
5200
5201CLANGXXPATH=$WITH_CLANGXXPATH
5202
5203ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5204
5205
5206
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005207# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005209 withval=$with_optimize_option;
5210else
5211 withval=default
5212fi
5213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005214{ echo "$as_me:$LINENO: checking optimization flags" >&5
5215echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005216case "$withval" in
5217 default)
5218 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005219 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005220 MingW) optimize_option=-O2 ;;
5221 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005222 esac ;;
5223 *) optimize_option="$withval" ;;
5224esac
5225OPTIMIZE_OPTION=$optimize_option
5226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005227{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5228echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005229
5230
Reid Spencera773bd52006-08-04 18:18:08 +00005231# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005232if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005233 withval=$with_extra_options;
5234else
5235 withval=default
5236fi
5237
5238case "$withval" in
5239 default) EXTRA_OPTIONS= ;;
5240 *) EXTRA_OPTIONS=$withval ;;
5241esac
5242EXTRA_OPTIONS=$EXTRA_OPTIONS
5243
5244
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005245# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005246if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005247 enableval=$enable_bindings;
5248else
5249 enableval=default
5250fi
5251
5252BINDINGS_TO_BUILD=""
5253case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005254 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005255 all ) BINDINGS_TO_BUILD="ocaml" ;;
5256 none | no) BINDINGS_TO_BUILD="" ;;
5257 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5258 case "$a_binding" in
5259 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5261echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5262 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005263 esac
5264 done
5265 ;;
5266esac
5267
Reid Spencera773bd52006-08-04 18:18:08 +00005268
Gordon Henriksenf0915682007-10-02 16:42:22 +00005269# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005270if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005271 withval=$with_ocaml_libdir;
5272else
5273 withval=auto
5274fi
5275
5276case "$withval" in
5277 auto) with_ocaml_libdir="$withval" ;;
5278 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005279 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5280echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5281 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005282esac
5283
5284
Chandler Carruth6b241162010-10-19 08:21:25 +00005285# Check whether --with-clang-resource-dir was given.
5286if test "${with_clang_resource_dir+set}" = set; then
5287 withval=$with_clang_resource_dir;
5288else
5289 withval=""
5290fi
5291
5292
5293cat >>confdefs.h <<_ACEOF
5294#define CLANG_RESOURCE_DIR "$withval"
5295_ACEOF
5296
5297
5298
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005299# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005300if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005301 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005302else
5303 withval=""
5304fi
5305
5306
5307cat >>confdefs.h <<_ACEOF
5308#define C_INCLUDE_DIRS "$withval"
5309_ACEOF
5310
5311
5312
Rafael Espindola420d23c2009-11-16 19:46:55 +00005313# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005314if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005315 withval=$with_cxx_include_root;
5316else
5317 withval=""
5318fi
5319
5320
5321cat >>confdefs.h <<_ACEOF
5322#define CXX_INCLUDE_ROOT "$withval"
5323_ACEOF
5324
5325
5326
5327# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005328if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005329 withval=$with_cxx_include_arch;
5330else
5331 withval=""
5332fi
5333
5334
5335cat >>confdefs.h <<_ACEOF
5336#define CXX_INCLUDE_ARCH "$withval"
5337_ACEOF
5338
5339
5340
5341# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005342if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005343 withval=$with_cxx_include_32bit_dir;
5344else
5345 withval=""
5346fi
5347
5348
5349cat >>confdefs.h <<_ACEOF
5350#define CXX_INCLUDE_32BIT_DIR "$withval"
5351_ACEOF
5352
5353
5354
5355# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005356if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005357 withval=$with_cxx_include_64bit_dir;
5358else
5359 withval=""
5360fi
5361
5362
5363cat >>confdefs.h <<_ACEOF
5364#define CXX_INCLUDE_64BIT_DIR "$withval"
5365_ACEOF
5366
5367
5368
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005369# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005370if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005371 withval=$with_binutils_include;
5372else
5373 withval=default
5374fi
5375
5376case "$withval" in
5377 default) WITH_BINUTILS_INCDIR=default ;;
5378 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005379 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5380echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5381 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005382esac
5383if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5384 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5385
5386 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5387 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5389echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5390 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005391 fi
5392fi
5393
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005394# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005395if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005396 enableval=$enable_libffi; case "$enableval" in
5397 yes) llvm_cv_enable_libffi="yes" ;;
5398 no) llvm_cv_enable_libffi="no" ;;
5399 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005400echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5401 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005402 esac
5403else
5404 llvm_cv_enable_libffi=no
5405fi
5406
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005407
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005408
Reid Spencera773bd52006-08-04 18:18:08 +00005409ac_ext=c
5410ac_cpp='$CPP $CPPFLAGS'
5411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5415echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005416# On Suns, sometimes $CPP names a directory.
5417if test -n "$CPP" && test -d "$CPP"; then
5418 CPP=
5419fi
5420if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005421 if test "${ac_cv_prog_CPP+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005423else
5424 # Double quotes because CPP needs to be expanded
5425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5426 do
5427 ac_preproc_ok=false
5428for ac_c_preproc_warn_flag in '' yes
5429do
5430 # Use a header file that comes with gcc, so configuring glibc
5431 # with a fresh cross-compiler works.
5432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5433 # <limits.h> exists even on freestanding compilers.
5434 # On the NeXT, cc -E runs the code through the compiler's parser,
5435 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436 cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h. */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005441/* end confdefs.h. */
5442#ifdef __STDC__
5443# include <limits.h>
5444#else
5445# include <assert.h>
5446#endif
5447 Syntax error
5448_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005449if { (ac_try="$ac_cpp conftest.$ac_ext"
5450case "(($ac_try" in
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5453esac
5454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } >/dev/null; then
5462 if test -s conftest.err; then
5463 ac_cpp_err=$ac_c_preproc_warn_flag
5464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5465 else
5466 ac_cpp_err=
5467 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005469 ac_cpp_err=yes
5470fi
5471if test -z "$ac_cpp_err"; then
5472 :
5473else
5474 echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
Reid Spencera773bd52006-08-04 18:18:08 +00005477 # Broken: fails on valid input.
5478continue
5479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005480
Reid Spencera773bd52006-08-04 18:18:08 +00005481rm -f conftest.err conftest.$ac_ext
5482
5483 # OK, works on sane cases. Now check whether nonexistent headers
5484 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005485 cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h. */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005490/* end confdefs.h. */
5491#include <ac_nonexistent.h>
5492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493if { (ac_try="$ac_cpp conftest.$ac_ext"
5494case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5500 ac_status=$?
5501 grep -v '^ *+' conftest.er1 >conftest.err
5502 rm -f conftest.er1
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } >/dev/null; then
5506 if test -s conftest.err; then
5507 ac_cpp_err=$ac_c_preproc_warn_flag
5508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5509 else
5510 ac_cpp_err=
5511 fi
5512else
5513 ac_cpp_err=yes
5514fi
5515if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005516 # Broken: success on invalid input.
5517continue
5518else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005519 echo "$as_me: failed program was:" >&5
5520sed 's/^/| /' conftest.$ac_ext >&5
5521
Reid Spencera773bd52006-08-04 18:18:08 +00005522 # Passes both tests.
5523ac_preproc_ok=:
5524break
5525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005526
Reid Spencera773bd52006-08-04 18:18:08 +00005527rm -f conftest.err conftest.$ac_ext
5528
5529done
5530# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5531rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005532if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005533 break
5534fi
5535
5536 done
5537 ac_cv_prog_CPP=$CPP
5538
5539fi
5540 CPP=$ac_cv_prog_CPP
5541else
5542 ac_cv_prog_CPP=$CPP
5543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005544{ echo "$as_me:$LINENO: result: $CPP" >&5
5545echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005546ac_preproc_ok=false
5547for ac_c_preproc_warn_flag in '' yes
5548do
5549 # Use a header file that comes with gcc, so configuring glibc
5550 # with a fresh cross-compiler works.
5551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5552 # <limits.h> exists even on freestanding compilers.
5553 # On the NeXT, cc -E runs the code through the compiler's parser,
5554 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005555 cat >conftest.$ac_ext <<_ACEOF
5556/* confdefs.h. */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005560/* end confdefs.h. */
5561#ifdef __STDC__
5562# include <limits.h>
5563#else
5564# include <assert.h>
5565#endif
5566 Syntax error
5567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005568if { (ac_try="$ac_cpp conftest.$ac_ext"
5569case "(($ac_try" in
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5572esac
5573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5575 ac_status=$?
5576 grep -v '^ *+' conftest.er1 >conftest.err
5577 rm -f conftest.er1
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } >/dev/null; then
5581 if test -s conftest.err; then
5582 ac_cpp_err=$ac_c_preproc_warn_flag
5583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5584 else
5585 ac_cpp_err=
5586 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005588 ac_cpp_err=yes
5589fi
5590if test -z "$ac_cpp_err"; then
5591 :
5592else
5593 echo "$as_me: failed program was:" >&5
5594sed 's/^/| /' conftest.$ac_ext >&5
5595
Reid Spencera773bd52006-08-04 18:18:08 +00005596 # Broken: fails on valid input.
5597continue
5598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005599
Reid Spencera773bd52006-08-04 18:18:08 +00005600rm -f conftest.err conftest.$ac_ext
5601
5602 # OK, works on sane cases. Now check whether nonexistent headers
5603 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005604 cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h. */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005609/* end confdefs.h. */
5610#include <ac_nonexistent.h>
5611_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612if { (ac_try="$ac_cpp conftest.$ac_ext"
5613case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616esac
5617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } >/dev/null; then
5625 if test -s conftest.err; then
5626 ac_cpp_err=$ac_c_preproc_warn_flag
5627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5628 else
5629 ac_cpp_err=
5630 fi
5631else
5632 ac_cpp_err=yes
5633fi
5634if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005635 # Broken: success on invalid input.
5636continue
5637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638 echo "$as_me: failed program was:" >&5
5639sed 's/^/| /' conftest.$ac_ext >&5
5640
Reid Spencera773bd52006-08-04 18:18:08 +00005641 # Passes both tests.
5642ac_preproc_ok=:
5643break
5644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005645
Reid Spencera773bd52006-08-04 18:18:08 +00005646rm -f conftest.err conftest.$ac_ext
5647
5648done
5649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5650rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005651if $ac_preproc_ok; then
5652 :
Reid Spencera773bd52006-08-04 18:18:08 +00005653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5655See \`config.log' for more details." >&5
5656echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5657See \`config.log' for more details." >&2;}
5658 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005659fi
5660
5661ac_ext=c
5662ac_cpp='$CPP $CPPFLAGS'
5663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666
5667ac_ext=c
5668ac_cpp='$CPP $CPPFLAGS'
5669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672if test -n "$ac_tool_prefix"; then
5673 for ac_prog in gcc
5674 do
5675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5676set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679if test "${ac_cv_prog_CC+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005681else
5682 if test -n "$CC"; then
5683 ac_cv_prog_CC="$CC" # Let the user override the test.
5684else
5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686for as_dir in $PATH
5687do
5688 IFS=$as_save_IFS
5689 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 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 +00005692 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005694 break 2
5695 fi
5696done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005697done
Reid Spencera773bd52006-08-04 18:18:08 +00005698IFS=$as_save_IFS
5699
5700fi
5701fi
5702CC=$ac_cv_prog_CC
5703if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005704 { echo "$as_me:$LINENO: result: $CC" >&5
5705echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005706else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005707 { echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005709fi
5710
5711
5712 test -n "$CC" && break
5713 done
5714fi
5715if test -z "$CC"; then
5716 ac_ct_CC=$CC
5717 for ac_prog in gcc
5718do
5719 # Extract the first word of "$ac_prog", so it can be a program name with args.
5720set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005725else
5726 if test -n "$ac_ct_CC"; then
5727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 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 +00005736 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005738 break 2
5739 fi
5740done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741done
Reid Spencera773bd52006-08-04 18:18:08 +00005742IFS=$as_save_IFS
5743
5744fi
5745fi
5746ac_ct_CC=$ac_cv_prog_ac_ct_CC
5747if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005748 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5749echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751 { echo "$as_me:$LINENO: result: no" >&5
5752echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005753fi
5754
5755
5756 test -n "$ac_ct_CC" && break
5757done
5758
5759 if test "x$ac_ct_CC" = x; then
5760 CC=""
5761 else
5762 case $cross_compiling:$ac_tool_warned in
5763yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5765whose name does not start with the host triplet. If you think this
5766configuration is useful to you, please write to autoconf@gnu.org." >&5
5767echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5768whose name does not start with the host triplet. If you think this
5769configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005770ac_tool_warned=yes ;;
5771esac
5772 CC=$ac_ct_CC
5773 fi
5774fi
5775
5776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005777test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5778See \`config.log' for more details." >&5
5779echo "$as_me: error: no acceptable C compiler found in \$PATH
5780See \`config.log' for more details." >&2;}
5781 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005782
5783# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784echo "$as_me:$LINENO: checking for C compiler version" >&5
5785ac_compiler=`set X $ac_compile; echo $2`
5786{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005793 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }
5796{ (ac_try="$ac_compiler -v >&5"
5797case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800esac
5801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compiler -v >&5") 2>&5
5803 ac_status=$?
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }
5806{ (ac_try="$ac_compiler -V >&5"
5807case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810esac
5811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compiler -V >&5") 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005817{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5818echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5819if test "${ac_cv_c_compiler_gnu+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005822 cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005827/* end confdefs.h. */
5828
5829int
5830main ()
5831{
5832#ifndef __GNUC__
5833 choke me
5834#endif
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005840rm -f conftest.$ac_objext
5841if { (ac_try="$ac_compile"
5842case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845esac
5846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5848 ac_status=$?
5849 grep -v '^ *+' conftest.er1 >conftest.err
5850 rm -f conftest.er1
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5855 { (case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_try") 2>&5
5861 ac_status=$?
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_try") 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005874 ac_compiler_gnu=yes
5875else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005876 echo "$as_me: failed program was:" >&5
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005880fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005881
Reid Spencera773bd52006-08-04 18:18:08 +00005882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883ac_cv_c_compiler_gnu=$ac_compiler_gnu
5884
5885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005886{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5887echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5888GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005889ac_test_CFLAGS=${CFLAGS+set}
5890ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005891{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5892echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5893if test "${ac_cv_prog_cc_g+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005895else
5896 ac_save_c_werror_flag=$ac_c_werror_flag
5897 ac_c_werror_flag=yes
5898 ac_cv_prog_cc_g=no
5899 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005900 cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005905/* end confdefs.h. */
5906
5907int
5908main ()
5909{
5910
5911 ;
5912 return 0;
5913}
5914_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915rm -f conftest.$ac_objext
5916if { (ac_try="$ac_compile"
5917case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920esac
5921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5923 ac_status=$?
5924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest.$ac_objext'
5940 { (case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
5944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_try") 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005949 ac_cv_prog_cc_g=yes
5950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005951 echo "$as_me: failed program was:" >&5
5952sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 CFLAGS=""
5955 cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005960/* end confdefs.h. */
5961
5962int
5963main ()
5964{
5965
5966 ;
5967 return 0;
5968}
5969_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970rm -f conftest.$ac_objext
5971if { (ac_try="$ac_compile"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6004 :
Torok Edwin871384f2010-01-26 08:50:50 +00006005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006006 echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006010 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011 cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h. */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006016/* end confdefs.h. */
6017
6018int
6019main ()
6020{
6021
6022 ;
6023 return 0;
6024}
6025_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006026rm -f conftest.$ac_objext
6027if { (ac_try="$ac_compile"
6028case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031esac
6032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6041 { (case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_try") 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; } &&
6050 { ac_try='test -s conftest.$ac_objext'
6051 { (case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054esac
6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_try") 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006060 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061else
6062 echo "$as_me: failed program was:" >&5
6063sed 's/^/| /' conftest.$ac_ext >&5
6064
6065
Reid Spencera773bd52006-08-04 18:18:08 +00006066fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067
Reid Spencera773bd52006-08-04 18:18:08 +00006068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006070
Reid Spencera773bd52006-08-04 18:18:08 +00006071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006073
Reid Spencera773bd52006-08-04 18:18:08 +00006074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 ac_c_werror_flag=$ac_save_c_werror_flag
6076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6078echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006079if test "$ac_test_CFLAGS" = set; then
6080 CFLAGS=$ac_save_CFLAGS
6081elif test $ac_cv_prog_cc_g = yes; then
6082 if test "$GCC" = yes; then
6083 CFLAGS="-g -O2"
6084 else
6085 CFLAGS="-g"
6086 fi
6087else
6088 if test "$GCC" = yes; then
6089 CFLAGS="-O2"
6090 else
6091 CFLAGS=
6092 fi
6093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006094{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6095echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6096if test "${ac_cv_prog_cc_c89+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006098else
6099 ac_cv_prog_cc_c89=no
6100ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006106/* end confdefs.h. */
6107#include <stdarg.h>
6108#include <stdio.h>
6109#include <sys/types.h>
6110#include <sys/stat.h>
6111/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6112struct buf { int x; };
6113FILE * (*rcsopen) (struct buf *, struct stat *, int);
6114static char *e (p, i)
6115 char **p;
6116 int i;
6117{
6118 return p[i];
6119}
6120static char *f (char * (*g) (char **, int), char **p, ...)
6121{
6122 char *s;
6123 va_list v;
6124 va_start (v,p);
6125 s = g (p, va_arg (v,int));
6126 va_end (v);
6127 return s;
6128}
6129
6130/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6131 function prototypes and stuff, but not '\xHH' hex character constants.
6132 These don't provoke an error unfortunately, instead are silently treated
6133 as 'x'. The following induces an error, until -std is added to get
6134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6135 array size at least. It's necessary to write '\x00'==0 to get something
6136 that's true only with -std. */
6137int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6138
6139/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6140 inside strings and character constants. */
6141#define FOO(x) 'x'
6142int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6143
6144int test (int i, double x);
6145struct s1 {int (*f) (int a);};
6146struct s2 {int (*f) (double a);};
6147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6148int argc;
6149char **argv;
6150int
6151main ()
6152{
6153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6154 ;
6155 return 0;
6156}
6157_ACEOF
6158for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6160do
6161 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006162 rm -f conftest.$ac_objext
6163if { (ac_try="$ac_compile"
6164case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
6168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_try") 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006196 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197else
6198 echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201
Reid Spencera773bd52006-08-04 18:18:08 +00006202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203
Reid Spencera773bd52006-08-04 18:18:08 +00006204rm -f core conftest.err conftest.$ac_objext
6205 test "x$ac_cv_prog_cc_c89" != "xno" && break
6206done
6207rm -f conftest.$ac_ext
6208CC=$ac_save_CC
6209
6210fi
6211# AC_CACHE_VAL
6212case "x$ac_cv_prog_cc_c89" in
6213 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006214 { echo "$as_me:$LINENO: result: none needed" >&5
6215echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006216 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217 { echo "$as_me:$LINENO: result: unsupported" >&5
6218echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006219 *)
6220 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006221 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6222echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006223esac
6224
6225
6226ac_ext=c
6227ac_cpp='$CPP $CPPFLAGS'
6228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231
6232ac_ext=cpp
6233ac_cpp='$CXXCPP $CPPFLAGS'
6234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6237if test -z "$CXX"; then
6238 if test -n "$CCC"; then
6239 CXX=$CCC
6240 else
6241 if test -n "$ac_tool_prefix"; then
6242 for ac_prog in g++
6243 do
6244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248if test "${ac_cv_prog_CXX+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006250else
6251 if test -n "$CXX"; then
6252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 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 +00006261 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006263 break 2
6264 fi
6265done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006266done
Reid Spencera773bd52006-08-04 18:18:08 +00006267IFS=$as_save_IFS
6268
6269fi
6270fi
6271CXX=$ac_cv_prog_CXX
6272if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273 { echo "$as_me:$LINENO: result: $CXX" >&5
6274echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006276 { echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006278fi
6279
6280
6281 test -n "$CXX" && break
6282 done
6283fi
6284if test -z "$CXX"; then
6285 ac_ct_CXX=$CXX
6286 for ac_prog in g++
6287do
6288 # Extract the first word of "$ac_prog", so it can be a program name with args.
6289set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006294else
6295 if test -n "$ac_ct_CXX"; then
6296 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 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 +00006305 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006307 break 2
6308 fi
6309done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310done
Reid Spencera773bd52006-08-04 18:18:08 +00006311IFS=$as_save_IFS
6312
6313fi
6314fi
6315ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6316if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006317 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6318echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006320 { echo "$as_me:$LINENO: result: no" >&5
6321echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006322fi
6323
6324
6325 test -n "$ac_ct_CXX" && break
6326done
6327
6328 if test "x$ac_ct_CXX" = x; then
6329 CXX="g++"
6330 else
6331 case $cross_compiling:$ac_tool_warned in
6332yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334whose name does not start with the host triplet. If you think this
6335configuration is useful to you, please write to autoconf@gnu.org." >&5
6336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337whose name does not start with the host triplet. If you think this
6338configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006339ac_tool_warned=yes ;;
6340esac
6341 CXX=$ac_ct_CXX
6342 fi
6343fi
6344
6345 fi
6346fi
6347# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6349ac_compiler=`set X $ac_compile; echo $2`
6350{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006351case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006357 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }
6360{ (ac_try="$ac_compiler -v >&5"
6361case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364esac
6365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compiler -v >&5") 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }
6370{ (ac_try="$ac_compiler -V >&5"
6371case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374esac
6375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_compiler -V >&5") 2>&5
6377 ac_status=$?
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006381{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6382echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6383if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006386 cat >conftest.$ac_ext <<_ACEOF
6387/* confdefs.h. */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006391/* end confdefs.h. */
6392
6393int
6394main ()
6395{
6396#ifndef __GNUC__
6397 choke me
6398#endif
6399
6400 ;
6401 return 0;
6402}
6403_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006404rm -f conftest.$ac_objext
6405if { (ac_try="$ac_compile"
6406case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409esac
6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6419 { (case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432esac
6433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_try") 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006438 ac_compiler_gnu=yes
6439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006440 echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006445
Reid Spencera773bd52006-08-04 18:18:08 +00006446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6448
6449fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006450{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6451echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6452GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006453ac_test_CXXFLAGS=${CXXFLAGS+set}
6454ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006455{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6456echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6457if test "${ac_cv_prog_cxx_g+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006459else
6460 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6461 ac_cxx_werror_flag=yes
6462 ac_cv_prog_cxx_g=no
6463 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006464 cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h. */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006469/* end confdefs.h. */
6470
6471int
6472main ()
6473{
6474
6475 ;
6476 return 0;
6477}
6478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479rm -f conftest.$ac_objext
6480if { (ac_try="$ac_compile"
6481case "(($ac_try" in
6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6484esac
6485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6494 { (case "(($ac_try" in
6495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496 *) ac_try_echo=$ac_try;;
6497esac
6498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_try") 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try='test -s conftest.$ac_objext'
6504 { (case "(($ac_try" in
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6507esac
6508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_try") 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006513 ac_cv_prog_cxx_g=yes
6514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006515 echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 CXXFLAGS=""
6519 cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006524/* end confdefs.h. */
6525
6526int
6527main ()
6528{
6529
6530 ;
6531 return 0;
6532}
6533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534rm -f conftest.$ac_objext
6535if { (ac_try="$ac_compile"
6536case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539esac
6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_try") 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 :
Torok Edwin871384f2010-01-26 08:50:50 +00006569else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006570 echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006574 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575 cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h. */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006580/* end confdefs.h. */
6581
6582int
6583main ()
6584{
6585
6586 ;
6587 return 0;
6588}
6589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006590rm -f conftest.$ac_objext
6591if { (ac_try="$ac_compile"
6592case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595esac
6596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6605 { (case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608esac
6609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_try") 2>&5
6611 ac_status=$?
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try='test -s conftest.$ac_objext'
6615 { (case "(($ac_try" in
6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6618esac
6619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_try") 2>&5
6621 ac_status=$?
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006624 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006625else
6626 echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6629
Reid Spencera773bd52006-08-04 18:18:08 +00006630fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006631
Reid Spencera773bd52006-08-04 18:18:08 +00006632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006634
Reid Spencera773bd52006-08-04 18:18:08 +00006635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006637
Reid Spencera773bd52006-08-04 18:18:08 +00006638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6640fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006641{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6642echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006643if test "$ac_test_CXXFLAGS" = set; then
6644 CXXFLAGS=$ac_save_CXXFLAGS
6645elif test $ac_cv_prog_cxx_g = yes; then
6646 if test "$GXX" = yes; then
6647 CXXFLAGS="-g -O2"
6648 else
6649 CXXFLAGS="-g"
6650 fi
6651else
6652 if test "$GXX" = yes; then
6653 CXXFLAGS="-O2"
6654 else
6655 CXXFLAGS=
6656 fi
6657fi
6658ac_ext=c
6659ac_cpp='$CPP $CPPFLAGS'
6660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
Reid Spencera773bd52006-08-04 18:18:08 +00006664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6666echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6667if test "${lt_cv_path_NM+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006669else
6670 if test -n "$NM"; then
6671 # Let the user override the test.
6672 lt_cv_path_NM="$NM"
6673else
6674 lt_nm_to_check="${ac_tool_prefix}nm"
6675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6676 lt_nm_to_check="$lt_nm_to_check nm"
6677 fi
6678 for lt_tmp_nm in $lt_nm_to_check; do
6679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6681 IFS="$lt_save_ifs"
6682 test -z "$ac_dir" && ac_dir=.
6683 tmp_nm="$ac_dir/$lt_tmp_nm"
6684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6685 # Check to see if the nm accepts a BSD-compat flag.
6686 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6687 # nm: unknown option "B" ignored
6688 # Tru64's nm complains that /dev/null is an invalid object file
6689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6690 */dev/null* | *'Invalid file or object type'*)
6691 lt_cv_path_NM="$tmp_nm -B"
6692 break
6693 ;;
6694 *)
6695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6696 */dev/null*)
6697 lt_cv_path_NM="$tmp_nm -p"
6698 break
6699 ;;
6700 *)
6701 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6702 continue # so that we can try to find one that supports BSD flags
6703 ;;
6704 esac
6705 ;;
6706 esac
6707 fi
6708 done
6709 IFS="$lt_save_ifs"
6710 done
6711 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6712fi
6713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006714{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6715echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006716NM="$lt_cv_path_NM"
6717
6718
6719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720{ echo "$as_me:$LINENO: checking for GNU make" >&5
6721echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6722if test "${llvm_cv_gnu_make_command+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006724else
6725 llvm_cv_gnu_make_command=''
6726 for a in "$MAKE" make gmake gnumake ; do
6727 if test -z "$a" ; then continue ; fi ;
6728 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6729 then
6730 llvm_cv_gnu_make_command=$a ;
6731 break;
6732 fi
6733 done
6734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006735{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6736echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006737 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6738 ifGNUmake='' ;
6739 else
6740 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6742echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006743 fi
6744
6745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006746{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6747echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006748LN_S=$as_ln_s
6749if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750 { echo "$as_me:$LINENO: result: yes" >&5
6751echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006752else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006753 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6754echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006755fi
6756
6757# Extract the first word of "cmp", so it can be a program name with args.
6758set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761if test "${ac_cv_path_CMP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006763else
6764 case $CMP in
6765 [\\/]* | ?:[\\/]*)
6766 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6767 ;;
6768 *)
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 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 +00006776 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006778 break 2
6779 fi
6780done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781done
Reid Spencera773bd52006-08-04 18:18:08 +00006782IFS=$as_save_IFS
6783
6784 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6785 ;;
6786esac
6787fi
6788CMP=$ac_cv_path_CMP
6789if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006790 { echo "$as_me:$LINENO: result: $CMP" >&5
6791echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793 { echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006795fi
6796
6797
6798# Extract the first word of "cp", so it can be a program name with args.
6799set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802if test "${ac_cv_path_CP+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006804else
6805 case $CP in
6806 [\\/]* | ?:[\\/]*)
6807 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6808 ;;
6809 *)
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 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 +00006817 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006819 break 2
6820 fi
6821done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822done
Reid Spencera773bd52006-08-04 18:18:08 +00006823IFS=$as_save_IFS
6824
6825 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6826 ;;
6827esac
6828fi
6829CP=$ac_cv_path_CP
6830if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006831 { echo "$as_me:$LINENO: result: $CP" >&5
6832echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834 { echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006836fi
6837
6838
6839# Extract the first word of "date", so it can be a program name with args.
6840set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843if test "${ac_cv_path_DATE+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006845else
6846 case $DATE in
6847 [\\/]* | ?:[\\/]*)
6848 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6849 ;;
6850 *)
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854 IFS=$as_save_IFS
6855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 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 +00006858 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006860 break 2
6861 fi
6862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863done
Reid Spencera773bd52006-08-04 18:18:08 +00006864IFS=$as_save_IFS
6865
6866 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6867 ;;
6868esac
6869fi
6870DATE=$ac_cv_path_DATE
6871if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006872 { echo "$as_me:$LINENO: result: $DATE" >&5
6873echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006877fi
6878
6879
6880# Extract the first word of "find", so it can be a program name with args.
6881set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884if test "${ac_cv_path_FIND+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006886else
6887 case $FIND in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6890 ;;
6891 *)
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 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 +00006899 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006901 break 2
6902 fi
6903done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904done
Reid Spencera773bd52006-08-04 18:18:08 +00006905IFS=$as_save_IFS
6906
6907 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6908 ;;
6909esac
6910fi
6911FIND=$ac_cv_path_FIND
6912if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913 { echo "$as_me:$LINENO: result: $FIND" >&5
6914echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006915else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916 { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006918fi
6919
6920
6921# Extract the first word of "grep", so it can be a program name with args.
6922set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925if test "${ac_cv_path_GREP+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006927else
6928 case $GREP in
6929 [\\/]* | ?:[\\/]*)
6930 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6931 ;;
6932 *)
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 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 +00006940 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006942 break 2
6943 fi
6944done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945done
Reid Spencera773bd52006-08-04 18:18:08 +00006946IFS=$as_save_IFS
6947
6948 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6949 ;;
6950esac
6951fi
6952GREP=$ac_cv_path_GREP
6953if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006954 { echo "$as_me:$LINENO: result: $GREP" >&5
6955echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959fi
6960
6961
6962# Extract the first word of "mkdir", so it can be a program name with args.
6963set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_path_MKDIR+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006968else
6969 case $MKDIR in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6972 ;;
6973 *)
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 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 +00006981 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006983 break 2
6984 fi
6985done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986done
Reid Spencera773bd52006-08-04 18:18:08 +00006987IFS=$as_save_IFS
6988
6989 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6990 ;;
6991esac
6992fi
6993MKDIR=$ac_cv_path_MKDIR
6994if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006995 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6996echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998 { echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007000fi
7001
7002
7003# Extract the first word of "mv", so it can be a program name with args.
7004set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007if test "${ac_cv_path_MV+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007009else
7010 case $MV in
7011 [\\/]* | ?:[\\/]*)
7012 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7013 ;;
7014 *)
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 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 +00007022 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007024 break 2
7025 fi
7026done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027done
Reid Spencera773bd52006-08-04 18:18:08 +00007028IFS=$as_save_IFS
7029
7030 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7031 ;;
7032esac
7033fi
7034MV=$ac_cv_path_MV
7035if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007036 { echo "$as_me:$LINENO: result: $MV" >&5
7037echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007038else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 { echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007041fi
7042
7043
7044if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7046set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049if test "${ac_cv_prog_RANLIB+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007051else
7052 if test -n "$RANLIB"; then
7053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 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 +00007062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007064 break 2
7065 fi
7066done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067done
Reid Spencera773bd52006-08-04 18:18:08 +00007068IFS=$as_save_IFS
7069
7070fi
7071fi
7072RANLIB=$ac_cv_prog_RANLIB
7073if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7075echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007076else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 { echo "$as_me:$LINENO: result: no" >&5
7078echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007079fi
7080
7081
7082fi
7083if test -z "$ac_cv_prog_RANLIB"; then
7084 ac_ct_RANLIB=$RANLIB
7085 # Extract the first word of "ranlib", so it can be a program name with args.
7086set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007091else
7092 if test -n "$ac_ct_RANLIB"; then
7093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007102 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007104 break 2
7105 fi
7106done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007107done
Reid Spencera773bd52006-08-04 18:18:08 +00007108IFS=$as_save_IFS
7109
7110fi
7111fi
7112ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7113if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7115echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 { echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007119fi
7120
7121 if test "x$ac_ct_RANLIB" = x; then
7122 RANLIB=":"
7123 else
7124 case $cross_compiling:$ac_tool_warned in
7125yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7127whose name does not start with the host triplet. If you think this
7128configuration is useful to you, please write to autoconf@gnu.org." >&5
7129echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7130whose name does not start with the host triplet. If you think this
7131configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007132ac_tool_warned=yes ;;
7133esac
7134 RANLIB=$ac_ct_RANLIB
7135 fi
7136else
7137 RANLIB="$ac_cv_prog_RANLIB"
7138fi
7139
Torok Edwin871384f2010-01-26 08:50:50 +00007140if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7142set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145if test "${ac_cv_prog_AR+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007147else
7148 if test -n "$AR"; then
7149 ac_cv_prog_AR="$AR" # Let the user override the test.
7150else
7151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152for as_dir in $PATH
7153do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 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 +00007158 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007160 break 2
7161 fi
7162done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163done
Torok Edwin871384f2010-01-26 08:50:50 +00007164IFS=$as_save_IFS
7165
7166fi
7167fi
7168AR=$ac_cv_prog_AR
7169if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170 { echo "$as_me:$LINENO: result: $AR" >&5
7171echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007172else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007173 { echo "$as_me:$LINENO: result: no" >&5
7174echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007175fi
7176
7177
7178fi
7179if test -z "$ac_cv_prog_AR"; then
7180 ac_ct_AR=$AR
7181 # Extract the first word of "ar", so it can be a program name with args.
7182set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007187else
7188 if test -n "$ac_ct_AR"; then
7189 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7190else
7191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192for as_dir in $PATH
7193do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 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 +00007198 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007200 break 2
7201 fi
7202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203done
Torok Edwin871384f2010-01-26 08:50:50 +00007204IFS=$as_save_IFS
7205
7206fi
7207fi
7208ac_ct_AR=$ac_cv_prog_ac_ct_AR
7209if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007210 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7211echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007212else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007213 { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007215fi
7216
7217 if test "x$ac_ct_AR" = x; then
7218 AR="false"
7219 else
7220 case $cross_compiling:$ac_tool_warned in
7221yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7223whose name does not start with the host triplet. If you think this
7224configuration is useful to you, please write to autoconf@gnu.org." >&5
7225echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7226whose name does not start with the host triplet. If you think this
7227configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007228ac_tool_warned=yes ;;
7229esac
7230 AR=$ac_ct_AR
7231 fi
7232else
7233 AR="$ac_cv_prog_AR"
7234fi
7235
Reid Spencera773bd52006-08-04 18:18:08 +00007236# Extract the first word of "rm", so it can be a program name with args.
7237set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240if test "${ac_cv_path_RM+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007242else
7243 case $RM in
7244 [\\/]* | ?:[\\/]*)
7245 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7246 ;;
7247 *)
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 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 +00007255 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007257 break 2
7258 fi
7259done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260done
Reid Spencera773bd52006-08-04 18:18:08 +00007261IFS=$as_save_IFS
7262
7263 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7264 ;;
7265esac
7266fi
7267RM=$ac_cv_path_RM
7268if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007269 { echo "$as_me:$LINENO: result: $RM" >&5
7270echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272 { echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007274fi
7275
7276
7277# Extract the first word of "sed", so it can be a program name with args.
7278set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281if test "${ac_cv_path_SED+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007283else
7284 case $SED in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7287 ;;
7288 *)
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 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 +00007296 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007298 break 2
7299 fi
7300done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301done
Reid Spencera773bd52006-08-04 18:18:08 +00007302IFS=$as_save_IFS
7303
7304 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7305 ;;
7306esac
7307fi
7308SED=$ac_cv_path_SED
7309if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007310 { echo "$as_me:$LINENO: result: $SED" >&5
7311echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313 { echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007315fi
7316
7317
7318# Extract the first word of "tar", so it can be a program name with args.
7319set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_TAR+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007324else
7325 case $TAR in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 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 +00007337 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007339 break 2
7340 fi
7341done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342done
Reid Spencera773bd52006-08-04 18:18:08 +00007343IFS=$as_save_IFS
7344
7345 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7346 ;;
7347esac
7348fi
7349TAR=$ac_cv_path_TAR
7350if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007351 { echo "$as_me:$LINENO: result: $TAR" >&5
7352echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007356fi
7357
7358
7359# Extract the first word of "pwd", so it can be a program name with args.
7360set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363if test "${ac_cv_path_BINPWD+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007365else
7366 case $BINPWD in
7367 [\\/]* | ?:[\\/]*)
7368 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7369 ;;
7370 *)
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372for as_dir in $PATH
7373do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 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 +00007378 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007380 break 2
7381 fi
7382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383done
Reid Spencera773bd52006-08-04 18:18:08 +00007384IFS=$as_save_IFS
7385
7386 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7387 ;;
7388esac
7389fi
7390BINPWD=$ac_cv_path_BINPWD
7391if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7393echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 { echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007397fi
7398
7399
7400
7401# Extract the first word of "Graphviz", so it can be a program name with args.
7402set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007407else
7408 case $GRAPHVIZ in
7409 [\\/]* | ?:[\\/]*)
7410 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7411 ;;
7412 *)
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 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 +00007420 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007422 break 2
7423 fi
7424done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425done
Reid Spencera773bd52006-08-04 18:18:08 +00007426IFS=$as_save_IFS
7427
7428 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7429 ;;
7430esac
7431fi
7432GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7433if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7435echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 { echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007439fi
7440
7441
7442if test "$GRAPHVIZ" != "echo Graphviz" ; then
7443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444cat >>confdefs.h <<\_ACEOF
7445#define HAVE_GRAPHVIZ 1
7446_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007447
Jeff Cohen28783c32007-01-12 18:22:38 +00007448 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007449 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7450 fi
7451
7452cat >>confdefs.h <<_ACEOF
7453#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7454_ACEOF
7455
7456fi
7457# Extract the first word of "dot", so it can be a program name with args.
7458set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_DOT+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007463else
7464 case $DOT in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7467 ;;
7468 *)
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 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 +00007476 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007478 break 2
7479 fi
7480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481done
Reid Spencera773bd52006-08-04 18:18:08 +00007482IFS=$as_save_IFS
7483
7484 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7485 ;;
7486esac
7487fi
7488DOT=$ac_cv_path_DOT
7489if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490 { echo "$as_me:$LINENO: result: $DOT" >&5
7491echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 { echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007495fi
7496
7497
7498if test "$DOT" != "echo dot" ; then
7499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500cat >>confdefs.h <<\_ACEOF
7501#define HAVE_DOT 1
7502_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007503
Jeff Cohen28783c32007-01-12 18:22:38 +00007504 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007505 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7506 fi
7507
7508cat >>confdefs.h <<_ACEOF
7509#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7510_ACEOF
7511
7512fi
David Greenef0b9eff2009-07-09 17:16:26 +00007513# Extract the first word of "fdp", so it can be a program name with args.
7514set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517if test "${ac_cv_path_FDP+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007519else
7520 case $FDP in
7521 [\\/]* | ?:[\\/]*)
7522 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7523 ;;
7524 *)
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 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 +00007532 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007534 break 2
7535 fi
7536done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537done
David Greenef0b9eff2009-07-09 17:16:26 +00007538IFS=$as_save_IFS
7539
7540 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7541 ;;
7542esac
7543fi
7544FDP=$ac_cv_path_FDP
7545if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546 { echo "$as_me:$LINENO: result: $FDP" >&5
7547echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549 { echo "$as_me:$LINENO: result: no" >&5
7550echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007551fi
7552
7553
7554if test "$FDP" != "echo fdp" ; then
7555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556cat >>confdefs.h <<\_ACEOF
7557#define HAVE_FDP 1
7558_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007559
7560 if test "$llvm_cv_os_type" = "MingW" ; then
7561 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7562 fi
7563
7564cat >>confdefs.h <<_ACEOF
7565#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7566_ACEOF
7567
7568fi
7569# Extract the first word of "neato", so it can be a program name with args.
7570set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573if test "${ac_cv_path_NEATO+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007575else
7576 case $NEATO in
7577 [\\/]* | ?:[\\/]*)
7578 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7579 ;;
7580 *)
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 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 +00007588 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007590 break 2
7591 fi
7592done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007593done
David Greenef0b9eff2009-07-09 17:16:26 +00007594IFS=$as_save_IFS
7595
7596 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7597 ;;
7598esac
7599fi
7600NEATO=$ac_cv_path_NEATO
7601if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602 { echo "$as_me:$LINENO: result: $NEATO" >&5
7603echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 { echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007607fi
7608
7609
7610if test "$NEATO" != "echo neato" ; then
7611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612cat >>confdefs.h <<\_ACEOF
7613#define HAVE_NEATO 1
7614_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007615
7616 if test "$llvm_cv_os_type" = "MingW" ; then
7617 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7618 fi
7619
7620cat >>confdefs.h <<_ACEOF
7621#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7622_ACEOF
7623
7624fi
7625# Extract the first word of "twopi", so it can be a program name with args.
7626set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629if test "${ac_cv_path_TWOPI+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007631else
7632 case $TWOPI in
7633 [\\/]* | ?:[\\/]*)
7634 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7635 ;;
7636 *)
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 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 +00007644 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007646 break 2
7647 fi
7648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649done
David Greenef0b9eff2009-07-09 17:16:26 +00007650IFS=$as_save_IFS
7651
7652 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7653 ;;
7654esac
7655fi
7656TWOPI=$ac_cv_path_TWOPI
7657if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7659echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 { echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007663fi
7664
7665
7666if test "$TWOPI" != "echo twopi" ; then
7667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668cat >>confdefs.h <<\_ACEOF
7669#define HAVE_TWOPI 1
7670_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007671
7672 if test "$llvm_cv_os_type" = "MingW" ; then
7673 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7674 fi
7675
7676cat >>confdefs.h <<_ACEOF
7677#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7678_ACEOF
7679
7680fi
7681# Extract the first word of "circo", so it can be a program name with args.
7682set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7685if test "${ac_cv_path_CIRCO+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007687else
7688 case $CIRCO in
7689 [\\/]* | ?:[\\/]*)
7690 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7691 ;;
7692 *)
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694for as_dir in $PATH
7695do
7696 IFS=$as_save_IFS
7697 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 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 +00007700 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007702 break 2
7703 fi
7704done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007705done
David Greenef0b9eff2009-07-09 17:16:26 +00007706IFS=$as_save_IFS
7707
7708 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7709 ;;
7710esac
7711fi
7712CIRCO=$ac_cv_path_CIRCO
7713if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007714 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7715echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007717 { echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007719fi
7720
7721
7722if test "$CIRCO" != "echo circo" ; then
7723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724cat >>confdefs.h <<\_ACEOF
7725#define HAVE_CIRCO 1
7726_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007727
7728 if test "$llvm_cv_os_type" = "MingW" ; then
7729 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7730 fi
7731
7732cat >>confdefs.h <<_ACEOF
7733#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7734_ACEOF
7735
7736fi
Reid Spencera773bd52006-08-04 18:18:08 +00007737for ac_prog in gv gsview32
7738do
7739 # Extract the first word of "$ac_prog", so it can be a program name with args.
7740set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7743if test "${ac_cv_path_GV+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007745else
7746 case $GV in
7747 [\\/]* | ?:[\\/]*)
7748 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7749 ;;
7750 *)
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 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 +00007758 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007760 break 2
7761 fi
7762done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007763done
Reid Spencera773bd52006-08-04 18:18:08 +00007764IFS=$as_save_IFS
7765
7766 ;;
7767esac
7768fi
7769GV=$ac_cv_path_GV
7770if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007771 { echo "$as_me:$LINENO: result: $GV" >&5
7772echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774 { echo "$as_me:$LINENO: result: no" >&5
7775echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007776fi
7777
7778
7779 test -n "$GV" && break
7780done
7781test -n "$GV" || GV="echo gv"
7782
7783if test "$GV" != "echo gv" ; then
7784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785cat >>confdefs.h <<\_ACEOF
7786#define HAVE_GV 1
7787_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007788
Jeff Cohen28783c32007-01-12 18:22:38 +00007789 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007790 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7791 fi
7792
7793cat >>confdefs.h <<_ACEOF
7794#define LLVM_PATH_GV "$GV${EXEEXT}"
7795_ACEOF
7796
7797fi
7798# Extract the first word of "dotty", so it can be a program name with args.
7799set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802if test "${ac_cv_path_DOTTY+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007804else
7805 case $DOTTY in
7806 [\\/]* | ?:[\\/]*)
7807 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7808 ;;
7809 *)
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 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 +00007817 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007819 break 2
7820 fi
7821done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822done
Reid Spencera773bd52006-08-04 18:18:08 +00007823IFS=$as_save_IFS
7824
7825 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7826 ;;
7827esac
7828fi
7829DOTTY=$ac_cv_path_DOTTY
7830if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007831 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7832echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834 { echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007836fi
7837
7838
7839if test "$DOTTY" != "echo dotty" ; then
7840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007841cat >>confdefs.h <<\_ACEOF
7842#define HAVE_DOTTY 1
7843_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007844
Jeff Cohen28783c32007-01-12 18:22:38 +00007845 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007846 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7847 fi
7848
7849cat >>confdefs.h <<_ACEOF
7850#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7851_ACEOF
7852
7853fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007854# Extract the first word of "xdot.py", so it can be a program name with args.
7855set dummy xdot.py; ac_word=$2
7856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858if test "${ac_cv_path_XDOT_PY+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860else
7861 case $XDOT_PY in
7862 [\\/]* | ?:[\\/]*)
7863 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7864 ;;
7865 *)
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877done
7878done
7879IFS=$as_save_IFS
7880
7881 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7882 ;;
7883esac
7884fi
7885XDOT_PY=$ac_cv_path_XDOT_PY
7886if test -n "$XDOT_PY"; then
7887 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7888echo "${ECHO_T}$XDOT_PY" >&6; }
7889else
7890 { echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6; }
7892fi
7893
7894
7895if test "$XDOT_PY" != "echo xdot.py" ; then
7896
7897cat >>confdefs.h <<\_ACEOF
7898#define HAVE_XDOT_PY 1
7899_ACEOF
7900
7901 if test "$llvm_cv_os_type" = "MingW" ; then
7902 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7903 fi
7904
7905cat >>confdefs.h <<_ACEOF
7906#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7907_ACEOF
7908
7909fi
Reid Spencera773bd52006-08-04 18:18:08 +00007910
7911
7912# Extract the first word of "perl", so it can be a program name with args.
7913set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916if test "${ac_cv_path_PERL+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007918else
7919 case $PERL in
7920 [\\/]* | ?:[\\/]*)
7921 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7922 ;;
7923 *)
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 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 +00007931 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007933 break 2
7934 fi
7935done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007936done
Reid Spencera773bd52006-08-04 18:18:08 +00007937IFS=$as_save_IFS
7938
7939 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7940 ;;
7941esac
7942fi
7943PERL=$ac_cv_path_PERL
7944if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007945 { echo "$as_me:$LINENO: result: $PERL" >&5
7946echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007948 { echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007950fi
7951
7952
7953if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007954 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7955echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007956 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007957 { echo "$as_me:$LINENO: result: yes" >&5
7958echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007959 else
7960 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007961 { echo "$as_me:$LINENO: result: not found" >&5
7962echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007963 fi
7964fi
7965
7966
7967if test x"$PERL" = xnone; then
7968 HAVE_PERL=0
7969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7971echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7972 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007973else
7974 HAVE_PERL=1
7975
7976fi
7977
7978# Find a good install program. We prefer a C program (faster),
7979# so one script is as good as another. But avoid the broken or
7980# incompatible versions:
7981# SysV /etc/install, /usr/sbin/install
7982# SunOS /usr/etc/install
7983# IRIX /sbin/install
7984# AIX /bin/install
7985# AmigaOS /C/install, which installs bootblocks on floppy discs
7986# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7987# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7988# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7989# OS/2's system install, which has a completely different semantic
7990# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7992echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007993if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007994if test "${ac_cv_path_install+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007996else
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998for as_dir in $PATH
7999do
8000 IFS=$as_save_IFS
8001 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008002 # Account for people who put trailing slashes in PATH elements.
8003case $as_dir/ in
8004 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008007 /usr/ucb/* ) ;;
8008 *)
8009 # OSF1 and SCO ODT 3.0 have their own names for install.
8010 # Don't use installbsd from OSF since it installs stuff as root
8011 # by default.
8012 for ac_prog in ginstall scoinst install; do
8013 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014 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 +00008015 if test $ac_prog = install &&
8016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8017 # AIX install. It has an incompatible calling convention.
8018 :
8019 elif test $ac_prog = install &&
8020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8021 # program-specific install script used by HP pwplus--don't use.
8022 :
8023 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008024 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8025 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008026 fi
8027 fi
8028 done
8029 done
8030 ;;
8031esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008032done
Reid Spencera773bd52006-08-04 18:18:08 +00008033IFS=$as_save_IFS
8034
8035
8036fi
8037 if test "${ac_cv_path_install+set}" = set; then
8038 INSTALL=$ac_cv_path_install
8039 else
8040 # As a last resort, use the slow shell script. Don't cache a
8041 # value for INSTALL within a source directory, because that will
8042 # break other packages using the cache if that directory is
8043 # removed, or if the value is a relative name.
8044 INSTALL=$ac_install_sh
8045 fi
8046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008047{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8048echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008049
8050# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8051# It thinks the first close brace ends the variable substitution.
8052test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8053
8054test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8055
8056test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8057
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008058case "$INSTALL" in
8059 [\\/$]* | ?:[\\/]* ) ;;
8060 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8061esac
Reid Spencera773bd52006-08-04 18:18:08 +00008062
8063# Extract the first word of "bzip2", so it can be a program name with args.
8064set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8067if test "${ac_cv_path_BZIP2+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008069else
8070 case $BZIP2 in
8071 [\\/]* | ?:[\\/]*)
8072 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8073 ;;
8074 *)
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 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 +00008082 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008084 break 2
8085 fi
8086done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087done
Reid Spencera773bd52006-08-04 18:18:08 +00008088IFS=$as_save_IFS
8089
Reid Spencera773bd52006-08-04 18:18:08 +00008090 ;;
8091esac
8092fi
8093BZIP2=$ac_cv_path_BZIP2
8094if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008095 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8096echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008097else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008098 { echo "$as_me:$LINENO: result: no" >&5
8099echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008100fi
8101
8102
mike-m68cb3192010-05-06 23:45:43 +00008103# Extract the first word of "cat", so it can be a program name with args.
8104set dummy cat; ac_word=$2
8105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107if test "${ac_cv_path_CAT+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8109else
8110 case $CAT in
8111 [\\/]* | ?:[\\/]*)
8112 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8113 ;;
8114 *)
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127done
8128IFS=$as_save_IFS
8129
8130 ;;
8131esac
8132fi
8133CAT=$ac_cv_path_CAT
8134if test -n "$CAT"; then
8135 { echo "$as_me:$LINENO: result: $CAT" >&5
8136echo "${ECHO_T}$CAT" >&6; }
8137else
8138 { echo "$as_me:$LINENO: result: no" >&5
8139echo "${ECHO_T}no" >&6; }
8140fi
8141
8142
Reid Spencera773bd52006-08-04 18:18:08 +00008143# Extract the first word of "doxygen", so it can be a program name with args.
8144set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8147if test "${ac_cv_path_DOXYGEN+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008149else
8150 case $DOXYGEN in
8151 [\\/]* | ?:[\\/]*)
8152 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8153 ;;
8154 *)
8155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156for as_dir in $PATH
8157do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 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 +00008162 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008164 break 2
8165 fi
8166done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167done
Reid Spencera773bd52006-08-04 18:18:08 +00008168IFS=$as_save_IFS
8169
Reid Spencera773bd52006-08-04 18:18:08 +00008170 ;;
8171esac
8172fi
8173DOXYGEN=$ac_cv_path_DOXYGEN
8174if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008175 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8176echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008177else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008178 { echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008180fi
8181
8182
Reid Spencera773bd52006-08-04 18:18:08 +00008183# Extract the first word of "groff", so it can be a program name with args.
8184set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8187if test "${ac_cv_path_GROFF+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008189else
8190 case $GROFF in
8191 [\\/]* | ?:[\\/]*)
8192 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8193 ;;
8194 *)
8195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196for as_dir in $PATH
8197do
8198 IFS=$as_save_IFS
8199 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008200 for ac_exec_ext in '' $ac_executable_extensions; do
8201 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 +00008202 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008204 break 2
8205 fi
8206done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207done
Reid Spencera773bd52006-08-04 18:18:08 +00008208IFS=$as_save_IFS
8209
Reid Spencera773bd52006-08-04 18:18:08 +00008210 ;;
8211esac
8212fi
8213GROFF=$ac_cv_path_GROFF
8214if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008215 { echo "$as_me:$LINENO: result: $GROFF" >&5
8216echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218 { echo "$as_me:$LINENO: result: no" >&5
8219echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008220fi
8221
8222
8223# Extract the first word of "gzip", so it can be a program name with args.
8224set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227if test "${ac_cv_path_GZIP+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008229else
8230 case $GZIP in
8231 [\\/]* | ?:[\\/]*)
8232 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8233 ;;
8234 *)
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 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 +00008242 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008244 break 2
8245 fi
8246done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247done
Reid Spencera773bd52006-08-04 18:18:08 +00008248IFS=$as_save_IFS
8249
Reid Spencera773bd52006-08-04 18:18:08 +00008250 ;;
8251esac
8252fi
8253GZIP=$ac_cv_path_GZIP
8254if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008255 { echo "$as_me:$LINENO: result: $GZIP" >&5
8256echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008257else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258 { echo "$as_me:$LINENO: result: no" >&5
8259echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008260fi
8261
8262
8263# Extract the first word of "pod2html", so it can be a program name with args.
8264set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8267if test "${ac_cv_path_POD2HTML+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008269else
8270 case $POD2HTML in
8271 [\\/]* | ?:[\\/]*)
8272 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8273 ;;
8274 *)
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276for as_dir in $PATH
8277do
8278 IFS=$as_save_IFS
8279 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 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 +00008282 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008284 break 2
8285 fi
8286done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008287done
Reid Spencera773bd52006-08-04 18:18:08 +00008288IFS=$as_save_IFS
8289
Reid Spencera773bd52006-08-04 18:18:08 +00008290 ;;
8291esac
8292fi
8293POD2HTML=$ac_cv_path_POD2HTML
8294if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008295 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8296echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008298 { echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008300fi
8301
8302
8303# Extract the first word of "pod2man", so it can be a program name with args.
8304set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8307if test "${ac_cv_path_POD2MAN+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008309else
8310 case $POD2MAN in
8311 [\\/]* | ?:[\\/]*)
8312 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8313 ;;
8314 *)
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 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 +00008322 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008324 break 2
8325 fi
8326done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008327done
Reid Spencera773bd52006-08-04 18:18:08 +00008328IFS=$as_save_IFS
8329
Reid Spencera773bd52006-08-04 18:18:08 +00008330 ;;
8331esac
8332fi
8333POD2MAN=$ac_cv_path_POD2MAN
8334if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8336echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 { echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008340fi
8341
8342
mike-m68cb3192010-05-06 23:45:43 +00008343# Extract the first word of "pdfroff", so it can be a program name with args.
8344set dummy pdfroff; ac_word=$2
8345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8347if test "${ac_cv_path_PDFROFF+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350 case $PDFROFF in
8351 [\\/]* | ?:[\\/]*)
8352 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8353 ;;
8354 *)
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 break 2
8365 fi
8366done
8367done
8368IFS=$as_save_IFS
8369
8370 ;;
8371esac
8372fi
8373PDFROFF=$ac_cv_path_PDFROFF
8374if test -n "$PDFROFF"; then
8375 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8376echo "${ECHO_T}$PDFROFF" >&6; }
8377else
8378 { echo "$as_me:$LINENO: result: no" >&5
8379echo "${ECHO_T}no" >&6; }
8380fi
8381
8382
Reid Spencera773bd52006-08-04 18:18:08 +00008383# Extract the first word of "runtest", so it can be a program name with args.
8384set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8387if test "${ac_cv_path_RUNTEST+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008389else
8390 case $RUNTEST in
8391 [\\/]* | ?:[\\/]*)
8392 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8393 ;;
8394 *)
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398 IFS=$as_save_IFS
8399 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 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 +00008402 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008404 break 2
8405 fi
8406done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008407done
Reid Spencera773bd52006-08-04 18:18:08 +00008408IFS=$as_save_IFS
8409
Reid Spencera773bd52006-08-04 18:18:08 +00008410 ;;
8411esac
8412fi
8413RUNTEST=$ac_cv_path_RUNTEST
8414if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008415 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8416echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418 { echo "$as_me:$LINENO: result: no" >&5
8419echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008420fi
8421
8422
8423
8424no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8426echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008427
8428# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008429if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008430 withval=$with_tclinclude; with_tclinclude=${withval}
8431else
8432 with_tclinclude=''
8433fi
8434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008435if test "${ac_cv_path_tclsh+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008437else
8438
8439if test x"${with_tclinclude}" != x ; then
8440 if test -f ${with_tclinclude}/tclsh ; then
8441 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8442 elif test -f ${with_tclinclude}/src/tclsh ; then
8443 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8444 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008445 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8446echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8447 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008448 fi
8449fi
Torok Edwin871384f2010-01-26 08:50:50 +00008450fi
8451
Reid Spencera773bd52006-08-04 18:18:08 +00008452
8453if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008454 { echo "$as_me:$LINENO: result: none" >&5
8455echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008456 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
8457do
8458 # Extract the first word of "$ac_prog", so it can be a program name with args.
8459set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462if test "${ac_cv_path_TCLSH+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008464else
8465 case $TCLSH in
8466 [\\/]* | ?:[\\/]*)
8467 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8468 ;;
8469 *)
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 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 +00008477 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008479 break 2
8480 fi
8481done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482done
Reid Spencera773bd52006-08-04 18:18:08 +00008483IFS=$as_save_IFS
8484
8485 ;;
8486esac
8487fi
8488TCLSH=$ac_cv_path_TCLSH
8489if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8491echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008493 { echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008495fi
8496
8497
8498 test -n "$TCLSH" && break
8499done
8500
8501 if test x"${TCLSH}" = x ; then
8502 ac_cv_path_tclsh='';
8503 else
8504 ac_cv_path_tclsh="${TCLSH}";
8505 fi
8506else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008507 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8508echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008509 TCLSH="${ac_cv_path_tclsh}"
8510
8511fi
8512
Reid Spencera773bd52006-08-04 18:18:08 +00008513# Extract the first word of "zip", so it can be a program name with args.
8514set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8517if test "${ac_cv_path_ZIP+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008519else
8520 case $ZIP in
8521 [\\/]* | ?:[\\/]*)
8522 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8523 ;;
8524 *)
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526for as_dir in $PATH
8527do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 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 +00008532 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008534 break 2
8535 fi
8536done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008537done
Reid Spencera773bd52006-08-04 18:18:08 +00008538IFS=$as_save_IFS
8539
Reid Spencera773bd52006-08-04 18:18:08 +00008540 ;;
8541esac
8542fi
8543ZIP=$ac_cv_path_ZIP
8544if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008545 { echo "$as_me:$LINENO: result: $ZIP" >&5
8546echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548 { echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008550fi
8551
8552
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008553for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008554do
8555 # Extract the first word of "$ac_prog", so it can be a program name with args.
8556set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8559if test "${ac_cv_path_OCAMLC+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008561else
8562 case $OCAMLC in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8565 ;;
8566 *)
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 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 +00008574 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008576 break 2
8577 fi
8578done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008580IFS=$as_save_IFS
8581
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008582 ;;
8583esac
8584fi
8585OCAMLC=$ac_cv_path_OCAMLC
8586if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8588echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008590 { echo "$as_me:$LINENO: result: no" >&5
8591echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008592fi
8593
8594
Gordon Henriksene7072162008-03-07 18:20:01 +00008595 test -n "$OCAMLC" && break
8596done
8597
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008598for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008599do
8600 # Extract the first word of "$ac_prog", so it can be a program name with args.
8601set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8604if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008606else
8607 case $OCAMLOPT in
8608 [\\/]* | ?:[\\/]*)
8609 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8610 ;;
8611 *)
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613for as_dir in $PATH
8614do
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 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 +00008619 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008621 break 2
8622 fi
8623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008624done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008625IFS=$as_save_IFS
8626
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008627 ;;
8628esac
8629fi
8630OCAMLOPT=$ac_cv_path_OCAMLOPT
8631if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008632 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8633echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008635 { echo "$as_me:$LINENO: result: no" >&5
8636echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008637fi
8638
8639
Gordon Henriksene7072162008-03-07 18:20:01 +00008640 test -n "$OCAMLOPT" && break
8641done
8642
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008643for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008644do
8645 # Extract the first word of "$ac_prog", so it can be a program name with args.
8646set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8649if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008651else
8652 case $OCAMLDEP in
8653 [\\/]* | ?:[\\/]*)
8654 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8655 ;;
8656 *)
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658for as_dir in $PATH
8659do
8660 IFS=$as_save_IFS
8661 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 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 +00008664 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008666 break 2
8667 fi
8668done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008669done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008670IFS=$as_save_IFS
8671
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008672 ;;
8673esac
8674fi
8675OCAMLDEP=$ac_cv_path_OCAMLDEP
8676if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8678echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008680 { echo "$as_me:$LINENO: result: no" >&5
8681echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008682fi
8683
8684
Gordon Henriksene7072162008-03-07 18:20:01 +00008685 test -n "$OCAMLDEP" && break
8686done
8687
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008688for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008689do
8690 # Extract the first word of "$ac_prog", so it can be a program name with args.
8691set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8694if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008696else
8697 case $OCAMLDOC in
8698 [\\/]* | ?:[\\/]*)
8699 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8700 ;;
8701 *)
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 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 +00008709 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008711 break 2
8712 fi
8713done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008715IFS=$as_save_IFS
8716
8717 ;;
8718esac
8719fi
8720OCAMLDOC=$ac_cv_path_OCAMLDOC
8721if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008722 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8723echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008725 { echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008727fi
8728
8729
8730 test -n "$OCAMLDOC" && break
8731done
8732
Torok Edwincc499a42008-10-22 09:56:27 +00008733for ac_prog in gas as
8734do
8735 # Extract the first word of "$ac_prog", so it can be a program name with args.
8736set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739if test "${ac_cv_path_GAS+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008741else
8742 case $GAS in
8743 [\\/]* | ?:[\\/]*)
8744 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8745 ;;
8746 *)
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 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 +00008754 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008756 break 2
8757 fi
8758done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759done
Torok Edwincc499a42008-10-22 09:56:27 +00008760IFS=$as_save_IFS
8761
8762 ;;
8763esac
8764fi
8765GAS=$ac_cv_path_GAS
8766if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008767 { echo "$as_me:$LINENO: result: $GAS" >&5
8768echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008769else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008770 { echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008772fi
8773
8774
8775 test -n "$GAS" && break
8776done
8777
Reid Spencera773bd52006-08-04 18:18:08 +00008778
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008779{ echo "$as_me:$LINENO: checking for linker version" >&5
8780echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8781if test "${llvm_cv_link_version+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8783else
8784
8785 version_string="$(ld -v 2>&1 | head -1)"
8786
8787 # Check for ld64.
8788 if (echo "$version_string" | grep -q "ld64"); then
8789 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8790 else
8791 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8792 fi
8793
8794fi
8795{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8796echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8797
8798cat >>confdefs.h <<_ACEOF
8799#define HOST_LINK_VERSION "$llvm_cv_link_version"
8800_ACEOF
8801
8802
8803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008804{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8805echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8806if test "${llvm_cv_link_use_r+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008808else
8809 ac_ext=c
8810ac_cpp='$CPP $CPPFLAGS'
8811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8813ac_compiler_gnu=$ac_cv_c_compiler_gnu
8814
8815 oldcflags="$CFLAGS"
8816 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008817 cat >conftest.$ac_ext <<_ACEOF
8818/* confdefs.h. */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008822/* end confdefs.h. */
8823
8824int
8825main ()
8826{
Dan Gohman39ed6782010-04-25 00:12:20 +00008827
Reid Spencera773bd52006-08-04 18:18:08 +00008828 ;
8829 return 0;
8830}
8831_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008832rm -f conftest.$ac_objext conftest$ac_exeext
8833if { (ac_try="$ac_link"
8834case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837esac
8838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_link") 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8847 { (case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_try") 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try='test -s conftest$ac_exeext'
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
8861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008866 llvm_cv_link_use_r=yes
8867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008868 echo "$as_me: failed program was:" >&5
8869sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008873
Bill Wendlingebcceee2009-04-18 11:20:33 +00008874rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008875 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008876 CFLAGS="$oldcflags"
8877 ac_ext=c
8878ac_cpp='$CPP $CPPFLAGS'
8879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
8883
8884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008885{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8886echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008887if test "$llvm_cv_link_use_r" = yes ; then
8888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008889cat >>confdefs.h <<\_ACEOF
8890#define HAVE_LINK_R 1
8891_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008892
8893 fi
8894
8895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008896{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8897echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8898if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008900else
8901 ac_ext=c
8902ac_cpp='$CPP $CPPFLAGS'
8903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905ac_compiler_gnu=$ac_cv_c_compiler_gnu
8906
8907 oldcflags="$CFLAGS"
8908 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008909 cat >conftest.$ac_ext <<_ACEOF
8910/* confdefs.h. */
8911_ACEOF
8912cat confdefs.h >>conftest.$ac_ext
8913cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008914/* end confdefs.h. */
8915
8916int
8917main ()
8918{
Dan Gohman39ed6782010-04-25 00:12:20 +00008919
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008920 ;
8921 return 0;
8922}
8923_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008924rm -f conftest.$ac_objext conftest$ac_exeext
8925if { (ac_try="$ac_link"
8926case "(($ac_try" in
8927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928 *) ac_try_echo=$ac_try;;
8929esac
8930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931 (eval "$ac_link") 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8939 { (case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942esac
8943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_try") 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; } &&
8948 { ac_try='test -s conftest$ac_exeext'
8949 { (case "(($ac_try" in
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8952esac
8953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_try") 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008958 llvm_cv_link_use_export_dynamic=yes
8959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008960 echo "$as_me: failed program was:" >&5
8961sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008964fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008965
Bill Wendlingebcceee2009-04-18 11:20:33 +00008966rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008967 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008968 CFLAGS="$oldcflags"
8969 ac_ext=c
8970ac_cpp='$CPP $CPPFLAGS'
8971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975
8976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008977{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8978echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008979if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008981cat >>confdefs.h <<\_ACEOF
8982#define HAVE_LINK_EXPORT_DYNAMIC 1
8983_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008984
8985 fi
8986
8987
Dan Gohmanda612d62010-06-01 14:56:56 +00008988{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8989echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8990if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992else
8993 ac_ext=c
8994ac_cpp='$CPP $CPPFLAGS'
8995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999 oldcflags="$CFLAGS"
9000
9001 # The following code is from the autoconf manual,
9002 # "11.13: Limitations of Usual Tools".
9003 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9004 # Use mktemp if possible; otherwise fall back on mkdir,
9005 # with $RANDOM to make collisions less likely.
9006 : ${TMPDIR=/tmp}
9007 {
9008 tmp=`
9009 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9010 ` &&
9011 test -n "$tmp" && test -d "$tmp"
9012 } || {
9013 tmp=$TMPDIR/foo$$-$RANDOM
9014 (umask 077 && mkdir "$tmp")
9015 } || exit $?
9016
Dan Gohmanda612d62010-06-01 14:56:56 +00009017 echo "{" > "$tmp/export.map"
9018 echo " global: main;" >> "$tmp/export.map"
9019 echo " local: *;" >> "$tmp/export.map"
9020 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009021
Dan Gohmanda612d62010-06-01 14:56:56 +00009022 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009023 cat >conftest.$ac_ext <<_ACEOF
9024/* confdefs.h. */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h. */
9029
9030int
9031main ()
9032{
Dan Gohman39ed6782010-04-25 00:12:20 +00009033
Dan Gohman391569c2010-04-16 22:59:06 +00009034 ;
9035 return 0;
9036}
9037_ACEOF
9038rm -f conftest.$ac_objext conftest$ac_exeext
9039if { (ac_try="$ac_link"
9040case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043esac
9044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9056esac
9057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try='test -s conftest$ac_exeext'
9063 { (case "(($ac_try" in
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9066esac
9067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_try") 2>&5
9069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009072 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009073else
9074 echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
9076
Dan Gohman943005e2010-06-01 16:22:27 +00009077 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009078fi
9079
9080rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009082 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009083 rmdir "$tmp"
9084 CFLAGS="$oldcflags"
9085 ac_ext=c
9086ac_cpp='$CPP $CPPFLAGS'
9087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9089ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090
9091
9092fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009093{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9094echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9095if test "$llvm_cv_link_use_version_script" = yes ; then
9096 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009097
9098 fi
9099
9100
Reid Spencera773bd52006-08-04 18:18:08 +00009101
9102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009103{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9104echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9105if test "${ac_cv_c_const+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009108 cat >conftest.$ac_ext <<_ACEOF
9109/* confdefs.h. */
9110_ACEOF
9111cat confdefs.h >>conftest.$ac_ext
9112cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009113/* end confdefs.h. */
9114
9115int
9116main ()
9117{
9118/* FIXME: Include the comments suggested by Paul. */
9119#ifndef __cplusplus
9120 /* Ultrix mips cc rejects this. */
9121 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009122 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009123 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009124 char const *const *ccp;
9125 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009126 /* NEC SVR4.0.2 mips cc rejects this. */
9127 struct point {int x, y;};
9128 static struct point const zero = {0,0};
9129 /* AIX XL C 1.02.0.0 rejects this.
9130 It does not let you subtract one const X* pointer from another in
9131 an arm of an if-expression whose if-part is not a constant
9132 expression */
9133 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009134 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009135 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009136 ++ccp;
9137 p = (char**) ccp;
9138 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009139 { /* SCO 3.2v4 cc rejects this. */
9140 char *t;
9141 char const *s = 0 ? (char *) 0 : (char const *) 0;
9142
9143 *t++ = 0;
9144 if (s) return 0;
9145 }
9146 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9147 int x[] = {25, 17};
9148 const int *foo = &x[0];
9149 ++foo;
9150 }
9151 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9152 typedef const int *iptr;
9153 iptr p = 0;
9154 ++p;
9155 }
9156 { /* AIX XL C 1.02.0.0 rejects this saying
9157 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9158 struct s { int j; const int *ap[3]; };
9159 struct s *b; b->j = 5;
9160 }
9161 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9162 const int foo = 10;
9163 if (!foo) return 0;
9164 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009165 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009166#endif
9167
9168 ;
9169 return 0;
9170}
9171_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009172rm -f conftest.$ac_objext
9173if { (ac_try="$ac_compile"
9174case "(($ac_try" in
9175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176 *) ac_try_echo=$ac_try;;
9177esac
9178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9180 ac_status=$?
9181 grep -v '^ *+' conftest.er1 >conftest.err
9182 rm -f conftest.er1
9183 cat conftest.err >&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9187 { (case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190esac
9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_try") 2>&5
9193 ac_status=$?
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; } &&
9196 { ac_try='test -s conftest.$ac_objext'
9197 { (case "(($ac_try" in
9198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199 *) ac_try_echo=$ac_try;;
9200esac
9201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_try") 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009206 ac_cv_c_const=yes
9207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009208 echo "$as_me: failed program was:" >&5
9209sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009213
Reid Spencera773bd52006-08-04 18:18:08 +00009214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009216{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9217echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009218if test $ac_cv_c_const = no; then
9219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009220cat >>confdefs.h <<\_ACEOF
9221#define const
9222_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009223
9224fi
9225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009226
9227
9228
9229
9230
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009231ac_header_dirent=no
9232for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009233 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9234{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9235echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009239 cat >conftest.$ac_ext <<_ACEOF
9240/* confdefs.h. */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009244/* end confdefs.h. */
9245#include <sys/types.h>
9246#include <$ac_hdr>
9247
9248int
9249main ()
9250{
9251if ((DIR *) 0)
9252return 0;
9253 ;
9254 return 0;
9255}
9256_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009257rm -f conftest.$ac_objext
9258if { (ac_try="$ac_compile"
9259case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262esac
9263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_compile") 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274 *) ac_try_echo=$ac_try;;
9275esac
9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; } &&
9281 { ac_try='test -s conftest.$ac_objext'
9282 { (case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_try") 2>&5
9288 ac_status=$?
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009291 eval "$as_ac_Header=yes"
9292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009293 echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009297fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009298
Reid Spencera773bd52006-08-04 18:18:08 +00009299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009301ac_res=`eval echo '${'$as_ac_Header'}'`
9302 { echo "$as_me:$LINENO: result: $ac_res" >&5
9303echo "${ECHO_T}$ac_res" >&6; }
9304if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009306#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307_ACEOF
9308
9309ac_header_dirent=$ac_hdr; break
9310fi
9311
9312done
9313# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9314if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009315 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9316echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9317if test "${ac_cv_search_opendir+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009319else
9320 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009321cat >conftest.$ac_ext <<_ACEOF
9322/* confdefs.h. */
9323_ACEOF
9324cat confdefs.h >>conftest.$ac_ext
9325cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326/* end confdefs.h. */
9327
Reid Spencera773bd52006-08-04 18:18:08 +00009328/* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331#ifdef __cplusplus
9332extern "C"
9333#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334char opendir ();
9335int
9336main ()
9337{
Reid Spencera773bd52006-08-04 18:18:08 +00009338return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339 ;
9340 return 0;
9341}
9342_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009343for ac_lib in '' dir; do
9344 if test -z "$ac_lib"; then
9345 ac_res="none required"
9346 else
9347 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009349 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009350 rm -f conftest.$ac_objext conftest$ac_exeext
9351if { (ac_try="$ac_link"
9352case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355esac
9356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_link") 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9365 { (case "(($ac_try" in
9366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9368esac
9369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_try") 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try='test -s conftest$ac_exeext'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009384 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009385else
9386 echo "$as_me: failed program was:" >&5
9387sed 's/^/| /' conftest.$ac_ext >&5
9388
9389
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009391
Bill Wendlingebcceee2009-04-18 11:20:33 +00009392rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009393 conftest$ac_exeext
9394 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009395 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009396fi
John Criswell7a73b802003-06-30 21:59:07 +00009397done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009398if test "${ac_cv_search_opendir+set}" = set; then
9399 :
Reid Spencera773bd52006-08-04 18:18:08 +00009400else
9401 ac_cv_search_opendir=no
9402fi
9403rm conftest.$ac_ext
9404LIBS=$ac_func_search_save_LIBS
9405fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009406{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9407echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009408ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009410 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009411
Reid Spencera773bd52006-08-04 18:18:08 +00009412fi
9413
9414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009415 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9416echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9417if test "${ac_cv_search_opendir+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009419else
9420 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009421cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009426/* end confdefs.h. */
9427
9428/* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431#ifdef __cplusplus
9432extern "C"
9433#endif
9434char opendir ();
9435int
9436main ()
9437{
9438return opendir ();
9439 ;
9440 return 0;
9441}
9442_ACEOF
9443for ac_lib in '' x; do
9444 if test -z "$ac_lib"; then
9445 ac_res="none required"
9446 else
9447 ac_res=-l$ac_lib
9448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9449 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009450 rm -f conftest.$ac_objext conftest$ac_exeext
9451if { (ac_try="$ac_link"
9452case "(($ac_try" in
9453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9455esac
9456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_link") 2>conftest.er1
9458 ac_status=$?
9459 grep -v '^ *+' conftest.er1 >conftest.err
9460 rm -f conftest.er1
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9465 { (case "(($ac_try" in
9466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9468esac
9469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_try") 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9478esac
9479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9481 ac_status=$?
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009484 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009485else
9486 echo "$as_me: failed program was:" >&5
9487sed 's/^/| /' conftest.$ac_ext >&5
9488
9489
Reid Spencera773bd52006-08-04 18:18:08 +00009490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009491
Bill Wendlingebcceee2009-04-18 11:20:33 +00009492rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009493 conftest$ac_exeext
9494 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009495 break
9496fi
9497done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009498if test "${ac_cv_search_opendir+set}" = set; then
9499 :
Reid Spencera773bd52006-08-04 18:18:08 +00009500else
9501 ac_cv_search_opendir=no
9502fi
9503rm conftest.$ac_ext
9504LIBS=$ac_func_search_save_LIBS
9505fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009506{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009508ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009509if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9511
9512fi
9513
9514fi
John Criswell7a73b802003-06-30 21:59:07 +00009515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009516
John Criswell7a73b802003-06-30 21:59:07 +00009517for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009518do
9519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525fi
9526ac_res=`eval echo '${'$as_ac_Header'}'`
9527 { echo "$as_me:$LINENO: result: $ac_res" >&5
9528echo "${ECHO_T}$ac_res" >&6; }
9529else
9530 # Is the header compilable?
9531{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9532echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9533cat >conftest.$ac_ext <<_ACEOF
9534/* confdefs.h. */
9535_ACEOF
9536cat confdefs.h >>conftest.$ac_ext
9537cat >>conftest.$ac_ext <<_ACEOF
9538/* end confdefs.h. */
9539$ac_includes_default
9540#include <$ac_header>
9541_ACEOF
9542rm -f conftest.$ac_objext
9543if { (ac_try="$ac_compile"
9544case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547esac
9548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_compile") 2>conftest.er1
9550 ac_status=$?
9551 grep -v '^ *+' conftest.er1 >conftest.err
9552 rm -f conftest.er1
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560esac
9561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest.$ac_objext'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9570esac
9571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_header_compiler=yes
9577else
9578 echo "$as_me: failed program was:" >&5
9579sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_header_compiler=no
9582fi
9583
9584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9586echo "${ECHO_T}$ac_header_compiler" >&6; }
9587
9588# Is the header present?
9589{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9591cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h. */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h. */
9597#include <$ac_header>
9598_ACEOF
9599if { (ac_try="$ac_cpp conftest.$ac_ext"
9600case "(($ac_try" in
9601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9603esac
9604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } >/dev/null; then
9612 if test -s conftest.err; then
9613 ac_cpp_err=$ac_c_preproc_warn_flag
9614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9615 else
9616 ac_cpp_err=
9617 fi
9618else
9619 ac_cpp_err=yes
9620fi
9621if test -z "$ac_cpp_err"; then
9622 ac_header_preproc=yes
9623else
9624 echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
9627 ac_header_preproc=no
9628fi
9629
9630rm -f conftest.err conftest.$ac_ext
9631{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9632echo "${ECHO_T}$ac_header_preproc" >&6; }
9633
9634# So? What about this header?
9635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9636 yes:no: )
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9641 ac_header_preproc=yes
9642 ;;
9643 no:yes:* )
9644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9651echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9656 ( cat <<\_ASBOX
9657## ----------------------------------- ##
9658## Report this to llvmbugs@cs.uiuc.edu ##
9659## ----------------------------------- ##
9660_ASBOX
9661 ) | sed "s/^/$as_me: WARNING: /" >&2
9662 ;;
9663esac
9664{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9665echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668else
9669 eval "$as_ac_Header=\$ac_header_preproc"
9670fi
9671ac_res=`eval echo '${'$as_ac_Header'}'`
9672 { echo "$as_me:$LINENO: result: $ac_res" >&5
9673echo "${ECHO_T}$ac_res" >&6; }
9674
9675fi
9676if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009677 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009678#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009679_ACEOF
9680
9681fi
9682
9683done
9684
Reid Spencera773bd52006-08-04 18:18:08 +00009685# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009686if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009687 enableval=$enable_ltdl_install;
9688fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009689
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009691
9692
9693if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694 INSTALL_LTDL_TRUE=
9695 INSTALL_LTDL_FALSE='#'
9696else
9697 INSTALL_LTDL_TRUE='#'
9698 INSTALL_LTDL_FALSE=
9699fi
9700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009701
9702
9703if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009704 CONVENIENCE_LTDL_TRUE=
9705 CONVENIENCE_LTDL_FALSE='#'
9706else
9707 CONVENIENCE_LTDL_TRUE='#'
9708 CONVENIENCE_LTDL_FALSE=
9709fi
9710
9711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009712{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9713echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009714library_names_spec=
9715libname_spec='lib$name'
9716soname_spec=
9717shrext_cmds=".so"
9718postinstall_cmds=
9719postuninstall_cmds=
9720finish_cmds=
9721finish_eval=
9722shlibpath_var=
9723shlibpath_overrides_runpath=unknown
9724version_type=none
9725dynamic_linker="$host_os ld.so"
9726sys_lib_dlsearch_path_spec="/lib /usr/lib"
9727if test "$GCC" = yes; then
9728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9729 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9730 # if the path contains ";" then we assume it to be the separator
9731 # otherwise default to the standard path separator (i.e. ":") - it is
9732 # assumed that no part of a normal pathname contains ";" but that should
9733 # okay in the real world where ";" in dirpaths is itself problematic.
9734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9735 else
9736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9737 fi
9738else
9739 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9740fi
9741need_lib_prefix=unknown
9742hardcode_into_libs=no
9743
9744# when you set need_version to no, make sure it does not cause -set_version
9745# flags to be left without arguments
9746need_version=unknown
9747
9748case $host_os in
9749aix3*)
9750 version_type=linux
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9752 shlibpath_var=LIBPATH
9753
9754 # AIX 3 has no versioning support, so we append a major version to the name.
9755 soname_spec='${libname}${release}${shared_ext}$major'
9756 ;;
9757
9758aix4* | aix5*)
9759 version_type=linux
9760 need_lib_prefix=no
9761 need_version=no
9762 hardcode_into_libs=yes
9763 if test "$host_cpu" = ia64; then
9764 # AIX 5 supports IA64
9765 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9766 shlibpath_var=LD_LIBRARY_PATH
9767 else
9768 # With GCC up to 2.95.x, collect2 would create an import file
9769 # for dependence libraries. The import file would start with
9770 # the line `#! .'. This would cause the generated library to
9771 # depend on `.', always an invalid library. This was fixed in
9772 # development snapshots of GCC prior to 3.0.
9773 case $host_os in
9774 aix4 | aix4.[01] | aix4.[01].*)
9775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9776 echo ' yes '
9777 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9778 :
9779 else
9780 can_build_shared=no
9781 fi
9782 ;;
9783 esac
9784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9785 # soname into executable. Probably we can add versioning support to
9786 # collect2, so additional links can be useful in future.
9787 if test "$aix_use_runtimelinking" = yes; then
9788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9789 # instead of lib<name>.a to let people know that these are not
9790 # typical AIX shared libraries.
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792 else
9793 # We preserve .a as extension for shared libraries through AIX4.2
9794 # and later when we are not doing run time linking.
9795 library_names_spec='${libname}${release}.a $libname.a'
9796 soname_spec='${libname}${release}${shared_ext}$major'
9797 fi
9798 shlibpath_var=LIBPATH
9799 fi
9800 ;;
9801
9802amigaos*)
9803 library_names_spec='$libname.ixlibrary $libname.a'
9804 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9805 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'
9806 ;;
9807
9808beos*)
9809 library_names_spec='${libname}${shared_ext}'
9810 dynamic_linker="$host_os ld.so"
9811 shlibpath_var=LIBRARY_PATH
9812 ;;
9813
9814bsdi[45]*)
9815 version_type=linux
9816 need_version=no
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 soname_spec='${libname}${release}${shared_ext}$major'
9819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9820 shlibpath_var=LD_LIBRARY_PATH
9821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9822 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9823 # the default ld.so.conf also contains /usr/contrib/lib and
9824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9825 # libtool to hard-code these into programs
9826 ;;
9827
9828cygwin* | mingw* | pw32*)
9829 version_type=windows
9830 shrext_cmds=".dll"
9831 need_version=no
9832 need_lib_prefix=no
9833
9834 case $GCC,$host_os in
9835 yes,cygwin* | yes,mingw* | yes,pw32*)
9836 library_names_spec='$libname.dll.a'
9837 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9838 postinstall_cmds='base_file=`basename \${file}`~
9839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9840 dldir=$destdir/`dirname \$dlpath`~
9841 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009842 $install_prog $dir/$dlname \$dldir/$dlname~
9843 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9845 dlpath=$dir/\$dldll~
9846 $rm \$dlpath'
9847 shlibpath_overrides_runpath=yes
9848
9849 case $host_os in
9850 cygwin*)
9851 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9852 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9853 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9854 ;;
9855 mingw*)
9856 # MinGW DLLs use traditional 'lib' prefix
9857 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9858 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9859 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9860 # It is most probably a Windows format PATH printed by
9861 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9862 # path with ; separators, and with drive letters. We can handle the
9863 # drive letters (cygwin fileutils understands them), so leave them,
9864 # especially as we might pass files found there to a mingw objdump,
9865 # which wouldn't understand a cygwinified path. Ahh.
9866 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9867 else
9868 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9869 fi
9870 ;;
9871 pw32*)
9872 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009873 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 +00009874 ;;
9875 esac
9876 ;;
9877
9878 *)
9879 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9880 ;;
9881 esac
9882 dynamic_linker='Win32 ld.exe'
9883 # FIXME: first we should search . and the directory the executable is in
9884 shlibpath_var=PATH
9885 ;;
9886
9887darwin* | rhapsody*)
9888 dynamic_linker="$host_os dyld"
9889 version_type=darwin
9890 need_lib_prefix=no
9891 need_version=no
9892 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9893 soname_spec='${libname}${release}${major}$shared_ext'
9894 shlibpath_overrides_runpath=yes
9895 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009896 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9898 if test "$GCC" = yes; then
9899 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"`
9900 else
9901 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9902 fi
9903 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9904 ;;
9905
9906dgux*)
9907 version_type=linux
9908 need_lib_prefix=no
9909 need_version=no
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 shlibpath_var=LD_LIBRARY_PATH
9913 ;;
9914
9915freebsd1*)
9916 dynamic_linker=no
9917 ;;
9918
9919kfreebsd*-gnu)
9920 version_type=linux
9921 need_lib_prefix=no
9922 need_version=no
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9924 soname_spec='${libname}${release}${shared_ext}$major'
9925 shlibpath_var=LD_LIBRARY_PATH
9926 shlibpath_overrides_runpath=no
9927 hardcode_into_libs=yes
9928 dynamic_linker='GNU ld.so'
9929 ;;
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931freebsd* | dragonfly*)
9932 # DragonFly does not have aout. When/if they implement a new
9933 # versioning mechanism, adjust this.
9934 if test -x /usr/bin/objformat; then
9935 objformat=`/usr/bin/objformat`
9936 else
9937 case $host_os in
9938 freebsd[123]*) objformat=aout ;;
9939 *) objformat=elf ;;
9940 esac
9941 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942 version_type=freebsd-$objformat
9943 case $version_type in
9944 freebsd-elf*)
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9946 need_version=no
9947 need_lib_prefix=no
9948 ;;
9949 freebsd-*)
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9951 need_version=yes
9952 ;;
9953 esac
9954 shlibpath_var=LD_LIBRARY_PATH
9955 case $host_os in
9956 freebsd2*)
9957 shlibpath_overrides_runpath=yes
9958 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009959 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960 shlibpath_overrides_runpath=yes
9961 hardcode_into_libs=yes
9962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965 shlibpath_overrides_runpath=no
9966 hardcode_into_libs=yes
9967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009968 freebsd*) # from 4.6 on
9969 shlibpath_overrides_runpath=yes
9970 hardcode_into_libs=yes
9971 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972 esac
9973 ;;
9974
9975gnu*)
9976 version_type=linux
9977 need_lib_prefix=no
9978 need_version=no
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 shlibpath_var=LD_LIBRARY_PATH
9982 hardcode_into_libs=yes
9983 ;;
9984
9985hpux9* | hpux10* | hpux11*)
9986 # Give a soname corresponding to the major version so that dld.sl refuses to
9987 # link against other versions.
9988 version_type=sunos
9989 need_lib_prefix=no
9990 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009991 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992 ia64*)
9993 shrext_cmds='.so'
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.so"
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 if test "X$HPUX_IA64_MODE" = X32; then
10001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002 else
10003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004 fi
10005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006 ;;
10007 hppa*64*)
10008 shrext_cmds='.sl'
10009 hardcode_into_libs=yes
10010 dynamic_linker="$host_os dld.sl"
10011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017 ;;
10018 *)
10019 shrext_cmds='.sl'
10020 dynamic_linker="$host_os dld.sl"
10021 shlibpath_var=SHLIB_PATH
10022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 ;;
10026 esac
10027 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10028 postinstall_cmds='chmod 555 $lib'
10029 ;;
10030
Reid Spencera773bd52006-08-04 18:18:08 +000010031interix3*)
10032 version_type=linux
10033 need_lib_prefix=no
10034 need_version=no
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10038 shlibpath_var=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath=no
10040 hardcode_into_libs=yes
10041 ;;
10042
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043irix5* | irix6* | nonstopux*)
10044 case $host_os in
10045 nonstopux*) version_type=nonstopux ;;
10046 *)
10047 if test "$lt_cv_prog_gnu_ld" = yes; then
10048 version_type=linux
10049 else
10050 version_type=irix
10051 fi ;;
10052 esac
10053 need_lib_prefix=no
10054 need_version=no
10055 soname_spec='${libname}${release}${shared_ext}$major'
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10057 case $host_os in
10058 irix5* | nonstopux*)
10059 libsuff= shlibsuff=
10060 ;;
10061 *)
10062 case $LD in # libtool.m4 will add one of these switches to LD
10063 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10064 libsuff= shlibsuff= libmagic=32-bit;;
10065 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10066 libsuff=32 shlibsuff=N32 libmagic=N32;;
10067 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10068 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10069 *) libsuff= shlibsuff= libmagic=never-match;;
10070 esac
10071 ;;
10072 esac
10073 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10074 shlibpath_overrides_runpath=no
10075 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10077 hardcode_into_libs=yes
10078 ;;
10079
10080# No shared lib support for Linux oldld, aout, or coff.
10081linux*oldld* | linux*aout* | linux*coff*)
10082 dynamic_linker=no
10083 ;;
10084
10085# This must be Linux ELF.
10086linux*)
10087 version_type=linux
10088 need_lib_prefix=no
10089 need_version=no
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10093 shlibpath_var=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath=no
10095 # This implies no fast_install, which is unacceptable.
10096 # Some rework will be needed to allow for fast_install
10097 # before this can be enabled.
10098 hardcode_into_libs=yes
10099
10100 # Append ld.so.conf contents to the search path
10101 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010102 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 +000010103 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10104 fi
10105
10106 # We used to test for /lib/ld.so.1 and disable shared libraries on
10107 # powerpc, because MkLinux only supported shared libraries with the
10108 # GNU dynamic linker. Since this was broken with cross compilers,
10109 # most powerpc-linux boxes support dynamic linking these days and
10110 # people can always --disable-shared, the test was removed, and we
10111 # assume the GNU/Linux dynamic linker is in use.
10112 dynamic_linker='GNU/Linux ld.so'
10113 ;;
10114
10115knetbsd*-gnu)
10116 version_type=linux
10117 need_lib_prefix=no
10118 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath=no
10123 hardcode_into_libs=yes
10124 dynamic_linker='GNU ld.so'
10125 ;;
10126
10127netbsd*)
10128 version_type=sunos
10129 need_lib_prefix=no
10130 need_version=no
10131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134 dynamic_linker='NetBSD (a.out) ld.so'
10135 else
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 dynamic_linker='NetBSD ld.elf_so'
10139 fi
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes
10142 hardcode_into_libs=yes
10143 ;;
10144
10145newsos6)
10146 version_type=linux
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath=yes
10150 ;;
10151
10152nto-qnx*)
10153 version_type=linux
10154 need_lib_prefix=no
10155 need_version=no
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=yes
10160 ;;
10161
10162openbsd*)
10163 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010164 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10167 case $host_os in
10168 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10169 *) need_version=no ;;
10170 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10175 case $host_os in
10176 openbsd2.[89] | openbsd2.[89].*)
10177 shlibpath_overrides_runpath=no
10178 ;;
10179 *)
10180 shlibpath_overrides_runpath=yes
10181 ;;
10182 esac
10183 else
10184 shlibpath_overrides_runpath=yes
10185 fi
10186 ;;
10187
10188os2*)
10189 libname_spec='$name'
10190 shrext_cmds=".dll"
10191 need_lib_prefix=no
10192 library_names_spec='$libname${shared_ext} $libname.a'
10193 dynamic_linker='OS/2 ld.exe'
10194 shlibpath_var=LIBPATH
10195 ;;
10196
10197osf3* | osf4* | osf5*)
10198 version_type=osf
10199 need_lib_prefix=no
10200 need_version=no
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10205 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10206 ;;
10207
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208solaris*)
10209 version_type=linux
10210 need_lib_prefix=no
10211 need_version=no
10212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213 soname_spec='${libname}${release}${shared_ext}$major'
10214 shlibpath_var=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath=yes
10216 hardcode_into_libs=yes
10217 # ldd complains unless libraries are executable
10218 postinstall_cmds='chmod +x $lib'
10219 ;;
10220
10221sunos4*)
10222 version_type=sunos
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10225 shlibpath_var=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath=yes
10227 if test "$with_gnu_ld" = yes; then
10228 need_lib_prefix=no
10229 fi
10230 need_version=yes
10231 ;;
10232
Reid Spencera773bd52006-08-04 18:18:08 +000010233sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234 version_type=linux
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec='${libname}${release}${shared_ext}$major'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 case $host_vendor in
10239 sni)
10240 shlibpath_overrides_runpath=no
10241 need_lib_prefix=no
10242 export_dynamic_flag_spec='${wl}-Blargedynsym'
10243 runpath_var=LD_RUN_PATH
10244 ;;
10245 siemens)
10246 need_lib_prefix=no
10247 ;;
10248 motorola)
10249 need_lib_prefix=no
10250 need_version=no
10251 shlibpath_overrides_runpath=no
10252 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10253 ;;
10254 esac
10255 ;;
10256
10257sysv4*MP*)
10258 if test -d /usr/nec ;then
10259 version_type=linux
10260 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10261 soname_spec='$libname${shared_ext}.$major'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 fi
10264 ;;
10265
Reid Spencera773bd52006-08-04 18:18:08 +000010266sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10267 version_type=freebsd-elf
10268 need_lib_prefix=no
10269 need_version=no
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 hardcode_into_libs=yes
10274 if test "$with_gnu_ld" = yes; then
10275 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10276 shlibpath_overrides_runpath=no
10277 else
10278 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10279 shlibpath_overrides_runpath=yes
10280 case $host_os in
10281 sco3.2v5*)
10282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10283 ;;
10284 esac
10285 fi
10286 sys_lib_dlsearch_path_spec='/usr/lib'
10287 ;;
10288
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289uts4*)
10290 version_type=linux
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec='${libname}${release}${shared_ext}$major'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 ;;
10295
10296*)
10297 dynamic_linker=no
10298 ;;
10299esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010300{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10301echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302test "$dynamic_linker" = no && can_build_shared=no
10303
Reid Spencera773bd52006-08-04 18:18:08 +000010304variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10305if test "$GCC" = yes; then
10306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10307fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308
Reid Spencera773bd52006-08-04 18:18:08 +000010309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010310{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10311echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10312if test "${libltdl_cv_shlibext+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314else
10315
10316module=yes
10317eval libltdl_cv_shlibext=$shrext_cmds
10318
10319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010320{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10321echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322if test -n "$libltdl_cv_shlibext"; then
10323
10324cat >>confdefs.h <<_ACEOF
10325#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10326_ACEOF
10327
10328fi
10329
10330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010331{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10332echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10333if test "${libltdl_cv_shlibpath_var+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010335else
10336 libltdl_cv_shlibpath_var="$shlibpath_var"
10337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010338{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10339echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010340if test -n "$libltdl_cv_shlibpath_var"; then
10341
10342cat >>confdefs.h <<_ACEOF
10343#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10344_ACEOF
10345
10346fi
10347
10348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010349{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10350echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10351if test "${libltdl_cv_sys_search_path+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353else
10354 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010356{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10357echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358if test -n "$libltdl_cv_sys_search_path"; then
10359 sys_search_path=
10360 for dir in $libltdl_cv_sys_search_path; do
10361 if test -z "$sys_search_path"; then
10362 sys_search_path="$dir"
10363 else
10364 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10365 fi
10366 done
10367
10368cat >>confdefs.h <<_ACEOF
10369#define LTDL_SYSSEARCHPATH "$sys_search_path"
10370_ACEOF
10371
10372fi
10373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010374{ echo "$as_me:$LINENO: checking for objdir" >&5
10375echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10376if test "${libltdl_cv_objdir+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378else
10379 libltdl_cv_objdir="$objdir"
10380 if test -n "$objdir"; then
10381 :
10382 else
10383 rm -f .libs 2>/dev/null
10384 mkdir .libs 2>/dev/null
10385 if test -d .libs; then
10386 libltdl_cv_objdir=.libs
10387 else
10388 # MS-DOS does not allow filenames that begin with a dot.
10389 libltdl_cv_objdir=_libs
10390 fi
10391 rmdir .libs 2>/dev/null
10392 fi
10393
10394fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010395{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10396echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010397
10398cat >>confdefs.h <<_ACEOF
10399#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10400_ACEOF
10401
10402
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403
10404
10405
10406
10407# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010408{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10409echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10410if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412else
10413
10414# These are sane defaults that work on at least a few old systems.
10415# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10416
10417# Character class describing NM global symbol codes.
10418symcode='[BCDEGRST]'
10419
10420# Regexp to match symbols that can be accessed directly from C.
10421sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10422
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423# Transform an extracted symbol line into a proper C declaration
10424lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10425
10426# Transform an extracted symbol line into symbol name and symbol address
10427lt_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'"
10428
10429# Define system-specific variables.
10430case $host_os in
10431aix*)
10432 symcode='[BCDT]'
10433 ;;
10434cygwin* | mingw* | pw32*)
10435 symcode='[ABCDGISTW]'
10436 ;;
10437hpux*) # Its linker distinguishes data from code symbols
10438 if test "$host_cpu" = ia64; then
10439 symcode='[ABCDEGRST]'
10440 fi
10441 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10442 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'"
10443 ;;
10444linux*)
10445 if test "$host_cpu" = ia64; then
10446 symcode='[ABCDGIRSTW]'
10447 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10448 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'"
10449 fi
10450 ;;
10451irix* | nonstopux*)
10452 symcode='[BCDEGRST]'
10453 ;;
10454osf*)
10455 symcode='[BCDEGQRST]'
10456 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010457solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458 symcode='[BDRT]'
10459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010460sco3.2v5*)
10461 symcode='[DT]'
10462 ;;
10463sysv4.2uw2*)
10464 symcode='[DT]'
10465 ;;
10466sysv5* | sco5v6* | unixware* | OpenUNIX*)
10467 symcode='[ABDT]'
10468 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469sysv4)
10470 symcode='[DFNSTU]'
10471 ;;
10472esac
10473
10474# Handle CRLF in mingw tool chain
10475opt_cr=
10476case $build_os in
10477mingw*)
10478 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10479 ;;
10480esac
10481
10482# If we're using GNU nm, then use its standard symbol codes.
10483case `$NM -V 2>&1` in
10484*GNU* | *'with BFD'*)
10485 symcode='[ABCDGIRSTW]' ;;
10486esac
10487
10488# Try without a prefix undercore, then with it.
10489for ac_symprfx in "" "_"; do
10490
Reid Spencera773bd52006-08-04 18:18:08 +000010491 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10492 symxfrm="\\1 $ac_symprfx\\2 \\2"
10493
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010495 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 +000010496
10497 # Check to see that the pipe works correctly.
10498 pipe_works=no
10499
10500 rm -f conftest*
10501 cat > conftest.$ac_ext <<EOF
10502#ifdef __cplusplus
10503extern "C" {
10504#endif
10505char nm_test_var;
10506void nm_test_func(){}
10507#ifdef __cplusplus
10508}
10509#endif
10510int main(){nm_test_var='a';nm_test_func();return(0);}
10511EOF
10512
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514 (eval $ac_compile) 2>&5
10515 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010518 # Now try to grab the symbols.
10519 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010520 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 +000010521 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10522 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525 # Try sorting and uniquifying the output.
10526 if sort "$nlist" | uniq > "$nlist"T; then
10527 mv -f "$nlist"T "$nlist"
10528 else
10529 rm -f "$nlist"T
10530 fi
10531
10532 # Make sure that we snagged all the symbols we need.
10533 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10534 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10535 cat <<EOF > conftest.$ac_ext
10536#ifdef __cplusplus
10537extern "C" {
10538#endif
10539
10540EOF
10541 # Now generate the symbol file.
10542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10543
10544 cat <<EOF >> conftest.$ac_ext
10545#if defined (__STDC__) && __STDC__
10546# define lt_ptr_t void *
10547#else
10548# define lt_ptr_t char *
10549# define const
10550#endif
10551
10552/* The mapping between symbol names and symbols. */
10553const struct {
10554 const char *name;
10555 lt_ptr_t address;
10556}
10557lt_preloaded_symbols[] =
10558{
10559EOF
10560 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10561 cat <<\EOF >> conftest.$ac_ext
10562 {0, (lt_ptr_t) 0}
10563};
10564
10565#ifdef __cplusplus
10566}
10567#endif
10568EOF
10569 # Now try linking the two files.
10570 mv conftest.$ac_objext conftstm.$ac_objext
10571 lt_save_LIBS="$LIBS"
10572 lt_save_CFLAGS="$CFLAGS"
10573 LIBS="conftstm.$ac_objext"
10574 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576 (eval $ac_link) 2>&5
10577 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580 pipe_works=yes
10581 fi
10582 LIBS="$lt_save_LIBS"
10583 CFLAGS="$lt_save_CFLAGS"
10584 else
10585 echo "cannot find nm_test_func in $nlist" >&5
10586 fi
10587 else
10588 echo "cannot find nm_test_var in $nlist" >&5
10589 fi
10590 else
10591 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10592 fi
10593 else
10594 echo "$progname: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 fi
10597 rm -f conftest* conftst*
10598
10599 # Do not use the global_symbol_pipe unless it works.
10600 if test "$pipe_works" = yes; then
10601 break
10602 else
10603 lt_cv_sys_global_symbol_pipe=
10604 fi
10605done
10606
10607fi
10608
10609if test -z "$lt_cv_sys_global_symbol_pipe"; then
10610 lt_cv_sys_global_symbol_to_cdecl=
10611fi
10612if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010613 { echo "$as_me:$LINENO: result: failed" >&5
10614echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010616 { echo "$as_me:$LINENO: result: ok" >&5
10617echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010618fi
10619
10620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010621{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10622echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10623if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625else
10626 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10627 libltdl_cv_preloaded_symbols=yes
10628 else
10629 libltdl_cv_preloaded_symbols=no
10630 fi
10631
10632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010633{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10634echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10636
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010637cat >>confdefs.h <<\_ACEOF
10638#define HAVE_PRELOADED_SYMBOLS 1
10639_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010640
10641fi
10642
10643LIBADD_DL=
10644
10645ac_ext=c
10646ac_cpp='$CPP $CPPFLAGS'
10647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649ac_compiler_gnu=$ac_cv_c_compiler_gnu
10650
10651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010652{ echo "$as_me:$LINENO: checking for shl_load" >&5
10653echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10654if test "${ac_cv_func_shl_load+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10656else
10657 cat >conftest.$ac_ext <<_ACEOF
10658/* confdefs.h. */
10659_ACEOF
10660cat confdefs.h >>conftest.$ac_ext
10661cat >>conftest.$ac_ext <<_ACEOF
10662/* end confdefs.h. */
10663/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10665#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667/* System header to define __stub macros and hopefully few prototypes,
10668 which can conflict with char shl_load (); below.
10669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10670 <limits.h> exists even on freestanding compilers. */
10671
10672#ifdef __STDC__
10673# include <limits.h>
10674#else
10675# include <assert.h>
10676#endif
10677
10678#undef shl_load
10679
10680/* Override any GCC internal prototype to avoid an error.
10681 Use char because int might match the return type of a GCC
10682 builtin and then its argument prototype would still apply. */
10683#ifdef __cplusplus
10684extern "C"
10685#endif
10686char shl_load ();
10687/* The GNU C library defines this for functions which it implements
10688 to always fail with ENOSYS. Some functions are actually named
10689 something starting with __ and the normal name is an alias. */
10690#if defined __stub_shl_load || defined __stub___shl_load
10691choke me
10692#endif
10693
10694int
10695main ()
10696{
10697return shl_load ();
10698 ;
10699 return 0;
10700}
10701_ACEOF
10702rm -f conftest.$ac_objext conftest$ac_exeext
10703if { (ac_try="$ac_link"
10704case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720esac
10721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest$ac_exeext'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_func_shl_load=yes
10737else
10738 echo "$as_me: failed program was:" >&5
10739sed 's/^/| /' conftest.$ac_ext >&5
10740
10741 ac_cv_func_shl_load=no
10742fi
10743
10744rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746fi
10747{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10748echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10749if test $ac_cv_func_shl_load = yes; then
10750
10751cat >>confdefs.h <<\_ACEOF
10752#define HAVE_SHL_LOAD 1
10753_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754
10755else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010756 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10757echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10758if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760else
10761 ac_check_lib_save_LIBS=$LIBS
10762LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010763cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768/* end confdefs.h. */
10769
Reid Spencera773bd52006-08-04 18:18:08 +000010770/* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010773#ifdef __cplusplus
10774extern "C"
10775#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776char shl_load ();
10777int
10778main ()
10779{
Reid Spencera773bd52006-08-04 18:18:08 +000010780return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781 ;
10782 return 0;
10783}
10784_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010785rm -f conftest.$ac_objext conftest$ac_exeext
10786if { (ac_try="$ac_link"
10787case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10793 ac_status=$?
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800 { (case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10803esac
10804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813esac
10814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819 ac_cv_lib_dld_shl_load=yes
10820else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010821 echo "$as_me: failed program was:" >&5
10822sed 's/^/| /' conftest.$ac_ext >&5
10823
10824 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826
Bill Wendlingebcceee2009-04-18 11:20:33 +000010827rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010828 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829LIBS=$ac_check_lib_save_LIBS
10830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10832echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10833if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010835cat >>confdefs.h <<\_ACEOF
10836#define HAVE_SHL_LOAD 1
10837_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838
10839 LIBADD_DL="$LIBADD_DL -ldld"
10840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010841 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10842echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10843if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845else
10846 ac_check_lib_save_LIBS=$LIBS
10847LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010848cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853/* end confdefs.h. */
10854
Reid Spencera773bd52006-08-04 18:18:08 +000010855/* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858#ifdef __cplusplus
10859extern "C"
10860#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010861char dlopen ();
10862int
10863main ()
10864{
Reid Spencera773bd52006-08-04 18:18:08 +000010865return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010866 ;
10867 return 0;
10868}
10869_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010870rm -f conftest.$ac_objext conftest$ac_exeext
10871if { (ac_try="$ac_link"
10872case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
10876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_link") 2>conftest.er1
10878 ac_status=$?
10879 grep -v '^ *+' conftest.er1 >conftest.err
10880 rm -f conftest.er1
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10888esac
10889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try='test -s conftest$ac_exeext'
10895 { (case "(($ac_try" in
10896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10898esac
10899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_try") 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904 ac_cv_lib_dl_dlopen=yes
10905else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010906 echo "$as_me: failed program was:" >&5
10907sed 's/^/| /' conftest.$ac_ext >&5
10908
10909 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010911
Bill Wendlingebcceee2009-04-18 11:20:33 +000010912rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010913 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914LIBS=$ac_check_lib_save_LIBS
10915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010916{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10917echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10918if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010920cat >>confdefs.h <<\_ACEOF
10921#define HAVE_LIBDL 1
10922_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923
10924 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10925else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010926 cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931/* end confdefs.h. */
10932#if HAVE_DLFCN_H
10933# include <dlfcn.h>
10934#endif
10935
10936int
10937main ()
10938{
10939dlopen(0, 0);
10940 ;
10941 return 0;
10942}
10943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010944rm -f conftest.$ac_objext conftest$ac_exeext
10945if { (ac_try="$ac_link"
10946case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949esac
10950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_link") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962esac
10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10972esac
10973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_try") 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010979cat >>confdefs.h <<\_ACEOF
10980#define HAVE_LIBDL 1
10981_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982 libltdl_cv_func_dlopen="yes"
10983else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010984 echo "$as_me: failed program was:" >&5
10985sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10988echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10989if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991else
10992 ac_check_lib_save_LIBS=$LIBS
10993LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010994cat >conftest.$ac_ext <<_ACEOF
10995/* confdefs.h. */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999/* end confdefs.h. */
11000
Reid Spencera773bd52006-08-04 18:18:08 +000011001/* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004#ifdef __cplusplus
11005extern "C"
11006#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007char dlopen ();
11008int
11009main ()
11010{
Reid Spencera773bd52006-08-04 18:18:08 +000011011return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012 ;
11013 return 0;
11014}
11015_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011016rm -f conftest.$ac_objext conftest$ac_exeext
11017if { (ac_try="$ac_link"
11018case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021esac
11022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_link") 2>conftest.er1
11024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
11041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044esac
11045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050 ac_cv_lib_svld_dlopen=yes
11051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011052 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011057
Bill Wendlingebcceee2009-04-18 11:20:33 +000011058rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011059 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060LIBS=$ac_check_lib_save_LIBS
11061fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11063echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11064if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011066cat >>confdefs.h <<\_ACEOF
11067#define HAVE_LIBDL 1
11068_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069
11070 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011072 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11073echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11074if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076else
11077 ac_check_lib_save_LIBS=$LIBS
11078LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011079cat >conftest.$ac_ext <<_ACEOF
11080/* confdefs.h. */
11081_ACEOF
11082cat confdefs.h >>conftest.$ac_ext
11083cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084/* end confdefs.h. */
11085
Reid Spencera773bd52006-08-04 18:18:08 +000011086/* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011089#ifdef __cplusplus
11090extern "C"
11091#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011092char dld_link ();
11093int
11094main ()
11095{
Reid Spencera773bd52006-08-04 18:18:08 +000011096return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011097 ;
11098 return 0;
11099}
11100_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011101rm -f conftest.$ac_objext conftest$ac_exeext
11102if { (ac_try="$ac_link"
11103case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11106esac
11107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_link") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11116 { (case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119esac
11120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129esac
11130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_try") 2>&5
11132 ac_status=$?
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135 ac_cv_lib_dld_dld_link=yes
11136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011142
Bill Wendlingebcceee2009-04-18 11:20:33 +000011143rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011144 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011145LIBS=$ac_check_lib_save_LIBS
11146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011147{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11148echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11149if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011151cat >>confdefs.h <<\_ACEOF
11152#define HAVE_DLD 1
11153_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154
11155 LIBADD_DL="$LIBADD_DL -ldld"
11156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011157 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11158echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11159if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162 cat >conftest.$ac_ext <<_ACEOF
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
11168/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11170#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011172/* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char _dyld_func_lookup (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011177#ifdef __STDC__
11178# include <limits.h>
11179#else
11180# include <assert.h>
11181#endif
11182
11183#undef _dyld_func_lookup
11184
11185/* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188#ifdef __cplusplus
11189extern "C"
11190#endif
11191char _dyld_func_lookup ();
11192/* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11196choke me
11197#endif
11198
11199int
11200main ()
11201{
11202return _dyld_func_lookup ();
11203 ;
11204 return 0;
11205}
11206_ACEOF
11207rm -f conftest.$ac_objext conftest$ac_exeext
11208if { (ac_try="$ac_link"
11209case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212esac
11213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_link") 2>conftest.er1
11215 ac_status=$?
11216 grep -v '^ *+' conftest.er1 >conftest.err
11217 rm -f conftest.er1
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225esac
11226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try='test -s conftest$ac_exeext'
11232 { (case "(($ac_try" in
11233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11235esac
11236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_try") 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_func__dyld_func_lookup=yes
11242else
11243 echo "$as_me: failed program was:" >&5
11244sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247fi
Reid Spencera773bd52006-08-04 18:18:08 +000011248
Bill Wendlingebcceee2009-04-18 11:20:33 +000011249rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011250 conftest$ac_exeext conftest.$ac_ext
11251fi
11252{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11253echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11254if test $ac_cv_func__dyld_func_lookup = yes; then
11255
11256cat >>confdefs.h <<\_ACEOF
11257#define HAVE_DYLD 1
11258_ACEOF
11259
11260fi
11261
11262
11263fi
11264
11265
11266fi
11267
11268
11269fi
11270
11271rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273
11274fi
11275
11276
11277fi
11278
11279
11280fi
11281
11282
11283if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11284then
11285 lt_save_LIBS="$LIBS"
11286 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011287
11288for ac_func in dlerror
11289do
11290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11295else
11296 cat >conftest.$ac_ext <<_ACEOF
11297/* confdefs.h. */
11298_ACEOF
11299cat confdefs.h >>conftest.$ac_ext
11300cat >>conftest.$ac_ext <<_ACEOF
11301/* end confdefs.h. */
11302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11304#define $ac_func innocuous_$ac_func
11305
11306/* System header to define __stub macros and hopefully few prototypes,
11307 which can conflict with char $ac_func (); below.
11308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11309 <limits.h> exists even on freestanding compilers. */
11310
11311#ifdef __STDC__
11312# include <limits.h>
11313#else
11314# include <assert.h>
11315#endif
11316
11317#undef $ac_func
11318
11319/* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
11322#ifdef __cplusplus
11323extern "C"
11324#endif
11325char $ac_func ();
11326/* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329#if defined __stub_$ac_func || defined __stub___$ac_func
11330choke me
11331#endif
11332
11333int
11334main ()
11335{
11336return $ac_func ();
11337 ;
11338 return 0;
11339}
11340_ACEOF
11341rm -f conftest.$ac_objext conftest$ac_exeext
11342if { (ac_try="$ac_link"
11343case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346esac
11347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_link") 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11356 { (case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359esac
11360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_try") 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; } &&
11365 { ac_try='test -s conftest$ac_exeext'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369esac
11370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 eval "$as_ac_var=yes"
11376else
11377 echo "$as_me: failed program was:" >&5
11378sed 's/^/| /' conftest.$ac_ext >&5
11379
11380 eval "$as_ac_var=no"
11381fi
11382
11383rm -f core conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385fi
11386ac_res=`eval echo '${'$as_ac_var'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388echo "${ECHO_T}$ac_res" >&6; }
11389if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392_ACEOF
11393
11394fi
11395done
11396
11397 LIBS="$lt_save_LIBS"
11398fi
11399ac_ext=c
11400ac_cpp='$CPP $CPPFLAGS'
11401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403ac_compiler_gnu=$ac_cv_c_compiler_gnu
11404
11405
11406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011407{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11408echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11409if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411else
11412 ac_cv_sys_symbol_underscore=no
11413 cat > conftest.$ac_ext <<EOF
11414void nm_test_func(){}
11415int main(){nm_test_func;return 0;}
11416EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011418 (eval $ac_compile) 2>&5
11419 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422 # Now try to grab the symbols.
11423 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011424 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 +000011425 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11426 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429 # See whether the symbols have a leading underscore.
11430 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11431 ac_cv_sys_symbol_underscore=yes
11432 else
11433 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11434 :
11435 else
11436 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11437 fi
11438 fi
11439 else
11440 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11441 fi
11442 else
11443 echo "configure: failed program was:" >&5
11444 cat conftest.c >&5
11445 fi
11446 rm -rf conftest*
11447
11448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011449{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11450echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011451
11452
11453if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11454 if test x"$libltdl_cv_func_dlopen" = xyes ||
11455 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011456 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11457echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11458if test "${libltdl_cv_need_uscore+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460else
11461 libltdl_cv_need_uscore=unknown
11462 save_LIBS="$LIBS"
11463 LIBS="$LIBS $LIBADD_DL"
11464 if test "$cross_compiling" = yes; then :
11465 libltdl_cv_need_uscore=cross
11466else
11467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11468 lt_status=$lt_dlunknown
11469 cat > conftest.$ac_ext <<EOF
Chandler Carruth6b241162010-10-19 08:21:25 +000011470#line 11470 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471#include "confdefs.h"
11472
11473#if HAVE_DLFCN_H
11474#include <dlfcn.h>
11475#endif
11476
11477#include <stdio.h>
11478
11479#ifdef RTLD_GLOBAL
11480# define LT_DLGLOBAL RTLD_GLOBAL
11481#else
11482# ifdef DL_GLOBAL
11483# define LT_DLGLOBAL DL_GLOBAL
11484# else
11485# define LT_DLGLOBAL 0
11486# endif
11487#endif
11488
11489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11490 find out it does not work in some platform. */
11491#ifndef LT_DLLAZY_OR_NOW
11492# ifdef RTLD_LAZY
11493# define LT_DLLAZY_OR_NOW RTLD_LAZY
11494# else
11495# ifdef DL_LAZY
11496# define LT_DLLAZY_OR_NOW DL_LAZY
11497# else
11498# ifdef RTLD_NOW
11499# define LT_DLLAZY_OR_NOW RTLD_NOW
11500# else
11501# ifdef DL_NOW
11502# define LT_DLLAZY_OR_NOW DL_NOW
11503# else
11504# define LT_DLLAZY_OR_NOW 0
11505# endif
11506# endif
11507# endif
11508# endif
11509#endif
11510
11511#ifdef __cplusplus
11512extern "C" void exit (int);
11513#endif
11514
11515void fnord() { int i=42;}
11516int main ()
11517{
11518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11519 int status = $lt_dlunknown;
11520
11521 if (self)
11522 {
11523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11525 /* dlclose (self); */
11526 }
Reid Spencera773bd52006-08-04 18:18:08 +000011527 else
11528 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529
11530 exit (status);
11531}
11532EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534 (eval $ac_link) 2>&5
11535 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011538 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539 lt_status=$?
11540 case x$lt_status in
11541 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11542 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011543 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544 esac
11545 else :
11546 # compilation failed
11547
11548 fi
11549fi
11550rm -fr conftest*
11551
11552 LIBS="$save_LIBS"
11553
11554fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011555{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11556echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557 fi
11558fi
11559
11560if test x"$libltdl_cv_need_uscore" = xyes; then
11561
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011562cat >>confdefs.h <<\_ACEOF
11563#define NEED_USCORE 1
11564_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565
11566fi
11567
11568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011569{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11570echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11571if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573else
11574 # PORTME does your system automatically load deplibs for dlopen?
11575 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11576 # For now, we just catch OSes we know something about -- in the
11577 # future, we'll try test this programmatically.
11578 libltdl_cv_sys_dlopen_deplibs=unknown
11579 case "$host_os" in
11580 aix3*|aix4.1.*|aix4.2.*)
11581 # Unknown whether this is true for these versions of AIX, but
11582 # we want this `case' here to explicitly catch those versions.
11583 libltdl_cv_sys_dlopen_deplibs=unknown
11584 ;;
11585 aix[45]*)
11586 libltdl_cv_sys_dlopen_deplibs=yes
11587 ;;
11588 darwin*)
11589 # Assuming the user has installed a libdl from somewhere, this is true
11590 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11591 libltdl_cv_sys_dlopen_deplibs=yes
11592 ;;
11593 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11594 # GNU and its variants, using gnu ld.so (Glibc)
11595 libltdl_cv_sys_dlopen_deplibs=yes
11596 ;;
11597 hpux10*|hpux11*)
11598 libltdl_cv_sys_dlopen_deplibs=yes
11599 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011600 interix*)
11601 libltdl_cv_sys_dlopen_deplibs=yes
11602 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011603 irix[12345]*|irix6.[01]*)
11604 # Catch all versions of IRIX before 6.2, and indicate that we don't
11605 # know how it worked for any of those versions.
11606 libltdl_cv_sys_dlopen_deplibs=unknown
11607 ;;
11608 irix*)
11609 # The case above catches anything before 6.2, and it's known that
11610 # at 6.2 and later dlopen does load deplibs.
11611 libltdl_cv_sys_dlopen_deplibs=yes
11612 ;;
11613 netbsd*)
11614 libltdl_cv_sys_dlopen_deplibs=yes
11615 ;;
11616 openbsd*)
11617 libltdl_cv_sys_dlopen_deplibs=yes
11618 ;;
11619 osf[1234]*)
11620 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11621 # it did *not* use an RPATH in a shared library to find objects the
11622 # library depends on, so we explictly say `no'.
11623 libltdl_cv_sys_dlopen_deplibs=no
11624 ;;
11625 osf5.0|osf5.0a|osf5.1)
11626 # dlopen *does* load deplibs and with the right loader patch applied
11627 # it even uses RPATH in a shared library to search for shared objects
11628 # that the library depends on, but there's no easy way to know if that
11629 # patch is installed. Since this is the case, all we can really
11630 # say is unknown -- it depends on the patch being installed. If
11631 # it is, this changes to `yes'. Without it, it would be `no'.
11632 libltdl_cv_sys_dlopen_deplibs=unknown
11633 ;;
11634 osf*)
11635 # the two cases above should catch all versions of osf <= 5.1. Read
11636 # the comments above for what we know about them.
11637 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11638 # is used to find them so we can finally say `yes'.
11639 libltdl_cv_sys_dlopen_deplibs=yes
11640 ;;
11641 solaris*)
11642 libltdl_cv_sys_dlopen_deplibs=yes
11643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11645 libltdl_cv_sys_dlopen_deplibs=yes
11646 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647 esac
11648
11649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011650{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11651echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011654cat >>confdefs.h <<\_ACEOF
11655#define LTDL_DLOPEN_DEPLIBS 1
11656_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657
11658fi
11659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011660
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011662do
11663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669fi
11670ac_res=`eval echo '${'$as_ac_Header'}'`
11671 { echo "$as_me:$LINENO: result: $ac_res" >&5
11672echo "${ECHO_T}$ac_res" >&6; }
11673else
11674 # Is the header compilable?
11675{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11676echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11677cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683$ac_includes_default
11684#include <$ac_header>
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (ac_try="$ac_compile"
11688case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest.$ac_objext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_header_compiler=yes
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ac_header_compiler=no
11726fi
11727
11728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11730echo "${ECHO_T}$ac_header_compiler" >&6; }
11731
11732# Is the header present?
11733{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11735cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
11741#include <$ac_header>
11742_ACEOF
11743if { (ac_try="$ac_cpp conftest.$ac_ext"
11744case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11747esac
11748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } >/dev/null; then
11756 if test -s conftest.err; then
11757 ac_cpp_err=$ac_c_preproc_warn_flag
11758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11759 else
11760 ac_cpp_err=
11761 fi
11762else
11763 ac_cpp_err=yes
11764fi
11765if test -z "$ac_cpp_err"; then
11766 ac_header_preproc=yes
11767else
11768 echo "$as_me: failed program was:" >&5
11769sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_header_preproc=no
11772fi
11773
11774rm -f conftest.err conftest.$ac_ext
11775{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11776echo "${ECHO_T}$ac_header_preproc" >&6; }
11777
11778# So? What about this header?
11779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11780 yes:no: )
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11782echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11784echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11785 ac_header_preproc=yes
11786 ;;
11787 no:yes:* )
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11789echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11791echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11793echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11795echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11797echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11799echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11800 ( cat <<\_ASBOX
11801## ----------------------------------- ##
11802## Report this to llvmbugs@cs.uiuc.edu ##
11803## ----------------------------------- ##
11804_ASBOX
11805 ) | sed "s/^/$as_me: WARNING: /" >&2
11806 ;;
11807esac
11808{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11812else
11813 eval "$as_ac_Header=\$ac_header_preproc"
11814fi
11815ac_res=`eval echo '${'$as_ac_Header'}'`
11816 { echo "$as_me:$LINENO: result: $ac_res" >&5
11817echo "${ECHO_T}$ac_res" >&6; }
11818
11819fi
11820if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011821 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823_ACEOF
11824
11825fi
11826
11827done
11828
11829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011830{ echo "$as_me:$LINENO: checking for error_t" >&5
11831echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11832if test "${ac_cv_type_error_t+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842# include <argz.h>
11843#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011844
11845typedef error_t ac__type_new_;
11846int
11847main ()
11848{
11849if ((ac__type_new_ *) 0)
11850 return 0;
11851if (sizeof (ac__type_new_))
11852 return 0;
11853 ;
11854 return 0;
11855}
11856_ACEOF
11857rm -f conftest.$ac_objext
11858if { (ac_try="$ac_compile"
11859case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862esac
11863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11872 { (case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875esac
11876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_try") 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try='test -s conftest.$ac_objext'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_type_error_t=yes
11892else
11893 echo "$as_me: failed program was:" >&5
11894sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_type_error_t=no
11897fi
11898
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900fi
11901{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11902echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11903if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011904
11905cat >>confdefs.h <<_ACEOF
11906#define HAVE_ERROR_T 1
11907_ACEOF
11908
11909
11910else
11911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011912cat >>confdefs.h <<\_ACEOF
11913#define error_t int
11914_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915
11916fi
11917
11918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011919
11920
11921
11922
11923
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011925do
11926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11929if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931else
11932 cat >conftest.$ac_ext <<_ACEOF
11933/* confdefs.h. */
11934_ACEOF
11935cat confdefs.h >>conftest.$ac_ext
11936cat >>conftest.$ac_ext <<_ACEOF
11937/* end confdefs.h. */
11938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11940#define $ac_func innocuous_$ac_func
11941
11942/* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func (); below.
11944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945 <limits.h> exists even on freestanding compilers. */
11946
11947#ifdef __STDC__
11948# include <limits.h>
11949#else
11950# include <assert.h>
11951#endif
11952
11953#undef $ac_func
11954
11955/* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11958#ifdef __cplusplus
11959extern "C"
11960#endif
11961char $ac_func ();
11962/* The GNU C library defines this for functions which it implements
11963 to always fail with ENOSYS. Some functions are actually named
11964 something starting with __ and the normal name is an alias. */
11965#if defined __stub_$ac_func || defined __stub___$ac_func
11966choke me
11967#endif
11968
11969int
11970main ()
11971{
11972return $ac_func ();
11973 ;
11974 return 0;
11975}
11976_ACEOF
11977rm -f conftest.$ac_objext conftest$ac_exeext
11978if { (ac_try="$ac_link"
11979case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992 { (case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995esac
11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 eval "$as_ac_var=yes"
12012else
12013 echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 eval "$as_ac_var=no"
12017fi
12018
12019rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021fi
12022ac_res=`eval echo '${'$as_ac_var'}'`
12023 { echo "$as_me:$LINENO: result: $ac_res" >&5
12024echo "${ECHO_T}$ac_res" >&6; }
12025if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012028_ACEOF
12029
12030fi
12031done
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012052
12053
12054
12055
12056
12057
12058
12059
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12061 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012062do
12063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12064if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069fi
12070ac_res=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072echo "${ECHO_T}$ac_res" >&6; }
12073else
12074 # Is the header compilable?
12075{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12077cat >conftest.$ac_ext <<_ACEOF
12078/* confdefs.h. */
12079_ACEOF
12080cat confdefs.h >>conftest.$ac_ext
12081cat >>conftest.$ac_ext <<_ACEOF
12082/* end confdefs.h. */
12083$ac_includes_default
12084#include <$ac_header>
12085_ACEOF
12086rm -f conftest.$ac_objext
12087if { (ac_try="$ac_compile"
12088case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_compile") 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12101 { (case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104esac
12105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_try") 2>&5
12107 ac_status=$?
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114esac
12115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_try") 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_header_compiler=yes
12121else
12122 echo "$as_me: failed program was:" >&5
12123sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 ac_header_compiler=no
12126fi
12127
12128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130echo "${ECHO_T}$ac_header_compiler" >&6; }
12131
12132# Is the header present?
12133{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12135cat >conftest.$ac_ext <<_ACEOF
12136/* confdefs.h. */
12137_ACEOF
12138cat confdefs.h >>conftest.$ac_ext
12139cat >>conftest.$ac_ext <<_ACEOF
12140/* end confdefs.h. */
12141#include <$ac_header>
12142_ACEOF
12143if { (ac_try="$ac_cpp conftest.$ac_ext"
12144case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12147esac
12148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } >/dev/null; then
12156 if test -s conftest.err; then
12157 ac_cpp_err=$ac_c_preproc_warn_flag
12158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12159 else
12160 ac_cpp_err=
12161 fi
12162else
12163 ac_cpp_err=yes
12164fi
12165if test -z "$ac_cpp_err"; then
12166 ac_header_preproc=yes
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_header_preproc=no
12172fi
12173
12174rm -f conftest.err conftest.$ac_ext
12175{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12176echo "${ECHO_T}$ac_header_preproc" >&6; }
12177
12178# So? What about this header?
12179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12180 yes:no: )
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12185 ac_header_preproc=yes
12186 ;;
12187 no:yes:* )
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12200 ( cat <<\_ASBOX
12201## ----------------------------------- ##
12202## Report this to llvmbugs@cs.uiuc.edu ##
12203## ----------------------------------- ##
12204_ASBOX
12205 ) | sed "s/^/$as_me: WARNING: /" >&2
12206 ;;
12207esac
12208{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12212else
12213 eval "$as_ac_Header=\$ac_header_preproc"
12214fi
12215ac_res=`eval echo '${'$as_ac_Header'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217echo "${ECHO_T}$ac_res" >&6; }
12218
12219fi
12220if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012221 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223_ACEOF
12224
12225fi
12226
12227done
12228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012229
12230
12231
12232
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012234do
12235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12236if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12241fi
12242ac_res=`eval echo '${'$as_ac_Header'}'`
12243 { echo "$as_me:$LINENO: result: $ac_res" >&5
12244echo "${ECHO_T}$ac_res" >&6; }
12245else
12246 # Is the header compilable?
12247{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12249cat >conftest.$ac_ext <<_ACEOF
12250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
12255$ac_includes_default
12256#include <$ac_header>
12257_ACEOF
12258rm -f conftest.$ac_objext
12259if { (ac_try="$ac_compile"
12260case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_compile") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12273 { (case "(($ac_try" in
12274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275 *) ac_try_echo=$ac_try;;
12276esac
12277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_try") 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest.$ac_objext'
12283 { (case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286esac
12287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_try") 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_header_compiler=yes
12293else
12294 echo "$as_me: failed program was:" >&5
12295sed 's/^/| /' conftest.$ac_ext >&5
12296
12297 ac_header_compiler=no
12298fi
12299
12300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12302echo "${ECHO_T}$ac_header_compiler" >&6; }
12303
12304# Is the header present?
12305{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12307cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313#include <$ac_header>
12314_ACEOF
12315if { (ac_try="$ac_cpp conftest.$ac_ext"
12316case "(($ac_try" in
12317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318 *) ac_try_echo=$ac_try;;
12319esac
12320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12322 ac_status=$?
12323 grep -v '^ *+' conftest.er1 >conftest.err
12324 rm -f conftest.er1
12325 cat conftest.err >&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } >/dev/null; then
12328 if test -s conftest.err; then
12329 ac_cpp_err=$ac_c_preproc_warn_flag
12330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12331 else
12332 ac_cpp_err=
12333 fi
12334else
12335 ac_cpp_err=yes
12336fi
12337if test -z "$ac_cpp_err"; then
12338 ac_header_preproc=yes
12339else
12340 echo "$as_me: failed program was:" >&5
12341sed 's/^/| /' conftest.$ac_ext >&5
12342
12343 ac_header_preproc=no
12344fi
12345
12346rm -f conftest.err conftest.$ac_ext
12347{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12348echo "${ECHO_T}$ac_header_preproc" >&6; }
12349
12350# So? What about this header?
12351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12352 yes:no: )
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12357 ac_header_preproc=yes
12358 ;;
12359 no:yes:* )
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12372 ( cat <<\_ASBOX
12373## ----------------------------------- ##
12374## Report this to llvmbugs@cs.uiuc.edu ##
12375## ----------------------------------- ##
12376_ASBOX
12377 ) | sed "s/^/$as_me: WARNING: /" >&2
12378 ;;
12379esac
12380{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384else
12385 eval "$as_ac_Header=\$ac_header_preproc"
12386fi
12387ac_res=`eval echo '${'$as_ac_Header'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389echo "${ECHO_T}$ac_res" >&6; }
12390
12391fi
12392if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012393 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012395_ACEOF
12396
12397fi
12398
12399done
12400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012401
12402
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012403for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012404do
12405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12411fi
12412ac_res=`eval echo '${'$as_ac_Header'}'`
12413 { echo "$as_me:$LINENO: result: $ac_res" >&5
12414echo "${ECHO_T}$ac_res" >&6; }
12415else
12416 # Is the header compilable?
12417{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12419cat >conftest.$ac_ext <<_ACEOF
12420/* confdefs.h. */
12421_ACEOF
12422cat confdefs.h >>conftest.$ac_ext
12423cat >>conftest.$ac_ext <<_ACEOF
12424/* end confdefs.h. */
12425$ac_includes_default
12426#include <$ac_header>
12427_ACEOF
12428rm -f conftest.$ac_objext
12429if { (ac_try="$ac_compile"
12430case "(($ac_try" in
12431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12433esac
12434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_compile") 2>conftest.er1
12436 ac_status=$?
12437 grep -v '^ *+' conftest.er1 >conftest.err
12438 rm -f conftest.er1
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12446esac
12447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest.$ac_objext'
12453 { (case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456esac
12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_try") 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 ac_header_compiler=yes
12463else
12464 echo "$as_me: failed program was:" >&5
12465sed 's/^/| /' conftest.$ac_ext >&5
12466
12467 ac_header_compiler=no
12468fi
12469
12470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12472echo "${ECHO_T}$ac_header_compiler" >&6; }
12473
12474# Is the header present?
12475{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483#include <$ac_header>
12484_ACEOF
12485if { (ac_try="$ac_cpp conftest.$ac_ext"
12486case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489esac
12490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12492 ac_status=$?
12493 grep -v '^ *+' conftest.er1 >conftest.err
12494 rm -f conftest.er1
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } >/dev/null; then
12498 if test -s conftest.err; then
12499 ac_cpp_err=$ac_c_preproc_warn_flag
12500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12501 else
12502 ac_cpp_err=
12503 fi
12504else
12505 ac_cpp_err=yes
12506fi
12507if test -z "$ac_cpp_err"; then
12508 ac_header_preproc=yes
12509else
12510 echo "$as_me: failed program was:" >&5
12511sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_header_preproc=no
12514fi
12515
12516rm -f conftest.err conftest.$ac_ext
12517{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12518echo "${ECHO_T}$ac_header_preproc" >&6; }
12519
12520# So? What about this header?
12521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12522 yes:no: )
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12524echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12526echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12527 ac_header_preproc=yes
12528 ;;
12529 no:yes:* )
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12531echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12533echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12535echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12537echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12541echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12542 ( cat <<\_ASBOX
12543## ----------------------------------- ##
12544## Report this to llvmbugs@cs.uiuc.edu ##
12545## ----------------------------------- ##
12546_ASBOX
12547 ) | sed "s/^/$as_me: WARNING: /" >&2
12548 ;;
12549esac
12550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555 eval "$as_ac_Header=\$ac_header_preproc"
12556fi
12557ac_res=`eval echo '${'$as_ac_Header'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559echo "${ECHO_T}$ac_res" >&6; }
12560
12561fi
12562if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012565_ACEOF
12566 break
12567fi
12568
12569done
12570
12571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012572
12573
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012574for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575do
12576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12577{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12579if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581else
12582 cat >conftest.$ac_ext <<_ACEOF
12583/* confdefs.h. */
12584_ACEOF
12585cat confdefs.h >>conftest.$ac_ext
12586cat >>conftest.$ac_ext <<_ACEOF
12587/* end confdefs.h. */
12588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12590#define $ac_func innocuous_$ac_func
12591
12592/* System header to define __stub macros and hopefully few prototypes,
12593 which can conflict with char $ac_func (); below.
12594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12595 <limits.h> exists even on freestanding compilers. */
12596
12597#ifdef __STDC__
12598# include <limits.h>
12599#else
12600# include <assert.h>
12601#endif
12602
12603#undef $ac_func
12604
12605/* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12608#ifdef __cplusplus
12609extern "C"
12610#endif
12611char $ac_func ();
12612/* The GNU C library defines this for functions which it implements
12613 to always fail with ENOSYS. Some functions are actually named
12614 something starting with __ and the normal name is an alias. */
12615#if defined __stub_$ac_func || defined __stub___$ac_func
12616choke me
12617#endif
12618
12619int
12620main ()
12621{
12622return $ac_func ();
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627rm -f conftest.$ac_objext conftest$ac_exeext
12628if { (ac_try="$ac_link"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12645esac
12646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 eval "$as_ac_var=yes"
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 eval "$as_ac_var=no"
12667fi
12668
12669rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671fi
12672ac_res=`eval echo '${'$as_ac_var'}'`
12673 { echo "$as_me:$LINENO: result: $ac_res" >&5
12674echo "${ECHO_T}$ac_res" >&6; }
12675if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012676 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678_ACEOF
12679 break
12680fi
12681done
12682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012683
12684
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012685for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012686do
12687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12690if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12701#define $ac_func innocuous_$ac_func
12702
12703/* System header to define __stub macros and hopefully few prototypes,
12704 which can conflict with char $ac_func (); below.
12705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706 <limits.h> exists even on freestanding compilers. */
12707
12708#ifdef __STDC__
12709# include <limits.h>
12710#else
12711# include <assert.h>
12712#endif
12713
12714#undef $ac_func
12715
12716/* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12719#ifdef __cplusplus
12720extern "C"
12721#endif
12722char $ac_func ();
12723/* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726#if defined __stub_$ac_func || defined __stub___$ac_func
12727choke me
12728#endif
12729
12730int
12731main ()
12732{
12733return $ac_func ();
12734 ;
12735 return 0;
12736}
12737_ACEOF
12738rm -f conftest.$ac_objext conftest$ac_exeext
12739if { (ac_try="$ac_link"
12740case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756esac
12757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 eval "$as_ac_var=yes"
12773else
12774 echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 eval "$as_ac_var=no"
12778fi
12779
12780rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782fi
12783ac_res=`eval echo '${'$as_ac_var'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785echo "${ECHO_T}$ac_res" >&6; }
12786if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012789_ACEOF
12790 break
12791fi
12792done
12793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012794
12795
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012796for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012797do
12798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12799{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12801if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12803else
12804 cat >conftest.$ac_ext <<_ACEOF
12805/* confdefs.h. */
12806_ACEOF
12807cat confdefs.h >>conftest.$ac_ext
12808cat >>conftest.$ac_ext <<_ACEOF
12809/* end confdefs.h. */
12810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12812#define $ac_func innocuous_$ac_func
12813
12814/* System header to define __stub macros and hopefully few prototypes,
12815 which can conflict with char $ac_func (); below.
12816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12817 <limits.h> exists even on freestanding compilers. */
12818
12819#ifdef __STDC__
12820# include <limits.h>
12821#else
12822# include <assert.h>
12823#endif
12824
12825#undef $ac_func
12826
12827/* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12830#ifdef __cplusplus
12831extern "C"
12832#endif
12833char $ac_func ();
12834/* The GNU C library defines this for functions which it implements
12835 to always fail with ENOSYS. Some functions are actually named
12836 something starting with __ and the normal name is an alias. */
12837#if defined __stub_$ac_func || defined __stub___$ac_func
12838choke me
12839#endif
12840
12841int
12842main ()
12843{
12844return $ac_func ();
12845 ;
12846 return 0;
12847}
12848_ACEOF
12849rm -f conftest.$ac_objext conftest$ac_exeext
12850if { (ac_try="$ac_link"
12851case "(($ac_try" in
12852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12854esac
12855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_link") 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12867esac
12868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try='test -s conftest$ac_exeext'
12874 { (case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12880 ac_status=$?
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 eval "$as_ac_var=yes"
12884else
12885 echo "$as_me: failed program was:" >&5
12886sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 eval "$as_ac_var=no"
12889fi
12890
12891rm -f core conftest.err conftest.$ac_objext \
12892 conftest$ac_exeext conftest.$ac_ext
12893fi
12894ac_res=`eval echo '${'$as_ac_var'}'`
12895 { echo "$as_me:$LINENO: result: $ac_res" >&5
12896echo "${ECHO_T}$ac_res" >&6; }
12897if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012898 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012900_ACEOF
12901 break
12902fi
12903done
12904
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012905
12906
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012907for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012908do
12909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12910{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12912if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12914else
12915 cat >conftest.$ac_ext <<_ACEOF
12916/* confdefs.h. */
12917_ACEOF
12918cat confdefs.h >>conftest.$ac_ext
12919cat >>conftest.$ac_ext <<_ACEOF
12920/* end confdefs.h. */
12921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12923#define $ac_func innocuous_$ac_func
12924
12925/* System header to define __stub macros and hopefully few prototypes,
12926 which can conflict with char $ac_func (); below.
12927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928 <limits.h> exists even on freestanding compilers. */
12929
12930#ifdef __STDC__
12931# include <limits.h>
12932#else
12933# include <assert.h>
12934#endif
12935
12936#undef $ac_func
12937
12938/* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12941#ifdef __cplusplus
12942extern "C"
12943#endif
12944char $ac_func ();
12945/* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948#if defined __stub_$ac_func || defined __stub___$ac_func
12949choke me
12950#endif
12951
12952int
12953main ()
12954{
12955return $ac_func ();
12956 ;
12957 return 0;
12958}
12959_ACEOF
12960rm -f conftest.$ac_objext conftest$ac_exeext
12961if { (ac_try="$ac_link"
12962case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965esac
12966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12968 ac_status=$?
12969 grep -v '^ *+' conftest.er1 >conftest.err
12970 rm -f conftest.er1
12971 cat conftest.err >&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12975 { (case "(($ac_try" in
12976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12978esac
12979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_try") 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 eval "$as_ac_var=yes"
12995else
12996 echo "$as_me: failed program was:" >&5
12997sed 's/^/| /' conftest.$ac_ext >&5
12998
12999 eval "$as_ac_var=no"
13000fi
13001
13002rm -f core conftest.err conftest.$ac_objext \
13003 conftest$ac_exeext conftest.$ac_ext
13004fi
13005ac_res=`eval echo '${'$as_ac_var'}'`
13006 { echo "$as_me:$LINENO: result: $ac_res" >&5
13007echo "${ECHO_T}$ac_res" >&6; }
13008if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013009 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013011_ACEOF
13012
13013fi
13014done
13015
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013016
13017
13018
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013019for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020do
13021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13022{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13024if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13026else
13027 cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13035#define $ac_func innocuous_$ac_func
13036
13037/* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char $ac_func (); below.
13039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040 <limits.h> exists even on freestanding compilers. */
13041
13042#ifdef __STDC__
13043# include <limits.h>
13044#else
13045# include <assert.h>
13046#endif
13047
13048#undef $ac_func
13049
13050/* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13053#ifdef __cplusplus
13054extern "C"
13055#endif
13056char $ac_func ();
13057/* The GNU C library defines this for functions which it implements
13058 to always fail with ENOSYS. Some functions are actually named
13059 something starting with __ and the normal name is an alias. */
13060#if defined __stub_$ac_func || defined __stub___$ac_func
13061choke me
13062#endif
13063
13064int
13065main ()
13066{
13067return $ac_func ();
13068 ;
13069 return 0;
13070}
13071_ACEOF
13072rm -f conftest.$ac_objext conftest$ac_exeext
13073if { (ac_try="$ac_link"
13074case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 eval "$as_ac_var=yes"
13107else
13108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 eval "$as_ac_var=no"
13112fi
13113
13114rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13116fi
13117ac_res=`eval echo '${'$as_ac_var'}'`
13118 { echo "$as_me:$LINENO: result: $ac_res" >&5
13119echo "${ECHO_T}$ac_res" >&6; }
13120if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013121 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013123_ACEOF
13124
13125fi
13126done
13127
13128
Douglas Gregor01746742009-05-11 18:05:52 +000013129
Reid Spencer7931a782004-12-27 06:15:02 +000013130if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013131 LLVMGCC="llvm-gcc${EXEEXT}"
13132 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013133 LLVMGCCCOMMAND="$LLVMGCC"
13134 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013135 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13136
13137 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13138
Reid Spencerc84492c2005-06-02 22:34:49 +000013139 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13140set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13143if test "${ac_cv_path_LLVMGCC+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013145else
13146 case $LLVMGCC in
13147 [\\/]* | ?:[\\/]*)
13148 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13149 ;;
13150 *)
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152for as_dir in $PATH
13153do
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 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 +000013158 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013160 break 2
13161 fi
13162done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163done
Reid Spencera773bd52006-08-04 18:18:08 +000013164IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013165
Reid Spencer59473af2004-12-25 07:31:29 +000013166 ;;
13167esac
13168fi
13169LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013170if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013171 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13172echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013173else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013174 { echo "$as_me:$LINENO: result: no" >&5
13175echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013176fi
13177
Reid Spencera773bd52006-08-04 18:18:08 +000013178
Reid Spencerc84492c2005-06-02 22:34:49 +000013179 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13180set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13183if test "${ac_cv_path_LLVMGXX+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013185else
13186 case $LLVMGXX in
13187 [\\/]* | ?:[\\/]*)
13188 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13189 ;;
13190 *)
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192for as_dir in $PATH
13193do
13194 IFS=$as_save_IFS
13195 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013196 for ac_exec_ext in '' $ac_executable_extensions; do
13197 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 +000013198 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013200 break 2
13201 fi
13202done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013203done
Reid Spencera773bd52006-08-04 18:18:08 +000013204IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013205
Reid Spencer59473af2004-12-25 07:31:29 +000013206 ;;
13207esac
13208fi
13209LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013210if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13212echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013213else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013214 { echo "$as_me:$LINENO: result: no" >&5
13215echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013216fi
13217
Reid Spencera773bd52006-08-04 18:18:08 +000013218
Reid Spencer59473af2004-12-25 07:31:29 +000013219else
Devang Patel5d28b882007-12-04 22:54:47 +000013220 if test -z "$LLVMGCC"; then
13221 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013222 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013223 fi
13224 if test -z "$LLVMGXX"; then
13225 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013226 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013227 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013228
Reid Spencer59473af2004-12-25 07:31:29 +000013229 LLVMGCC=$LLVMGCC
13230
13231 LLVMGXX=$LLVMGXX
13232
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013233 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13234
13235 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13236
Reid Spencer59473af2004-12-25 07:31:29 +000013237fi
13238
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013239
Daniel Dunbar98515672010-02-23 10:00:49 +000013240# Check whether --with-llvmcc was given.
13241if test "${with_llvmcc+set}" = set; then
13242 withval=$with_llvmcc;
13243else
13244 with_llvmcc=check
13245fi
13246
13247{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13248echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13249if test "$with_llvmcc" != "check"; then
13250 if (test "$with_llvmcc" != "llvm-gcc" &&
13251 test "$with_llvmcc" != "clang" &&
13252 test "$with_llvmcc" != "none"); then
13253 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13254echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13255 { (exit 1); exit 1; }; }
13256 fi
13257 WITH_LLVMCC="$with_llvmcc"
13258elif test -n "$LLVMGCC"; then
13259 WITH_LLVMCC=llvm-gcc
13260elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13261 WITH_LLVMCC=clang
13262else
13263 WITH_LLVMCC=none
13264fi
13265{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13266echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13267LLVMCC_OPTION=$WITH_LLVMCC
13268
13269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013270{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13271echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013272
Reid Spencer86901802004-12-08 23:07:27 +000013273ICC=no
13274IXX=no
13275case $CC in
13276 icc*|icpc*)
13277 ICC=yes
13278 IXX=yes
13279 ;;
13280 *)
13281 ;;
13282esac
13283
Duraid Madina937c60a2006-02-15 07:57:42 +000013284if test "$GCC" != "yes" && test "$ICC" != "yes"
13285then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013286 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13287echo "$as_me: error: gcc|icc required but not found" >&2;}
13288 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013289fi
13290
13291if test "$GXX" != "yes" && test "$IXX" != "yes"
13292then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013293 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13294echo "$as_me: error: g++|icc required but not found" >&2;}
13295 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013296fi
13297
Reid Spencer86901802004-12-08 23:07:27 +000013298if test "$GCC" = "yes"
13299then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013301#if !defined(__GNUC__) || __GNUC__ < 3
13302#error Unsupported GCC version
13303#endif
13304
13305_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013306rm -f conftest.$ac_objext
13307if { (ac_try="$ac_compile"
13308case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311esac
13312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_compile") 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334esac
13335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_try") 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13346echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13347 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013348fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349
Chris Lattner399c7c72008-02-05 19:43:53 +000013350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013351fi
13352
13353if test -z "$llvm_cv_gnu_make_command"
13354then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013355 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13356echo "$as_me: error: GNU Make required but not found" >&2;}
13357 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013358fi
13359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013360{ echo "$as_me:$LINENO: result: ok" >&5
13361echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013363{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13364echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013365NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13366
13367NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13370echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013371
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373
13374{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13375echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13376if test "${ac_cv_lib_m_sin+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013378else
13379 ac_check_lib_save_LIBS=$LIBS
13380LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013381cat >conftest.$ac_ext <<_ACEOF
13382/* confdefs.h. */
13383_ACEOF
13384cat confdefs.h >>conftest.$ac_ext
13385cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013386/* end confdefs.h. */
13387
Reid Spencera773bd52006-08-04 18:18:08 +000013388/* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013391#ifdef __cplusplus
13392extern "C"
13393#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013394char sin ();
13395int
13396main ()
13397{
Reid Spencera773bd52006-08-04 18:18:08 +000013398return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013399 ;
13400 return 0;
13401}
13402_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013403rm -f conftest.$ac_objext conftest$ac_exeext
13404if { (ac_try="$ac_link"
13405case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408esac
13409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421esac
13422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; } &&
13427 { ac_try='test -s conftest$ac_exeext'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431esac
13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013437 ac_cv_lib_m_sin=yes
13438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439 echo "$as_me: failed program was:" >&5
13440sed 's/^/| /' conftest.$ac_ext >&5
13441
13442 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013443fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013444
Bill Wendlingebcceee2009-04-18 11:20:33 +000013445rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013446 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013447LIBS=$ac_check_lib_save_LIBS
13448fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013449{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13450echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13451if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013452 cat >>confdefs.h <<_ACEOF
13453#define HAVE_LIBM 1
13454_ACEOF
13455
13456 LIBS="-lm $LIBS"
13457
13458fi
13459
Jeff Cohen28783c32007-01-12 18:22:38 +000013460if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013461
13462{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13463echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13464if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013466else
13467 ac_check_lib_save_LIBS=$LIBS
13468LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469cat >conftest.$ac_ext <<_ACEOF
13470/* confdefs.h. */
13471_ACEOF
13472cat confdefs.h >>conftest.$ac_ext
13473cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013474/* end confdefs.h. */
13475
Reid Spencer48fdf912006-06-01 19:03:21 +000013476
Reid Spencer484fc8e2006-06-01 16:55:59 +000013477int
13478main ()
13479{
Reid Spencera773bd52006-08-04 18:18:08 +000013480return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013481 ;
13482 return 0;
13483}
13484_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013485rm -f conftest.$ac_objext conftest$ac_exeext
13486if { (ac_try="$ac_link"
13487case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490esac
13491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13500 { (case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13503esac
13504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest$ac_exeext'
13510 { (case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13513esac
13514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_try") 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013519 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013521 echo "$as_me: failed program was:" >&5
13522sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013525fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526
Bill Wendlingebcceee2009-04-18 11:20:33 +000013527rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013528 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013529LIBS=$ac_check_lib_save_LIBS
13530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013531{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13532echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13533if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013534 cat >>confdefs.h <<_ACEOF
13535#define HAVE_LIBIMAGEHLP 1
13536_ACEOF
13537
13538 LIBS="-limagehlp $LIBS"
13539
13540fi
13541
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013542
13543{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13544echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13545if test "${ac_cv_lib_psapi_main+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013547else
13548 ac_check_lib_save_LIBS=$LIBS
13549LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013550cat >conftest.$ac_ext <<_ACEOF
13551/* confdefs.h. */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013555/* end confdefs.h. */
13556
Reid Spencer48fdf912006-06-01 19:03:21 +000013557
Reid Spencer484fc8e2006-06-01 16:55:59 +000013558int
13559main ()
13560{
Reid Spencera773bd52006-08-04 18:18:08 +000013561return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013562 ;
13563 return 0;
13564}
13565_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013566rm -f conftest.$ac_objext conftest$ac_exeext
13567if { (ac_try="$ac_link"
13568case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_link") 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584esac
13585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594esac
13595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013600 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013602 echo "$as_me: failed program was:" >&5
13603sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013607
Bill Wendlingebcceee2009-04-18 11:20:33 +000013608rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013609 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013610LIBS=$ac_check_lib_save_LIBS
13611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013612{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13613echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13614if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013615 cat >>confdefs.h <<_ACEOF
13616#define HAVE_LIBPSAPI 1
13617_ACEOF
13618
13619 LIBS="-lpsapi $LIBS"
13620
13621fi
13622
13623fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013625{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13626echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13627if test "${ac_cv_search_dlopen+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013629else
13630 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013631cat >conftest.$ac_ext <<_ACEOF
13632/* confdefs.h. */
13633_ACEOF
13634cat confdefs.h >>conftest.$ac_ext
13635cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013636/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013637
Reid Spencera773bd52006-08-04 18:18:08 +000013638/* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013641#ifdef __cplusplus
13642extern "C"
13643#endif
John Criswell7a73b802003-06-30 21:59:07 +000013644char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013645int
13646main ()
13647{
Reid Spencera773bd52006-08-04 18:18:08 +000013648return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013649 ;
13650 return 0;
13651}
13652_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013653for ac_lib in '' dl; do
13654 if test -z "$ac_lib"; then
13655 ac_res="none required"
13656 else
13657 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013659 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013660 rm -f conftest.$ac_objext conftest$ac_exeext
13661if { (ac_try="$ac_link"
13662case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_link") 2>conftest.er1
13668 ac_status=$?
13669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest$ac_exeext'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688esac
13689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013694 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013695else
13696 echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699
John Criswell7a73b802003-06-30 21:59:07 +000013700fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013701
Bill Wendlingebcceee2009-04-18 11:20:33 +000013702rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703 conftest$ac_exeext
13704 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013705 break
John Criswell7a73b802003-06-30 21:59:07 +000013706fi
Reid Spencera773bd52006-08-04 18:18:08 +000013707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013708if test "${ac_cv_search_dlopen+set}" = set; then
13709 :
Reid Spencera773bd52006-08-04 18:18:08 +000013710else
13711 ac_cv_search_dlopen=no
13712fi
13713rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013714LIBS=$ac_func_search_save_LIBS
13715fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013716{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13717echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013718ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722cat >>confdefs.h <<\_ACEOF
13723#define HAVE_DLOPEN 1
13724_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013725
13726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013727 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13728echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013729fi
13730
13731
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013732if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013733 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13734echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13735if test "${ac_cv_search_ffi_call+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013737else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013738 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013739cat >conftest.$ac_ext <<_ACEOF
13740/* confdefs.h. */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013744/* end confdefs.h. */
13745
13746/* Override any GCC internal prototype to avoid an error.
13747 Use char because int might match the return type of a GCC
13748 builtin and then its argument prototype would still apply. */
13749#ifdef __cplusplus
13750extern "C"
13751#endif
13752char ffi_call ();
13753int
13754main ()
13755{
13756return ffi_call ();
13757 ;
13758 return 0;
13759}
13760_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013761for ac_lib in '' ffi; do
13762 if test -z "$ac_lib"; then
13763 ac_res="none required"
13764 else
13765 ac_res=-l$ac_lib
13766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13767 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013768 rm -f conftest.$ac_objext conftest$ac_exeext
13769if { (ac_try="$ac_link"
13770case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773esac
13774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_link") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13786esac
13787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest$ac_exeext'
13793 { (case "(($ac_try" in
13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13796esac
13797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_try") 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013802 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013809
Bill Wendlingebcceee2009-04-18 11:20:33 +000013810rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013811 conftest$ac_exeext
13812 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013813 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013814fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013815done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013816if test "${ac_cv_search_ffi_call+set}" = set; then
13817 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013818else
13819 ac_cv_search_ffi_call=no
13820fi
13821rm conftest.$ac_ext
13822LIBS=$ac_func_search_save_LIBS
13823fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013824{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13825echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013826ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013830cat >>confdefs.h <<\_ACEOF
13831#define HAVE_FFI_CALL 1
13832_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013833
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013834else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013835 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13836echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13837 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013838fi
13839
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013840fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013841
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013842{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13843echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13844if test "${ac_cv_search_mallinfo+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013846else
13847 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848cat >conftest.$ac_ext <<_ACEOF
13849/* confdefs.h. */
13850_ACEOF
13851cat confdefs.h >>conftest.$ac_ext
13852cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013854
Reid Spencera773bd52006-08-04 18:18:08 +000013855/* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013858#ifdef __cplusplus
13859extern "C"
13860#endif
John Criswell7a73b802003-06-30 21:59:07 +000013861char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013862int
13863main ()
13864{
Reid Spencera773bd52006-08-04 18:18:08 +000013865return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013866 ;
13867 return 0;
13868}
13869_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013870for ac_lib in '' malloc; do
13871 if test -z "$ac_lib"; then
13872 ac_res="none required"
13873 else
13874 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013876 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013877 rm -f conftest.$ac_objext conftest$ac_exeext
13878if { (ac_try="$ac_link"
13879case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895esac
13896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13898 ac_status=$?
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13905esac
13906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013911 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013912else
13913 echo "$as_me: failed program was:" >&5
13914sed 's/^/| /' conftest.$ac_ext >&5
13915
13916
John Criswell7a73b802003-06-30 21:59:07 +000013917fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013918
Bill Wendlingebcceee2009-04-18 11:20:33 +000013919rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920 conftest$ac_exeext
13921 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013922 break
John Criswell7a73b802003-06-30 21:59:07 +000013923fi
Reid Spencera773bd52006-08-04 18:18:08 +000013924done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013925if test "${ac_cv_search_mallinfo+set}" = set; then
13926 :
Reid Spencera773bd52006-08-04 18:18:08 +000013927else
13928 ac_cv_search_mallinfo=no
13929fi
13930rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013931LIBS=$ac_func_search_save_LIBS
13932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013933{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13934echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013935ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013939cat >>confdefs.h <<\_ACEOF
13940#define HAVE_MALLINFO 1
13941_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013942
13943fi
13944
13945
Reid Spencer0a262ba2005-08-24 10:07:20 +000013946if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013947
13948{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13949echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13950if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013952else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013953 ac_check_lib_save_LIBS=$LIBS
13954LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013955cat >conftest.$ac_ext <<_ACEOF
13956/* confdefs.h. */
13957_ACEOF
13958cat confdefs.h >>conftest.$ac_ext
13959cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013960/* end confdefs.h. */
13961
Reid Spencera773bd52006-08-04 18:18:08 +000013962/* Override any GCC internal prototype to avoid an error.
13963 Use char because int might match the return type of a GCC
13964 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013965#ifdef __cplusplus
13966extern "C"
13967#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013968char pthread_mutex_init ();
13969int
13970main ()
13971{
Reid Spencera773bd52006-08-04 18:18:08 +000013972return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013973 ;
13974 return 0;
13975}
13976_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013977rm -f conftest.$ac_objext conftest$ac_exeext
13978if { (ac_try="$ac_link"
13979case "(($ac_try" in
13980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13982esac
13983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_link") 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992 { (case "(($ac_try" in
13993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994 *) ac_try_echo=$ac_try;;
13995esac
13996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_try") 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
14002 { (case "(($ac_try" in
14003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14005esac
14006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_try") 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014011 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
14015
14016 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014018
Bill Wendlingebcceee2009-04-18 11:20:33 +000014019rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014020 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014021LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14024echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14025if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014026 cat >>confdefs.h <<_ACEOF
14027#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014028_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014029
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014030 LIBS="-lpthread $LIBS"
14031
Reid Spencer22177fe2005-07-12 15:24:20 +000014032fi
14033
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014034 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14035echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14036if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014038else
14039 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014040cat >conftest.$ac_ext <<_ACEOF
14041/* confdefs.h. */
14042_ACEOF
14043cat confdefs.h >>conftest.$ac_ext
14044cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014045/* end confdefs.h. */
14046
Reid Spencera773bd52006-08-04 18:18:08 +000014047/* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014050#ifdef __cplusplus
14051extern "C"
14052#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014053char pthread_mutex_lock ();
14054int
14055main ()
14056{
Reid Spencera773bd52006-08-04 18:18:08 +000014057return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014058 ;
14059 return 0;
14060}
14061_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014062for ac_lib in '' pthread; do
14063 if test -z "$ac_lib"; then
14064 ac_res="none required"
14065 else
14066 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014068 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014069 rm -f conftest.$ac_objext conftest$ac_exeext
14070if { (ac_try="$ac_link"
14071case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14090 ac_status=$?
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14097esac
14098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014103 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014104else
14105 echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108
Brian Gaeke5f268f72003-12-05 19:29:01 +000014109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014110
Bill Wendlingebcceee2009-04-18 11:20:33 +000014111rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112 conftest$ac_exeext
14113 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014114 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014115fi
Reid Spencera773bd52006-08-04 18:18:08 +000014116done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14118 :
Reid Spencera773bd52006-08-04 18:18:08 +000014119else
14120 ac_cv_search_pthread_mutex_lock=no
14121fi
14122rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014123LIBS=$ac_func_search_save_LIBS
14124fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014125{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14126echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014127ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014128if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014129 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014131cat >>confdefs.h <<\_ACEOF
14132#define HAVE_PTHREAD_MUTEX_LOCK 1
14133_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014134
14135fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014137 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14138echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14139if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014141else
14142 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014143cat >conftest.$ac_ext <<_ACEOF
14144/* confdefs.h. */
14145_ACEOF
14146cat confdefs.h >>conftest.$ac_ext
14147cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014148/* end confdefs.h. */
14149
14150/* Override any GCC internal prototype to avoid an error.
14151 Use char because int might match the return type of a GCC
14152 builtin and then its argument prototype would still apply. */
14153#ifdef __cplusplus
14154extern "C"
14155#endif
14156char pthread_rwlock_init ();
14157int
14158main ()
14159{
14160return pthread_rwlock_init ();
14161 ;
14162 return 0;
14163}
14164_ACEOF
14165for ac_lib in '' pthread; do
14166 if test -z "$ac_lib"; then
14167 ac_res="none required"
14168 else
14169 ac_res=-l$ac_lib
14170 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14171 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014172 rm -f conftest.$ac_objext conftest$ac_exeext
14173if { (ac_try="$ac_link"
14174case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177esac
14178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_link") 2>conftest.er1
14180 ac_status=$?
14181 grep -v '^ *+' conftest.er1 >conftest.err
14182 rm -f conftest.er1
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14187 { (case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190esac
14191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try='test -s conftest$ac_exeext'
14197 { (case "(($ac_try" in
14198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14200esac
14201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_try") 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014206 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014207else
14208 echo "$as_me: failed program was:" >&5
14209sed 's/^/| /' conftest.$ac_ext >&5
14210
14211
Owen Andersonde8aed22009-06-16 18:20:20 +000014212fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014213
Owen Andersonde8aed22009-06-16 18:20:20 +000014214rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014215 conftest$ac_exeext
14216 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014217 break
14218fi
14219done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14221 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014222else
14223 ac_cv_search_pthread_rwlock_init=no
14224fi
14225rm conftest.$ac_ext
14226LIBS=$ac_func_search_save_LIBS
14227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014228{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14229echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014230ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014231if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234cat >>confdefs.h <<\_ACEOF
14235#define HAVE_PTHREAD_RWLOCK_INIT 1
14236_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014237
14238fi
14239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14241echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14242if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014244else
14245 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014246cat >conftest.$ac_ext <<_ACEOF
14247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014251/* end confdefs.h. */
14252
14253/* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14256#ifdef __cplusplus
14257extern "C"
14258#endif
14259char pthread_getspecific ();
14260int
14261main ()
14262{
14263return pthread_getspecific ();
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268for ac_lib in '' pthread; do
14269 if test -z "$ac_lib"; then
14270 ac_res="none required"
14271 else
14272 ac_res=-l$ac_lib
14273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14274 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275 rm -f conftest.$ac_objext conftest$ac_exeext
14276if { (ac_try="$ac_link"
14277case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_link") 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest$ac_exeext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014309 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014310else
14311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314
Owen Anderson27fcfe12009-06-25 23:10:26 +000014315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316
Owen Anderson27fcfe12009-06-25 23:10:26 +000014317rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318 conftest$ac_exeext
14319 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014320 break
14321fi
14322done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014323if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14324 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014325else
14326 ac_cv_search_pthread_getspecific=no
14327fi
14328rm conftest.$ac_ext
14329LIBS=$ac_func_search_save_LIBS
14330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14332echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014333ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337cat >>confdefs.h <<\_ACEOF
14338#define HAVE_PTHREAD_GETSPECIFIC 1
14339_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014340
14341fi
14342
Reid Spencer0a262ba2005-08-24 10:07:20 +000014343fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014345
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014346# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014348 withval=$with_udis86;
14349 USE_UDIS86=1
14350
14351 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014352 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014353 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14354 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355
14356{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14357echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14358if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014360else
14361 ac_check_lib_save_LIBS=$LIBS
14362LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014363cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014368/* end confdefs.h. */
14369
14370/* Override any GCC internal prototype to avoid an error.
14371 Use char because int might match the return type of a GCC
14372 builtin and then its argument prototype would still apply. */
14373#ifdef __cplusplus
14374extern "C"
14375#endif
14376char ud_init ();
14377int
14378main ()
14379{
14380return ud_init ();
14381 ;
14382 return 0;
14383}
14384_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014385rm -f conftest.$ac_objext conftest$ac_exeext
14386if { (ac_try="$ac_link"
14387case "(($ac_try" in
14388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14390esac
14391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_link") 2>conftest.er1
14393 ac_status=$?
14394 grep -v '^ *+' conftest.er1 >conftest.err
14395 rm -f conftest.er1
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14400 { (case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14403esac
14404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_try") 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try='test -s conftest$ac_exeext'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014419 ac_cv_lib_udis86_ud_init=yes
14420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014421 echo "$as_me: failed program was:" >&5
14422sed 's/^/| /' conftest.$ac_ext >&5
14423
14424 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014426
Bill Wendlingebcceee2009-04-18 11:20:33 +000014427rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014428 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014429LIBS=$ac_check_lib_save_LIBS
14430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014431{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14432echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14433if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014434 cat >>confdefs.h <<_ACEOF
14435#define HAVE_LIBUDIS86 1
14436_ACEOF
14437
14438 LIBS="-ludis86 $LIBS"
14439
14440else
14441
14442 echo "Error! You need to have libudis86 around."
14443 exit -1
14444
14445fi
14446
14447
14448else
14449 USE_UDIS86=0
14450
14451fi
14452
14453
14454cat >>confdefs.h <<_ACEOF
14455#define USE_UDIS86 $USE_UDIS86
14456_ACEOF
14457
14458
14459
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014460# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014461if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014462 withval=$with_oprofile;
14463 USE_OPROFILE=1
14464
14465 case "$withval" in
14466 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014467 no) llvm_cv_oppath=
14468 USE_OPROFILE=0
14469 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014470 *) llvm_cv_oppath="${withval}/lib/oprofile"
14471 CPPFLAGS="-I${withval}/include";;
14472 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014473 if test -n "$llvm_cv_oppath" ; then
14474 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014475 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14476echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14477if test "${ac_cv_search_bfd_init+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014479else
14480 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014481cat >conftest.$ac_ext <<_ACEOF
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014486/* end confdefs.h. */
14487
14488/* Override any GCC internal prototype to avoid an error.
14489 Use char because int might match the return type of a GCC
14490 builtin and then its argument prototype would still apply. */
14491#ifdef __cplusplus
14492extern "C"
14493#endif
14494char bfd_init ();
14495int
14496main ()
14497{
14498return bfd_init ();
14499 ;
14500 return 0;
14501}
14502_ACEOF
14503for ac_lib in '' bfd; do
14504 if test -z "$ac_lib"; then
14505 ac_res="none required"
14506 else
14507 ac_res=-l$ac_lib
14508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14509 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014510 rm -f conftest.$ac_objext conftest$ac_exeext
14511if { (ac_try="$ac_link"
14512case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14515esac
14516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14518 ac_status=$?
14519 grep -v '^ *+' conftest.er1 >conftest.err
14520 rm -f conftest.er1
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525 { (case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528esac
14529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14531 ac_status=$?
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest$ac_exeext'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538esac
14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014544 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014545else
14546 echo "$as_me: failed program was:" >&5
14547sed 's/^/| /' conftest.$ac_ext >&5
14548
14549
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014551
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014552rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014553 conftest$ac_exeext
14554 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014555 break
14556fi
14557done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558if test "${ac_cv_search_bfd_init+set}" = set; then
14559 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014560else
14561 ac_cv_search_bfd_init=no
14562fi
14563rm conftest.$ac_ext
14564LIBS=$ac_func_search_save_LIBS
14565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014566{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14567echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014568ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014569if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14571
14572fi
14573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014574 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14575echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14576if test "${ac_cv_search_op_open_agent+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014578else
14579 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014580cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014585/* end confdefs.h. */
14586
14587/* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14590#ifdef __cplusplus
14591extern "C"
14592#endif
14593char op_open_agent ();
14594int
14595main ()
14596{
14597return op_open_agent ();
14598 ;
14599 return 0;
14600}
14601_ACEOF
14602for ac_lib in '' opagent; do
14603 if test -z "$ac_lib"; then
14604 ac_res="none required"
14605 else
14606 ac_res=-l$ac_lib
14607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14608 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014609 rm -f conftest.$ac_objext conftest$ac_exeext
14610if { (ac_try="$ac_link"
14611case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14614esac
14615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_link") 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14624 { (case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14627esac
14628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } &&
14633 { ac_try='test -s conftest$ac_exeext'
14634 { (case "(($ac_try" in
14635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14637esac
14638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14640 ac_status=$?
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014643 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014644else
14645 echo "$as_me: failed program was:" >&5
14646sed 's/^/| /' conftest.$ac_ext >&5
14647
14648
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014650
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014651rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652 conftest$ac_exeext
14653 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014654 break
14655fi
14656done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014657if test "${ac_cv_search_op_open_agent+set}" = set; then
14658 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014659else
14660 ac_cv_search_op_open_agent=no
14661fi
14662rm conftest.$ac_ext
14663LIBS=$ac_func_search_save_LIBS
14664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014665{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14666echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014667ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14670
14671else
14672
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014673 echo "Error! You need to have libopagent around."
14674 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014675
14676fi
14677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014678 if test "${ac_cv_header_opagent_h+set}" = set; then
14679 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14680echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14681if test "${ac_cv_header_opagent_h+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683fi
14684{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14685echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14686else
14687 # Is the header compilable?
14688{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14689echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14690cat >conftest.$ac_ext <<_ACEOF
14691/* confdefs.h. */
14692_ACEOF
14693cat confdefs.h >>conftest.$ac_ext
14694cat >>conftest.$ac_ext <<_ACEOF
14695/* end confdefs.h. */
14696$ac_includes_default
14697#include <opagent.h>
14698_ACEOF
14699rm -f conftest.$ac_objext
14700if { (ac_try="$ac_compile"
14701case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14704esac
14705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_compile") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14714 { (case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717esac
14718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14720 ac_status=$?
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try='test -s conftest.$ac_objext'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14727esac
14728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14730 ac_status=$?
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14733 ac_header_compiler=yes
14734else
14735 echo "$as_me: failed program was:" >&5
14736sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014738 ac_header_compiler=no
14739fi
14740
14741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743echo "${ECHO_T}$ac_header_compiler" >&6; }
14744
14745# Is the header present?
14746{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14747echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14748cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754#include <opagent.h>
14755_ACEOF
14756if { (ac_try="$ac_cpp conftest.$ac_ext"
14757case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760esac
14761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } >/dev/null; then
14769 if test -s conftest.err; then
14770 ac_cpp_err=$ac_c_preproc_warn_flag
14771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14772 else
14773 ac_cpp_err=
14774 fi
14775else
14776 ac_cpp_err=yes
14777fi
14778if test -z "$ac_cpp_err"; then
14779 ac_header_preproc=yes
14780else
14781 echo "$as_me: failed program was:" >&5
14782sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 ac_header_preproc=no
14785fi
14786
14787rm -f conftest.err conftest.$ac_ext
14788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14789echo "${ECHO_T}$ac_header_preproc" >&6; }
14790
14791# So? What about this header?
14792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14793 yes:no: )
14794 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14795echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14797echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14798 ac_header_preproc=yes
14799 ;;
14800 no:yes:* )
14801 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14802echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14804echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14806echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14808echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14810echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14812echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14813 ( cat <<\_ASBOX
14814## ----------------------------------- ##
14815## Report this to llvmbugs@cs.uiuc.edu ##
14816## ----------------------------------- ##
14817_ASBOX
14818 ) | sed "s/^/$as_me: WARNING: /" >&2
14819 ;;
14820esac
14821{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14822echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14823if test "${ac_cv_header_opagent_h+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14825else
14826 ac_cv_header_opagent_h=$ac_header_preproc
14827fi
14828{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14829echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14830
14831fi
14832if test $ac_cv_header_opagent_h = yes; then
14833 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014834else
14835
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014836 echo "Error! You need to have opagent.h around."
14837 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014838
14839fi
14840
14841
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014842 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014843
14844else
14845
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014846 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014847
14848
14849fi
14850
14851
14852cat >>confdefs.h <<_ACEOF
14853#define USE_OPROFILE $USE_OPROFILE
14854_ACEOF
14855
14856
14857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014858
14859
14860
14861
14862
Reid Spencer59473af2004-12-25 07:31:29 +000014863ac_header_dirent=no
14864for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014865 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14866{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14867echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014871 cat >conftest.$ac_ext <<_ACEOF
14872/* confdefs.h. */
14873_ACEOF
14874cat confdefs.h >>conftest.$ac_ext
14875cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014876/* end confdefs.h. */
14877#include <sys/types.h>
14878#include <$ac_hdr>
14879
14880int
14881main ()
14882{
14883if ((DIR *) 0)
14884return 0;
14885 ;
14886 return 0;
14887}
14888_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014889rm -f conftest.$ac_objext
14890if { (ac_try="$ac_compile"
14891case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894esac
14895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_compile") 2>conftest.er1
14897 ac_status=$?
14898 grep -v '^ *+' conftest.er1 >conftest.err
14899 rm -f conftest.er1
14900 cat conftest.err >&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest.$ac_objext'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916 *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014923 eval "$as_ac_Header=yes"
14924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014925 echo "$as_me: failed program was:" >&5
14926sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014929fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014930
Reid Spencera773bd52006-08-04 18:18:08 +000014931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933ac_res=`eval echo '${'$as_ac_Header'}'`
14934 { echo "$as_me:$LINENO: result: $ac_res" >&5
14935echo "${ECHO_T}$ac_res" >&6; }
14936if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014937 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014938#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014939_ACEOF
14940
14941ac_header_dirent=$ac_hdr; break
14942fi
14943
14944done
14945# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14946if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014947 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14948echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14949if test "${ac_cv_search_opendir+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014951else
14952 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014953cat >conftest.$ac_ext <<_ACEOF
14954/* confdefs.h. */
14955_ACEOF
14956cat confdefs.h >>conftest.$ac_ext
14957cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014958/* end confdefs.h. */
14959
Reid Spencera773bd52006-08-04 18:18:08 +000014960/* Override any GCC internal prototype to avoid an error.
14961 Use char because int might match the return type of a GCC
14962 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014963#ifdef __cplusplus
14964extern "C"
14965#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014966char opendir ();
14967int
14968main ()
14969{
Reid Spencera773bd52006-08-04 18:18:08 +000014970return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014971 ;
14972 return 0;
14973}
14974_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014975for ac_lib in '' dir; do
14976 if test -z "$ac_lib"; then
14977 ac_res="none required"
14978 else
14979 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014981 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014982 rm -f conftest.$ac_objext conftest$ac_exeext
14983if { (ac_try="$ac_link"
14984case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14987esac
14988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_link") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
15001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest$ac_exeext'
15007 { (case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15010esac
15011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015016 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015017else
15018 echo "$as_me: failed program was:" >&5
15019sed 's/^/| /' conftest.$ac_ext >&5
15020
15021
Reid Spencer59473af2004-12-25 07:31:29 +000015022fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015023
Bill Wendlingebcceee2009-04-18 11:20:33 +000015024rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015025 conftest$ac_exeext
15026 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015027 break
Reid Spencer59473af2004-12-25 07:31:29 +000015028fi
Reid Spencera773bd52006-08-04 18:18:08 +000015029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015030if test "${ac_cv_search_opendir+set}" = set; then
15031 :
Reid Spencera773bd52006-08-04 18:18:08 +000015032else
15033 ac_cv_search_opendir=no
15034fi
15035rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015036LIBS=$ac_func_search_save_LIBS
15037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015038{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15039echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015040ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015043
15044fi
15045
15046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15048echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15049if test "${ac_cv_search_opendir+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015051else
15052 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015053cat >conftest.$ac_ext <<_ACEOF
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015058/* end confdefs.h. */
15059
Reid Spencera773bd52006-08-04 18:18:08 +000015060/* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015063#ifdef __cplusplus
15064extern "C"
15065#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015066char opendir ();
15067int
15068main ()
15069{
Reid Spencera773bd52006-08-04 18:18:08 +000015070return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015071 ;
15072 return 0;
15073}
15074_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015075for ac_lib in '' x; do
15076 if test -z "$ac_lib"; then
15077 ac_res="none required"
15078 else
15079 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015081 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015082 rm -f conftest.$ac_objext conftest$ac_exeext
15083if { (ac_try="$ac_link"
15084case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087esac
15088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100esac
15101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest$ac_exeext'
15107 { (case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_try") 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015116 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015117else
15118 echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121
Reid Spencer59473af2004-12-25 07:31:29 +000015122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015123
Bill Wendlingebcceee2009-04-18 11:20:33 +000015124rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015125 conftest$ac_exeext
15126 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015127 break
Reid Spencer59473af2004-12-25 07:31:29 +000015128fi
Reid Spencera773bd52006-08-04 18:18:08 +000015129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015130if test "${ac_cv_search_opendir+set}" = set; then
15131 :
Reid Spencera773bd52006-08-04 18:18:08 +000015132else
15133 ac_cv_search_opendir=no
15134fi
15135rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015136LIBS=$ac_func_search_save_LIBS
15137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015138{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15139echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015140ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015141if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015143
15144fi
15145
15146fi
15147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15149echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15150if test "${ac_cv_header_mmap_anon+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015152else
15153 ac_ext=c
15154ac_cpp='$CPP $CPPFLAGS'
15155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15157ac_compiler_gnu=$ac_cv_c_compiler_gnu
15158
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159 cat >conftest.$ac_ext <<_ACEOF
15160/* confdefs.h. */
15161_ACEOF
15162cat confdefs.h >>conftest.$ac_ext
15163cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015164/* end confdefs.h. */
15165#include <sys/mman.h>
15166#include <unistd.h>
15167#include <fcntl.h>
15168int
15169main ()
15170{
15171mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15172 ;
15173 return 0;
15174}
15175_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176rm -f conftest.$ac_objext
15177if { (ac_try="$ac_compile"
15178case "(($ac_try" in
15179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180 *) ac_try_echo=$ac_try;;
15181esac
15182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_compile") 2>conftest.er1
15184 ac_status=$?
15185 grep -v '^ *+' conftest.er1 >conftest.err
15186 rm -f conftest.er1
15187 cat conftest.err >&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15194esac
15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15197 ac_status=$?
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest.$ac_objext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15207 ac_status=$?
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015210 ac_cv_header_mmap_anon=yes
15211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015212 echo "$as_me: failed program was:" >&5
15213sed 's/^/| /' conftest.$ac_ext >&5
15214
15215 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015217
Reid Spencera773bd52006-08-04 18:18:08 +000015218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015219 ac_ext=c
15220ac_cpp='$CPP $CPPFLAGS'
15221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15223ac_compiler_gnu=$ac_cv_c_compiler_gnu
15224
15225
15226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015227{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15228echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015229if test "$ac_cv_header_mmap_anon" = yes; then
15230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015231cat >>confdefs.h <<\_ACEOF
15232#define HAVE_MMAP_ANONYMOUS 1
15233_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015234
15235fi
15236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015237{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15238echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15239if test "${ac_cv_header_stat_broken+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015242 cat >conftest.$ac_ext <<_ACEOF
15243/* confdefs.h. */
15244_ACEOF
15245cat confdefs.h >>conftest.$ac_ext
15246cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015247/* end confdefs.h. */
15248#include <sys/types.h>
15249#include <sys/stat.h>
15250
Reid Spencera773bd52006-08-04 18:18:08 +000015251#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015252# if S_ISBLK (S_IFDIR)
15253You lose.
15254# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015255#endif
15256
Reid Spencera773bd52006-08-04 18:18:08 +000015257#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015258# if S_ISBLK (S_IFCHR)
15259You lose.
15260# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015261#endif
15262
Reid Spencera773bd52006-08-04 18:18:08 +000015263#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015264# if S_ISLNK (S_IFREG)
15265You lose.
15266# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015267#endif
15268
Reid Spencera773bd52006-08-04 18:18:08 +000015269#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015270# if S_ISSOCK (S_IFREG)
15271You lose.
15272# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015273#endif
15274
15275_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15277 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015278 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015279else
15280 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015281fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015282rm -f conftest*
15283
Reid Spencer59473af2004-12-25 07:31:29 +000015284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015285{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15286echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015287if test $ac_cv_header_stat_broken = yes; then
15288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015289cat >>confdefs.h <<\_ACEOF
15290#define STAT_MACROS_BROKEN 1
15291_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015292
15293fi
15294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015295{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15296echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15297if test "${ac_cv_header_stdc+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015300 cat >conftest.$ac_ext <<_ACEOF
15301/* confdefs.h. */
15302_ACEOF
15303cat confdefs.h >>conftest.$ac_ext
15304cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015306#include <stdlib.h>
15307#include <stdarg.h>
15308#include <string.h>
15309#include <float.h>
15310
John Criswell0c38eaf2003-09-10 15:17:25 +000015311int
15312main ()
15313{
15314
15315 ;
15316 return 0;
15317}
John Criswell7a73b802003-06-30 21:59:07 +000015318_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015319rm -f conftest.$ac_objext
15320if { (ac_try="$ac_compile"
15321case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15324esac
15325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_compile") 2>conftest.er1
15327 ac_status=$?
15328 grep -v '^ *+' conftest.er1 >conftest.err
15329 rm -f conftest.er1
15330 cat conftest.err >&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334 { (case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337esac
15338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_try") 2>&5
15340 ac_status=$?
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346 *) ac_try_echo=$ac_try;;
15347esac
15348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015353 ac_cv_header_stdc=yes
15354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015355 echo "$as_me: failed program was:" >&5
15356sed 's/^/| /' conftest.$ac_ext >&5
15357
15358 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015360
Reid Spencera773bd52006-08-04 18:18:08 +000015361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015362
15363if test $ac_cv_header_stdc = yes; then
15364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015365 cat >conftest.$ac_ext <<_ACEOF
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015371#include <string.h>
15372
15373_ACEOF
15374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015375 $EGREP "memchr" >/dev/null 2>&1; then
15376 :
John Criswell7a73b802003-06-30 21:59:07 +000015377else
15378 ac_cv_header_stdc=no
15379fi
15380rm -f conftest*
15381
15382fi
15383
15384if test $ac_cv_header_stdc = yes; then
15385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015386 cat >conftest.$ac_ext <<_ACEOF
15387/* confdefs.h. */
15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015392#include <stdlib.h>
15393
15394_ACEOF
15395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015396 $EGREP "free" >/dev/null 2>&1; then
15397 :
John Criswell7a73b802003-06-30 21:59:07 +000015398else
15399 ac_cv_header_stdc=no
15400fi
15401rm -f conftest*
15402
15403fi
15404
15405if test $ac_cv_header_stdc = yes; then
15406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015407 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015408 :
15409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015410 cat >conftest.$ac_ext <<_ACEOF
15411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015416#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015417#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015418#if ((' ' & 0x0FF) == 0x020)
15419# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15420# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15421#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015422# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015423 (('a' <= (c) && (c) <= 'i') \
15424 || ('j' <= (c) && (c) <= 'r') \
15425 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015426# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15427#endif
15428
15429#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15430int
15431main ()
15432{
15433 int i;
15434 for (i = 0; i < 256; i++)
15435 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015436 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015437 return 2;
15438 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015439}
15440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015441rm -f conftest$ac_exeext
15442if { (ac_try="$ac_link"
15443case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446esac
15447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>&5
15449 ac_status=$?
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15452 { (case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_try") 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 :
John Criswell7a73b802003-06-30 21:59:07 +000015462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015463 echo "$as_me: program exited with status $ac_status" >&5
15464echo "$as_me: failed program was:" >&5
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
15467( exit $ac_status )
15468ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015470rm -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 +000015471fi
15472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015473
John Criswell7a73b802003-06-30 21:59:07 +000015474fi
15475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015476{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15477echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015478if test $ac_cv_header_stdc = yes; then
15479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015480cat >>confdefs.h <<\_ACEOF
15481#define STDC_HEADERS 1
15482_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015483
15484fi
15485
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015486{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15487echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15488if test "${ac_cv_header_sys_wait_h+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015491 cat >conftest.$ac_ext <<_ACEOF
15492/* confdefs.h. */
15493_ACEOF
15494cat confdefs.h >>conftest.$ac_ext
15495cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015496/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015497#include <sys/types.h>
15498#include <sys/wait.h>
15499#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015500# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015501#endif
15502#ifndef WIFEXITED
15503# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15504#endif
15505
John Criswell7a73b802003-06-30 21:59:07 +000015506int
15507main ()
15508{
15509 int s;
15510 wait (&s);
15511 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15512 ;
15513 return 0;
15514}
15515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015516rm -f conftest.$ac_objext
15517if { (ac_try="$ac_compile"
15518case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521esac
15522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15524 ac_status=$?
15525 grep -v '^ *+' conftest.er1 >conftest.err
15526 rm -f conftest.er1
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534esac
15535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15544esac
15545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015550 ac_cv_header_sys_wait_h=yes
15551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015552 echo "$as_me: failed program was:" >&5
15553sed 's/^/| /' conftest.$ac_ext >&5
15554
15555 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557
Reid Spencera773bd52006-08-04 18:18:08 +000015558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015560{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15561echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015562if test $ac_cv_header_sys_wait_h = yes; then
15563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015564cat >>confdefs.h <<\_ACEOF
15565#define HAVE_SYS_WAIT_H 1
15566_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015567
15568fi
15569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015570{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15571echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15572if test "${ac_cv_header_time+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015575 cat >conftest.$ac_ext <<_ACEOF
15576/* confdefs.h. */
15577_ACEOF
15578cat confdefs.h >>conftest.$ac_ext
15579cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015580/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015581#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015582#include <sys/time.h>
15583#include <time.h>
15584
15585int
15586main ()
15587{
15588if ((struct tm *) 0)
15589return 0;
15590 ;
15591 return 0;
15592}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015593_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015594rm -f conftest.$ac_objext
15595if { (ac_try="$ac_compile"
15596case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15599esac
15600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_compile") 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15609 { (case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612esac
15613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_try") 2>&5
15615 ac_status=$?
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_try") 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015628 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015630 echo "$as_me: failed program was:" >&5
15631sed 's/^/| /' conftest.$ac_ext >&5
15632
15633 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015635
Reid Spencera773bd52006-08-04 18:18:08 +000015636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015637fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015638{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15639echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015640if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015642cat >>confdefs.h <<\_ACEOF
15643#define TIME_WITH_SYS_TIME 1
15644_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015645
15646fi
15647
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015649
15650
15651
15652
15653
15654
Reid Spencer59473af2004-12-25 07:31:29 +000015655for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015656do
15657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663fi
15664ac_res=`eval echo '${'$as_ac_Header'}'`
15665 { echo "$as_me:$LINENO: result: $ac_res" >&5
15666echo "${ECHO_T}$ac_res" >&6; }
15667else
15668 # Is the header compilable?
15669{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15670echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15671cat >conftest.$ac_ext <<_ACEOF
15672/* confdefs.h. */
15673_ACEOF
15674cat confdefs.h >>conftest.$ac_ext
15675cat >>conftest.$ac_ext <<_ACEOF
15676/* end confdefs.h. */
15677$ac_includes_default
15678#include <$ac_header>
15679_ACEOF
15680rm -f conftest.$ac_objext
15681if { (ac_try="$ac_compile"
15682case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685esac
15686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_compile") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698esac
15699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15701 ac_status=$?
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try='test -s conftest.$ac_objext'
15705 { (case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708esac
15709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_header_compiler=yes
15715else
15716 echo "$as_me: failed program was:" >&5
15717sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_header_compiler=no
15720fi
15721
15722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724echo "${ECHO_T}$ac_header_compiler" >&6; }
15725
15726# Is the header present?
15727{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15729cat >conftest.$ac_ext <<_ACEOF
15730/* confdefs.h. */
15731_ACEOF
15732cat confdefs.h >>conftest.$ac_ext
15733cat >>conftest.$ac_ext <<_ACEOF
15734/* end confdefs.h. */
15735#include <$ac_header>
15736_ACEOF
15737if { (ac_try="$ac_cpp conftest.$ac_ext"
15738case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741esac
15742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } >/dev/null; then
15750 if test -s conftest.err; then
15751 ac_cpp_err=$ac_c_preproc_warn_flag
15752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15753 else
15754 ac_cpp_err=
15755 fi
15756else
15757 ac_cpp_err=yes
15758fi
15759if test -z "$ac_cpp_err"; then
15760 ac_header_preproc=yes
15761else
15762 echo "$as_me: failed program was:" >&5
15763sed 's/^/| /' conftest.$ac_ext >&5
15764
15765 ac_header_preproc=no
15766fi
15767
15768rm -f conftest.err conftest.$ac_ext
15769{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15770echo "${ECHO_T}$ac_header_preproc" >&6; }
15771
15772# So? What about this header?
15773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15774 yes:no: )
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15776echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15778echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15779 ac_header_preproc=yes
15780 ;;
15781 no:yes:* )
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15783echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15785echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15787echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15789echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15793echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15794 ( cat <<\_ASBOX
15795## ----------------------------------- ##
15796## Report this to llvmbugs@cs.uiuc.edu ##
15797## ----------------------------------- ##
15798_ASBOX
15799 ) | sed "s/^/$as_me: WARNING: /" >&2
15800 ;;
15801esac
15802{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15806else
15807 eval "$as_ac_Header=\$ac_header_preproc"
15808fi
15809ac_res=`eval echo '${'$as_ac_Header'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811echo "${ECHO_T}$ac_res" >&6; }
15812
15813fi
15814if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015815 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015817_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015818
15819fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015820
Reid Spencer59473af2004-12-25 07:31:29 +000015821done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015823
15824
15825
15826
15827
15828
Douglas Gregor071d73d2009-05-18 17:21:34 +000015829for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015830do
15831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15837fi
15838ac_res=`eval echo '${'$as_ac_Header'}'`
15839 { echo "$as_me:$LINENO: result: $ac_res" >&5
15840echo "${ECHO_T}$ac_res" >&6; }
15841else
15842 # Is the header compilable?
15843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15845cat >conftest.$ac_ext <<_ACEOF
15846/* confdefs.h. */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
15851$ac_includes_default
15852#include <$ac_header>
15853_ACEOF
15854rm -f conftest.$ac_objext
15855if { (ac_try="$ac_compile"
15856case "(($ac_try" in
15857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15859esac
15860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_compile") 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15869 { (case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15872esac
15873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_try") 2>&5
15875 ac_status=$?
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try='test -s conftest.$ac_objext'
15879 { (case "(($ac_try" in
15880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15882esac
15883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_try") 2>&5
15885 ac_status=$?
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_header_compiler=yes
15889else
15890 echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_header_compiler=no
15894fi
15895
15896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898echo "${ECHO_T}$ac_header_compiler" >&6; }
15899
15900# Is the header present?
15901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15903cat >conftest.$ac_ext <<_ACEOF
15904/* confdefs.h. */
15905_ACEOF
15906cat confdefs.h >>conftest.$ac_ext
15907cat >>conftest.$ac_ext <<_ACEOF
15908/* end confdefs.h. */
15909#include <$ac_header>
15910_ACEOF
15911if { (ac_try="$ac_cpp conftest.$ac_ext"
15912case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15915esac
15916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15918 ac_status=$?
15919 grep -v '^ *+' conftest.er1 >conftest.err
15920 rm -f conftest.er1
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } >/dev/null; then
15924 if test -s conftest.err; then
15925 ac_cpp_err=$ac_c_preproc_warn_flag
15926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15927 else
15928 ac_cpp_err=
15929 fi
15930else
15931 ac_cpp_err=yes
15932fi
15933if test -z "$ac_cpp_err"; then
15934 ac_header_preproc=yes
15935else
15936 echo "$as_me: failed program was:" >&5
15937sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 ac_header_preproc=no
15940fi
15941
15942rm -f conftest.err conftest.$ac_ext
15943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15944echo "${ECHO_T}$ac_header_preproc" >&6; }
15945
15946# So? What about this header?
15947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15948 yes:no: )
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15953 ac_header_preproc=yes
15954 ;;
15955 no:yes:* )
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15968 ( cat <<\_ASBOX
15969## ----------------------------------- ##
15970## Report this to llvmbugs@cs.uiuc.edu ##
15971## ----------------------------------- ##
15972_ASBOX
15973 ) | sed "s/^/$as_me: WARNING: /" >&2
15974 ;;
15975esac
15976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15980else
15981 eval "$as_ac_Header=\$ac_header_preproc"
15982fi
15983ac_res=`eval echo '${'$as_ac_Header'}'`
15984 { echo "$as_me:$LINENO: result: $ac_res" >&5
15985echo "${ECHO_T}$ac_res" >&6; }
15986
15987fi
15988if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015989 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015991_ACEOF
15992
15993fi
15994
15995done
15996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015997
15998
Douglas Gregor071d73d2009-05-18 17:21:34 +000015999for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016000do
16001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007fi
16008ac_res=`eval echo '${'$as_ac_Header'}'`
16009 { echo "$as_me:$LINENO: result: $ac_res" >&5
16010echo "${ECHO_T}$ac_res" >&6; }
16011else
16012 # Is the header compilable?
16013{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16015cat >conftest.$ac_ext <<_ACEOF
16016/* confdefs.h. */
16017_ACEOF
16018cat confdefs.h >>conftest.$ac_ext
16019cat >>conftest.$ac_ext <<_ACEOF
16020/* end confdefs.h. */
16021$ac_includes_default
16022#include <$ac_header>
16023_ACEOF
16024rm -f conftest.$ac_objext
16025if { (ac_try="$ac_compile"
16026case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16029esac
16030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_compile") 2>conftest.er1
16032 ac_status=$?
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039 { (case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16042esac
16043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_try") 2>&5
16045 ac_status=$?
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try='test -s conftest.$ac_objext'
16049 { (case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16052esac
16053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_header_compiler=yes
16059else
16060 echo "$as_me: failed program was:" >&5
16061sed 's/^/| /' conftest.$ac_ext >&5
16062
16063 ac_header_compiler=no
16064fi
16065
16066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068echo "${ECHO_T}$ac_header_compiler" >&6; }
16069
16070# Is the header present?
16071{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16073cat >conftest.$ac_ext <<_ACEOF
16074/* confdefs.h. */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h. */
16079#include <$ac_header>
16080_ACEOF
16081if { (ac_try="$ac_cpp conftest.$ac_ext"
16082case "(($ac_try" in
16083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084 *) ac_try_echo=$ac_try;;
16085esac
16086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16088 ac_status=$?
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } >/dev/null; then
16094 if test -s conftest.err; then
16095 ac_cpp_err=$ac_c_preproc_warn_flag
16096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16097 else
16098 ac_cpp_err=
16099 fi
16100else
16101 ac_cpp_err=yes
16102fi
16103if test -z "$ac_cpp_err"; then
16104 ac_header_preproc=yes
16105else
16106 echo "$as_me: failed program was:" >&5
16107sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 ac_header_preproc=no
16110fi
16111
16112rm -f conftest.err conftest.$ac_ext
16113{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114echo "${ECHO_T}$ac_header_preproc" >&6; }
16115
16116# So? What about this header?
16117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118 yes:no: )
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16124 ;;
16125 no:yes:* )
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138 ( cat <<\_ASBOX
16139## ----------------------------------- ##
16140## Report this to llvmbugs@cs.uiuc.edu ##
16141## ----------------------------------- ##
16142_ASBOX
16143 ) | sed "s/^/$as_me: WARNING: /" >&2
16144 ;;
16145esac
16146{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16150else
16151 eval "$as_ac_Header=\$ac_header_preproc"
16152fi
16153ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155echo "${ECHO_T}$ac_res" >&6; }
16156
16157fi
16158if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016159 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016161_ACEOF
16162
16163fi
16164
16165done
Reid Spencer59473af2004-12-25 07:31:29 +000016166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016167
16168
16169
16170
Reid Spencerbe3e4192007-08-17 05:45:26 +000016171for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016172do
16173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16177if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16179fi
16180ac_res=`eval echo '${'$as_ac_Header'}'`
16181 { echo "$as_me:$LINENO: result: $ac_res" >&5
16182echo "${ECHO_T}$ac_res" >&6; }
16183else
16184 # Is the header compilable?
16185{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16186echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16187cat >conftest.$ac_ext <<_ACEOF
16188/* confdefs.h. */
16189_ACEOF
16190cat confdefs.h >>conftest.$ac_ext
16191cat >>conftest.$ac_ext <<_ACEOF
16192/* end confdefs.h. */
16193$ac_includes_default
16194#include <$ac_header>
16195_ACEOF
16196rm -f conftest.$ac_objext
16197if { (ac_try="$ac_compile"
16198case "(($ac_try" in
16199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16201esac
16202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_compile") 2>conftest.er1
16204 ac_status=$?
16205 grep -v '^ *+' conftest.er1 >conftest.err
16206 rm -f conftest.er1
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16211 { (case "(($ac_try" in
16212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213 *) ac_try_echo=$ac_try;;
16214esac
16215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_try") 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224esac
16225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_try") 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_header_compiler=yes
16231else
16232 echo "$as_me: failed program was:" >&5
16233sed 's/^/| /' conftest.$ac_ext >&5
16234
16235 ac_header_compiler=no
16236fi
16237
16238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16240echo "${ECHO_T}$ac_header_compiler" >&6; }
16241
16242# Is the header present?
16243{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16245cat >conftest.$ac_ext <<_ACEOF
16246/* confdefs.h. */
16247_ACEOF
16248cat confdefs.h >>conftest.$ac_ext
16249cat >>conftest.$ac_ext <<_ACEOF
16250/* end confdefs.h. */
16251#include <$ac_header>
16252_ACEOF
16253if { (ac_try="$ac_cpp conftest.$ac_ext"
16254case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16257esac
16258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } >/dev/null; then
16266 if test -s conftest.err; then
16267 ac_cpp_err=$ac_c_preproc_warn_flag
16268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16269 else
16270 ac_cpp_err=
16271 fi
16272else
16273 ac_cpp_err=yes
16274fi
16275if test -z "$ac_cpp_err"; then
16276 ac_header_preproc=yes
16277else
16278 echo "$as_me: failed program was:" >&5
16279sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 ac_header_preproc=no
16282fi
16283
16284rm -f conftest.err conftest.$ac_ext
16285{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16286echo "${ECHO_T}$ac_header_preproc" >&6; }
16287
16288# So? What about this header?
16289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16290 yes:no: )
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16295 ac_header_preproc=yes
16296 ;;
16297 no:yes:* )
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16310 ( cat <<\_ASBOX
16311## ----------------------------------- ##
16312## Report this to llvmbugs@cs.uiuc.edu ##
16313## ----------------------------------- ##
16314_ASBOX
16315 ) | sed "s/^/$as_me: WARNING: /" >&2
16316 ;;
16317esac
16318{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16322else
16323 eval "$as_ac_Header=\$ac_header_preproc"
16324fi
16325ac_res=`eval echo '${'$as_ac_Header'}'`
16326 { echo "$as_me:$LINENO: result: $ac_res" >&5
16327echo "${ECHO_T}$ac_res" >&6; }
16328
16329fi
16330if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016331 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016333_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016334
16335fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016336
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016337done
16338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016339
16340
16341
16342
Douglas Gregor01746742009-05-11 18:05:52 +000016343for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016344do
16345as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16348echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16351fi
16352ac_res=`eval echo '${'$as_ac_Header'}'`
16353 { echo "$as_me:$LINENO: result: $ac_res" >&5
16354echo "${ECHO_T}$ac_res" >&6; }
16355else
16356 # Is the header compilable?
16357{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16359cat >conftest.$ac_ext <<_ACEOF
16360/* confdefs.h. */
16361_ACEOF
16362cat confdefs.h >>conftest.$ac_ext
16363cat >>conftest.$ac_ext <<_ACEOF
16364/* end confdefs.h. */
16365$ac_includes_default
16366#include <$ac_header>
16367_ACEOF
16368rm -f conftest.$ac_objext
16369if { (ac_try="$ac_compile"
16370case "(($ac_try" in
16371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16373esac
16374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383 { (case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16386esac
16387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_try") 2>&5
16389 ac_status=$?
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try='test -s conftest.$ac_objext'
16393 { (case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396esac
16397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_header_compiler=yes
16403else
16404 echo "$as_me: failed program was:" >&5
16405sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ac_header_compiler=no
16408fi
16409
16410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16412echo "${ECHO_T}$ac_header_compiler" >&6; }
16413
16414# Is the header present?
16415{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16416echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16417cat >conftest.$ac_ext <<_ACEOF
16418/* confdefs.h. */
16419_ACEOF
16420cat confdefs.h >>conftest.$ac_ext
16421cat >>conftest.$ac_ext <<_ACEOF
16422/* end confdefs.h. */
16423#include <$ac_header>
16424_ACEOF
16425if { (ac_try="$ac_cpp conftest.$ac_ext"
16426case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16429esac
16430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } >/dev/null; then
16438 if test -s conftest.err; then
16439 ac_cpp_err=$ac_c_preproc_warn_flag
16440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16441 else
16442 ac_cpp_err=
16443 fi
16444else
16445 ac_cpp_err=yes
16446fi
16447if test -z "$ac_cpp_err"; then
16448 ac_header_preproc=yes
16449else
16450 echo "$as_me: failed program was:" >&5
16451sed 's/^/| /' conftest.$ac_ext >&5
16452
16453 ac_header_preproc=no
16454fi
16455
16456rm -f conftest.err conftest.$ac_ext
16457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458echo "${ECHO_T}$ac_header_preproc" >&6; }
16459
16460# So? What about this header?
16461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16462 yes:no: )
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467 ac_header_preproc=yes
16468 ;;
16469 no:yes:* )
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16473echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16477echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16482 ( cat <<\_ASBOX
16483## ----------------------------------- ##
16484## Report this to llvmbugs@cs.uiuc.edu ##
16485## ----------------------------------- ##
16486_ASBOX
16487 ) | sed "s/^/$as_me: WARNING: /" >&2
16488 ;;
16489esac
16490{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494else
16495 eval "$as_ac_Header=\$ac_header_preproc"
16496fi
16497ac_res=`eval echo '${'$as_ac_Header'}'`
16498 { echo "$as_me:$LINENO: result: $ac_res" >&5
16499echo "${ECHO_T}$ac_res" >&6; }
16500
16501fi
16502if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016503 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016505_ACEOF
16506
16507fi
16508
16509done
16510
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016511
16512for ac_header in valgrind/valgrind.h
16513do
16514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16515if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520fi
16521ac_res=`eval echo '${'$as_ac_Header'}'`
16522 { echo "$as_me:$LINENO: result: $ac_res" >&5
16523echo "${ECHO_T}$ac_res" >&6; }
16524else
16525 # Is the header compilable?
16526{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16527echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16528cat >conftest.$ac_ext <<_ACEOF
16529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
16534$ac_includes_default
16535#include <$ac_header>
16536_ACEOF
16537rm -f conftest.$ac_objext
16538if { (ac_try="$ac_compile"
16539case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555esac
16556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try='test -s conftest.$ac_objext'
16562 { (case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16565esac
16566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_header_compiler=yes
16572else
16573 echo "$as_me: failed program was:" >&5
16574sed 's/^/| /' conftest.$ac_ext >&5
16575
16576 ac_header_compiler=no
16577fi
16578
16579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16581echo "${ECHO_T}$ac_header_compiler" >&6; }
16582
16583# Is the header present?
16584{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16585echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16586cat >conftest.$ac_ext <<_ACEOF
16587/* confdefs.h. */
16588_ACEOF
16589cat confdefs.h >>conftest.$ac_ext
16590cat >>conftest.$ac_ext <<_ACEOF
16591/* end confdefs.h. */
16592#include <$ac_header>
16593_ACEOF
16594if { (ac_try="$ac_cpp conftest.$ac_ext"
16595case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16598esac
16599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16601 ac_status=$?
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -f conftest.er1
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } >/dev/null; then
16607 if test -s conftest.err; then
16608 ac_cpp_err=$ac_c_preproc_warn_flag
16609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16610 else
16611 ac_cpp_err=
16612 fi
16613else
16614 ac_cpp_err=yes
16615fi
16616if test -z "$ac_cpp_err"; then
16617 ac_header_preproc=yes
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622 ac_header_preproc=no
16623fi
16624
16625rm -f conftest.err conftest.$ac_ext
16626{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16627echo "${ECHO_T}$ac_header_preproc" >&6; }
16628
16629# So? What about this header?
16630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16631 yes:no: )
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16633echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16635echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16636 ac_header_preproc=yes
16637 ;;
16638 no:yes:* )
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16642echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16644echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16646echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16650echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16651 ( cat <<\_ASBOX
16652## ----------------------------------- ##
16653## Report this to llvmbugs@cs.uiuc.edu ##
16654## ----------------------------------- ##
16655_ASBOX
16656 ) | sed "s/^/$as_me: WARNING: /" >&2
16657 ;;
16658esac
16659{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16663else
16664 eval "$as_ac_Header=\$ac_header_preproc"
16665fi
16666ac_res=`eval echo '${'$as_ac_Header'}'`
16667 { echo "$as_me:$LINENO: result: $ac_res" >&5
16668echo "${ECHO_T}$ac_res" >&6; }
16669
16670fi
16671if test `eval echo '${'$as_ac_Header'}'` = yes; then
16672 cat >>confdefs.h <<_ACEOF
16673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16674_ACEOF
16675
16676fi
16677
16678done
16679
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016680
16681for ac_header in fenv.h
16682do
16683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16687if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689fi
16690ac_res=`eval echo '${'$as_ac_Header'}'`
16691 { echo "$as_me:$LINENO: result: $ac_res" >&5
16692echo "${ECHO_T}$ac_res" >&6; }
16693else
16694 # Is the header compilable?
16695{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16697cat >conftest.$ac_ext <<_ACEOF
16698/* confdefs.h. */
16699_ACEOF
16700cat confdefs.h >>conftest.$ac_ext
16701cat >>conftest.$ac_ext <<_ACEOF
16702/* end confdefs.h. */
16703$ac_includes_default
16704#include <$ac_header>
16705_ACEOF
16706rm -f conftest.$ac_objext
16707if { (ac_try="$ac_compile"
16708case "(($ac_try" in
16709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16711esac
16712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_compile") 2>conftest.er1
16714 ac_status=$?
16715 grep -v '^ *+' conftest.er1 >conftest.err
16716 rm -f conftest.er1
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721 { (case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16724esac
16725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_try") 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest.$ac_objext'
16731 { (case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_header_compiler=yes
16741else
16742 echo "$as_me: failed program was:" >&5
16743sed 's/^/| /' conftest.$ac_ext >&5
16744
16745 ac_header_compiler=no
16746fi
16747
16748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750echo "${ECHO_T}$ac_header_compiler" >&6; }
16751
16752# Is the header present?
16753{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16755cat >conftest.$ac_ext <<_ACEOF
16756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
16761#include <$ac_header>
16762_ACEOF
16763if { (ac_try="$ac_cpp conftest.$ac_ext"
16764case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16767esac
16768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16770 ac_status=$?
16771 grep -v '^ *+' conftest.er1 >conftest.err
16772 rm -f conftest.er1
16773 cat conftest.err >&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } >/dev/null; then
16776 if test -s conftest.err; then
16777 ac_cpp_err=$ac_c_preproc_warn_flag
16778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16779 else
16780 ac_cpp_err=
16781 fi
16782else
16783 ac_cpp_err=yes
16784fi
16785if test -z "$ac_cpp_err"; then
16786 ac_header_preproc=yes
16787else
16788 echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791 ac_header_preproc=no
16792fi
16793
16794rm -f conftest.err conftest.$ac_ext
16795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16796echo "${ECHO_T}$ac_header_preproc" >&6; }
16797
16798# So? What about this header?
16799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16800 yes:no: )
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16805 ac_header_preproc=yes
16806 ;;
16807 no:yes:* )
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16820 ( cat <<\_ASBOX
16821## ----------------------------------- ##
16822## Report this to llvmbugs@cs.uiuc.edu ##
16823## ----------------------------------- ##
16824_ASBOX
16825 ) | sed "s/^/$as_me: WARNING: /" >&2
16826 ;;
16827esac
16828{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832else
16833 eval "$as_ac_Header=\$ac_header_preproc"
16834fi
16835ac_res=`eval echo '${'$as_ac_Header'}'`
16836 { echo "$as_me:$LINENO: result: $ac_res" >&5
16837echo "${ECHO_T}$ac_res" >&6; }
16838
16839fi
16840if test `eval echo '${'$as_ac_Header'}'` = yes; then
16841 cat >>confdefs.h <<_ACEOF
16842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843_ACEOF
16844
16845fi
16846
16847done
16848
Reid Spencer0a262ba2005-08-24 10:07:20 +000016849if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016850
16851for ac_header in pthread.h
16852do
16853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16854if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16857if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16859fi
16860ac_res=`eval echo '${'$as_ac_Header'}'`
16861 { echo "$as_me:$LINENO: result: $ac_res" >&5
16862echo "${ECHO_T}$ac_res" >&6; }
16863else
16864 # Is the header compilable?
16865{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16866echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16867cat >conftest.$ac_ext <<_ACEOF
16868/* confdefs.h. */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h. */
16873$ac_includes_default
16874#include <$ac_header>
16875_ACEOF
16876rm -f conftest.$ac_objext
16877if { (ac_try="$ac_compile"
16878case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881esac
16882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_compile") 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16891 { (case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894esac
16895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16897 ac_status=$?
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
16901 { (case "(($ac_try" in
16902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16904esac
16905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_try") 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_header_compiler=yes
16911else
16912 echo "$as_me: failed program was:" >&5
16913sed 's/^/| /' conftest.$ac_ext >&5
16914
16915 ac_header_compiler=no
16916fi
16917
16918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16920echo "${ECHO_T}$ac_header_compiler" >&6; }
16921
16922# Is the header present?
16923{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16925cat >conftest.$ac_ext <<_ACEOF
16926/* confdefs.h. */
16927_ACEOF
16928cat confdefs.h >>conftest.$ac_ext
16929cat >>conftest.$ac_ext <<_ACEOF
16930/* end confdefs.h. */
16931#include <$ac_header>
16932_ACEOF
16933if { (ac_try="$ac_cpp conftest.$ac_ext"
16934case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16937esac
16938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } >/dev/null; then
16946 if test -s conftest.err; then
16947 ac_cpp_err=$ac_c_preproc_warn_flag
16948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16949 else
16950 ac_cpp_err=
16951 fi
16952else
16953 ac_cpp_err=yes
16954fi
16955if test -z "$ac_cpp_err"; then
16956 ac_header_preproc=yes
16957else
16958 echo "$as_me: failed program was:" >&5
16959sed 's/^/| /' conftest.$ac_ext >&5
16960
16961 ac_header_preproc=no
16962fi
16963
16964rm -f conftest.err conftest.$ac_ext
16965{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16966echo "${ECHO_T}$ac_header_preproc" >&6; }
16967
16968# So? What about this header?
16969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16970 yes:no: )
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16975 ac_header_preproc=yes
16976 ;;
16977 no:yes:* )
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16990 ( cat <<\_ASBOX
16991## ----------------------------------- ##
16992## Report this to llvmbugs@cs.uiuc.edu ##
16993## ----------------------------------- ##
16994_ASBOX
16995 ) | sed "s/^/$as_me: WARNING: /" >&2
16996 ;;
16997esac
16998{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17000if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002else
17003 eval "$as_ac_Header=\$ac_header_preproc"
17004fi
17005ac_res=`eval echo '${'$as_ac_Header'}'`
17006 { echo "$as_me:$LINENO: result: $ac_res" >&5
17007echo "${ECHO_T}$ac_res" >&6; }
17008
17009fi
17010if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017011 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017013_ACEOF
17014 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017015
17016else
17017 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017018
17019fi
17020
Reid Spencerbe3e4192007-08-17 05:45:26 +000017021done
Reid Spencer1000b732006-12-01 00:37:14 +000017022
17023else
17024 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017025
17026fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017027
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017028if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017029
17030
17031for ac_header in ffi.h ffi/ffi.h
17032do
17033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039fi
17040ac_res=`eval echo '${'$as_ac_Header'}'`
17041 { echo "$as_me:$LINENO: result: $ac_res" >&5
17042echo "${ECHO_T}$ac_res" >&6; }
17043else
17044 # Is the header compilable?
17045{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17047cat >conftest.$ac_ext <<_ACEOF
17048/* confdefs.h. */
17049_ACEOF
17050cat confdefs.h >>conftest.$ac_ext
17051cat >>conftest.$ac_ext <<_ACEOF
17052/* end confdefs.h. */
17053$ac_includes_default
17054#include <$ac_header>
17055_ACEOF
17056rm -f conftest.$ac_objext
17057if { (ac_try="$ac_compile"
17058case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_compile") 2>conftest.er1
17064 ac_status=$?
17065 grep -v '^ *+' conftest.er1 >conftest.err
17066 rm -f conftest.er1
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073 *) ac_try_echo=$ac_try;;
17074esac
17075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
17077 ac_status=$?
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try='test -s conftest.$ac_objext'
17081 { (case "(($ac_try" in
17082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17084esac
17085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17087 ac_status=$?
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_header_compiler=yes
17091else
17092 echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095 ac_header_compiler=no
17096fi
17097
17098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17100echo "${ECHO_T}$ac_header_compiler" >&6; }
17101
17102# Is the header present?
17103{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17105cat >conftest.$ac_ext <<_ACEOF
17106/* confdefs.h. */
17107_ACEOF
17108cat confdefs.h >>conftest.$ac_ext
17109cat >>conftest.$ac_ext <<_ACEOF
17110/* end confdefs.h. */
17111#include <$ac_header>
17112_ACEOF
17113if { (ac_try="$ac_cpp conftest.$ac_ext"
17114case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117esac
17118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17120 ac_status=$?
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } >/dev/null; then
17126 if test -s conftest.err; then
17127 ac_cpp_err=$ac_c_preproc_warn_flag
17128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17129 else
17130 ac_cpp_err=
17131 fi
17132else
17133 ac_cpp_err=yes
17134fi
17135if test -z "$ac_cpp_err"; then
17136 ac_header_preproc=yes
17137else
17138 echo "$as_me: failed program was:" >&5
17139sed 's/^/| /' conftest.$ac_ext >&5
17140
17141 ac_header_preproc=no
17142fi
17143
17144rm -f conftest.err conftest.$ac_ext
17145{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17146echo "${ECHO_T}$ac_header_preproc" >&6; }
17147
17148# So? What about this header?
17149case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17150 yes:no: )
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17152echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17154echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17155 ac_header_preproc=yes
17156 ;;
17157 no:yes:* )
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17159echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17161echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17163echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17165echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17167echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17169echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17170 ( cat <<\_ASBOX
17171## ----------------------------------- ##
17172## Report this to llvmbugs@cs.uiuc.edu ##
17173## ----------------------------------- ##
17174_ASBOX
17175 ) | sed "s/^/$as_me: WARNING: /" >&2
17176 ;;
17177esac
17178{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17180if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182else
17183 eval "$as_ac_Header=\$ac_header_preproc"
17184fi
17185ac_res=`eval echo '${'$as_ac_Header'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187echo "${ECHO_T}$ac_res" >&6; }
17188
17189fi
17190if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017191 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017193_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017194
17195fi
17196
17197done
17198
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017199fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017200
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017201
Eric Christopher654dee42010-06-22 21:01:04 +000017202for ac_header in CrashReporterClient.h
17203do
17204as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210fi
17211ac_res=`eval echo '${'$as_ac_Header'}'`
17212 { echo "$as_me:$LINENO: result: $ac_res" >&5
17213echo "${ECHO_T}$ac_res" >&6; }
17214else
17215 # Is the header compilable?
17216{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17217echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17218cat >conftest.$ac_ext <<_ACEOF
17219/* confdefs.h. */
17220_ACEOF
17221cat confdefs.h >>conftest.$ac_ext
17222cat >>conftest.$ac_ext <<_ACEOF
17223/* end confdefs.h. */
17224$ac_includes_default
17225#include <$ac_header>
17226_ACEOF
17227rm -f conftest.$ac_objext
17228if { (ac_try="$ac_compile"
17229case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_compile") 2>conftest.er1
17235 ac_status=$?
17236 grep -v '^ *+' conftest.er1 >conftest.err
17237 rm -f conftest.er1
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244 *) ac_try_echo=$ac_try;;
17245esac
17246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest.$ac_objext'
17252 { (case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255esac
17256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_header_compiler=yes
17262else
17263 echo "$as_me: failed program was:" >&5
17264sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 ac_header_compiler=no
17267fi
17268
17269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17271echo "${ECHO_T}$ac_header_compiler" >&6; }
17272
17273# Is the header present?
17274{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17276cat >conftest.$ac_ext <<_ACEOF
17277/* confdefs.h. */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h. */
17282#include <$ac_header>
17283_ACEOF
17284if { (ac_try="$ac_cpp conftest.$ac_ext"
17285case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17291 ac_status=$?
17292 grep -v '^ *+' conftest.er1 >conftest.err
17293 rm -f conftest.er1
17294 cat conftest.err >&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } >/dev/null; then
17297 if test -s conftest.err; then
17298 ac_cpp_err=$ac_c_preproc_warn_flag
17299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17300 else
17301 ac_cpp_err=
17302 fi
17303else
17304 ac_cpp_err=yes
17305fi
17306if test -z "$ac_cpp_err"; then
17307 ac_header_preproc=yes
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_header_preproc=no
17313fi
17314
17315rm -f conftest.err conftest.$ac_ext
17316{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17317echo "${ECHO_T}$ac_header_preproc" >&6; }
17318
17319# So? What about this header?
17320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17321 yes:no: )
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17323echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17325echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17326 ac_header_preproc=yes
17327 ;;
17328 no:yes:* )
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17330echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17332echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17334echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17336echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17338echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17340echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17341 ( cat <<\_ASBOX
17342## ----------------------------------- ##
17343## Report this to llvmbugs@cs.uiuc.edu ##
17344## ----------------------------------- ##
17345_ASBOX
17346 ) | sed "s/^/$as_me: WARNING: /" >&2
17347 ;;
17348esac
17349{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17353else
17354 eval "$as_ac_Header=\$ac_header_preproc"
17355fi
17356ac_res=`eval echo '${'$as_ac_Header'}'`
17357 { echo "$as_me:$LINENO: result: $ac_res" >&5
17358echo "${ECHO_T}$ac_res" >&6; }
17359
17360fi
17361if test `eval echo '${'$as_ac_Header'}'` = yes; then
17362 cat >>confdefs.h <<_ACEOF
17363#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17364_ACEOF
17365
17366fi
17367
17368done
17369
17370
17371
Reid Spencer8085cff2005-01-16 02:58:39 +000017372
Torok Edwin871384f2010-01-26 08:50:50 +000017373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017374 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17375echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17376if test "${ac_cv_huge_val_sanity+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017378else
17379
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017380 ac_ext=cpp
17381ac_cpp='$CXXCPP $CPPFLAGS'
17382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017385
Eric Christopherc7718502010-03-02 05:06:54 +000017386 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017387 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017388 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017389 ac_cv_huge_val_sanity=yes
17390else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017391 cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017396/* end confdefs.h. */
17397#include <math.h>
17398int
17399main ()
17400{
17401double x = HUGE_VAL; return x != x;
17402 ;
17403 return 0;
17404}
17405_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017406rm -f conftest$ac_exeext
17407if { (ac_try="$ac_link"
17408case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17411esac
17412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_link") 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17420esac
17421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017426 ac_cv_huge_val_sanity=yes
17427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017428 echo "$as_me: program exited with status $ac_status" >&5
17429echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432( exit $ac_status )
17433ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017434fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017435rm -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 +000017436fi
17437
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017438
Eric Christopherc7718502010-03-02 05:06:54 +000017439 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017440 ac_ext=c
17441ac_cpp='$CPP $CPPFLAGS'
17442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17444ac_compiler_gnu=$ac_cv_c_compiler_gnu
17445
17446
17447fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017448{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17449echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017450 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17451
17452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017453{ echo "$as_me:$LINENO: checking for pid_t" >&5
17454echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17455if test "${ac_cv_type_pid_t+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457else
17458 cat >conftest.$ac_ext <<_ACEOF
17459/* confdefs.h. */
17460_ACEOF
17461cat confdefs.h >>conftest.$ac_ext
17462cat >>conftest.$ac_ext <<_ACEOF
17463/* end confdefs.h. */
17464$ac_includes_default
17465typedef pid_t ac__type_new_;
17466int
17467main ()
17468{
17469if ((ac__type_new_ *) 0)
17470 return 0;
17471if (sizeof (ac__type_new_))
17472 return 0;
17473 ;
17474 return 0;
17475}
17476_ACEOF
17477rm -f conftest.$ac_objext
17478if { (ac_try="$ac_compile"
17479case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17482esac
17483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_compile") 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17492 { (case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest.$ac_objext'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17505esac
17506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_type_pid_t=yes
17512else
17513 echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017516 ac_cv_type_pid_t=no
17517fi
17518
17519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520fi
17521{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17522echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17523if test $ac_cv_type_pid_t = yes; then
17524 :
John Criswell7a73b802003-06-30 21:59:07 +000017525else
17526
17527cat >>confdefs.h <<_ACEOF
17528#define pid_t int
17529_ACEOF
17530
17531fi
17532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017533{ echo "$as_me:$LINENO: checking for size_t" >&5
17534echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17535if test "${ac_cv_type_size_t+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538 cat >conftest.$ac_ext <<_ACEOF
17539/* confdefs.h. */
17540_ACEOF
17541cat confdefs.h >>conftest.$ac_ext
17542cat >>conftest.$ac_ext <<_ACEOF
17543/* end confdefs.h. */
17544$ac_includes_default
17545typedef size_t ac__type_new_;
17546int
17547main ()
17548{
17549if ((ac__type_new_ *) 0)
17550 return 0;
17551if (sizeof (ac__type_new_))
17552 return 0;
17553 ;
17554 return 0;
17555}
17556_ACEOF
17557rm -f conftest.$ac_objext
17558if { (ac_try="$ac_compile"
17559case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17575esac
17576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17585esac
17586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17588 ac_status=$?
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_type_size_t=yes
17592else
17593 echo "$as_me: failed program was:" >&5
17594sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017596 ac_cv_type_size_t=no
17597fi
17598
17599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600fi
17601{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17602echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17603if test $ac_cv_type_size_t = yes; then
17604 :
John Criswell7a73b802003-06-30 21:59:07 +000017605else
17606
17607cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017608#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017609_ACEOF
17610
17611fi
17612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017613
17614cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017615#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017616_ACEOF
17617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017618{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17619echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17620if test "${ac_cv_struct_tm+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017623 cat >conftest.$ac_ext <<_ACEOF
17624/* confdefs.h. */
17625_ACEOF
17626cat confdefs.h >>conftest.$ac_ext
17627cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017628/* end confdefs.h. */
17629#include <sys/types.h>
17630#include <time.h>
17631
17632int
17633main ()
17634{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017635struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017636 ;
17637 return 0;
17638}
17639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017640rm -f conftest.$ac_objext
17641if { (ac_try="$ac_compile"
17642case "(($ac_try" in
17643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17645esac
17646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_compile") 2>conftest.er1
17648 ac_status=$?
17649 grep -v '^ *+' conftest.er1 >conftest.err
17650 rm -f conftest.er1
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17655 { (case "(($ac_try" in
17656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657 *) ac_try_echo=$ac_try;;
17658esac
17659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_try") 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (case "(($ac_try" in
17666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17668esac
17669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017674 ac_cv_struct_tm=time.h
17675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017676 echo "$as_me: failed program was:" >&5
17677sed 's/^/| /' conftest.$ac_ext >&5
17678
17679 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017681
Reid Spencera773bd52006-08-04 18:18:08 +000017682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017684{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17685echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017686if test $ac_cv_struct_tm = sys/time.h; then
17687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017688cat >>confdefs.h <<\_ACEOF
17689#define TM_IN_SYS_TIME 1
17690_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017691
17692fi
17693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017694{ echo "$as_me:$LINENO: checking for int64_t" >&5
17695echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17696if test "${ac_cv_type_int64_t+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698else
17699 cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h. */
17705$ac_includes_default
17706typedef int64_t ac__type_new_;
17707int
17708main ()
17709{
17710if ((ac__type_new_ *) 0)
17711 return 0;
17712if (sizeof (ac__type_new_))
17713 return 0;
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext
17719if { (ac_try="$ac_compile"
17720case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723esac
17724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17726 ac_status=$?
17727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17739 ac_status=$?
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_type_int64_t=yes
17753else
17754 echo "$as_me: failed program was:" >&5
17755sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_cv_type_int64_t=no
17758fi
17759
17760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17761fi
17762{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17763echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17764if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017765
17766cat >>confdefs.h <<_ACEOF
17767#define HAVE_INT64_T 1
17768_ACEOF
17769
17770
17771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017772 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17773echo "$as_me: error: Type int64_t required but not found" >&2;}
17774 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017775fi
17776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017777{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17778echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17779if test "${ac_cv_type_uint64_t+set}" = set; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17781else
17782 cat >conftest.$ac_ext <<_ACEOF
17783/* confdefs.h. */
17784_ACEOF
17785cat confdefs.h >>conftest.$ac_ext
17786cat >>conftest.$ac_ext <<_ACEOF
17787/* end confdefs.h. */
17788$ac_includes_default
17789typedef uint64_t ac__type_new_;
17790int
17791main ()
17792{
17793if ((ac__type_new_ *) 0)
17794 return 0;
17795if (sizeof (ac__type_new_))
17796 return 0;
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (ac_try="$ac_compile"
17803case "(($ac_try" in
17804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17806esac
17807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_compile") 2>conftest.er1
17809 ac_status=$?
17810 grep -v '^ *+' conftest.er1 >conftest.err
17811 rm -f conftest.er1
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17819esac
17820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17822 ac_status=$?
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest.$ac_objext'
17826 { (case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829esac
17830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_type_uint64_t=yes
17836else
17837 echo "$as_me: failed program was:" >&5
17838sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 ac_cv_type_uint64_t=no
17841fi
17842
17843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844fi
17845{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17846echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17847if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017848
17849cat >>confdefs.h <<_ACEOF
17850#define HAVE_UINT64_T 1
17851_ACEOF
17852
17853
17854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017855 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17856echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17857if test "${ac_cv_type_u_int64_t+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17859else
17860 cat >conftest.$ac_ext <<_ACEOF
17861/* confdefs.h. */
17862_ACEOF
17863cat confdefs.h >>conftest.$ac_ext
17864cat >>conftest.$ac_ext <<_ACEOF
17865/* end confdefs.h. */
17866$ac_includes_default
17867typedef u_int64_t ac__type_new_;
17868int
17869main ()
17870{
17871if ((ac__type_new_ *) 0)
17872 return 0;
17873if (sizeof (ac__type_new_))
17874 return 0;
17875 ;
17876 return 0;
17877}
17878_ACEOF
17879rm -f conftest.$ac_objext
17880if { (ac_try="$ac_compile"
17881case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17884esac
17885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_compile") 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894 { (case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17897esac
17898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_try") 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest.$ac_objext'
17904 { (case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17907esac
17908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_try") 2>&5
17910 ac_status=$?
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_cv_type_u_int64_t=yes
17914else
17915 echo "$as_me: failed program was:" >&5
17916sed 's/^/| /' conftest.$ac_ext >&5
17917
17918 ac_cv_type_u_int64_t=no
17919fi
17920
17921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922fi
17923{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17924echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17925if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017926
17927cat >>confdefs.h <<_ACEOF
17928#define HAVE_U_INT64_T 1
17929_ACEOF
17930
17931
Misha Brukmanceca9042004-09-02 23:02:30 +000017932else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017933 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17934echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17935 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017936fi
17937
John Criswell679ff312004-09-02 18:44:44 +000017938fi
17939
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017940
17941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017942
17943
17944
17945
17946
17947
17948
Reid Spencerdf3be822006-01-23 08:15:53 +000017949for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017950do
17951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957 cat >conftest.$ac_ext <<_ACEOF
17958/* confdefs.h. */
17959_ACEOF
17960cat confdefs.h >>conftest.$ac_ext
17961cat >>conftest.$ac_ext <<_ACEOF
17962/* end confdefs.h. */
17963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17965#define $ac_func innocuous_$ac_func
17966
17967/* System header to define __stub macros and hopefully few prototypes,
17968 which can conflict with char $ac_func (); below.
17969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970 <limits.h> exists even on freestanding compilers. */
17971
17972#ifdef __STDC__
17973# include <limits.h>
17974#else
17975# include <assert.h>
17976#endif
17977
17978#undef $ac_func
17979
17980/* Override any GCC internal prototype to avoid an error.
17981 Use char because int might match the return type of a GCC
17982 builtin and then its argument prototype would still apply. */
17983#ifdef __cplusplus
17984extern "C"
17985#endif
17986char $ac_func ();
17987/* The GNU C library defines this for functions which it implements
17988 to always fail with ENOSYS. Some functions are actually named
17989 something starting with __ and the normal name is an alias. */
17990#if defined __stub_$ac_func || defined __stub___$ac_func
17991choke me
17992#endif
17993
17994int
17995main ()
17996{
17997return $ac_func ();
17998 ;
17999 return 0;
18000}
18001_ACEOF
18002rm -f conftest.$ac_objext conftest$ac_exeext
18003if { (ac_try="$ac_link"
18004case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007esac
18008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_link") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18017 { (case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18020esac
18021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_try") 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (case "(($ac_try" in
18028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18030esac
18031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 eval "$as_ac_var=yes"
18037else
18038 echo "$as_me: failed program was:" >&5
18039sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 eval "$as_ac_var=no"
18042fi
18043
18044rm -f core conftest.err conftest.$ac_objext \
18045 conftest$ac_exeext conftest.$ac_ext
18046fi
18047ac_res=`eval echo '${'$as_ac_var'}'`
18048 { echo "$as_me:$LINENO: result: $ac_res" >&5
18049echo "${ECHO_T}$ac_res" >&6; }
18050if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018051 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018053_ACEOF
18054
18055fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018056done
John Criswell7a73b802003-06-30 21:59:07 +000018057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018058
18059
18060
18061
Reid Spencer96cf5872007-07-13 10:05:30 +000018062for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018063do
18064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18065{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18067if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18069else
18070 cat >conftest.$ac_ext <<_ACEOF
18071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
18075/* end confdefs.h. */
18076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18078#define $ac_func innocuous_$ac_func
18079
18080/* System header to define __stub macros and hopefully few prototypes,
18081 which can conflict with char $ac_func (); below.
18082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18083 <limits.h> exists even on freestanding compilers. */
18084
18085#ifdef __STDC__
18086# include <limits.h>
18087#else
18088# include <assert.h>
18089#endif
18090
18091#undef $ac_func
18092
18093/* Override any GCC internal prototype to avoid an error.
18094 Use char because int might match the return type of a GCC
18095 builtin and then its argument prototype would still apply. */
18096#ifdef __cplusplus
18097extern "C"
18098#endif
18099char $ac_func ();
18100/* The GNU C library defines this for functions which it implements
18101 to always fail with ENOSYS. Some functions are actually named
18102 something starting with __ and the normal name is an alias. */
18103#if defined __stub_$ac_func || defined __stub___$ac_func
18104choke me
18105#endif
18106
18107int
18108main ()
18109{
18110return $ac_func ();
18111 ;
18112 return 0;
18113}
18114_ACEOF
18115rm -f conftest.$ac_objext conftest$ac_exeext
18116if { (ac_try="$ac_link"
18117case "(($ac_try" in
18118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119 *) ac_try_echo=$ac_try;;
18120esac
18121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_link") 2>conftest.er1
18123 ac_status=$?
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133esac
18134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest$ac_exeext'
18140 { (case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18143esac
18144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_try") 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 eval "$as_ac_var=yes"
18150else
18151 echo "$as_me: failed program was:" >&5
18152sed 's/^/| /' conftest.$ac_ext >&5
18153
18154 eval "$as_ac_var=no"
18155fi
18156
18157rm -f core conftest.err conftest.$ac_objext \
18158 conftest$ac_exeext conftest.$ac_ext
18159fi
18160ac_res=`eval echo '${'$as_ac_var'}'`
18161 { echo "$as_me:$LINENO: result: $ac_res" >&5
18162echo "${ECHO_T}$ac_res" >&6; }
18163if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018164 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018166_ACEOF
18167
18168fi
18169done
18170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018171
18172
18173
18174
18175
Reid Spencerb90645c2007-02-16 19:17:20 +000018176for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018177do
18178as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18181if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18183else
18184 cat >conftest.$ac_ext <<_ACEOF
18185/* confdefs.h. */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h. */
18190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192#define $ac_func innocuous_$ac_func
18193
18194/* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char $ac_func (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18198
18199#ifdef __STDC__
18200# include <limits.h>
18201#else
18202# include <assert.h>
18203#endif
18204
18205#undef $ac_func
18206
18207/* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18210#ifdef __cplusplus
18211extern "C"
18212#endif
18213char $ac_func ();
18214/* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217#if defined __stub_$ac_func || defined __stub___$ac_func
18218choke me
18219#endif
18220
18221int
18222main ()
18223{
18224return $ac_func ();
18225 ;
18226 return 0;
18227}
18228_ACEOF
18229rm -f conftest.$ac_objext conftest$ac_exeext
18230if { (ac_try="$ac_link"
18231case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234esac
18235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18237 ac_status=$?
18238 grep -v '^ *+' conftest.er1 >conftest.err
18239 rm -f conftest.er1
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18244 { (case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18247esac
18248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_try") 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest$ac_exeext'
18254 { (case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257esac
18258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_try") 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 eval "$as_ac_var=yes"
18264else
18265 echo "$as_me: failed program was:" >&5
18266sed 's/^/| /' conftest.$ac_ext >&5
18267
18268 eval "$as_ac_var=no"
18269fi
18270
18271rm -f core conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18273fi
18274ac_res=`eval echo '${'$as_ac_var'}'`
18275 { echo "$as_me:$LINENO: result: $ac_res" >&5
18276echo "${ECHO_T}$ac_res" >&6; }
18277if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018278 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018280_ACEOF
18281
18282fi
18283done
18284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018285
18286
18287
Reid Spencerb90645c2007-02-16 19:17:20 +000018288for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018289do
18290as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18291{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18292echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18293if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295else
18296 cat >conftest.$ac_ext <<_ACEOF
18297/* confdefs.h. */
18298_ACEOF
18299cat confdefs.h >>conftest.$ac_ext
18300cat >>conftest.$ac_ext <<_ACEOF
18301/* end confdefs.h. */
18302/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18304#define $ac_func innocuous_$ac_func
18305
18306/* System header to define __stub macros and hopefully few prototypes,
18307 which can conflict with char $ac_func (); below.
18308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18309 <limits.h> exists even on freestanding compilers. */
18310
18311#ifdef __STDC__
18312# include <limits.h>
18313#else
18314# include <assert.h>
18315#endif
18316
18317#undef $ac_func
18318
18319/* Override any GCC internal prototype to avoid an error.
18320 Use char because int might match the return type of a GCC
18321 builtin and then its argument prototype would still apply. */
18322#ifdef __cplusplus
18323extern "C"
18324#endif
18325char $ac_func ();
18326/* The GNU C library defines this for functions which it implements
18327 to always fail with ENOSYS. Some functions are actually named
18328 something starting with __ and the normal name is an alias. */
18329#if defined __stub_$ac_func || defined __stub___$ac_func
18330choke me
18331#endif
18332
18333int
18334main ()
18335{
18336return $ac_func ();
18337 ;
18338 return 0;
18339}
18340_ACEOF
18341rm -f conftest.$ac_objext conftest$ac_exeext
18342if { (ac_try="$ac_link"
18343case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18346esac
18347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_link") 2>conftest.er1
18349 ac_status=$?
18350 grep -v '^ *+' conftest.er1 >conftest.err
18351 rm -f conftest.er1
18352 cat conftest.err >&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18356 { (case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18359esac
18360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_try") 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest$ac_exeext'
18366 { (case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18369esac
18370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_try") 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18375 eval "$as_ac_var=yes"
18376else
18377 echo "$as_me: failed program was:" >&5
18378sed 's/^/| /' conftest.$ac_ext >&5
18379
18380 eval "$as_ac_var=no"
18381fi
18382
18383rm -f core conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385fi
18386ac_res=`eval echo '${'$as_ac_var'}'`
18387 { echo "$as_me:$LINENO: result: $ac_res" >&5
18388echo "${ECHO_T}$ac_res" >&6; }
18389if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018390 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018392_ACEOF
18393
18394fi
18395done
18396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018397
18398
18399
18400
18401
Eric Christophere4291822010-04-16 05:14:21 +000018402
18403for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018404do
18405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18406{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18408if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18410else
18411 cat >conftest.$ac_ext <<_ACEOF
18412/* confdefs.h. */
18413_ACEOF
18414cat confdefs.h >>conftest.$ac_ext
18415cat >>conftest.$ac_ext <<_ACEOF
18416/* end confdefs.h. */
18417/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18419#define $ac_func innocuous_$ac_func
18420
18421/* System header to define __stub macros and hopefully few prototypes,
18422 which can conflict with char $ac_func (); below.
18423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18424 <limits.h> exists even on freestanding compilers. */
18425
18426#ifdef __STDC__
18427# include <limits.h>
18428#else
18429# include <assert.h>
18430#endif
18431
18432#undef $ac_func
18433
18434/* Override any GCC internal prototype to avoid an error.
18435 Use char because int might match the return type of a GCC
18436 builtin and then its argument prototype would still apply. */
18437#ifdef __cplusplus
18438extern "C"
18439#endif
18440char $ac_func ();
18441/* The GNU C library defines this for functions which it implements
18442 to always fail with ENOSYS. Some functions are actually named
18443 something starting with __ and the normal name is an alias. */
18444#if defined __stub_$ac_func || defined __stub___$ac_func
18445choke me
18446#endif
18447
18448int
18449main ()
18450{
18451return $ac_func ();
18452 ;
18453 return 0;
18454}
18455_ACEOF
18456rm -f conftest.$ac_objext conftest$ac_exeext
18457if { (ac_try="$ac_link"
18458case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_link") 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18474esac
18475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18477 ac_status=$?
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try='test -s conftest$ac_exeext'
18481 { (case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18484esac
18485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_try") 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 eval "$as_ac_var=yes"
18491else
18492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 eval "$as_ac_var=no"
18496fi
18497
18498rm -f core conftest.err conftest.$ac_objext \
18499 conftest$ac_exeext conftest.$ac_ext
18500fi
18501ac_res=`eval echo '${'$as_ac_var'}'`
18502 { echo "$as_me:$LINENO: result: $ac_res" >&5
18503echo "${ECHO_T}$ac_res" >&6; }
18504if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018505 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018507_ACEOF
18508
18509fi
18510done
Reid Spencerdf3be822006-01-23 08:15:53 +000018511
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018512
18513
18514
18515
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018516for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018517do
18518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18523else
18524 cat >conftest.$ac_ext <<_ACEOF
18525/* confdefs.h. */
18526_ACEOF
18527cat confdefs.h >>conftest.$ac_ext
18528cat >>conftest.$ac_ext <<_ACEOF
18529/* end confdefs.h. */
18530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18532#define $ac_func innocuous_$ac_func
18533
18534/* System header to define __stub macros and hopefully few prototypes,
18535 which can conflict with char $ac_func (); below.
18536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18537 <limits.h> exists even on freestanding compilers. */
18538
18539#ifdef __STDC__
18540# include <limits.h>
18541#else
18542# include <assert.h>
18543#endif
18544
18545#undef $ac_func
18546
18547/* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18550#ifdef __cplusplus
18551extern "C"
18552#endif
18553char $ac_func ();
18554/* The GNU C library defines this for functions which it implements
18555 to always fail with ENOSYS. Some functions are actually named
18556 something starting with __ and the normal name is an alias. */
18557#if defined __stub_$ac_func || defined __stub___$ac_func
18558choke me
18559#endif
18560
18561int
18562main ()
18563{
18564return $ac_func ();
18565 ;
18566 return 0;
18567}
18568_ACEOF
18569rm -f conftest.$ac_objext conftest$ac_exeext
18570if { (ac_try="$ac_link"
18571case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574esac
18575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } &&
18583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18584 { (case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587esac
18588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 eval "$as_ac_var=yes"
18604else
18605 echo "$as_me: failed program was:" >&5
18606sed 's/^/| /' conftest.$ac_ext >&5
18607
18608 eval "$as_ac_var=no"
18609fi
18610
18611rm -f core conftest.err conftest.$ac_objext \
18612 conftest$ac_exeext conftest.$ac_ext
18613fi
18614ac_res=`eval echo '${'$as_ac_var'}'`
18615 { echo "$as_me:$LINENO: result: $ac_res" >&5
18616echo "${ECHO_T}$ac_res" >&6; }
18617if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018618 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018620_ACEOF
18621
18622fi
18623done
18624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018625
18626
18627
18628
Chris Lattner511f11d2005-11-14 07:25:50 +000018629for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018630do
18631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18636else
18637 cat >conftest.$ac_ext <<_ACEOF
18638/* confdefs.h. */
18639_ACEOF
18640cat confdefs.h >>conftest.$ac_ext
18641cat >>conftest.$ac_ext <<_ACEOF
18642/* end confdefs.h. */
18643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18645#define $ac_func innocuous_$ac_func
18646
18647/* System header to define __stub macros and hopefully few prototypes,
18648 which can conflict with char $ac_func (); below.
18649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650 <limits.h> exists even on freestanding compilers. */
18651
18652#ifdef __STDC__
18653# include <limits.h>
18654#else
18655# include <assert.h>
18656#endif
18657
18658#undef $ac_func
18659
18660/* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18663#ifdef __cplusplus
18664extern "C"
18665#endif
18666char $ac_func ();
18667/* The GNU C library defines this for functions which it implements
18668 to always fail with ENOSYS. Some functions are actually named
18669 something starting with __ and the normal name is an alias. */
18670#if defined __stub_$ac_func || defined __stub___$ac_func
18671choke me
18672#endif
18673
18674int
18675main ()
18676{
18677return $ac_func ();
18678 ;
18679 return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext conftest$ac_exeext
18683if { (ac_try="$ac_link"
18684case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18687esac
18688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18690 ac_status=$?
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18703 ac_status=$?
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try='test -s conftest$ac_exeext'
18707 { (case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18710esac
18711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18713 ac_status=$?
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 eval "$as_ac_var=yes"
18717else
18718 echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721 eval "$as_ac_var=no"
18722fi
18723
18724rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18726fi
18727ac_res=`eval echo '${'$as_ac_var'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729echo "${ECHO_T}$ac_res" >&6; }
18730if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018731 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018733_ACEOF
18734
18735fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018736done
John Criswell7a73b802003-06-30 21:59:07 +000018737
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018738
18739
18740
18741
Reid Spencerafa22e22006-12-10 23:29:19 +000018742for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018743do
18744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18745{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18747if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18749else
18750 cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
18756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18758#define $ac_func innocuous_$ac_func
18759
18760/* System header to define __stub macros and hopefully few prototypes,
18761 which can conflict with char $ac_func (); below.
18762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18763 <limits.h> exists even on freestanding compilers. */
18764
18765#ifdef __STDC__
18766# include <limits.h>
18767#else
18768# include <assert.h>
18769#endif
18770
18771#undef $ac_func
18772
18773/* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
18776#ifdef __cplusplus
18777extern "C"
18778#endif
18779char $ac_func ();
18780/* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
18783#if defined __stub_$ac_func || defined __stub___$ac_func
18784choke me
18785#endif
18786
18787int
18788main ()
18789{
18790return $ac_func ();
18791 ;
18792 return 0;
18793}
18794_ACEOF
18795rm -f conftest.$ac_objext conftest$ac_exeext
18796if { (ac_try="$ac_link"
18797case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18800esac
18801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18803 ac_status=$?
18804 grep -v '^ *+' conftest.er1 >conftest.err
18805 rm -f conftest.er1
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
18809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18810 { (case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18813esac
18814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_try") 2>&5
18816 ac_status=$?
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; } &&
18819 { ac_try='test -s conftest$ac_exeext'
18820 { (case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18823esac
18824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_try") 2>&5
18826 ac_status=$?
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829 eval "$as_ac_var=yes"
18830else
18831 echo "$as_me: failed program was:" >&5
18832sed 's/^/| /' conftest.$ac_ext >&5
18833
18834 eval "$as_ac_var=no"
18835fi
18836
18837rm -f core conftest.err conftest.$ac_objext \
18838 conftest$ac_exeext conftest.$ac_ext
18839fi
18840ac_res=`eval echo '${'$as_ac_var'}'`
18841 { echo "$as_me:$LINENO: result: $ac_res" >&5
18842echo "${ECHO_T}$ac_res" >&6; }
18843if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018844 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018845#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018846_ACEOF
18847
18848fi
18849done
18850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018851{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18852echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18853if test "${llvm_cv_c_printf_a+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018855else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018856 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018857ac_cpp='$CPP $CPPFLAGS'
18858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860ac_compiler_gnu=$ac_cv_c_compiler_gnu
18861
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018862 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018863 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018864else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018865 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018867 /* confdefs.h. */
18868_ACEOF
18869cat confdefs.h >>conftest.$ac_ext
18870cat >>conftest.$ac_ext <<_ACEOF
18871/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018872
John Criswella0137d32003-10-13 16:22:01 +000018873#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018874#include <stdlib.h>
18875
John Criswella0137d32003-10-13 16:22:01 +000018876int
18877main ()
18878{
18879
Reid Spencer2706f8c2004-09-19 23:53:36 +000018880volatile double A, B;
18881char Buffer[100];
18882A = 1;
18883A /= 10.0;
18884sprintf(Buffer, "%a", A);
18885B = atof(Buffer);
18886if (A != B)
18887 return (1);
18888if (A != 0x1.999999999999ap-4)
18889 return (1);
18890return (0);
John Criswella0137d32003-10-13 16:22:01 +000018891 ;
18892 return 0;
18893}
18894_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018895rm -f conftest$ac_exeext
18896if { (ac_try="$ac_link"
18897case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18900esac
18901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18906 { (case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18909esac
18910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_try") 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018915 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018916else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018917 echo "$as_me: program exited with status $ac_status" >&5
18918echo "$as_me: failed program was:" >&5
18919sed 's/^/| /' conftest.$ac_ext >&5
18920
18921( exit $ac_status )
18922llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018924rm -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 +000018925fi
Reid Spencera773bd52006-08-04 18:18:08 +000018926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018927
Reid Spencer2706f8c2004-09-19 23:53:36 +000018928 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018929ac_cpp='$CPP $CPPFLAGS'
18930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18932ac_compiler_gnu=$ac_cv_c_compiler_gnu
18933
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018935{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18936echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018937 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018939cat >>confdefs.h <<\_ACEOF
18940#define HAVE_PRINTF_A 1
18941_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018942
Reid Spencer2706f8c2004-09-19 23:53:36 +000018943 fi
John Criswella0137d32003-10-13 16:22:01 +000018944
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018946{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18947echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18948if test "${ac_cv_func_rand48+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018950else
Reid Spencera773bd52006-08-04 18:18:08 +000018951 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018952ac_cpp='$CXXCPP $CPPFLAGS'
18953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018957 cat >conftest.$ac_ext <<_ACEOF
18958/* confdefs.h. */
18959_ACEOF
18960cat confdefs.h >>conftest.$ac_ext
18961cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018962/* end confdefs.h. */
18963#include <stdlib.h>
18964int
18965main ()
18966{
18967srand48(0);lrand48();drand48();
18968 ;
18969 return 0;
18970}
18971_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018972rm -f conftest.$ac_objext
18973if { (ac_try="$ac_compile"
18974case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18977esac
18978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_compile") 2>conftest.er1
18980 ac_status=$?
18981 grep -v '^ *+' conftest.er1 >conftest.err
18982 rm -f conftest.er1
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18990esac
18991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19000esac
19001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_try") 2>&5
19003 ac_status=$?
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019006 ac_cv_func_rand48=yes
19007else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019008 echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019013
Reid Spencera773bd52006-08-04 18:18:08 +000019014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019015 ac_ext=c
19016ac_cpp='$CPP $CPPFLAGS'
19017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019ac_compiler_gnu=$ac_cv_c_compiler_gnu
19020
19021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019022{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19023echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019024
19025if test "$ac_cv_func_rand48" = "yes" ; then
19026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019027cat >>confdefs.h <<\_ACEOF
19028#define HAVE_RAND48 1
19029_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019030
19031fi
John Criswell0021c312004-02-13 21:57:29 +000019032
19033
Torok Edwin871384f2010-01-26 08:50:50 +000019034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019035{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19036echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19037if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019039else
Reid Spencera773bd52006-08-04 18:18:08 +000019040 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019041ac_cpp='$CXXCPP $CPPFLAGS'
19042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19045
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019046 cat >conftest.$ac_ext <<_ACEOF
19047/* confdefs.h. */
19048_ACEOF
19049cat confdefs.h >>conftest.$ac_ext
19050cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019051/* end confdefs.h. */
19052#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019053int
19054main ()
19055{
19056float f; isnan(f);
19057 ;
19058 return 0;
19059}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019060_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061rm -f conftest.$ac_objext
19062if { (ac_try="$ac_compile"
19063case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066esac
19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_compile") 2>conftest.er1
19069 ac_status=$?
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19076 { (case "(($ac_try" in
19077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19079esac
19080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_try") 2>&5
19082 ac_status=$?
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089esac
19090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019095 ac_cv_func_isnan_in_math_h=yes
19096else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019097 echo "$as_me: failed program was:" >&5
19098sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019102
Reid Spencera773bd52006-08-04 18:18:08 +000019103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019104 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019105ac_cpp='$CPP $CPPFLAGS'
19106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
19110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019111{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19112echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019113
19114
19115if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019117cat >>confdefs.h <<\_ACEOF
19118#define HAVE_ISNAN_IN_MATH_H 1
19119_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019120
Reid Spencerabec8f92004-10-27 23:03:44 +000019121fi
19122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019123{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19124echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19125if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019127else
Reid Spencera773bd52006-08-04 18:18:08 +000019128 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019129ac_cpp='$CXXCPP $CPPFLAGS'
19130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019134 cat >conftest.$ac_ext <<_ACEOF
19135/* confdefs.h. */
19136_ACEOF
19137cat confdefs.h >>conftest.$ac_ext
19138cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019139/* end confdefs.h. */
19140#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019141int
19142main ()
19143{
19144float f; isnan(f);
19145 ;
19146 return 0;
19147}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019148_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019149rm -f conftest.$ac_objext
19150if { (ac_try="$ac_compile"
19151case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19154esac
19155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_compile") 2>conftest.er1
19157 ac_status=$?
19158 grep -v '^ *+' conftest.er1 >conftest.err
19159 rm -f conftest.er1
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
19163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19164 { (case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19167esac
19168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_try") 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19177esac
19178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_try") 2>&5
19180 ac_status=$?
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019183 ac_cv_func_isnan_in_cmath=yes
19184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019185 echo "$as_me: failed program was:" >&5
19186sed 's/^/| /' conftest.$ac_ext >&5
19187
19188 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019190
Reid Spencera773bd52006-08-04 18:18:08 +000019191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019192 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019193ac_cpp='$CPP $CPPFLAGS'
19194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196ac_compiler_gnu=$ac_cv_c_compiler_gnu
19197
19198fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019199{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19200echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019201
19202if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019204cat >>confdefs.h <<\_ACEOF
19205#define HAVE_ISNAN_IN_CMATH 1
19206_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019207
Reid Spencerabec8f92004-10-27 23:03:44 +000019208fi
19209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019210{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19211echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19212if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019214else
Reid Spencera773bd52006-08-04 18:18:08 +000019215 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019216ac_cpp='$CXXCPP $CPPFLAGS'
19217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019221 cat >conftest.$ac_ext <<_ACEOF
19222/* confdefs.h. */
19223_ACEOF
19224cat confdefs.h >>conftest.$ac_ext
19225cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019226/* end confdefs.h. */
19227#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019228int
19229main ()
19230{
19231float f; std::isnan(f);
19232 ;
19233 return 0;
19234}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019236rm -f conftest.$ac_objext
19237if { (ac_try="$ac_compile"
19238case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_compile") 2>conftest.er1
19244 ac_status=$?
19245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254esac
19255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264esac
19265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019270 ac_cv_func_std_isnan_in_cmath=yes
19271else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019272 echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019276fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019277
Reid Spencera773bd52006-08-04 18:18:08 +000019278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019279 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019280ac_cpp='$CPP $CPPFLAGS'
19281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283ac_compiler_gnu=$ac_cv_c_compiler_gnu
19284
19285fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19287echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019288
19289if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019291cat >>confdefs.h <<\_ACEOF
19292#define HAVE_STD_ISNAN_IN_CMATH 1
19293_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019294
Reid Spencerabec8f92004-10-27 23:03:44 +000019295fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019296
19297
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019298{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19299echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19300if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019302else
Reid Spencera773bd52006-08-04 18:18:08 +000019303 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019304ac_cpp='$CXXCPP $CPPFLAGS'
19305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019309 cat >conftest.$ac_ext <<_ACEOF
19310/* confdefs.h. */
19311_ACEOF
19312cat confdefs.h >>conftest.$ac_ext
19313cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019314/* end confdefs.h. */
19315#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019316int
19317main ()
19318{
19319float f; isinf(f);
19320 ;
19321 return 0;
19322}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019323_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019324rm -f conftest.$ac_objext
19325if { (ac_try="$ac_compile"
19326case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19329esac
19330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_compile") 2>conftest.er1
19332 ac_status=$?
19333 grep -v '^ *+' conftest.er1 >conftest.err
19334 rm -f conftest.er1
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342esac
19343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest.$ac_objext'
19349 { (case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352esac
19353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019358 ac_cv_func_isinf_in_math_h=yes
19359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019360 echo "$as_me: failed program was:" >&5
19361sed 's/^/| /' conftest.$ac_ext >&5
19362
19363 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019365
Reid Spencera773bd52006-08-04 18:18:08 +000019366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019367 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019368ac_cpp='$CPP $CPPFLAGS'
19369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19371ac_compiler_gnu=$ac_cv_c_compiler_gnu
19372
19373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019374{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19375echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019376
19377if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019379cat >>confdefs.h <<\_ACEOF
19380#define HAVE_ISINF_IN_MATH_H 1
19381_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019382
Reid Spencerabec8f92004-10-27 23:03:44 +000019383fi
19384
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019385{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19386echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19387if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019389else
Reid Spencera773bd52006-08-04 18:18:08 +000019390 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019391ac_cpp='$CXXCPP $CPPFLAGS'
19392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019396 cat >conftest.$ac_ext <<_ACEOF
19397/* confdefs.h. */
19398_ACEOF
19399cat confdefs.h >>conftest.$ac_ext
19400cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019401/* end confdefs.h. */
19402#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019403int
19404main ()
19405{
19406float f; isinf(f);
19407 ;
19408 return 0;
19409}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019410_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019411rm -f conftest.$ac_objext
19412if { (ac_try="$ac_compile"
19413case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416esac
19417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19426 { (case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19429esac
19430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_try") 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
19436 { (case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439esac
19440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_try") 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019445 ac_cv_func_isinf_in_cmath=yes
19446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019447 echo "$as_me: failed program was:" >&5
19448sed 's/^/| /' conftest.$ac_ext >&5
19449
19450 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019451fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019452
Reid Spencera773bd52006-08-04 18:18:08 +000019453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019454 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019455ac_cpp='$CPP $CPPFLAGS'
19456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458ac_compiler_gnu=$ac_cv_c_compiler_gnu
19459
19460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019461{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19462echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019463
19464if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019465
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019466cat >>confdefs.h <<\_ACEOF
19467#define HAVE_ISINF_IN_CMATH 1
19468_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019469
Reid Spencerabec8f92004-10-27 23:03:44 +000019470fi
19471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019472{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19473echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19474if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019476else
Reid Spencera773bd52006-08-04 18:18:08 +000019477 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019478ac_cpp='$CXXCPP $CPPFLAGS'
19479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483 cat >conftest.$ac_ext <<_ACEOF
19484/* confdefs.h. */
19485_ACEOF
19486cat confdefs.h >>conftest.$ac_ext
19487cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019488/* end confdefs.h. */
19489#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019490int
19491main ()
19492{
19493float f; std::isinf(f)}
19494 ;
19495 return 0;
19496}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019497_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019498rm -f conftest.$ac_objext
19499if { (ac_try="$ac_compile"
19500case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19503esac
19504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_compile") 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516esac
19517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19526esac
19527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_try") 2>&5
19529 ac_status=$?
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019532 ac_cv_func_std_isinf_in_cmath=yes
19533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019534 echo "$as_me: failed program was:" >&5
19535sed 's/^/| /' conftest.$ac_ext >&5
19536
19537 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019539
Reid Spencera773bd52006-08-04 18:18:08 +000019540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019541 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019542ac_cpp='$CPP $CPPFLAGS'
19543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19545ac_compiler_gnu=$ac_cv_c_compiler_gnu
19546
19547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019548{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19549echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019550
19551if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019553cat >>confdefs.h <<\_ACEOF
19554#define HAVE_STD_ISINF_IN_CMATH 1
19555_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019556
Reid Spencerabec8f92004-10-27 23:03:44 +000019557fi
19558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019559{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19560echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19561if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019563else
Reid Spencera773bd52006-08-04 18:18:08 +000019564 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019565ac_cpp='$CXXCPP $CPPFLAGS'
19566ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570 cat >conftest.$ac_ext <<_ACEOF
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019575/* end confdefs.h. */
19576#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019577int
19578main ()
19579{
19580float f; finite(f);
19581 ;
19582 return 0;
19583}
Brian Gaeked59a6472004-07-21 03:33:58 +000019584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019585rm -f conftest.$ac_objext
19586if { (ac_try="$ac_compile"
19587case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19590esac
19591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19593 ac_status=$?
19594 grep -v '^ *+' conftest.er1 >conftest.err
19595 rm -f conftest.er1
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19600 { (case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603esac
19604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_try") 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613esac
19614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_try") 2>&5
19616 ac_status=$?
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019619 ac_cv_func_finite_in_ieeefp_h=yes
19620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019621 echo "$as_me: failed program was:" >&5
19622sed 's/^/| /' conftest.$ac_ext >&5
19623
19624 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019626
Reid Spencera773bd52006-08-04 18:18:08 +000019627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019628 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019629ac_cpp='$CPP $CPPFLAGS'
19630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_c_compiler_gnu
19633
19634fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019635{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19636echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019637
Brian Gaeke6802b552004-10-28 05:06:45 +000019638if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019639
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019640cat >>confdefs.h <<\_ACEOF
19641#define HAVE_FINITE_IN_IEEEFP_H 1
19642_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019643
Reid Spencerabec8f92004-10-27 23:03:44 +000019644fi
19645
19646
19647
Reid Spencer30fe5262007-01-20 07:48:49 +000019648if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019649
19650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019651for ac_header in stdlib.h unistd.h
19652do
19653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659fi
19660ac_res=`eval echo '${'$as_ac_Header'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662echo "${ECHO_T}$ac_res" >&6; }
19663else
19664 # Is the header compilable?
19665{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19667cat >conftest.$ac_ext <<_ACEOF
19668/* confdefs.h. */
19669_ACEOF
19670cat confdefs.h >>conftest.$ac_ext
19671cat >>conftest.$ac_ext <<_ACEOF
19672/* end confdefs.h. */
19673$ac_includes_default
19674#include <$ac_header>
19675_ACEOF
19676rm -f conftest.$ac_objext
19677if { (ac_try="$ac_compile"
19678case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19681esac
19682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_compile") 2>conftest.er1
19684 ac_status=$?
19685 grep -v '^ *+' conftest.er1 >conftest.err
19686 rm -f conftest.er1
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19691 { (case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19694esac
19695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_try") 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try='test -s conftest.$ac_objext'
19701 { (case "(($ac_try" in
19702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19704esac
19705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_header_compiler=yes
19711else
19712 echo "$as_me: failed program was:" >&5
19713sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019715 ac_header_compiler=no
19716fi
19717
19718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19720echo "${ECHO_T}$ac_header_compiler" >&6; }
19721
19722# Is the header present?
19723{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19725cat >conftest.$ac_ext <<_ACEOF
19726/* confdefs.h. */
19727_ACEOF
19728cat confdefs.h >>conftest.$ac_ext
19729cat >>conftest.$ac_ext <<_ACEOF
19730/* end confdefs.h. */
19731#include <$ac_header>
19732_ACEOF
19733if { (ac_try="$ac_cpp conftest.$ac_ext"
19734case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19737esac
19738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19740 ac_status=$?
19741 grep -v '^ *+' conftest.er1 >conftest.err
19742 rm -f conftest.er1
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } >/dev/null; then
19746 if test -s conftest.err; then
19747 ac_cpp_err=$ac_c_preproc_warn_flag
19748 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19749 else
19750 ac_cpp_err=
19751 fi
19752else
19753 ac_cpp_err=yes
19754fi
19755if test -z "$ac_cpp_err"; then
19756 ac_header_preproc=yes
19757else
19758 echo "$as_me: failed program was:" >&5
19759sed 's/^/| /' conftest.$ac_ext >&5
19760
19761 ac_header_preproc=no
19762fi
19763
19764rm -f conftest.err conftest.$ac_ext
19765{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19766echo "${ECHO_T}$ac_header_preproc" >&6; }
19767
19768# So? What about this header?
19769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19770 yes:no: )
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19772echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19774echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19775 ac_header_preproc=yes
19776 ;;
19777 no:yes:* )
19778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19779echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19781echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19783echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19785echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19787echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19789echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19790 ( cat <<\_ASBOX
19791## ----------------------------------- ##
19792## Report this to llvmbugs@cs.uiuc.edu ##
19793## ----------------------------------- ##
19794_ASBOX
19795 ) | sed "s/^/$as_me: WARNING: /" >&2
19796 ;;
19797esac
19798{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19802else
19803 eval "$as_ac_Header=\$ac_header_preproc"
19804fi
19805ac_res=`eval echo '${'$as_ac_Header'}'`
19806 { echo "$as_me:$LINENO: result: $ac_res" >&5
19807echo "${ECHO_T}$ac_res" >&6; }
19808
19809fi
19810if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019811 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019813_ACEOF
19814
19815fi
19816
19817done
19818
19819
19820for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019821do
19822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827else
19828 cat >conftest.$ac_ext <<_ACEOF
19829/* confdefs.h. */
19830_ACEOF
19831cat confdefs.h >>conftest.$ac_ext
19832cat >>conftest.$ac_ext <<_ACEOF
19833/* end confdefs.h. */
19834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19836#define $ac_func innocuous_$ac_func
19837
19838/* System header to define __stub macros and hopefully few prototypes,
19839 which can conflict with char $ac_func (); below.
19840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19841 <limits.h> exists even on freestanding compilers. */
19842
19843#ifdef __STDC__
19844# include <limits.h>
19845#else
19846# include <assert.h>
19847#endif
19848
19849#undef $ac_func
19850
19851/* Override any GCC internal prototype to avoid an error.
19852 Use char because int might match the return type of a GCC
19853 builtin and then its argument prototype would still apply. */
19854#ifdef __cplusplus
19855extern "C"
19856#endif
19857char $ac_func ();
19858/* The GNU C library defines this for functions which it implements
19859 to always fail with ENOSYS. Some functions are actually named
19860 something starting with __ and the normal name is an alias. */
19861#if defined __stub_$ac_func || defined __stub___$ac_func
19862choke me
19863#endif
19864
19865int
19866main ()
19867{
19868return $ac_func ();
19869 ;
19870 return 0;
19871}
19872_ACEOF
19873rm -f conftest.$ac_objext conftest$ac_exeext
19874if { (ac_try="$ac_link"
19875case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878esac
19879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_link") 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19888 { (case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19891esac
19892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_try") 2>&5
19894 ac_status=$?
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try='test -s conftest$ac_exeext'
19898 { (case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19901esac
19902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_try") 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 eval "$as_ac_var=yes"
19908else
19909 echo "$as_me: failed program was:" >&5
19910sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 eval "$as_ac_var=no"
19913fi
19914
19915rm -f core conftest.err conftest.$ac_objext \
19916 conftest$ac_exeext conftest.$ac_ext
19917fi
19918ac_res=`eval echo '${'$as_ac_var'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920echo "${ECHO_T}$ac_res" >&6; }
19921if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019922 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019924_ACEOF
19925
19926fi
19927done
19928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019929{ echo "$as_me:$LINENO: checking for working mmap" >&5
19930echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19931if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019934 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019935 ac_cv_func_mmap_fixed_mapped=no
19936else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937 cat >conftest.$ac_ext <<_ACEOF
19938/* confdefs.h. */
19939_ACEOF
19940cat confdefs.h >>conftest.$ac_ext
19941cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019943$ac_includes_default
19944/* malloc might have been renamed as rpl_malloc. */
19945#undef malloc
19946
19947/* Thanks to Mike Haertel and Jim Avera for this test.
19948 Here is a matrix of mmap possibilities:
19949 mmap private not fixed
19950 mmap private fixed at somewhere currently unmapped
19951 mmap private fixed at somewhere already mapped
19952 mmap shared not fixed
19953 mmap shared fixed at somewhere currently unmapped
19954 mmap shared fixed at somewhere already mapped
19955 For private mappings, we should verify that changes cannot be read()
19956 back from the file, nor mmap's back from the file at a different
19957 address. (There have been systems where private was not correctly
19958 implemented like the infamous i386 svr4.0, and systems where the
19959 VM page cache was not coherent with the file system buffer cache
19960 like early versions of FreeBSD and possibly contemporary NetBSD.)
19961 For shared mappings, we should conversely verify that changes get
19962 propagated back to all the places they're supposed to be.
19963
19964 Grep wants private fixed already mapped.
19965 The main things grep needs to know about mmap are:
19966 * does it exist and is it safe to write into the mmap'd area
19967 * how to use it (BSD variants) */
19968
19969#include <fcntl.h>
19970#include <sys/mman.h>
19971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019972#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019973char *malloc ();
19974#endif
19975
19976/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977#if !HAVE_GETPAGESIZE
19978/* Assume that all systems that can run configure have sys/param.h. */
19979# if !HAVE_SYS_PARAM_H
19980# define HAVE_SYS_PARAM_H 1
19981# endif
19982
John Criswell7a73b802003-06-30 21:59:07 +000019983# ifdef _SC_PAGESIZE
19984# define getpagesize() sysconf(_SC_PAGESIZE)
19985# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019986# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019987# include <sys/param.h>
19988# ifdef EXEC_PAGESIZE
19989# define getpagesize() EXEC_PAGESIZE
19990# else /* no EXEC_PAGESIZE */
19991# ifdef NBPG
19992# define getpagesize() NBPG * CLSIZE
19993# ifndef CLSIZE
19994# define CLSIZE 1
19995# endif /* no CLSIZE */
19996# else /* no NBPG */
19997# ifdef NBPC
19998# define getpagesize() NBPC
19999# else /* no NBPC */
20000# ifdef PAGESIZE
20001# define getpagesize() PAGESIZE
20002# endif /* PAGESIZE */
20003# endif /* no NBPC */
20004# endif /* no NBPG */
20005# endif /* no EXEC_PAGESIZE */
20006# else /* no HAVE_SYS_PARAM_H */
20007# define getpagesize() 8192 /* punt totally */
20008# endif /* no HAVE_SYS_PARAM_H */
20009# endif /* no _SC_PAGESIZE */
20010
20011#endif /* no HAVE_GETPAGESIZE */
20012
20013int
20014main ()
20015{
20016 char *data, *data2, *data3;
20017 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020018 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020019
20020 pagesize = getpagesize ();
20021
20022 /* First, make a file with some known garbage in it. */
20023 data = (char *) malloc (pagesize);
20024 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020025 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020026 for (i = 0; i < pagesize; ++i)
20027 *(data + i) = rand ();
20028 umask (0);
20029 fd = creat ("conftest.mmap", 0600);
20030 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020031 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020032 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020034 close (fd);
20035
20036 /* Next, try to mmap the file at a fixed address which already has
20037 something else allocated at it. If we can, also make sure that
20038 we see the same garbage. */
20039 fd = open ("conftest.mmap", O_RDWR);
20040 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020041 return 1;
20042 data2 = (char *) malloc (2 * pagesize);
20043 if (!data2)
20044 return 1;
20045 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020046 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020047 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020048 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020049 for (i = 0; i < pagesize; ++i)
20050 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020051 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020052
20053 /* Finally, make sure that changes to the mapped area do not
20054 percolate back to the file as seen by read(). (This is a bug on
20055 some variants of i386 svr4.0.) */
20056 for (i = 0; i < pagesize; ++i)
20057 *(data2 + i) = *(data2 + i) + 1;
20058 data3 = (char *) malloc (pagesize);
20059 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020060 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020061 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020062 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020063 for (i = 0; i < pagesize; ++i)
20064 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020065 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020066 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020067 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020068}
20069_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070rm -f conftest$ac_exeext
20071if { (ac_try="$ac_link"
20072case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20075esac
20076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_link") 2>&5
20078 ac_status=$?
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084esac
20085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020090 ac_cv_func_mmap_fixed_mapped=yes
20091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020092 echo "$as_me: program exited with status $ac_status" >&5
20093echo "$as_me: failed program was:" >&5
20094sed 's/^/| /' conftest.$ac_ext >&5
20095
20096( exit $ac_status )
20097ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020098fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099rm -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 +000020100fi
Reid Spencera773bd52006-08-04 18:18:08 +000020101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102
John Criswell7a73b802003-06-30 21:59:07 +000020103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020104{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20105echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020106if test $ac_cv_func_mmap_fixed_mapped = yes; then
20107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020108cat >>confdefs.h <<\_ACEOF
20109#define HAVE_MMAP 1
20110_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020111
20112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020113rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020115 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20116echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20117if test "${ac_cv_func_mmap_file+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020119else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020120 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020121ac_cpp='$CPP $CPPFLAGS'
20122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124ac_compiler_gnu=$ac_cv_c_compiler_gnu
20125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020126 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020127 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020129 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020131 /* confdefs.h. */
20132_ACEOF
20133cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020136
John Criswell7a73b802003-06-30 21:59:07 +000020137#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020138#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020139#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020140
20141int
20142main ()
20143{
John Criswell7a73b802003-06-30 21:59:07 +000020144
20145 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020146 fd = creat ("foo",0777);
20147 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20148 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020149 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020150 ;
20151 return 0;
20152}
John Criswell7a73b802003-06-30 21:59:07 +000020153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020154rm -f conftest$ac_exeext
20155if { (ac_try="$ac_link"
20156case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_link") 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20165 { (case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20168esac
20169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020174 ac_cv_func_mmap_file=yes
20175else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020176 echo "$as_me: program exited with status $ac_status" >&5
20177echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
20180( exit $ac_status )
20181ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020182fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020183rm -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 +000020184fi
Reid Spencera773bd52006-08-04 18:18:08 +000020185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020186
John Criswell7a73b802003-06-30 21:59:07 +000020187 ac_ext=c
20188ac_cpp='$CPP $CPPFLAGS'
20189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192
20193
20194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020195{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20196echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020197if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020199cat >>confdefs.h <<\_ACEOF
20200#define HAVE_MMAP_FILE
20201_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020202
20203 MMAP_FILE=yes
20204
20205fi
20206
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020207 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20208echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20209if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020211else
Reid Spencer582a23c2004-12-29 07:07:57 +000020212 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020213 ac_cv_need_dev_zero_for_mmap=yes
20214 else
20215 ac_cv_need_dev_zero_for_mmap=no
20216 fi
20217
20218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020219{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20220echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020221if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223cat >>confdefs.h <<\_ACEOF
20224#define NEED_DEV_ZERO_FOR_MMAP 1
20225_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020226
20227fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020228
Reid Spencer30fe5262007-01-20 07:48:49 +000020229 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20230 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020231 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20232echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020233 fi
20234 if test "$ac_cv_func_mmap_file" = "no"
20235 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020236 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20237echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020238 fi
John Criswellb13092b2003-07-22 21:00:24 +000020239fi
John Criswell7a73b802003-06-30 21:59:07 +000020240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20242echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020243ac_ext=cpp
20244ac_cpp='$CXXCPP $CPPFLAGS'
20245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20248
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020249cat >conftest.$ac_ext <<_ACEOF
20250/* confdefs.h. */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020254/* end confdefs.h. */
20255int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020256 volatile unsigned long val = 1;
20257 __sync_synchronize();
20258 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020259 __sync_add_and_fetch(&val, 1);
20260 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020261 return 0;
20262 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020263
20264_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020265rm -f conftest.$ac_objext conftest$ac_exeext
20266if { (ac_try="$ac_link"
20267case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270esac
20271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_link") 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20280 { (case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283esac
20284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_try") 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } &&
20289 { ac_try='test -s conftest$ac_exeext'
20290 { (case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293esac
20294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_try") 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020299 ac_ext=c
20300ac_cpp='$CPP $CPPFLAGS'
20301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303ac_compiler_gnu=$ac_cv_c_compiler_gnu
20304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020305 { echo "$as_me:$LINENO: result: yes" >&5
20306echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020308cat >>confdefs.h <<\_ACEOF
20309#define LLVM_MULTITHREADED 1
20310_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020311
Owen Andersond4b272b2009-05-18 23:58:51 +000020312else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020313 echo "$as_me: failed program was:" >&5
20314sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020316 { echo "$as_me:$LINENO: result: no" >&5
20317echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020319cat >>confdefs.h <<\_ACEOF
20320#define LLVM_MULTITHREADED 0
20321_ACEOF
20322
20323 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20324echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020326
Owen Andersond4b272b2009-05-18 23:58:51 +000020327rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020329
John Criswell7a73b802003-06-30 21:59:07 +000020330
Nick Lewycky4372e692009-09-29 06:18:23 +000020331if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020332 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20333echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20334if test "${llvm_cv_linux_mixed+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020336else
20337 ac_ext=c
20338ac_cpp='$CPP $CPPFLAGS'
20339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20341ac_compiler_gnu=$ac_cv_c_compiler_gnu
20342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020343 cat >conftest.$ac_ext <<_ACEOF
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020348/* end confdefs.h. */
20349#ifndef __x86_64__
20350 error: Not x86-64 even if uname says so!
20351 #endif
20352
20353int
20354main ()
20355{
20356
20357 ;
20358 return 0;
20359}
20360_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020361rm -f conftest.$ac_objext
20362if { (ac_try="$ac_compile"
20363case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366esac
20367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_compile") 2>conftest.er1
20369 ac_status=$?
20370 grep -v '^ *+' conftest.er1 >conftest.err
20371 rm -f conftest.er1
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
20375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20376 { (case "(($ac_try" in
20377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378 *) ac_try_echo=$ac_try;;
20379esac
20380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_try") 2>&5
20382 ac_status=$?
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try='test -s conftest.$ac_objext'
20386 { (case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20389esac
20390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020395 llvm_cv_linux_mixed=no
20396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397 echo "$as_me: failed program was:" >&5
20398sed 's/^/| /' conftest.$ac_ext >&5
20399
20400 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402
Nick Lewycky4372e692009-09-29 06:18:23 +000020403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404 ac_ext=c
20405ac_cpp='$CPP $CPPFLAGS'
20406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409
20410
20411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020412{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20413echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020414
20415 if test "$llvm_cv_linux_mixed" = "yes"; then
20416 llvm_cv_target_arch="x86"
20417 ARCH="x86"
20418 fi
20419fi
20420
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421
Reid Spencer9372f152007-07-30 20:13:24 +000020422for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020423do
20424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20425{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20427if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 cat >conftest.$ac_ext <<_ACEOF
20431/* confdefs.h. */
20432_ACEOF
20433cat confdefs.h >>conftest.$ac_ext
20434cat >>conftest.$ac_ext <<_ACEOF
20435/* end confdefs.h. */
20436/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20438#define $ac_func innocuous_$ac_func
20439
20440/* System header to define __stub macros and hopefully few prototypes,
20441 which can conflict with char $ac_func (); below.
20442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20443 <limits.h> exists even on freestanding compilers. */
20444
20445#ifdef __STDC__
20446# include <limits.h>
20447#else
20448# include <assert.h>
20449#endif
20450
20451#undef $ac_func
20452
20453/* Override any GCC internal prototype to avoid an error.
20454 Use char because int might match the return type of a GCC
20455 builtin and then its argument prototype would still apply. */
20456#ifdef __cplusplus
20457extern "C"
20458#endif
20459char $ac_func ();
20460/* The GNU C library defines this for functions which it implements
20461 to always fail with ENOSYS. Some functions are actually named
20462 something starting with __ and the normal name is an alias. */
20463#if defined __stub_$ac_func || defined __stub___$ac_func
20464choke me
20465#endif
20466
20467int
20468main ()
20469{
20470return $ac_func ();
20471 ;
20472 return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext conftest$ac_exeext
20476if { (ac_try="$ac_link"
20477case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480esac
20481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_link") 2>conftest.er1
20483 ac_status=$?
20484 grep -v '^ *+' conftest.er1 >conftest.err
20485 rm -f conftest.er1
20486 cat conftest.err >&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493esac
20494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503esac
20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 eval "$as_ac_var=yes"
20510else
20511 echo "$as_me: failed program was:" >&5
20512sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 eval "$as_ac_var=no"
20515fi
20516
20517rm -f core conftest.err conftest.$ac_objext \
20518 conftest$ac_exeext conftest.$ac_ext
20519fi
20520ac_res=`eval echo '${'$as_ac_var'}'`
20521 { echo "$as_me:$LINENO: result: $ac_res" >&5
20522echo "${ECHO_T}$ac_res" >&6; }
20523if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020524 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020526_ACEOF
20527
20528fi
20529done
20530
20531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20533echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20534if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020536else
20537 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020538if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020539 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020540 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20541 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020542 if test $? -eq 0 ; then
20543 llvm_cv_llvmgcc_sanity="yes"
20544 fi
20545 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020546fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020548{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20549echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020550
20551if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20553echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020554 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020555 LLVMCC1=$llvmcc1path
20556
Reid Spencer502935f2004-12-22 05:56:56 +000020557 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020558 LLVMCC1PLUS=$llvmcc1pluspath
20559
Reid Spencer502935f2004-12-22 05:56:56 +000020560 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20561 LLVMGCCDIR=$llvmgccdir
20562
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020563 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020564 LLVMGCC_LANGS=$llvmgcclangs
20565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020566 { echo "$as_me:$LINENO: result: ok" >&5
20567echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020568fi
20569
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020570SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020571
20572
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020573SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20574
20575
Reid Spencere9de0912004-08-20 09:03:57 +000020576# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020577# information into substitutions that will end up in Makefile.config.in
20578# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020579if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020580 prefix="/usr/local"
20581fi
Reid Spencere9de0912004-08-20 09:03:57 +000020582eval LLVM_PREFIX="${prefix}";
20583eval LLVM_BINDIR="${prefix}/bin";
20584eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020585eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020586eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020587eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020588eval LLVM_INCLUDEDIR="${prefix}/include";
20589eval LLVM_INFODIR="${prefix}/info";
20590eval LLVM_MANDIR="${prefix}/man";
20591LLVM_CONFIGTIME=`date`
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020603# Place the various directores into the config.h file as #defines so that we
20604# can know about the installation paths within LLVM.
20605
Reid Spencere9de0912004-08-20 09:03:57 +000020606cat >>confdefs.h <<_ACEOF
20607#define LLVM_PREFIX "$LLVM_PREFIX"
20608_ACEOF
20609
20610
20611cat >>confdefs.h <<_ACEOF
20612#define LLVM_BINDIR "$LLVM_BINDIR"
20613_ACEOF
20614
20615
20616cat >>confdefs.h <<_ACEOF
20617#define LLVM_LIBDIR "$LLVM_LIBDIR"
20618_ACEOF
20619
20620
20621cat >>confdefs.h <<_ACEOF
20622#define LLVM_DATADIR "$LLVM_DATADIR"
20623_ACEOF
20624
20625
20626cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020627#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020628_ACEOF
20629
20630
20631cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020632#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020633_ACEOF
20634
20635
20636cat >>confdefs.h <<_ACEOF
20637#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20638_ACEOF
20639
20640
20641cat >>confdefs.h <<_ACEOF
20642#define LLVM_INFODIR "$LLVM_INFODIR"
20643_ACEOF
20644
20645
20646cat >>confdefs.h <<_ACEOF
20647#define LLVM_MANDIR "$LLVM_MANDIR"
20648_ACEOF
20649
20650
20651cat >>confdefs.h <<_ACEOF
20652#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20653_ACEOF
20654
20655
Eric Christopher790e11c2007-12-01 00:34:39 +000020656cat >>confdefs.h <<_ACEOF
20657#define LLVM_HOSTTRIPLE "$host"
20658_ACEOF
20659
20660
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020661# Determine which bindings to build.
20662if test "$BINDINGS_TO_BUILD" = auto ; then
20663 BINDINGS_TO_BUILD=""
20664 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20665 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20666 fi
20667fi
20668BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20669
20670
20671# This isn't really configurey, but it avoids having to repeat the list in
20672# other files.
20673ALL_BINDINGS=ocaml
20674
20675
Gordon Henriksenf0915682007-10-02 16:42:22 +000020676# Do any work necessary to ensure that bindings have what they need.
20677binding_prereqs_failed=0
20678for a_binding in $BINDINGS_TO_BUILD ; do
20679 case "$a_binding" in
20680 ocaml)
20681 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020682 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20683echo "$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 +000020684 binding_prereqs_failed=1
20685 fi
20686 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20688echo "$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 +000020689 binding_prereqs_failed=1
20690 fi
20691 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020692 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20693echo "$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 +000020694 fi
20695 if test "x$with_ocaml_libdir" != xauto ; then
20696 OCAML_LIBDIR=$with_ocaml_libdir
20697
20698 else
20699 ocaml_stdlib="`"$OCAMLC" -where`"
20700 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20701 then
20702 # ocaml stdlib is beneath our prefix; use stdlib
20703 OCAML_LIBDIR=$ocaml_stdlib
20704
20705 else
20706 # ocaml stdlib is outside our prefix; use libdir/ocaml
20707 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20708
20709 fi
20710 fi
20711 ;;
20712 esac
20713done
20714if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020715 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20716echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20717 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020718fi
20719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020720{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20721echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20722if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020724else
20725 ac_ext=cpp
20726ac_cpp='$CXXCPP $CPPFLAGS'
20727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20730
20731 oldcxxflags="$CXXFLAGS"
20732 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020733 cat >conftest.$ac_ext <<_ACEOF
20734/* confdefs.h. */
20735_ACEOF
20736cat confdefs.h >>conftest.$ac_ext
20737cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020738/* end confdefs.h. */
20739
20740int
20741main ()
20742{
20743
20744 ;
20745 return 0;
20746}
20747_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748rm -f conftest.$ac_objext
20749if { (ac_try="$ac_compile"
20750case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20753esac
20754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_compile") 2>conftest.er1
20756 ac_status=$?
20757 grep -v '^ *+' conftest.er1 >conftest.err
20758 rm -f conftest.er1
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } &&
20762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20763 { (case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20766esac
20767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_try") 2>&5
20769 ac_status=$?
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try='test -s conftest.$ac_objext'
20773 { (case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20776esac
20777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_try") 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020782 llvm_cv_cxx_visibility_inlines_hidden=yes
20783else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020784 echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791 CXXFLAGS="$oldcxxflags"
20792 ac_ext=c
20793ac_cpp='$CPP $CPPFLAGS'
20794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797
20798
20799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020800{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20801echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020802if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20803 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20804
20805else
20806 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20807
20808fi
20809
Gordon Henriksenf0915682007-10-02 16:42:22 +000020810
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020811if test "$llvm_cv_link_use_r" = "yes" ; then
20812 RPATH="-Wl,-R"
20813else
20814 RPATH="-Wl,-rpath"
20815fi
20816
20817
20818if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20819 RDYNAMIC="-Wl,-export-dynamic"
20820else
20821 RDYNAMIC=""
20822fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020823
20824
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020825
Eric Christophera1cba682010-08-08 02:44:25 +000020826ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020827
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020828
20829
20830
20831
20832
Douglas Gregor1555a232009-06-16 20:12:29 +000020833ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20834
20835ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20836
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020837ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20838
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020839ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20840
Chandler Carruth8b67f772009-10-26 01:35:46 +000020841ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020842
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020843
Reid Spencera773bd52006-08-04 18:18:08 +000020844ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020845
20846
Reid Spencerea949cf2006-08-16 00:45:38 +000020847ac_config_files="$ac_config_files llvm.spec"
20848
20849
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020850ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020851
20852
Reid Spencera773bd52006-08-04 18:18:08 +000020853ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020854
20855
Reid Spencera773bd52006-08-04 18:18:08 +000020856ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020857
Reid Spencera773bd52006-08-04 18:18:08 +000020858ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020859
20860
Reid Spencera773bd52006-08-04 18:18:08 +000020861ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020862
20863
Reid Spencera773bd52006-08-04 18:18:08 +000020864ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020865
20866
Reid Spencera773bd52006-08-04 18:18:08 +000020867ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020868
20869
Reid Spencer8b2e1412006-11-17 03:32:33 +000020870ac_config_commands="$ac_config_commands runtime/Makefile"
20871
20872
Reid Spencera773bd52006-08-04 18:18:08 +000020873ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020874
20875
Reid Spencera773bd52006-08-04 18:18:08 +000020876ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020877
20878
Bill Wendlingf24eb392009-01-04 23:12:30 +000020879ac_config_commands="$ac_config_commands unittests/Makefile"
20880
20881
Reid Spencera773bd52006-08-04 18:18:08 +000020882ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020883
20884
Reid Spencera773bd52006-08-04 18:18:08 +000020885ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020886
20887
Reid Spencera773bd52006-08-04 18:18:08 +000020888ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020889
20890
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020891ac_config_commands="$ac_config_commands bindings/Makefile"
20892
20893
20894ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20895
20896
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020897
John Criswell7a73b802003-06-30 21:59:07 +000020898cat >confcache <<\_ACEOF
20899# This file is a shell script that caches the results of configure
20900# tests run on this system so they can be shared between configure
20901# scripts and configure runs, see configure's option --config-cache.
20902# It is not useful on other systems. If it contains results you don't
20903# want to keep, you may remove or edit it.
20904#
20905# config.status only pays attention to the cache file if you give it
20906# the --recheck option to rerun configure.
20907#
John Criswell0c38eaf2003-09-10 15:17:25 +000020908# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020909# loading this file, other *unset* `ac_cv_foo' will be assigned the
20910# following values.
20911
20912_ACEOF
20913
20914# The following way of writing the cache mishandles newlines in values,
20915# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020916# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020917# Ultrix sh set writes to stderr and can't be redirected directly,
20918# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020919(
20920 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20921 eval ac_val=\$$ac_var
20922 case $ac_val in #(
20923 *${as_nl}*)
20924 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020925 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20926echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020927 esac
20928 case $ac_var in #(
20929 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020930 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020931 esac ;;
20932 esac
20933 done
20934
John Criswell7a73b802003-06-30 21:59:07 +000020935 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20937 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020938 # `set' does not quote correctly, so add quotes (double-quote
20939 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020940 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020941 "s/'/'\\\\''/g;
20942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020943 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020944 *)
20945 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020948 esac |
20949 sort
20950) |
John Criswell7a73b802003-06-30 21:59:07 +000020951 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020952 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020953 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020954 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20956 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20958 :end' >>confcache
20959if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20960 if test -w "$cache_file"; then
20961 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020962 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20963echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020964 cat confcache >$cache_file
20965 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020966 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20967echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020968 fi
20969fi
20970rm -f confcache
20971
20972test "x$prefix" = xNONE && prefix=$ac_default_prefix
20973# Let make expand exec_prefix.
20974test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20975
John Criswell7a73b802003-06-30 21:59:07 +000020976DEFS=-DHAVE_CONFIG_H
20977
John Criswell0c38eaf2003-09-10 15:17:25 +000020978ac_libobjs=
20979ac_ltlibobjs=
20980for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20981 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020982 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20985 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020986 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20987 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020988done
20989LIBOBJS=$ac_libobjs
20990
20991LTLIBOBJS=$ac_ltlibobjs
20992
20993
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020994if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20996Usually this means the macro was only invoked conditionally." >&5
20997echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20998Usually this means the macro was only invoked conditionally." >&2;}
20999 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021000fi
21001if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021002 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21003Usually this means the macro was only invoked conditionally." >&5
21004echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21005Usually this means the macro was only invoked conditionally." >&2;}
21006 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021007fi
John Criswell7a73b802003-06-30 21:59:07 +000021008
21009: ${CONFIG_STATUS=./config.status}
21010ac_clean_files_save=$ac_clean_files
21011ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21013echo "$as_me: creating $CONFIG_STATUS" >&6;}
21014cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021015#! $SHELL
21016# Generated by $as_me.
21017# Run this file to recreate the current configuration.
21018# Compiler output produced by configure, useful for debugging
21019# configure, is in config.log if it exists.
21020
21021debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021022ac_cs_recheck=false
21023ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021024SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021027cat >>$CONFIG_STATUS <<\_ACEOF
21028## --------------------- ##
21029## M4sh Initialization. ##
21030## --------------------- ##
21031
21032# Be Bourne compatible
21033if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021034 emulate sh
21035 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021037 # is contrary to our usage. Disable this feature.
21038 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021039 setopt NO_GLOB_SUBST
21040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021041 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021043BIN_SH=xpg4; export BIN_SH # for Tru64
21044DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021045
John Criswell7a73b802003-06-30 21:59:07 +000021046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021047# PATH needs CR
21048# Avoid depending upon Character Ranges.
21049as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21050as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21051as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21052as_cr_digits='0123456789'
21053as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021054
21055# The user is always right.
21056if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021057 echo "#! /bin/sh" >conf$$.sh
21058 echo "exit 0" >>conf$$.sh
21059 chmod +x conf$$.sh
21060 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21061 PATH_SEPARATOR=';'
21062 else
21063 PATH_SEPARATOR=:
21064 fi
21065 rm -f conf$$.sh
21066fi
21067
21068# Support unset when possible.
21069if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21070 as_unset=unset
21071else
21072 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021073fi
John Criswell7a73b802003-06-30 21:59:07 +000021074
Reid Spencera773bd52006-08-04 18:18:08 +000021075
21076# IFS
21077# We need space, tab and new line, in precisely that order. Quoting is
21078# there to prevent editors from complaining about space-tab.
21079# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21080# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021081as_nl='
21082'
Reid Spencera773bd52006-08-04 18:18:08 +000021083IFS=" "" $as_nl"
21084
21085# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021086case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021087 *[\\/]* ) as_myself=$0 ;;
21088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021089for as_dir in $PATH
21090do
21091 IFS=$as_save_IFS
21092 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21094done
Reid Spencera773bd52006-08-04 18:18:08 +000021095IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021096
Reid Spencera773bd52006-08-04 18:18:08 +000021097 ;;
21098esac
21099# We did not find ourselves, most probably we were run as `sh COMMAND'
21100# in which case we are not to be found in the path.
21101if test "x$as_myself" = x; then
21102 as_myself=$0
21103fi
21104if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021105 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21106 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021107fi
21108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021109# Work around bugs in pre-3.0 UWIN ksh.
21110for as_var in ENV MAIL MAILPATH
21111do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021112done
21113PS1='$ '
21114PS2='> '
21115PS4='+ '
21116
21117# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021118for as_var in \
21119 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21120 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21121 LC_TELEPHONE LC_TIME
21122do
21123 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21124 eval $as_var=C; export $as_var
21125 else
21126 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021127 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021128done
Torok Edwin871384f2010-01-26 08:50:50 +000021129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021130# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021131if expr a : '\(a\)' >/dev/null 2>&1 &&
21132 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21133 as_expr=expr
21134else
21135 as_expr=false
21136fi
21137
21138if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21139 as_basename=basename
21140else
21141 as_basename=false
21142fi
21143
21144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021145# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021146as_me=`$as_basename -- "$0" ||
21147$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21148 X"$0" : 'X\(//\)$' \| \
21149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021150echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021151 sed '/^.*\/\([^/][^/]*\)\/*$/{
21152 s//\1/
21153 q
21154 }
21155 /^X\/\(\/\/\)$/{
21156 s//\1/
21157 q
21158 }
21159 /^X\/\(\/\).*/{
21160 s//\1/
21161 q
21162 }
21163 s/.*/./; q'`
21164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021165# CDPATH.
21166$as_unset CDPATH
21167
21168
21169
21170 as_lineno_1=$LINENO
21171 as_lineno_2=$LINENO
21172 test "x$as_lineno_1" != "x$as_lineno_2" &&
21173 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21174
21175 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21176 # uniformly replaced by the line number. The first 'sed' inserts a
21177 # line-number line after each line using $LINENO; the second 'sed'
21178 # does the real work. The second script uses 'N' to pair each
21179 # line-number line with the line containing $LINENO, and appends
21180 # trailing '-' during substitution so that $LINENO is not a special
21181 # case at line end.
21182 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21183 # scripts with optimization help from Paolo Bonzini. Blame Lee
21184 # E. McMahon (1931-1989) for sed's syntax. :-)
21185 sed -n '
21186 p
21187 /[$]LINENO/=
21188 ' <$as_myself |
21189 sed '
21190 s/[$]LINENO.*/&-/
21191 t lineno
21192 b
21193 :lineno
21194 N
21195 :loop
21196 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21197 t loop
21198 s/-\n.*//
21199 ' >$as_me.lineno &&
21200 chmod +x "$as_me.lineno" ||
21201 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21202 { (exit 1); exit 1; }; }
21203
21204 # Don't try to exec as it changes $[0], causing all sort of problems
21205 # (the dirname of $[0] is not the place where we might find the
21206 # original and so on. Autoconf is especially sensitive to this).
21207 . "./$as_me.lineno"
21208 # Exit status is that of the last command.
21209 exit
21210}
21211
21212
21213if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21214 as_dirname=dirname
21215else
21216 as_dirname=false
21217fi
Reid Spencera773bd52006-08-04 18:18:08 +000021218
21219ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021220case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021221-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021222 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021223 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021224 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021225 esac;;
21226*)
21227 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021228esac
21229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021230if expr a : '\(a\)' >/dev/null 2>&1 &&
21231 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21232 as_expr=expr
21233else
21234 as_expr=false
21235fi
21236
John Criswell7a73b802003-06-30 21:59:07 +000021237rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021238if test -d conf$$.dir; then
21239 rm -f conf$$.dir/conf$$.file
21240else
21241 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021242 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021243fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021244echo >conf$$.file
21245if ln -s conf$$.file conf$$ 2>/dev/null; then
21246 as_ln_s='ln -s'
21247 # ... but there are two gotchas:
21248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21250 # In both cases, we have to default to `cp -p'.
21251 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021252 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021253elif ln conf$$.file conf$$ 2>/dev/null; then
21254 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021255else
21256 as_ln_s='cp -p'
21257fi
Reid Spencera773bd52006-08-04 18:18:08 +000021258rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21259rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021260
John Criswell0c38eaf2003-09-10 15:17:25 +000021261if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021262 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021263else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021264 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021265 as_mkdir_p=false
21266fi
21267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021268# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21269# systems may use methods other than mode bits to determine executability.
21270cat >conf$$.file <<_ASEOF
21271#! /bin/sh
21272exit 0
21273_ASEOF
21274chmod +x conf$$.file
21275if test -x conf$$.file >/dev/null 2>&1; then
21276 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021277else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021279fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021281
21282# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021283as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021284
21285# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021286as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021287
21288
John Criswell7a73b802003-06-30 21:59:07 +000021289exec 6>&1
21290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021292# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021293# values after options handling.
21294ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021295This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021297
21298 CONFIG_FILES = $CONFIG_FILES
21299 CONFIG_HEADERS = $CONFIG_HEADERS
21300 CONFIG_LINKS = $CONFIG_LINKS
21301 CONFIG_COMMANDS = $CONFIG_COMMANDS
21302 $ $0 $@
21303
Reid Spencera773bd52006-08-04 18:18:08 +000021304on `(hostname || uname -n) 2>/dev/null | sed 1q`
21305"
21306
John Criswell7a73b802003-06-30 21:59:07 +000021307_ACEOF
21308
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021309cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021310# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021311config_files="$ac_config_files"
21312config_headers="$ac_config_headers"
21313config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021314
Reid Spencera773bd52006-08-04 18:18:08 +000021315_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021318ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021319\`$as_me' instantiates files from templates according to the
21320current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021322Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021323
21324 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021325 -V, --version print version number, then exit
21326 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021327 -d, --debug don't remove temporary files
21328 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021329 --file=FILE[:TEMPLATE]
21330 instantiate the configuration file FILE
21331 --header=FILE[:TEMPLATE]
21332 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021333
21334Configuration files:
21335$config_files
21336
21337Configuration headers:
21338$config_headers
21339
John Criswellc764fbc2003-09-06 15:17:13 +000021340Configuration commands:
21341$config_commands
21342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021343Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021344
Reid Spencera773bd52006-08-04 18:18:08 +000021345_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021346cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021347ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021348llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021349configured by $0, generated by GNU Autoconf 2.60,
21350 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021352Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021353This config.status script is free software; the Free Software Foundation
21354gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021355
21356ac_pwd='$ac_pwd'
21357srcdir='$srcdir'
21358INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021359_ACEOF
21360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021361cat >>$CONFIG_STATUS <<\_ACEOF
21362# If no file are specified by the user, then we need to provide default
21363# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021364ac_need_defaults=:
21365while test $# != 0
21366do
21367 case $1 in
21368 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21370 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021371 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021372 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021373 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021374 ac_option=$1
21375 ac_optarg=$2
21376 ac_shift=shift
21377 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021378 esac
21379
John Criswell0c38eaf2003-09-10 15:17:25 +000021380 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021381 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21383 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021386 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021387 debug=: ;;
21388 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021389 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021391 ac_need_defaults=false;;
21392 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021393 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021394 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021395 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021396 --he | --h)
21397 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021398 { echo "$as_me: error: ambiguous option: $1
21399Try \`$0 --help' for more information." >&2
21400 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021401 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021402 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21405 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021406
21407 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408 -*) { echo "$as_me: error: unrecognized option: $1
21409Try \`$0 --help' for more information." >&2
21410 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021413 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021414
21415 esac
21416 shift
21417done
21418
John Criswell0c38eaf2003-09-10 15:17:25 +000021419ac_configure_extra_args=
21420
21421if $ac_cs_silent; then
21422 exec 6>/dev/null
21423 ac_configure_extra_args="$ac_configure_extra_args --silent"
21424fi
21425
21426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021427cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021428if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021429 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21430 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021431 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021432 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021433fi
21434
John Criswell7a73b802003-06-30 21:59:07 +000021435_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021436cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021437exec 5>>config.log
21438{
21439 echo
21440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21441## Running $as_me. ##
21442_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021443 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021444} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021445
Reid Spencera773bd52006-08-04 18:18:08 +000021446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021447cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021448#
Reid Spencera773bd52006-08-04 18:18:08 +000021449# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021450#
Reid Spencerc0682832005-02-24 19:05:19 +000021451llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021452
21453_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021455cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021456
21457# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021458for ac_config_target in $ac_config_targets
21459do
Reid Spencera773bd52006-08-04 18:18:08 +000021460 case $ac_config_target in
21461 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021462 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021463 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21464 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021465 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021466 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021467 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021468 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021469 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021470 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021471 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21472 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21473 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21474 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21475 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21476 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021477 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021478 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21479 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021480 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021481 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21482 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21483 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021484 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21485 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21488echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21489 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021490 esac
21491done
21492
Reid Spencera773bd52006-08-04 18:18:08 +000021493
John Criswell7a73b802003-06-30 21:59:07 +000021494# If the user did not use the arguments to specify the items to instantiate,
21495# then the envvar interface is used. Set only those that are not.
21496# We use the long form for the default assignment because of an extremely
21497# bizarre bug on SunOS 4.1.3.
21498if $ac_need_defaults; then
21499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021502fi
21503
John Criswell0c38eaf2003-09-10 15:17:25 +000021504# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021505# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021506# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021507# Hook for its removal unless debugging.
21508# Note that there is a small window in which the directory will not be cleaned:
21509# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021510$debug ||
21511{
Reid Spencera773bd52006-08-04 18:18:08 +000021512 tmp=
21513 trap 'exit_status=$?
21514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21515' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021517}
John Criswell7a73b802003-06-30 21:59:07 +000021518# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021519
John Criswell7a73b802003-06-30 21:59:07 +000021520{
Reid Spencera773bd52006-08-04 18:18:08 +000021521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021522 test -n "$tmp" && test -d "$tmp"
21523} ||
21524{
Reid Spencera773bd52006-08-04 18:18:08 +000021525 tmp=./conf$$-$RANDOM
21526 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021527} ||
21528{
21529 echo "$me: cannot create a temporary directory in ." >&2
21530 { (exit 1); exit 1; }
21531}
John Criswell7a73b802003-06-30 21:59:07 +000021532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021533#
21534# Set up the sed scripts for CONFIG_FILES section.
21535#
21536
21537# No need to generate the scripts if there are no CONFIG_FILES.
21538# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021539if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021540
21541_ACEOF
21542
Reid Spencera773bd52006-08-04 18:18:08 +000021543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021544
Reid Spencera773bd52006-08-04 18:18:08 +000021545ac_delim='%!_!# '
21546for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021547 cat >conf$$subs.sed <<_ACEOF
21548SHELL!$SHELL$ac_delim
21549PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21550PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21551PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21552PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21553PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21554PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21555exec_prefix!$exec_prefix$ac_delim
21556prefix!$prefix$ac_delim
21557program_transform_name!$program_transform_name$ac_delim
21558bindir!$bindir$ac_delim
21559sbindir!$sbindir$ac_delim
21560libexecdir!$libexecdir$ac_delim
21561datarootdir!$datarootdir$ac_delim
21562datadir!$datadir$ac_delim
21563sysconfdir!$sysconfdir$ac_delim
21564sharedstatedir!$sharedstatedir$ac_delim
21565localstatedir!$localstatedir$ac_delim
21566includedir!$includedir$ac_delim
21567oldincludedir!$oldincludedir$ac_delim
21568docdir!$docdir$ac_delim
21569infodir!$infodir$ac_delim
21570htmldir!$htmldir$ac_delim
21571dvidir!$dvidir$ac_delim
21572pdfdir!$pdfdir$ac_delim
21573psdir!$psdir$ac_delim
21574libdir!$libdir$ac_delim
21575localedir!$localedir$ac_delim
21576mandir!$mandir$ac_delim
21577DEFS!$DEFS$ac_delim
21578ECHO_C!$ECHO_C$ac_delim
21579ECHO_N!$ECHO_N$ac_delim
21580ECHO_T!$ECHO_T$ac_delim
21581LIBS!$LIBS$ac_delim
21582build_alias!$build_alias$ac_delim
21583host_alias!$host_alias$ac_delim
21584target_alias!$target_alias$ac_delim
21585LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21586subdirs!$subdirs$ac_delim
21587build!$build$ac_delim
21588build_cpu!$build_cpu$ac_delim
21589build_vendor!$build_vendor$ac_delim
21590build_os!$build_os$ac_delim
21591host!$host$ac_delim
21592host_cpu!$host_cpu$ac_delim
21593host_vendor!$host_vendor$ac_delim
21594host_os!$host_os$ac_delim
21595target!$target$ac_delim
21596target_cpu!$target_cpu$ac_delim
21597target_vendor!$target_vendor$ac_delim
21598target_os!$target_os$ac_delim
21599OS!$OS$ac_delim
21600HOST_OS!$HOST_OS$ac_delim
21601TARGET_OS!$TARGET_OS$ac_delim
21602LINKALL!$LINKALL$ac_delim
21603NOLINKALL!$NOLINKALL$ac_delim
21604LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21605LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21606ARCH!$ARCH$ac_delim
21607ENDIAN!$ENDIAN$ac_delim
21608CC!$CC$ac_delim
21609CFLAGS!$CFLAGS$ac_delim
21610LDFLAGS!$LDFLAGS$ac_delim
21611CPPFLAGS!$CPPFLAGS$ac_delim
21612ac_ct_CC!$ac_ct_CC$ac_delim
21613EXEEXT!$EXEEXT$ac_delim
21614OBJEXT!$OBJEXT$ac_delim
21615CPP!$CPP$ac_delim
21616GREP!$GREP$ac_delim
21617EGREP!$EGREP$ac_delim
21618LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21619BUILD_CC!$BUILD_CC$ac_delim
21620BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21621BUILD_CXX!$BUILD_CXX$ac_delim
21622CVSBUILD!$CVSBUILD$ac_delim
21623ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21624ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21625DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21626ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21627EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21628DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21629DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21630JIT!$JIT$ac_delim
21631TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21632ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21633ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21634ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021635ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021636ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21638LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21639LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21640LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21641LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21642ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021643CLANGPATH!$CLANGPATH$ac_delim
21644CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021645_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021648 break
21649 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021650 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21651echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21652 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021653 else
21654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021655 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021656done
21657
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021658ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21659if test -n "$ac_eof"; then
21660 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21661 ac_eof=`expr $ac_eof + 1`
21662fi
21663
21664cat >>$CONFIG_STATUS <<_ACEOF
21665cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21666/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021667_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021668sed '
21669s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21670s/^/s,@/; s/!/@,|#_!!_#|/
21671:n
21672t n
21673s/'"$ac_delim"'$/,g/; t
21674s/$/\\/; p
21675N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21676' >>$CONFIG_STATUS <conf$$subs.sed
21677rm -f conf$$subs.sed
21678cat >>$CONFIG_STATUS <<_ACEOF
21679CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021680_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021681
21682
21683ac_delim='%!_!# '
21684for ac_last_try in false false false false false :; do
21685 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021686ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021687OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021688EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21689BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690CXX!$CXX$ac_delim
21691CXXFLAGS!$CXXFLAGS$ac_delim
21692ac_ct_CXX!$ac_ct_CXX$ac_delim
21693NM!$NM$ac_delim
21694ifGNUmake!$ifGNUmake$ac_delim
21695LN_S!$LN_S$ac_delim
21696CMP!$CMP$ac_delim
21697CP!$CP$ac_delim
21698DATE!$DATE$ac_delim
21699FIND!$FIND$ac_delim
21700MKDIR!$MKDIR$ac_delim
21701MV!$MV$ac_delim
21702RANLIB!$RANLIB$ac_delim
21703AR!$AR$ac_delim
21704RM!$RM$ac_delim
21705SED!$SED$ac_delim
21706TAR!$TAR$ac_delim
21707BINPWD!$BINPWD$ac_delim
21708GRAPHVIZ!$GRAPHVIZ$ac_delim
21709DOT!$DOT$ac_delim
21710FDP!$FDP$ac_delim
21711NEATO!$NEATO$ac_delim
21712TWOPI!$TWOPI$ac_delim
21713CIRCO!$CIRCO$ac_delim
21714GV!$GV$ac_delim
21715DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021716XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717PERL!$PERL$ac_delim
21718HAVE_PERL!$HAVE_PERL$ac_delim
21719INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21720INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21721INSTALL_DATA!$INSTALL_DATA$ac_delim
21722BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021723CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021724DOXYGEN!$DOXYGEN$ac_delim
21725GROFF!$GROFF$ac_delim
21726GZIP!$GZIP$ac_delim
21727POD2HTML!$POD2HTML$ac_delim
21728POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021729PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021730RUNTEST!$RUNTEST$ac_delim
21731TCLSH!$TCLSH$ac_delim
21732ZIP!$ZIP$ac_delim
21733OCAMLC!$OCAMLC$ac_delim
21734OCAMLOPT!$OCAMLOPT$ac_delim
21735OCAMLDEP!$OCAMLDEP$ac_delim
21736OCAMLDOC!$OCAMLDOC$ac_delim
21737GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021738HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021739INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21740INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21741CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21742CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21743LIBADD_DL!$LIBADD_DL$ac_delim
21744LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21745LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21746LLVMGCC!$LLVMGCC$ac_delim
21747LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021748LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021749NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21750NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21751USE_UDIS86!$USE_UDIS86$ac_delim
21752USE_OPROFILE!$USE_OPROFILE$ac_delim
21753HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21754HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21755MMAP_FILE!$MMAP_FILE$ac_delim
21756LLVMCC1!$LLVMCC1$ac_delim
21757LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21758LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021759LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21760SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021761SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021762LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21763LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21764LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21765LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21766LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21767LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21768LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21769LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21770LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21771LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21772BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21773ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21774OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21775ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21776RPATH!$RPATH$ac_delim
21777RDYNAMIC!$RDYNAMIC$ac_delim
21778LIBOBJS!$LIBOBJS$ac_delim
21779LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021780_ACEOF
21781
Dan Gohman48fd5a72010-09-27 16:28:34 +000021782 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021783 break
21784 elif $ac_last_try; then
21785 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21786echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21787 { (exit 1); exit 1; }; }
21788 else
21789 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21790 fi
21791done
21792
21793ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21794if test -n "$ac_eof"; then
21795 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21796 ac_eof=`expr $ac_eof + 1`
21797fi
21798
21799cat >>$CONFIG_STATUS <<_ACEOF
21800cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21801/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21802_ACEOF
21803sed '
21804s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21805s/^/s,@/; s/!/@,|#_!!_#|/
21806:n
21807t n
21808s/'"$ac_delim"'$/,g/; t
21809s/$/\\/; p
21810N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21811' >>$CONFIG_STATUS <conf$$subs.sed
21812rm -f conf$$subs.sed
21813cat >>$CONFIG_STATUS <<_ACEOF
21814:end
21815s/|#_!!_#|//g
21816CEOF$ac_eof
21817_ACEOF
21818
21819
Reid Spencera773bd52006-08-04 18:18:08 +000021820# VPATH may cause trouble with some makes, so we remove $(srcdir),
21821# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21822# trailing colons and then remove the whole line if VPATH becomes empty
21823# (actually we leave an empty line to preserve line numbers).
21824if test "x$srcdir" = x.; then
21825 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21826s/:*\$(srcdir):*/:/
21827s/:*\${srcdir}:*/:/
21828s/:*@srcdir@:*/:/
21829s/^\([^=]*=[ ]*\):*/\1/
21830s/:*$//
21831s/^[^=]*=[ ]*$//
21832}'
21833fi
21834
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021835cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021836fi # test -n "$CONFIG_FILES"
21837
Reid Spencera773bd52006-08-04 18:18:08 +000021838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021839for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021840do
21841 case $ac_tag in
21842 :[FHLC]) ac_mode=$ac_tag; continue;;
21843 esac
21844 case $ac_mode$ac_tag in
21845 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021846 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21847echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21848 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021849 :[FH]-) ac_tag=-:-;;
21850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21851 esac
21852 ac_save_IFS=$IFS
21853 IFS=:
21854 set x $ac_tag
21855 IFS=$ac_save_IFS
21856 shift
21857 ac_file=$1
21858 shift
21859
21860 case $ac_mode in
21861 :L) ac_source=$1;;
21862 :[FH])
21863 ac_file_inputs=
21864 for ac_f
21865 do
21866 case $ac_f in
21867 -) ac_f="$tmp/stdin";;
21868 *) # Look for the file first in the build tree, then in the source tree
21869 # (if the path is not absolute). The absolute path cannot be DOS-style,
21870 # because $ac_f cannot contain `:'.
21871 test -f "$ac_f" ||
21872 case $ac_f in
21873 [\\/$]*) false;;
21874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21875 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021876 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21877echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21878 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021879 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021880 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021881 done
21882
21883 # Let's still pretend it is `configure' which instantiates (i.e., don't
21884 # use $as_me), people would be surprised to read:
21885 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021886 configure_input="Generated from "`IFS=:
21887 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021888 if test x"$ac_file" != x-; then
21889 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021890 { echo "$as_me:$LINENO: creating $ac_file" >&5
21891echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021892 fi
21893
21894 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021895 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021896 esac
21897 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021898 esac
21899
Reid Spencera773bd52006-08-04 18:18:08 +000021900 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902 X"$ac_file" : 'X\(//\)[^/]' \| \
21903 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021905echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21907 s//\1/
21908 q
21909 }
21910 /^X\(\/\/\)[^/].*/{
21911 s//\1/
21912 q
21913 }
21914 /^X\(\/\/\)$/{
21915 s//\1/
21916 q
21917 }
21918 /^X\(\/\).*/{
21919 s//\1/
21920 q
21921 }
21922 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021923 { as_dir="$ac_dir"
21924 case $as_dir in #(
21925 -*) as_dir=./$as_dir;;
21926 esac
21927 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21928 as_dirs=
21929 while :; do
21930 case $as_dir in #(
21931 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21932 *) as_qdir=$as_dir;;
21933 esac
21934 as_dirs="'$as_qdir' $as_dirs"
21935 as_dir=`$as_dirname -- "$as_dir" ||
21936$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937 X"$as_dir" : 'X\(//\)[^/]' \| \
21938 X"$as_dir" : 'X\(//\)$' \| \
21939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21940echo X"$as_dir" |
21941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21942 s//\1/
21943 q
21944 }
21945 /^X\(\/\/\)[^/].*/{
21946 s//\1/
21947 q
21948 }
21949 /^X\(\/\/\)$/{
21950 s//\1/
21951 q
21952 }
21953 /^X\(\/\).*/{
21954 s//\1/
21955 q
21956 }
21957 s/.*/./; q'`
21958 test -d "$as_dir" && break
21959 done
21960 test -z "$as_dirs" || eval "mkdir $as_dirs"
21961 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21962echo "$as_me: error: cannot create directory $as_dir" >&2;}
21963 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021964 ac_builddir=.
21965
Reid Spencera773bd52006-08-04 18:18:08 +000021966case "$ac_dir" in
21967.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21968*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021969 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021970 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021971 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021972 case $ac_top_builddir_sub in
21973 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21974 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21975 esac ;;
21976esac
21977ac_abs_top_builddir=$ac_pwd
21978ac_abs_builddir=$ac_pwd$ac_dir_suffix
21979# for backward compatibility:
21980ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021981
21982case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021983 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021984 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021985 ac_top_srcdir=$ac_top_builddir_sub
21986 ac_abs_top_srcdir=$ac_pwd ;;
21987 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021988 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021989 ac_top_srcdir=$srcdir
21990 ac_abs_top_srcdir=$srcdir ;;
21991 *) # Relative name.
21992 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21993 ac_top_srcdir=$ac_top_build_prefix$srcdir
21994 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021995esac
Reid Spencera773bd52006-08-04 18:18:08 +000021996ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021997
John Criswell7a73b802003-06-30 21:59:07 +000021998
Reid Spencera773bd52006-08-04 18:18:08 +000021999 case $ac_mode in
22000 :F)
22001 #
22002 # CONFIG_FILE
22003 #
John Criswell7a73b802003-06-30 21:59:07 +000022004
22005 case $INSTALL in
22006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022007 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022008 esac
John Criswell7a73b802003-06-30 21:59:07 +000022009_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022011cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022012# If the template does not know about datarootdir, expand it.
22013# FIXME: This hack should be removed a few years after 2.60.
22014ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022015
22016case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022017 p
22018 q
22019}
22020/@datadir@/p
22021/@docdir@/p
22022/@infodir@/p
22023/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022024/@mandir@/p
22025' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022026*datarootdir*) ac_datarootdir_seen=yes;;
22027*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022028 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22029echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022030_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022031cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022032 ac_datarootdir_hack='
22033 s&@datadir@&$datadir&g
22034 s&@docdir@&$docdir&g
22035 s&@infodir@&$infodir&g
22036 s&@localedir@&$localedir&g
22037 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022038 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022039esac
22040_ACEOF
22041
22042# Neutralize VPATH when `$srcdir' = `.'.
22043# Shell code in configure.ac might set extrasub.
22044# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022045cat >>$CONFIG_STATUS <<_ACEOF
22046 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022047$extrasub
22048_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022049cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022050:t
22051/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022052s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022053s&@top_builddir@&$ac_top_builddir_sub&;t t
22054s&@srcdir@&$ac_srcdir&;t t
22055s&@abs_srcdir@&$ac_abs_srcdir&;t t
22056s&@top_srcdir@&$ac_top_srcdir&;t t
22057s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22058s&@builddir@&$ac_builddir&;t t
22059s&@abs_builddir@&$ac_abs_builddir&;t t
22060s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22061s&@INSTALL@&$ac_INSTALL&;t t
22062$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022063" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022064
Reid Spencera773bd52006-08-04 18:18:08 +000022065test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022068 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022069which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022070echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022071which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022072
Reid Spencera773bd52006-08-04 18:18:08 +000022073 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022074 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022075 -) cat "$tmp/out"; rm -f "$tmp/out";;
22076 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22077 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022078 ;;
22079 :H)
22080 #
22081 # CONFIG_HEADER
22082 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022083_ACEOF
22084
22085# Transform confdefs.h into a sed script `conftest.defines', that
22086# substitutes the proper values into config.h.in to produce config.h.
22087rm -f conftest.defines conftest.tail
22088# First, append a space to every undef/define line, to ease matching.
22089echo 's/$/ /' >conftest.defines
22090# Then, protect against being on the right side of a sed subst, or in
22091# an unquoted here document, in config.status. If some macros were
22092# called several times there might be several #defines for the same
22093# symbol, which is useless. But do not sort them, since the last
22094# AC_DEFINE must be honored.
22095ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22096# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22097# NAME is the cpp macro being defined, VALUE is the value it is being given.
22098# PARAMS is the parameter list in the macro definition--in most cases, it's
22099# just an empty string.
22100ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22101ac_dB='\\)[ (].*,\\1define\\2'
22102ac_dC=' '
22103ac_dD=' ,'
22104
22105uniq confdefs.h |
22106 sed -n '
22107 t rset
22108 :rset
22109 s/^[ ]*#[ ]*define[ ][ ]*//
22110 t ok
22111 d
22112 :ok
22113 s/[\\&,]/\\&/g
22114 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22115 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22116 ' >>conftest.defines
22117
22118# Remove the space that was appended to ease matching.
22119# Then replace #undef with comments. This is necessary, for
22120# example, in the case of _POSIX_SOURCE, which is predefined and required
22121# on some systems where configure will not decide to define it.
22122# (The regexp can be short, since the line contains either #define or #undef.)
22123echo 's/ $//
22124s,^[ #]*u.*,/* & */,' >>conftest.defines
22125
22126# Break up conftest.defines:
22127ac_max_sed_lines=50
22128
22129# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22130# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22131# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22132# et cetera.
22133ac_in='$ac_file_inputs'
22134ac_out='"$tmp/out1"'
22135ac_nxt='"$tmp/out2"'
22136
22137while :
22138do
22139 # Write a here document:
22140 cat >>$CONFIG_STATUS <<_ACEOF
22141 # First, check the format of the line:
22142 cat >"\$tmp/defines.sed" <<\\CEOF
22143/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22144/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22145b
22146:def
22147_ACEOF
22148 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22149 echo 'CEOF
22150 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22151 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22152 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22153 grep . conftest.tail >/dev/null || break
22154 rm -f conftest.defines
22155 mv conftest.tail conftest.defines
22156done
22157rm -f conftest.defines conftest.tail
22158
22159echo "ac_result=$ac_in" >>$CONFIG_STATUS
22160cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022161 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022162 echo "/* $configure_input */" >"$tmp/config.h"
22163 cat "$ac_result" >>"$tmp/config.h"
22164 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22165 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22166echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022167 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022168 rm -f $ac_file
22169 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022170 fi
22171 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022172 echo "/* $configure_input */"
22173 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022174 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022175 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022176 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022178 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22179echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022180 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022181 esac
John Criswell7a73b802003-06-30 21:59:07 +000022182
Reid Spencera773bd52006-08-04 18:18:08 +000022183
22184 case $ac_file$ac_mode in
22185 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022186 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022187 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022188 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022189 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022191 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022193 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022194 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022195 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022196 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022197 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022198 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022199 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022201 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022203 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022205 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022207 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022209 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022210 ${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 +000022211
22212 esac
22213done # for ac_tag
22214
John Criswell7a73b802003-06-30 21:59:07 +000022215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022216{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022217_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022218chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022219ac_clean_files=$ac_clean_files_save
22220
22221
22222# configure is writing to config.log, and then calls config.status.
22223# config.status does its own redirection, appending to config.log.
22224# Unfortunately, on DOS this fails, as config.log is still kept open
22225# by configure, so config.status won't be able to write to it; its
22226# output is simply discarded. So we exec the FD to /dev/null,
22227# effectively closing config.log, so it can be properly (re)opened and
22228# appended to by config.status. When coming back to configure, we
22229# need to make the FD available again.
22230if test "$no_create" != yes; then
22231 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022232 ac_config_status_args=
22233 test "$silent" = yes &&
22234 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022235 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022237 exec 5>>config.log
22238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22239 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022240 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022241fi
22242
John Criswell12399a12003-09-30 15:55:44 +000022243#
22244# CONFIG_SUBDIRS section.
22245#
22246if test "$no_recursion" != yes; then
22247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022248 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022249 ac_sub_configure_args=
22250 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022251 eval "set x $ac_configure_args"
22252 shift
22253 for ac_arg
22254 do
John Criswell12399a12003-09-30 15:55:44 +000022255 if test -n "$ac_prev"; then
22256 ac_prev=
22257 continue
22258 fi
22259 case $ac_arg in
22260 -cache-file | --cache-file | --cache-fil | --cache-fi \
22261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22262 ac_prev=cache_file ;;
22263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22265 | --c=*)
22266 ;;
22267 --config-cache | -C)
22268 ;;
22269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22270 ac_prev=srcdir ;;
22271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22272 ;;
22273 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22274 ac_prev=prefix ;;
22275 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022277 *)
22278 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022279 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022280 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022281 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022282 esac
22283 done
22284
22285 # Always prepend --prefix to ensure using the same prefix
22286 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022287 ac_arg="--prefix=$prefix"
22288 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022289 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022290 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022291 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022292
22293 ac_popdir=`pwd`
22294 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22295
22296 # Do not complain, so a configure script can configure whichever
22297 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022298 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022299
Reid Spencera773bd52006-08-04 18:18:08 +000022300 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022301 echo "$as_me:$LINENO: $ac_msg" >&5
22302 echo "$ac_msg" >&6
22303 { as_dir="$ac_dir"
22304 case $as_dir in #(
22305 -*) as_dir=./$as_dir;;
22306 esac
22307 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22308 as_dirs=
22309 while :; do
22310 case $as_dir in #(
22311 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22312 *) as_qdir=$as_dir;;
22313 esac
22314 as_dirs="'$as_qdir' $as_dirs"
22315 as_dir=`$as_dirname -- "$as_dir" ||
22316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317 X"$as_dir" : 'X\(//\)[^/]' \| \
22318 X"$as_dir" : 'X\(//\)$' \| \
22319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22320echo X"$as_dir" |
22321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22322 s//\1/
22323 q
22324 }
22325 /^X\(\/\/\)[^/].*/{
22326 s//\1/
22327 q
22328 }
22329 /^X\(\/\/\)$/{
22330 s//\1/
22331 q
22332 }
22333 /^X\(\/\).*/{
22334 s//\1/
22335 q
22336 }
22337 s/.*/./; q'`
22338 test -d "$as_dir" && break
22339 done
22340 test -z "$as_dirs" || eval "mkdir $as_dirs"
22341 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22342echo "$as_me: error: cannot create directory $as_dir" >&2;}
22343 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022344 ac_builddir=.
22345
Reid Spencera773bd52006-08-04 18:18:08 +000022346case "$ac_dir" in
22347.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22348*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022350 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022351 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022352 case $ac_top_builddir_sub in
22353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22355 esac ;;
22356esac
22357ac_abs_top_builddir=$ac_pwd
22358ac_abs_builddir=$ac_pwd$ac_dir_suffix
22359# for backward compatibility:
22360ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022361
22362case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022363 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022364 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022365 ac_top_srcdir=$ac_top_builddir_sub
22366 ac_abs_top_srcdir=$ac_pwd ;;
22367 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022368 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022369 ac_top_srcdir=$srcdir
22370 ac_abs_top_srcdir=$srcdir ;;
22371 *) # Relative name.
22372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22373 ac_top_srcdir=$ac_top_build_prefix$srcdir
22374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022375esac
Reid Spencera773bd52006-08-04 18:18:08 +000022376ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022377
22378
Reid Spencera773bd52006-08-04 18:18:08 +000022379 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022380
22381 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022382 if test -f "$ac_srcdir/configure.gnu"; then
22383 ac_sub_configure=$ac_srcdir/configure.gnu
22384 elif test -f "$ac_srcdir/configure"; then
22385 ac_sub_configure=$ac_srcdir/configure
22386 elif test -f "$ac_srcdir/configure.in"; then
22387 # This should be Cygnus configure.
22388 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022389 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022390 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22391echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022392 ac_sub_configure=
22393 fi
22394
22395 # The recursion is here.
22396 if test -n "$ac_sub_configure"; then
22397 # Make the cache file name correct relative to the subdirectory.
22398 case $cache_file in
22399 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022400 *) # Relative name.
22401 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022402 esac
22403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022404 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22405echo "$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 +000022406 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022407 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22408 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022409 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22410echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22411 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022412 fi
22413
Reid Spencera773bd52006-08-04 18:18:08 +000022414 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022415 done
22416fi
22417