blob: 88050f310cacc3ad4642728d7d03f5278d2e869c [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017# Be Bourne compatible
18if 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-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000564PACKAGE_VERSION='2.7svn'
565PACKAGE_STRING='llvm 2.7svn'
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
692TARGETS_TO_BUILD
693LLVM_ENUM_TARGETS
694LLVM_ENUM_ASM_PRINTERS
695LLVM_ENUM_ASM_PARSERS
696LLVM_ENUM_DISASSEMBLERS
697ENABLE_CBE_PRINTF_A
698OPTIMIZE_OPTION
699EXTRA_OPTIONS
700BINUTILS_INCDIR
701ENABLE_LLVMC_DYNAMIC
702ENABLE_LLVMC_DYNAMIC_PLUGINS
703CXX
704CXXFLAGS
705ac_ct_CXX
706NM
707ifGNUmake
708LN_S
709CMP
710CP
711DATE
712FIND
713MKDIR
714MV
715RANLIB
716AR
717RM
718SED
719TAR
720BINPWD
721GRAPHVIZ
722DOT
723FDP
724NEATO
725TWOPI
726CIRCO
727GV
728DOTTY
729PERL
730HAVE_PERL
731INSTALL_PROGRAM
732INSTALL_SCRIPT
733INSTALL_DATA
734BZIP2
735DOXYGEN
736GROFF
737GZIP
738POD2HTML
739POD2MAN
740RUNTEST
741TCLSH
742ZIP
743OCAMLC
744OCAMLOPT
745OCAMLDEP
746OCAMLDOC
747GAS
748INSTALL_LTDL_TRUE
749INSTALL_LTDL_FALSE
750CONVENIENCE_LTDL_TRUE
751CONVENIENCE_LTDL_FALSE
752LIBADD_DL
753LLVMGCCCOMMAND
754LLVMGXXCOMMAND
755LLVMGCC
756LLVMGXX
757NO_VARIADIC_MACROS
758NO_MISSING_FIELD_INITIALIZERS
759USE_UDIS86
760USE_OPROFILE
761HAVE_PTHREAD
762HUGE_VAL_SANITY
763MMAP_FILE
764LLVMCC1
765LLVMCC1PLUS
766LLVMGCCDIR
767LLVMGCCLIBEXEC
768LLVMGCC_VERSION
769LLVMGCC_MAJVERS
770LLVMGCC_LANGS
771SHLIBEXT
772LLVM_PREFIX
773LLVM_BINDIR
774LLVM_LIBDIR
775LLVM_DATADIR
776LLVM_DOCSDIR
777LLVM_ETCDIR
778LLVM_INCLUDEDIR
779LLVM_INFODIR
780LLVM_MANDIR
781LLVM_CONFIGTIME
782BINDINGS_TO_BUILD
783ALL_BINDINGS
784OCAML_LIBDIR
785ENABLE_VISIBILITY_INLINES_HIDDEN
786RPATH
787RDYNAMIC
788LIBOBJS
789LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000790ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000791 ac_precious_vars='build_alias
792host_alias
793target_alias
794CC
795CFLAGS
796LDFLAGS
797CPPFLAGS
798CPP
799CXX
800CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000801CCC'
Reid Spencera773bd52006-08-04 18:18:08 +0000802ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000803projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000804projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000805projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000806projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000807projects/llvm-reopt
808projects/llvm-gcc
809projects/llvm-java
810projects/llvm-tv
811projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000812projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000814
815# Initialize some variables set by options.
816ac_init_help=
817ac_init_version=false
818# The variables have the same names as the options, with
819# dashes changed to underlines.
820cache_file=/dev/null
821exec_prefix=NONE
822no_create=
823no_recursion=
824prefix=NONE
825program_prefix=NONE
826program_suffix=NONE
827program_transform_name=s,x,x,
828silent=
829site=
830srcdir=
831verbose=
832x_includes=NONE
833x_libraries=NONE
834
835# Installation directory options.
836# These are left unexpanded so users can "make install exec_prefix=/foo"
837# and all the variables that are supposed to be based on exec_prefix
838# by default will actually change.
839# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000840# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000841bindir='${exec_prefix}/bin'
842sbindir='${exec_prefix}/sbin'
843libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000844datarootdir='${prefix}/share'
845datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000846sysconfdir='${prefix}/etc'
847sharedstatedir='${prefix}/com'
848localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000849includedir='${prefix}/include'
850oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852infodir='${datarootdir}/info'
853htmldir='${docdir}'
854dvidir='${docdir}'
855pdfdir='${docdir}'
856psdir='${docdir}'
857libdir='${exec_prefix}/lib'
858localedir='${datarootdir}/locale'
859mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000860
861ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000862ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000863for ac_option
864do
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000867 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000868 ac_prev=
869 continue
870 fi
871
Reid Spencera773bd52006-08-04 18:18:08 +0000872 case $ac_option in
873 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *) ac_optarg=yes ;;
875 esac
John Criswell7a73b802003-06-30 21:59:07 +0000876
877 # Accept the important Cygnus configure options, so we can diagnose typos.
878
Reid Spencera773bd52006-08-04 18:18:08 +0000879 case $ac_dashdash$ac_option in
880 --)
881 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
887
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
892
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
899
900 --config-cache | -C)
901 cache_file=config.cache ;;
902
Reid Spencera773bd52006-08-04 18:18:08 +0000903 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000904 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000906 datadir=$ac_optarg ;;
907
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
914
John Criswell7a73b802003-06-30 21:59:07 +0000915 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000916 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000917 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000918 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
919 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
920 { (exit 1); exit 1; }; }
921 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
922 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000933
934 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000935 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000936 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000937 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
938 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
939 { (exit 1); exit 1; }; }
940 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
941 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
Reid Spencera773bd52006-08-04 18:18:08 +0000968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
John Criswell7a73b802003-06-30 21:59:07 +0000974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
Reid Spencera773bd52006-08-04 18:18:08 +0000998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
John Criswell7a73b802003-06-30 21:59:07 +00001003 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001004 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
Reid Spencera773bd52006-08-04 18:18:08 +00001072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
John Criswell7a73b802003-06-30 21:59:07 +00001082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1091
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1102
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1107
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1112
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1119
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1124
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1127
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1130
1131 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001132 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001133 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001134 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1135 { echo "$as_me: error: invalid package name: $ac_package" >&2
1136 { (exit 1); exit 1; }; }
1137 ac_package=`echo $ac_package| sed 's/-/_/g'`
1138 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001139
1140 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001141 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001142 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001143 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package | sed 's/-/_/g'`
1147 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001148
1149 --x)
1150 # Obsolete; use --with-x.
1151 with_x=yes ;;
1152
1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1154 | --x-incl | --x-inc | --x-in | --x-i)
1155 ac_prev=x_includes ;;
1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1158 x_includes=$ac_optarg ;;
1159
1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1162 ac_prev=x_libraries ;;
1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1165 x_libraries=$ac_optarg ;;
1166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001167 -*) { echo "$as_me: error: unrecognized option: $ac_option
1168Try \`$0 --help' for more information." >&2
1169 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001170 ;;
1171
1172 *=*)
1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001175 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1176 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1177 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001178 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001179 export $ac_envvar ;;
1180
1181 *)
1182 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001183 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001185 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 ;;
1188
1189 esac
1190done
1191
1192if test -n "$ac_prev"; then
1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001194 { echo "$as_me: error: missing argument to $ac_option" >&2
1195 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001196fi
1197
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001199for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1200 datadir sysconfdir sharedstatedir localstatedir includedir \
1201 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1202 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001203do
Reid Spencera773bd52006-08-04 18:18:08 +00001204 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001205 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001206 [\\/$]* | ?:[\\/]* ) continue;;
1207 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001208 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001209 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1210 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001211done
1212
1213# There might be people who depend on the old broken behavior: `$host'
1214# used to hold the argument of --host etc.
1215# FIXME: To remove some day.
1216build=$build_alias
1217host=$host_alias
1218target=$target_alias
1219
1220# FIXME: To remove some day.
1221if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001224 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1228 fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
Reid Spencera773bd52006-08-04 18:18:08 +00001237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001240 { echo "$as_me: error: Working directory cannot be determined" >&2
1241 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: pwd does not report name of working directory" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245
1246
John Criswell7a73b802003-06-30 21:59:07 +00001247# Find the source files, if location was not specified.
1248if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001250 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001251 ac_confdir=`$as_dirname -- "$0" ||
1252$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$0" : 'X\(//\)[^/]' \| \
1254 X"$0" : 'X\(//\)$' \| \
1255 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1256echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1259 q
1260 }
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)$/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\).*/{
1270 s//\1/
1271 q
1272 }
1273 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001274 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001275 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001276 srcdir=..
1277 fi
1278else
1279 ac_srcdir_defaulted=no
1280fi
Reid Spencera773bd52006-08-04 18:18:08 +00001281if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001283 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1284 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001285fi
Reid Spencera773bd52006-08-04 18:18:08 +00001286ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001288 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1289 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001290 pwd)`
1291# When building in place, set srcdir=.
1292if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 srcdir=.
1294fi
1295# Remove unnecessary trailing slashes from srcdir.
1296# Double slashes in file names in object file debugging info
1297# mess up M-x gdb in Emacs.
1298case $srcdir in
1299*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300esac
1301for ac_var in $ac_precious_vars; do
1302 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_env_${ac_var}_value=\$${ac_var}
1304 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306done
John Criswell7a73b802003-06-30 21:59:07 +00001307
1308#
1309# Report the --help message.
1310#
1311if test "$ac_init_help" = "long"; then
1312 # Omit some internal or obsolete options to make the list less imposing.
1313 # This message is too long to be a string in the A/UX 3.1 sh.
1314 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001315\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001316
1317Usage: $0 [OPTION]... [VAR=VALUE]...
1318
1319To assign environment variables (e.g., CC, CFLAGS...), specify them as
1320VAR=VALUE. See below for descriptions of some of the useful variables.
1321
1322Defaults for the options are specified in brackets.
1323
1324Configuration:
1325 -h, --help display this help and exit
1326 --help=short display options specific to this package
1327 --help=recursive display the short help of all the included packages
1328 -V, --version display version information and exit
1329 -q, --quiet, --silent do not print \`checking...' messages
1330 --cache-file=FILE cache test results in FILE [disabled]
1331 -C, --config-cache alias for \`--cache-file=config.cache'
1332 -n, --no-create do not create output files
1333 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334
John Criswell7a73b802003-06-30 21:59:07 +00001335Installation directories:
1336 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001337 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001338 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001339 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001340
1341By default, \`make install' will install all the files in
1342\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1343an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1344for instance \`--prefix=\$HOME'.
1345
1346For better control, use the options below.
1347
1348Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001349 --bindir=DIR user executables [EPREFIX/bin]
1350 --sbindir=DIR system admin executables [EPREFIX/sbin]
1351 --libexecdir=DIR program executables [EPREFIX/libexec]
1352 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1353 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1354 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1355 --libdir=DIR object code libraries [EPREFIX/lib]
1356 --includedir=DIR C header files [PREFIX/include]
1357 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1358 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1359 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1360 --infodir=DIR info documentation [DATAROOTDIR/info]
1361 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1362 --mandir=DIR man documentation [DATAROOTDIR/man]
1363 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1364 --htmldir=DIR html documentation [DOCDIR]
1365 --dvidir=DIR dvi documentation [DOCDIR]
1366 --pdfdir=DIR pdf documentation [DOCDIR]
1367 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001368_ACEOF
1369
1370 cat <<\_ACEOF
1371
1372System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 --target=TARGET configure for building compilers for TARGET [HOST]
1376_ACEOF
1377fi
1378
1379if test -n "$ac_init_help"; then
1380 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001381 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001382 esac
1383 cat <<\_ACEOF
1384
1385Optional Features:
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001388 --enable-optimized Compile with optimizations enabled (default is NO)
1389 --enable-profiling Compile with profiling enabled (default is NO)
1390 --enable-assertions Compile with assertion checks enabled (default is
1391 YES)
David Greenea696d242007-06-28 19:36:08 +00001392 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001393 Compile with expensive debug checks enabled (default
1394 is NO)
1395 --enable-debug-runtime Build runtime libs with debug symbols (default is
1396 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001397 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1398 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001399 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001400 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001401 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001402 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001403 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001404 --enable-targets Build specific host targets: all or
1405 target1,target2,... Valid targets are: host, x86,
1406 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1407 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1408 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001409 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1410 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001411 --enable-bindings Build specific language bindings:
1412 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001413 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001414 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1415 Win32)
1416 --enable-llvmc-dynamic-plugins
1417 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001418 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001419
1420Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001423 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1424 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001425 --with-llvmgcc Specify location of llvm-gcc driver (default
1426 searches PATH)
1427 --with-llvmgxx Specify location of llvm-g++ driver (default
1428 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001429 --with-optimize-option Select the compiler options to use for optimized
1430 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001431 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001432 --with-ocaml-libdir Specify install location for ocaml bindings (default
1433 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001434 --with-c-include-dirs Colon separated list of directories clang will
1435 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001436 --with-cxx-include-root Directory with the libstdc++ headers.
1437 --with-cxx-include-arch Architecture of the libstdc++ headers.
1438 --with-cxx-include-32bit-dir
1439 32 bit multilib dir.
1440 --with-cxx-include-64bit-dir
1441 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001442 --with-binutils-include Specify path to binutils/include/ containing
1443 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001444 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001445 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001446 --with-oprofile=<prefix>
1447 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001448
1449Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001450 CC C compiler command
1451 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001454 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001455 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001456 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001457 CXX C++ compiler command
1458 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to <llvmbugs@cs.uiuc.edu>.
1464_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001465ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001471 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001472 ac_builddir=.
1473
Reid Spencera773bd52006-08-04 18:18:08 +00001474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001477 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001478 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001479 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001489
1490case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001491 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001492 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001496 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001503esac
Reid Spencera773bd52006-08-04 18:18:08 +00001504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001505
Reid Spencera773bd52006-08-04 18:18:08 +00001506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001514 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001515 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001518 done
1519fi
1520
Reid Spencera773bd52006-08-04 18:18:08 +00001521test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001522if $ac_init_version; then
1523 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001524llvm configure 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001525generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15282002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001529This configure script is free software; the Free Software Foundation
1530gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001531
Tanya Lattnerc2264592009-08-22 21:01:26 +00001532Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001533_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001534 exit
John Criswell7a73b802003-06-30 21:59:07 +00001535fi
Reid Spencera773bd52006-08-04 18:18:08 +00001536cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001537This file contains any messages produced by compilers while
1538running configure, to aid debugging if configure makes a mistake.
1539
Tanya Lattner953042b2009-08-22 04:37:30 +00001540It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001541generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001542
1543 $ $0 $@
1544
1545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001547{
1548cat <<_ASUNAME
1549## --------- ##
1550## Platform. ##
1551## --------- ##
1552
1553hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1554uname -m = `(uname -m) 2>/dev/null || echo unknown`
1555uname -r = `(uname -r) 2>/dev/null || echo unknown`
1556uname -s = `(uname -s) 2>/dev/null || echo unknown`
1557uname -v = `(uname -v) 2>/dev/null || echo unknown`
1558
1559/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1560/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1561
1562/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1563/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1564/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001565/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001566/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1567/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1568/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1569
1570_ASUNAME
1571
1572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573for as_dir in $PATH
1574do
1575 IFS=$as_save_IFS
1576 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001577 echo "PATH: $as_dir"
1578done
Reid Spencera773bd52006-08-04 18:18:08 +00001579IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581} >&5
1582
1583cat >&5 <<_ACEOF
1584
1585
1586## ----------- ##
1587## Core tests. ##
1588## ----------- ##
1589
1590_ACEOF
1591
1592
1593# Keep a trace of the command line.
1594# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001595# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001596# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001597# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001598ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001599ac_configure_args0=
1600ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001601ac_must_keep_next=false
1602for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001603do
John Criswell0c38eaf2003-09-10 15:17:25 +00001604 for ac_arg
1605 do
1606 case $ac_arg in
1607 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1609 | -silent | --silent | --silen | --sile | --sil)
1610 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001611 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001612 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 esac
1614 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001615 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001617 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001618 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001619 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001621 case $ac_arg in
1622 *=* | --config-cache | -C | -disable-* | --disable-* \
1623 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1624 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1625 | -with-* | --with-* | -without-* | --without-* | --x)
1626 case "$ac_configure_args0 " in
1627 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1628 esac
1629 ;;
1630 -* ) ac_must_keep_next=true ;;
1631 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001633 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ;;
1635 esac
1636 done
John Criswell7a73b802003-06-30 21:59:07 +00001637done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001638$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1639$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 +00001640
1641# When interrupted or exit'd, cleanup temporary files, and complete
1642# config.log. We remove comments because anyway the quotes in there
1643# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001644# WARNING: Use '\'' to represent an apostrophe within the trap.
1645# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001646trap 'exit_status=$?
1647 # Save into config.log some information that might help in debugging.
1648 {
1649 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001650
John Criswell7a73b802003-06-30 21:59:07 +00001651 cat <<\_ASBOX
1652## ---------------- ##
1653## Cache variables. ##
1654## ---------------- ##
1655_ASBOX
1656 echo
1657 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001658(
1659 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1660 eval ac_val=\$$ac_var
1661 case $ac_val in #(
1662 *${as_nl}*)
1663 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001664 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1665echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001666 esac
1667 case $ac_var in #(
1668 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001669 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001670 esac ;;
1671 esac
1672 done
John Criswell7a73b802003-06-30 21:59:07 +00001673 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001674 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1675 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001676 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001677 "s/'\''/'\''\\\\'\'''\''/g;
1678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1679 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001680 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001682 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001683 esac |
1684 sort
1685)
John Criswell7a73b802003-06-30 21:59:07 +00001686 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001687
1688 cat <<\_ASBOX
1689## ----------------- ##
1690## Output variables. ##
1691## ----------------- ##
1692_ASBOX
1693 echo
1694 for ac_var in $ac_subst_vars
1695 do
Reid Spencera773bd52006-08-04 18:18:08 +00001696 eval ac_val=\$$ac_var
1697 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001698 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001699 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001700 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001701 done | sort
1702 echo
1703
1704 if test -n "$ac_subst_files"; then
1705 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001706## ------------------- ##
1707## File substitutions. ##
1708## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001709_ASBOX
1710 echo
1711 for ac_var in $ac_subst_files
1712 do
Reid Spencera773bd52006-08-04 18:18:08 +00001713 eval ac_val=\$$ac_var
1714 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001716 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001717 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001718 done | sort
1719 echo
1720 fi
1721
John Criswell7a73b802003-06-30 21:59:07 +00001722 if test -s confdefs.h; then
1723 cat <<\_ASBOX
1724## ----------- ##
1725## confdefs.h. ##
1726## ----------- ##
1727_ASBOX
1728 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001729 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001730 echo
1731 fi
1732 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001733 echo "$as_me: caught signal $ac_signal"
1734 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001735 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001736 rm -f core *.core core.conftest.* &&
1737 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001738 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001739' 0
John Criswell7a73b802003-06-30 21:59:07 +00001740for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001741 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001742done
1743ac_signal=0
1744
1745# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001746rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001747
1748# Predefined preprocessor variables.
1749
1750cat >>confdefs.h <<_ACEOF
1751#define PACKAGE_NAME "$PACKAGE_NAME"
1752_ACEOF
1753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001754
John Criswell7a73b802003-06-30 21:59:07 +00001755cat >>confdefs.h <<_ACEOF
1756#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1757_ACEOF
1758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001759
John Criswell7a73b802003-06-30 21:59:07 +00001760cat >>confdefs.h <<_ACEOF
1761#define PACKAGE_VERSION "$PACKAGE_VERSION"
1762_ACEOF
1763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001764
John Criswell7a73b802003-06-30 21:59:07 +00001765cat >>confdefs.h <<_ACEOF
1766#define PACKAGE_STRING "$PACKAGE_STRING"
1767_ACEOF
1768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770cat >>confdefs.h <<_ACEOF
1771#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1772_ACEOF
1773
1774
1775# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001777if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001778 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001779elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001780 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782 set x "$ac_default_prefix/share/config.site" \
1783 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785shift
1786for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001787do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788 if test -r "$ac_site_file"; then
1789 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1790echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001791 sed 's/^/| /' "$ac_site_file" >&5
1792 . "$ac_site_file"
1793 fi
1794done
1795
1796if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797 # Some versions of bash will fail to source /dev/null (special
1798 # files actually), so we avoid doing that.
1799 if test -f "$cache_file"; then
1800 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1801echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001802 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001803 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1804 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001805 esac
1806 fi
1807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1809echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001810 >$cache_file
1811fi
1812
1813# Check that the precious variables saved in the cache have kept the same
1814# value.
1815ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001816for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001817 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1818 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001819 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1820 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001821 case $ac_old_set,$ac_new_set in
1822 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001823 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1824echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 ac_cache_corrupted=: ;;
1826 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001827 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1828echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001829 ac_cache_corrupted=: ;;
1830 ,);;
1831 *)
1832 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001833 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1834echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1835 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1836echo "$as_me: former value: $ac_old_val" >&2;}
1837 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1838echo "$as_me: current value: $ac_new_val" >&2;}
1839 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001840 fi;;
1841 esac
1842 # Pass precious variables to config.status.
1843 if test "$ac_new_set" = set; then
1844 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001846 *) ac_arg=$ac_var=$ac_new_val ;;
1847 esac
1848 case " $ac_configure_args " in
1849 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001851 esac
1852 fi
1853done
1854if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001855 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1856echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1857 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1858echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1859 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001860fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
Reid Spencera773bd52006-08-04 18:18:08 +00001885
John Criswell7a73b802003-06-30 21:59:07 +00001886ac_ext=c
1887ac_cpp='$CPP $CPPFLAGS'
1888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891
1892
1893
Tanya Lattnerc2264592009-08-22 21:01:26 +00001894LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001895
1896
1897
1898
1899
1900
1901
John Criswell7a73b802003-06-30 21:59:07 +00001902ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001903for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001904 if test -f "$ac_dir/install-sh"; then
1905 ac_aux_dir=$ac_dir
1906 ac_install_sh="$ac_aux_dir/install-sh -c"
1907 break
1908 elif test -f "$ac_dir/install.sh"; then
1909 ac_aux_dir=$ac_dir
1910 ac_install_sh="$ac_aux_dir/install.sh -c"
1911 break
1912 elif test -f "$ac_dir/shtool"; then
1913 ac_aux_dir=$ac_dir
1914 ac_install_sh="$ac_aux_dir/shtool install -c"
1915 break
1916 fi
John Criswell7a73b802003-06-30 21:59:07 +00001917done
1918if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001919 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1920echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1921 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001922fi
Reid Spencera773bd52006-08-04 18:18:08 +00001923
1924# These three variables are undocumented and unsupported,
1925# and are intended to be withdrawn in a future Autoconf release.
1926# They can cause serious problems if a builder's source tree is in a directory
1927# whose full name contains unusual characters.
1928ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1929ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1930ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1931
John Criswell7a73b802003-06-30 21:59:07 +00001932
John Criswell392aaa32003-07-22 19:18:09 +00001933
Reid Spencer2706f8c2004-09-19 23:53:36 +00001934if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001935 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001936 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1937echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1938 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001939 fi
John Criswell93e1c722003-09-15 17:04:06 +00001940fi
1941
John Criswell33a911a2003-11-25 20:36:46 +00001942for i in `ls ${srcdir}/projects`
1943do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001944 if test -d ${srcdir}/projects/${i} ; then
1945 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001946 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001947 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001948 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001949 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001950 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001951 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001952 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00001953 # llvm-test is the old name of the test-suite, kept here for backwards
1954 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00001955 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00001956 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00001957 test-suite) subdirs="$subdirs projects/test-suite"
1958 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001959 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001960;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001961 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001962 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001963 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001964 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001965 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001966 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001967 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001968 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00001969 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00001970 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001971 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00001972 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001973 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001974 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1975echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001976 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001977 esac
John Criswell33a911a2003-11-25 20:36:46 +00001978 fi
1979done
John Criswell559a6c12003-09-30 16:31:48 +00001980
John Criswell7a73b802003-06-30 21:59:07 +00001981
1982# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00001983$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001984 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1985echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1986 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988{ echo "$as_me:$LINENO: checking build system type" >&5
1989echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1990if test "${ac_cv_build+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001992else
Reid Spencera773bd52006-08-04 18:18:08 +00001993 ac_build_alias=$build_alias
1994test "x$ac_build_alias" = x &&
1995 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1996test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001997 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1998echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1999 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002000ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002001 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2002echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2003 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002004
2005fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002006{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2007echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002008case $ac_cv_build in
2009*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002010*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2011echo "$as_me: error: invalid value of canonical build" >&2;}
2012 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002013esac
John Criswell7a73b802003-06-30 21:59:07 +00002014build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002015ac_save_IFS=$IFS; IFS='-'
2016set x $ac_cv_build
2017shift
2018build_cpu=$1
2019build_vendor=$2
2020shift; shift
2021# Remember, the first character of IFS is used to create $*,
2022# except with old shells:
2023build_os=$*
2024IFS=$ac_save_IFS
2025case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002026
2027
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002028{ echo "$as_me:$LINENO: checking host system type" >&5
2029echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2030if test "${ac_cv_host+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002032else
Reid Spencera773bd52006-08-04 18:18:08 +00002033 if test "x$host_alias" = x; then
2034 ac_cv_host=$ac_cv_build
2035else
2036 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002037 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2038echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2039 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002040fi
John Criswell7a73b802003-06-30 21:59:07 +00002041
2042fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2044echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002045case $ac_cv_host in
2046*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002047*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2048echo "$as_me: error: invalid value of canonical host" >&2;}
2049 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002050esac
John Criswell7a73b802003-06-30 21:59:07 +00002051host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002052ac_save_IFS=$IFS; IFS='-'
2053set x $ac_cv_host
2054shift
2055host_cpu=$1
2056host_vendor=$2
2057shift; shift
2058# Remember, the first character of IFS is used to create $*,
2059# except with old shells:
2060host_os=$*
2061IFS=$ac_save_IFS
2062case $host_os in *\ *) host_os=`echo "$host_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 target system type" >&5
2066echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2067if test "${ac_cv_target+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$target_alias" = x; then
2071 ac_cv_target=$ac_cv_host
2072else
2073 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2075echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_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_target" >&5
2081echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002082case $ac_cv_target in
2083*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002084*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2085echo "$as_me: error: invalid value of canonical target" >&2;}
2086 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002087esac
John Criswell7a73b802003-06-30 21:59:07 +00002088target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002089ac_save_IFS=$IFS; IFS='-'
2090set x $ac_cv_target
2091shift
2092target_cpu=$1
2093target_vendor=$2
2094shift; shift
2095# Remember, the first character of IFS is used to create $*,
2096# except with old shells:
2097target_os=$*
2098IFS=$ac_save_IFS
2099case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002100
2101
2102# The aliases save the names the user supplied, while $host etc.
2103# will get canonicalized.
2104test -n "$target_alias" &&
2105 test "$program_prefix$program_suffix$program_transform_name" = \
2106 NONENONEs,x,x, &&
2107 program_prefix=${target_alias}-
2108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002109{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2110echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2111if test "${llvm_cv_os_type+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002113else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002114 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002115 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002116 llvm_cv_link_all_option="-Wl,--whole-archive"
2117 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002118 llvm_cv_os_type="AIX"
2119 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002120 *-*-irix*)
2121 llvm_cv_link_all_option="-Wl,--whole-archive"
2122 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2123 llvm_cv_os_type="IRIX"
2124 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002125 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002126 llvm_cv_link_all_option="-Wl,--whole-archive"
2127 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002128 llvm_cv_os_type="Cygwin"
2129 llvm_cv_platform_type="Unix" ;;
2130 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002131 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002132 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002133 llvm_cv_os_type="Darwin"
2134 llvm_cv_platform_type="Unix" ;;
2135 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002136 llvm_cv_link_all_option="-Wl,--whole-archive"
2137 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002138 llvm_cv_os_type="FreeBSD"
2139 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002140 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002141 llvm_cv_link_all_option="-Wl,--whole-archive"
2142 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002143 llvm_cv_os_type="OpenBSD"
2144 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002145 *-*-netbsd*)
2146 llvm_cv_link_all_option="-Wl,--whole-archive"
2147 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2148 llvm_cv_os_type="NetBSD"
2149 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002150 *-*-dragonfly*)
2151 llvm_cv_link_all_option="-Wl,--whole-archive"
2152 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2153 llvm_cv_os_type="DragonFly"
2154 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002155 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002156 llvm_cv_link_all_option="-Wl,--whole-archive"
2157 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002158 llvm_cv_os_type="HP-UX"
2159 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002160 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002161 llvm_cv_link_all_option="-Wl,--whole-archive"
2162 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002163 llvm_cv_os_type="Interix"
2164 llvm_cv_platform_type="Unix" ;;
2165 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002166 llvm_cv_link_all_option="-Wl,--whole-archive"
2167 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002168 llvm_cv_os_type="Linux"
2169 llvm_cv_platform_type="Unix" ;;
2170 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002171 llvm_cv_link_all_option="-Wl,-z,allextract"
2172 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002173 llvm_cv_os_type="SunOS"
2174 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002175 *-*-auroraux*)
2176 llvm_cv_link_all_option="-Wl,-z,allextract"
2177 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2178 llvm_cv_os_type="AuroraUX"
2179 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002180 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002181 llvm_cv_link_all_option="-Wl,--whole-archive"
2182 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002183 llvm_cv_os_type="Win32"
2184 llvm_cv_platform_type="Win32" ;;
2185 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002186 llvm_cv_link_all_option="-Wl,--whole-archive"
2187 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002188 llvm_cv_os_type="MingW"
2189 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002190 *-*-haiku*)
2191 llvm_cv_link_all_option="-Wl,--whole-archive"
2192 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2193 llvm_cv_os_type="Haiku"
2194 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002195 *-unknown-eabi*)
2196 llvm_cv_link_all_option="-Wl,--whole-archive"
2197 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2198 llvm_cv_os_type="Freestanding"
2199 llvm_cv_platform_type="Unix" ;;
2200 *-unknown-elf*)
2201 llvm_cv_link_all_option="-Wl,--whole-archive"
2202 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2203 llvm_cv_os_type="Freestanding"
2204 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002206 llvm_cv_link_all_option=""
2207 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002208 llvm_cv_os_type="Unknown"
2209 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002210esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002212{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2213echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002215{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2216echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2217if test "${llvm_cv_target_os_type+set}" = set; then
2218 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002219else
2220 case $target in
2221 *-*-aix*)
2222 llvm_cv_target_os_type="AIX" ;;
2223 *-*-irix*)
2224 llvm_cv_target_os_type="IRIX" ;;
2225 *-*-cygwin*)
2226 llvm_cv_target_os_type="Cygwin" ;;
2227 *-*-darwin*)
2228 llvm_cv_target_os_type="Darwin" ;;
2229 *-*-freebsd*)
2230 llvm_cv_target_os_type="FreeBSD" ;;
2231 *-*-openbsd*)
2232 llvm_cv_target_os_type="OpenBSD" ;;
2233 *-*-netbsd*)
2234 llvm_cv_target_os_type="NetBSD" ;;
2235 *-*-dragonfly*)
2236 llvm_cv_target_os_type="DragonFly" ;;
2237 *-*-hpux*)
2238 llvm_cv_target_os_type="HP-UX" ;;
2239 *-*-interix*)
2240 llvm_cv_target_os_type="Interix" ;;
2241 *-*-linux*)
2242 llvm_cv_target_os_type="Linux" ;;
2243 *-*-solaris*)
2244 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002245 *-*-auroraux*)
2246 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002247 *-*-win32*)
2248 llvm_cv_target_os_type="Win32" ;;
2249 *-*-mingw*)
2250 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002251 *-*-haiku*)
2252 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002253 *-unknown-eabi*)
2254 llvm_cv_target_os_type="Freestanding" ;;
2255 *)
2256 llvm_cv_target_os_type="Unknown" ;;
2257esac
2258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002259{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2260echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002261
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002263 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2264echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2265 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002266fi
2267
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002269
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002270HOST_OS=$llvm_cv_os_type
2271
2272TARGET_OS=$llvm_cv_target_os_type
2273
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002274
Reid Spencera773bd52006-08-04 18:18:08 +00002275LINKALL=$llvm_cv_link_all_option
2276
2277NOLINKALL=$llvm_cv_no_link_all_option
2278
2279
Reid Spencer7b3e8512004-12-24 06:29:05 +00002280case $llvm_cv_platform_type in
2281 Unix)
2282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002283cat >>confdefs.h <<\_ACEOF
2284#define LLVM_ON_UNIX 1
2285_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002287 LLVM_ON_UNIX=1
2288
2289 LLVM_ON_WIN32=0
2290
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 ;;
2292 Win32)
2293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002294cat >>confdefs.h <<\_ACEOF
2295#define LLVM_ON_WIN32 1
2296_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002298 LLVM_ON_UNIX=0
2299
2300 LLVM_ON_WIN32=1
2301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 ;;
2303esac
2304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002305{ echo "$as_me:$LINENO: checking target architecture" >&5
2306echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2307if test "${llvm_cv_target_arch+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002309else
2310 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002311 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002312 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002313 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2314 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002315 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002316 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002317 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002318 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002319 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002320 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002321 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002322 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002323 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002324esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002326{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2327echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002328
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002329if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002330 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2331echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002332fi
John Criswell76595452003-07-01 22:07:39 +00002333
Nick Lewycky83fc4472009-09-29 05:48:51 +00002334# Determine the LLVM native architecture for the target
2335case "$llvm_cv_target_arch" in
2336 x86) LLVM_NATIVE_ARCH="X86" ;;
2337 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2338 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2339esac
2340
2341ARCH=$llvm_cv_target_arch
2342
2343
2344ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345ac_cpp='$CPP $CPPFLAGS'
2346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002349if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2351set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354if test "${ac_cv_prog_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356else
2357 if test -n "$CC"; then
2358 ac_cv_prog_CC="$CC" # Let the user override the test.
2359else
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 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 +00002367 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002369 break 2
2370 fi
2371done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372done
Reid Spencera773bd52006-08-04 18:18:08 +00002373IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374
2375fi
2376fi
2377CC=$ac_cv_prog_CC
2378if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002379 { echo "$as_me:$LINENO: result: $CC" >&5
2380echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002382 { echo "$as_me:$LINENO: result: no" >&5
2383echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384fi
2385
Reid Spencera773bd52006-08-04 18:18:08 +00002386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387fi
2388if test -z "$ac_cv_prog_CC"; then
2389 ac_ct_CC=$CC
2390 # Extract the first word of "gcc", so it can be a program name with args.
2391set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396else
2397 if test -n "$ac_ct_CC"; then
2398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2399else
2400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401for as_dir in $PATH
2402do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 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 +00002407 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409 break 2
2410 fi
2411done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002412done
Reid Spencera773bd52006-08-04 18:18:08 +00002413IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002414
2415fi
2416fi
2417ac_ct_CC=$ac_cv_prog_ac_ct_CC
2418if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2420echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002422 { echo "$as_me:$LINENO: result: no" >&5
2423echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424fi
2425
Reid Spencera773bd52006-08-04 18:18:08 +00002426 if test "x$ac_ct_CC" = x; then
2427 CC=""
2428 else
2429 case $cross_compiling:$ac_tool_warned in
2430yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002431{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432whose name does not start with the host triplet. If you think this
2433configuration is useful to you, please write to autoconf@gnu.org." >&5
2434echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435whose name does not start with the host triplet. If you think this
2436configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002437ac_tool_warned=yes ;;
2438esac
2439 CC=$ac_ct_CC
2440 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441else
2442 CC="$ac_cv_prog_CC"
2443fi
2444
2445if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002446 if test -n "$ac_tool_prefix"; then
2447 # 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 +00002448set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451if test "${ac_cv_prog_CC+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453else
2454 if test -n "$CC"; then
2455 ac_cv_prog_CC="$CC" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 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 +00002464 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466 break 2
2467 fi
2468done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002469done
Reid Spencera773bd52006-08-04 18:18:08 +00002470IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471
2472fi
2473fi
2474CC=$ac_cv_prog_CC
2475if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002476 { echo "$as_me:$LINENO: result: $CC" >&5
2477echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002479 { echo "$as_me:$LINENO: result: no" >&5
2480echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481fi
2482
Reid Spencera773bd52006-08-04 18:18:08 +00002483
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002485fi
2486if test -z "$CC"; then
2487 # Extract the first word of "cc", so it can be a program name with args.
2488set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2491if test "${ac_cv_prog_CC+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493else
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC="$CC" # Let the user override the test.
2496else
2497 ac_prog_rejected=no
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 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 +00002505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2506 ac_prog_rejected=yes
2507 continue
2508 fi
2509 ac_cv_prog_CC="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
2517if test $ac_prog_rejected = yes; then
2518 # We found a bogon in the path, so make sure we never use it.
2519 set dummy $ac_cv_prog_CC
2520 shift
2521 if test $# != 0; then
2522 # We chose a different compiler from the bogus one.
2523 # However, it has the same basename, so the bogon will be chosen
2524 # first if we set CC to just the basename; use the full file name.
2525 shift
2526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2527 fi
2528fi
2529fi
2530fi
2531CC=$ac_cv_prog_CC
2532if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002533 { echo "$as_me:$LINENO: result: $CC" >&5
2534echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002536 { echo "$as_me:$LINENO: result: no" >&5
2537echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538fi
2539
Reid Spencera773bd52006-08-04 18:18:08 +00002540
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541fi
2542if test -z "$CC"; then
2543 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002544 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002545 do
2546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2547set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002552else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002555else
2556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557for as_dir in $PATH
2558do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 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 +00002563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002565 break 2
2566 fi
2567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002568done
Reid Spencera773bd52006-08-04 18:18:08 +00002569IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002570
2571fi
2572fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575 { echo "$as_me:$LINENO: result: $CC" >&5
2576echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002580fi
2581
Reid Spencera773bd52006-08-04 18:18:08 +00002582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002584 done
2585fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586if test -z "$CC"; then
2587 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002588 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002589do
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002596else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597 if test -n "$ac_ct_CC"; then
2598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603 IFS=$as_save_IFS
2604 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 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 +00002607 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002609 break 2
2610 fi
2611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612done
Reid Spencera773bd52006-08-04 18:18:08 +00002613IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002614
2615fi
2616fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617ac_ct_CC=$ac_cv_prog_ac_ct_CC
2618if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2620echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002622 { echo "$as_me:$LINENO: result: no" >&5
2623echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002624fi
2625
Reid Spencera773bd52006-08-04 18:18:08 +00002626
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002628done
John Criswell7a73b802003-06-30 21:59:07 +00002629
Reid Spencera773bd52006-08-04 18:18:08 +00002630 if test "x$ac_ct_CC" = x; then
2631 CC=""
2632 else
2633 case $cross_compiling:$ac_tool_warned in
2634yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002635{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2636whose name does not start with the host triplet. If you think this
2637configuration is useful to you, please write to autoconf@gnu.org." >&5
2638echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2639whose name does not start with the host triplet. If you think this
2640configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002641ac_tool_warned=yes ;;
2642esac
2643 CC=$ac_ct_CC
2644 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645fi
2646
John Criswell7a73b802003-06-30 21:59:07 +00002647fi
2648
2649
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2651See \`config.log' for more details." >&5
2652echo "$as_me: error: no acceptable C compiler found in \$PATH
2653See \`config.log' for more details." >&2;}
2654 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655
John Criswell7a73b802003-06-30 21:59:07 +00002656# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002657echo "$as_me:$LINENO: checking for C compiler version" >&5
2658ac_compiler=`set X $ac_compile; echo $2`
2659{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002660case "(($ac_try" in
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2663esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002666 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }
2669{ (ac_try="$ac_compiler -v >&5"
2670case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673esac
2674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler -v >&5") 2>&5
2676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679{ (ac_try="$ac_compiler -V >&5"
2680case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683esac
2684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -V >&5") 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002690cat >conftest.$ac_ext <<_ACEOF
2691/* confdefs.h. */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002696
John Criswell7a73b802003-06-30 21:59:07 +00002697int
2698main ()
2699{
2700
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002706ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002707# Try to create an executable without -o first, disregard a.out.
2708# It will help us diagnose broken compilers, and finding out an intuition
2709# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002710{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2711echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2712ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2713#
2714# List of possible output files, starting from the most likely.
2715# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2716# only as a last resort. b.out is created by i960 compilers.
2717ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2718#
2719# The IRIX 6 linker writes into existing files which may not be
2720# executable, retaining their permissions. Remove them first so a
2721# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002722ac_rmfiles=
2723for ac_file in $ac_files
2724do
2725 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002727 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2728 esac
2729done
2730rm -f $ac_rmfiles
2731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002732if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002738 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002739 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2743# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2744# in a Makefile. We should not override ac_cv_exeext if it was cached,
2745# so that the user can short-circuit this test for compilers unknown to
2746# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002748do
2749 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002750 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002752 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002753 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002754 # We found the default executable, but exeext='' is most
2755 # certainly right.
2756 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002757 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002759 then :; else
2760 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761 fi
2762 # We set ac_cv_exeext here because the later test for it is not
2763 # safe: cross compilers may not add the suffix if given an `-o'
2764 # argument, so we may need to know it at that point already.
2765 # Even if this section looks crufty: it has the advantage of
2766 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002767 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002768 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002769 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002770 esac
2771done
Reid Spencera773bd52006-08-04 18:18:08 +00002772test "$ac_cv_exeext" = no && ac_cv_exeext=
2773
John Criswell7a73b802003-06-30 21:59:07 +00002774else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002776sed 's/^/| /' conftest.$ac_ext >&5
2777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002778{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2779See \`config.log' for more details." >&5
2780echo "$as_me: error: C compiler cannot create executables
2781See \`config.log' for more details." >&2;}
2782 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002783fi
John Criswell7a73b802003-06-30 21:59:07 +00002784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002785ac_exeext=$ac_cv_exeext
2786{ echo "$as_me:$LINENO: result: $ac_file" >&5
2787echo "${ECHO_T}$ac_file" >&6; }
2788
2789# Check that the compiler produces executables we can run. If not, either
2790# the compiler is broken, or we cross compile.
2791{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2792echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2793# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2794# If not cross compiling, check that we can run a simple program.
2795if test "$cross_compiling" != yes; then
2796 if { ac_try='./$ac_file'
2797 { (case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800esac
2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_try") 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; }; then
2806 cross_compiling=no
2807 else
2808 if test "$cross_compiling" = maybe; then
2809 cross_compiling=yes
2810 else
2811 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2812If you meant to cross compile, use \`--host'.
2813See \`config.log' for more details." >&5
2814echo "$as_me: error: cannot run C compiled programs.
2815If you meant to cross compile, use \`--host'.
2816See \`config.log' for more details." >&2;}
2817 { (exit 1); exit 1; }; }
2818 fi
2819 fi
2820fi
2821{ echo "$as_me:$LINENO: result: yes" >&5
2822echo "${ECHO_T}yes" >&6; }
2823
2824rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002825ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826# Check that the compiler produces executables we can run. If not, either
2827# the compiler is broken, or we cross compile.
2828{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2829echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2830{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2831echo "${ECHO_T}$cross_compiling" >&6; }
2832
2833{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2834echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2835if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002836case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002841 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002842 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002845 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2846# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2847# work properly (i.e., refer to `conftest.exe'), while it won't with
2848# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002849for ac_file in conftest.exe conftest conftest.*; do
2850 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002851 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002853 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002854 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002855 * ) break;;
2856 esac
2857done
2858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002859 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2860See \`config.log' for more details." >&5
2861echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2862See \`config.log' for more details." >&2;}
2863 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002864fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002865
2866rm -f conftest$ac_cv_exeext
2867{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2868echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002869
2870rm -f conftest.$ac_ext
2871EXEEXT=$ac_cv_exeext
2872ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002873{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2874echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2875if test "${ac_cv_objext+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002878 cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002884
John Criswell7a73b802003-06-30 21:59:07 +00002885int
2886main ()
2887{
2888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002894if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002900 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002901 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002904 for ac_file in conftest.o conftest.obj conftest.*; do
2905 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002906 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2909 break;;
2910 esac
2911done
2912else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002913 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002914sed 's/^/| /' conftest.$ac_ext >&5
2915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002916{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2917See \`config.log' for more details." >&5
2918echo "$as_me: error: cannot compute suffix of object files: cannot compile
2919See \`config.log' for more details." >&2;}
2920 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002922
John Criswell7a73b802003-06-30 21:59:07 +00002923rm -f conftest.$ac_cv_objext conftest.$ac_ext
2924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002925{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2926echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002927OBJEXT=$ac_cv_objext
2928ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002929{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2930echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2931if test "${ac_cv_c_compiler_gnu+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002934 cat >conftest.$ac_ext <<_ACEOF
2935/* confdefs.h. */
2936_ACEOF
2937cat confdefs.h >>conftest.$ac_ext
2938cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002940
John Criswell7a73b802003-06-30 21:59:07 +00002941int
2942main ()
2943{
2944#ifndef __GNUC__
2945 choke me
2946#endif
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002952rm -f conftest.$ac_objext
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002986 ac_compiler_gnu=yes
2987else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002988 echo "$as_me: failed program was:" >&5
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002992fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993
Reid Spencera773bd52006-08-04 18:18:08 +00002994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002995ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002996
2997fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002998{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2999echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3000GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003001ac_test_CFLAGS=${CFLAGS+set}
3002ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003003{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3004echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3005if test "${ac_cv_prog_cc_g+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003007else
Reid Spencera773bd52006-08-04 18:18:08 +00003008 ac_save_c_werror_flag=$ac_c_werror_flag
3009 ac_c_werror_flag=yes
3010 ac_cv_prog_cc_g=no
3011 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003018
John Criswell7a73b802003-06-30 21:59:07 +00003019int
3020main ()
3021{
3022
3023 ;
3024 return 0;
3025}
3026_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003027rm -f conftest.$ac_objext
3028if { (ac_try="$ac_compile"
3029case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032esac
3033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compile") 2>conftest.er1
3035 ac_status=$?
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } &&
3041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003061 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066 CFLAGS=""
3067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003082rm -f conftest.$ac_objext
3083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
3116 :
Torok Edwin871384f2010-01-26 08:50:50 +00003117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003118 echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003122 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003123 cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003128/* end confdefs.h. */
3129
3130int
3131main ()
3132{
3133
3134 ;
3135 return 0;
3136}
3137_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003138rm -f conftest.$ac_objext
3139if { (ac_try="$ac_compile"
3140case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143esac
3144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } &&
3152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003172 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177
John Criswell7a73b802003-06-30 21:59:07 +00003178fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003179
Reid Spencera773bd52006-08-04 18:18:08 +00003180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003181fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003182
Reid Spencera773bd52006-08-04 18:18:08 +00003183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003185
Reid Spencera773bd52006-08-04 18:18:08 +00003186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3188fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003189{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003191if test "$ac_test_CFLAGS" = set; then
3192 CFLAGS=$ac_save_CFLAGS
3193elif test $ac_cv_prog_cc_g = yes; then
3194 if test "$GCC" = yes; then
3195 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003196 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003198 fi
3199else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200 if test "$GCC" = yes; then
3201 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003202 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003204 fi
3205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003206{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208if test "${ac_cv_prog_cc_c89+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210else
Reid Spencera773bd52006-08-04 18:18:08 +00003211 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003213cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003218/* end confdefs.h. */
3219#include <stdarg.h>
3220#include <stdio.h>
3221#include <sys/types.h>
3222#include <sys/stat.h>
3223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224struct buf { int x; };
3225FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226static char *e (p, i)
3227 char **p;
3228 int i;
3229{
3230 return p[i];
3231}
3232static char *f (char * (*g) (char **, int), char **p, ...)
3233{
3234 char *s;
3235 va_list v;
3236 va_start (v,p);
3237 s = g (p, va_arg (v,int));
3238 va_end (v);
3239 return s;
3240}
3241
3242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003245 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003248 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003249int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3250
Reid Spencera773bd52006-08-04 18:18:08 +00003251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3253#define FOO(x) 'x'
3254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3255
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256int test (int i, double x);
3257struct s1 {int (*f) (int a);};
3258struct s2 {int (*f) (double a);};
3259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3260int argc;
3261char **argv;
3262int
3263main ()
3264{
3265return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3266 ;
3267 return 0;
3268}
3269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272do
3273 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003274 rm -f conftest.$ac_objext
3275if { (ac_try="$ac_compile"
3276case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3282 ac_status=$?
3283 grep -v '^ *+' conftest.er1 >conftest.err
3284 rm -f conftest.er1
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3289 { (case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_try") 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302esac
3303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
3305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003308 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003309else
3310 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315
Reid Spencera773bd52006-08-04 18:18:08 +00003316rm -f core conftest.err conftest.$ac_objext
3317 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318done
Reid Spencera773bd52006-08-04 18:18:08 +00003319rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320CC=$ac_save_CC
3321
3322fi
Reid Spencera773bd52006-08-04 18:18:08 +00003323# AC_CACHE_VAL
3324case "x$ac_cv_prog_cc_c89" in
3325 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003326 { echo "$as_me:$LINENO: result: none needed" >&5
3327echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003328 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003329 { echo "$as_me:$LINENO: result: unsupported" >&5
3330echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003332 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3334echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335esac
3336
John Criswell0c38eaf2003-09-10 15:17:25 +00003337
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338ac_ext=c
3339ac_cpp='$CPP $CPPFLAGS'
3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343
3344
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3351echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352# On Suns, sometimes $CPP names a directory.
3353if test -n "$CPP" && test -d "$CPP"; then
3354 CPP=
3355fi
3356if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357 if test "${ac_cv_prog_CPP+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359else
3360 # Double quotes because CPP needs to be expanded
3361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362 do
3363 ac_preproc_ok=false
3364for ac_c_preproc_warn_flag in '' yes
3365do
3366 # Use a header file that comes with gcc, so configuring glibc
3367 # with a fresh cross-compiler works.
3368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3369 # <limits.h> exists even on freestanding compilers.
3370 # On the NeXT, cc -E runs the code through the compiler's parser,
3371 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003372 cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h. */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377/* end confdefs.h. */
3378#ifdef __STDC__
3379# include <limits.h>
3380#else
3381# include <assert.h>
3382#endif
3383 Syntax error
3384_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003385if { (ac_try="$ac_cpp conftest.$ac_ext"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 else
3402 ac_cpp_err=
3403 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003404else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405 ac_cpp_err=yes
3406fi
3407if test -z "$ac_cpp_err"; then
3408 :
3409else
3410 echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003413 # Broken: fails on valid input.
3414continue
3415fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417rm -f conftest.err conftest.$ac_ext
3418
Reid Spencera773bd52006-08-04 18:18:08 +00003419 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003420 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003421 cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h. */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003426/* end confdefs.h. */
3427#include <ac_nonexistent.h>
3428_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003429if { (ac_try="$ac_cpp conftest.$ac_ext"
3430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
3434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } >/dev/null; then
3442 if test -s conftest.err; then
3443 ac_cpp_err=$ac_c_preproc_warn_flag
3444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3445 else
3446 ac_cpp_err=
3447 fi
3448else
3449 ac_cpp_err=yes
3450fi
3451if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003452 # Broken: success on invalid input.
3453continue
3454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003455 echo "$as_me: failed program was:" >&5
3456sed 's/^/| /' conftest.$ac_ext >&5
3457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458 # Passes both tests.
3459ac_preproc_ok=:
3460break
3461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463rm -f conftest.err conftest.$ac_ext
3464
3465done
3466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003468if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003469 break
3470fi
3471
3472 done
3473 ac_cv_prog_CPP=$CPP
3474
3475fi
3476 CPP=$ac_cv_prog_CPP
3477else
3478 ac_cv_prog_CPP=$CPP
3479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003480{ echo "$as_me:$LINENO: result: $CPP" >&5
3481echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003482ac_preproc_ok=false
3483for ac_c_preproc_warn_flag in '' yes
3484do
3485 # Use a header file that comes with gcc, so configuring glibc
3486 # with a fresh cross-compiler works.
3487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3488 # <limits.h> exists even on freestanding compilers.
3489 # On the NeXT, cc -E runs the code through the compiler's parser,
3490 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003491 cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h. */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496/* end confdefs.h. */
3497#ifdef __STDC__
3498# include <limits.h>
3499#else
3500# include <assert.h>
3501#endif
3502 Syntax error
3503_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003504if { (ac_try="$ac_cpp conftest.$ac_ext"
3505case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508esac
3509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null; then
3517 if test -s conftest.err; then
3518 ac_cpp_err=$ac_c_preproc_warn_flag
3519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520 else
3521 ac_cpp_err=
3522 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003523else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003524 ac_cpp_err=yes
3525fi
3526if test -z "$ac_cpp_err"; then
3527 :
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003532 # Broken: fails on valid input.
3533continue
3534fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003535
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003536rm -f conftest.err conftest.$ac_ext
3537
Reid Spencera773bd52006-08-04 18:18:08 +00003538 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003540 cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h. */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003545/* end confdefs.h. */
3546#include <ac_nonexistent.h>
3547_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003548if { (ac_try="$ac_cpp conftest.$ac_ext"
3549case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552esac
3553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3555 ac_status=$?
3556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } >/dev/null; then
3561 if test -s conftest.err; then
3562 ac_cpp_err=$ac_c_preproc_warn_flag
3563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3564 else
3565 ac_cpp_err=
3566 fi
3567else
3568 ac_cpp_err=yes
3569fi
3570if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003571 # Broken: success on invalid input.
3572continue
3573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577 # Passes both tests.
3578ac_preproc_ok=:
3579break
3580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582rm -f conftest.err conftest.$ac_ext
3583
3584done
3585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3586rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003587if $ac_preproc_ok; then
3588 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3591See \`config.log' for more details." >&5
3592echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3593See \`config.log' for more details." >&2;}
3594 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595fi
3596
John Criswell7a73b802003-06-30 21:59:07 +00003597ac_ext=c
3598ac_cpp='$CPP $CPPFLAGS'
3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
John Criswell7a73b802003-06-30 21:59:07 +00003603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003604{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3605echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3606if test "${ac_cv_path_GREP+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003609 # Extract the first word of "grep ggrep" to use in msg output
3610if test -z "$GREP"; then
3611set dummy grep ggrep; ac_prog_name=$2
3612if test "${ac_cv_path_GREP+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
Reid Spencera773bd52006-08-04 18:18:08 +00003615 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616# Loop through the user's path and test for each of PROGNAME-LIST
3617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003618for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003619do
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003622 for ac_prog in grep ggrep; do
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3625 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3626 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003627 # Check for GNU $ac_path_GREP
3628case `"$ac_path_GREP" --version 2>&1` in
3629*GNU*)
3630 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3631*)
3632 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003633 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003634 while :
3635 do
3636 cat "conftest.in" "conftest.in" >"conftest.tmp"
3637 mv "conftest.tmp" "conftest.in"
3638 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003639 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003640 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003642 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003643 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3644 # Best one so far, save it but keep looking for a better one
3645 ac_cv_path_GREP="$ac_path_GREP"
3646 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003647 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003648 # 10*(2^10) chars as input seems more than enough
3649 test $ac_count -gt 10 && break
3650 done
3651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652esac
3653
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003654
3655 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003656 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657done
3658
3659done
Reid Spencera773bd52006-08-04 18:18:08 +00003660IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003661
3662
3663fi
3664
3665GREP="$ac_cv_path_GREP"
3666if test -z "$GREP"; then
3667 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3668echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3669 { (exit 1); exit 1; }; }
3670fi
3671
Reid Spencera773bd52006-08-04 18:18:08 +00003672else
3673 ac_cv_path_GREP=$GREP
3674fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003676
Reid Spencera773bd52006-08-04 18:18:08 +00003677fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003678{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3679echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003680 GREP="$ac_cv_path_GREP"
3681
3682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003683{ echo "$as_me:$LINENO: checking for egrep" >&5
3684echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3685if test "${ac_cv_path_EGREP+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003687else
3688 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3689 then ac_cv_path_EGREP="$GREP -E"
3690 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003691 # Extract the first word of "egrep" to use in msg output
3692if test -z "$EGREP"; then
3693set dummy egrep; ac_prog_name=$2
3694if test "${ac_cv_path_EGREP+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
Reid Spencera773bd52006-08-04 18:18:08 +00003697 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698# Loop through the user's path and test for each of PROGNAME-LIST
3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003700for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003704 for ac_prog in egrep; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3707 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3708 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003709 # Check for GNU $ac_path_EGREP
3710case `"$ac_path_EGREP" --version 2>&1` in
3711*GNU*)
3712 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3713*)
3714 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003715 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003716 while :
3717 do
3718 cat "conftest.in" "conftest.in" >"conftest.tmp"
3719 mv "conftest.tmp" "conftest.in"
3720 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003722 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3723 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003724 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003725 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3726 # Best one so far, save it but keep looking for a better one
3727 ac_cv_path_EGREP="$ac_path_EGREP"
3728 ac_path_EGREP_max=$ac_count
3729 fi
3730 # 10*(2^10) chars as input seems more than enough
3731 test $ac_count -gt 10 && break
3732 done
3733 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3734esac
3735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736
3737 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003738 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739done
3740
3741done
Reid Spencera773bd52006-08-04 18:18:08 +00003742IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003743
3744
3745fi
3746
3747EGREP="$ac_cv_path_EGREP"
3748if test -z "$EGREP"; then
3749 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3750echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3751 { (exit 1); exit 1; }; }
3752fi
3753
Reid Spencera773bd52006-08-04 18:18:08 +00003754else
3755 ac_cv_path_EGREP=$EGREP
3756fi
3757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003758
Reid Spencera773bd52006-08-04 18:18:08 +00003759 fi
3760fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003761{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3762echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003763 EGREP="$ac_cv_path_EGREP"
3764
3765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3767echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3768if test "${ac_cv_header_stdc+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003770else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003771 cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h. */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003777#include <stdlib.h>
3778#include <stdarg.h>
3779#include <string.h>
3780#include <float.h>
3781
John Criswell0c38eaf2003-09-10 15:17:25 +00003782int
3783main ()
3784{
3785
3786 ;
3787 return 0;
3788}
John Criswell7a73b802003-06-30 21:59:07 +00003789_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003790rm -f conftest.$ac_objext
3791if { (ac_try="$ac_compile"
3792case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795esac
3796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3805 { (case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808esac
3809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_try") 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818esac
3819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003824 ac_cv_header_stdc=yes
3825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003826 echo "$as_me: failed program was:" >&5
3827sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003830fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831
Reid Spencera773bd52006-08-04 18:18:08 +00003832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003833
3834if test $ac_cv_header_stdc = yes; then
3835 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003836 cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h. */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003842#include <string.h>
3843
3844_ACEOF
3845if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003846 $EGREP "memchr" >/dev/null 2>&1; then
3847 :
John Criswell7a73b802003-06-30 21:59:07 +00003848else
3849 ac_cv_header_stdc=no
3850fi
3851rm -f conftest*
3852
3853fi
3854
3855if test $ac_cv_header_stdc = yes; then
3856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003857 cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h. */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003863#include <stdlib.h>
3864
3865_ACEOF
3866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003867 $EGREP "free" >/dev/null 2>&1; then
3868 :
John Criswell7a73b802003-06-30 21:59:07 +00003869else
3870 ac_cv_header_stdc=no
3871fi
3872rm -f conftest*
3873
3874fi
3875
3876if test $ac_cv_header_stdc = yes; then
3877 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003879 :
3880else
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 <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003888#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003889#if ((' ' & 0x0FF) == 0x020)
3890# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3891# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3892#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003893# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003894 (('a' <= (c) && (c) <= 'i') \
3895 || ('j' <= (c) && (c) <= 'r') \
3896 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003897# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3898#endif
3899
3900#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3901int
3902main ()
3903{
3904 int i;
3905 for (i = 0; i < 256; i++)
3906 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003907 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003908 return 2;
3909 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003910}
3911_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003912rm -f conftest$ac_exeext
3913if { (ac_try="$ac_link"
3914case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917esac
3918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_link") 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3923 { (case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926esac
3927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3928 (eval "$ac_try") 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; }; then
3932 :
John Criswell7a73b802003-06-30 21:59:07 +00003933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003934 echo "$as_me: program exited with status $ac_status" >&5
3935echo "$as_me: failed program was:" >&5
3936sed 's/^/| /' conftest.$ac_ext >&5
3937
3938( exit $ac_status )
3939ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003941rm -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 +00003942fi
3943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003944
John Criswell7a73b802003-06-30 21:59:07 +00003945fi
3946fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003947{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3948echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003949if test $ac_cv_header_stdc = yes; then
3950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003951cat >>confdefs.h <<\_ACEOF
3952#define STDC_HEADERS 1
3953_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003954
3955fi
3956
Reid Spencera773bd52006-08-04 18:18:08 +00003957# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003958
3959
3960
3961
3962
3963
3964
3965
3966
Reid Spencera773bd52006-08-04 18:18:08 +00003967for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3968 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003969do
3970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3971{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 cat >conftest.$ac_ext <<_ACEOF
3977/* confdefs.h. */
3978_ACEOF
3979cat confdefs.h >>conftest.$ac_ext
3980cat >>conftest.$ac_ext <<_ACEOF
3981/* end confdefs.h. */
3982$ac_includes_default
3983
3984#include <$ac_header>
3985_ACEOF
3986rm -f conftest.$ac_objext
3987if { (ac_try="$ac_compile"
3988case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991esac
3992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_compile") 2>conftest.er1
3994 ac_status=$?
3995 grep -v '^ *+' conftest.er1 >conftest.err
3996 rm -f conftest.er1
3997 cat conftest.err >&5
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4001 { (case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004esac
4005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; } &&
4010 { ac_try='test -s conftest.$ac_objext'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 eval "$as_ac_Header=yes"
4021else
4022 echo "$as_me: failed program was:" >&5
4023sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 eval "$as_ac_Header=no"
4026fi
4027
4028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029fi
4030ac_res=`eval echo '${'$as_ac_Header'}'`
4031 { echo "$as_me:$LINENO: result: $ac_res" >&5
4032echo "${ECHO_T}$ac_res" >&6; }
4033if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004034 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004036_ACEOF
4037
4038fi
4039
4040done
4041
4042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004043{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4044echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4045if test "${ac_cv_c_bigendian+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048 # See if sys/param.h defines the BYTE_ORDER macro.
4049cat >conftest.$ac_ext <<_ACEOF
4050/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004051_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004052cat confdefs.h >>conftest.$ac_ext
4053cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004054/* end confdefs.h. */
4055#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004056#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004057
4058int
4059main ()
4060{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004061#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4062 bogus endian macros
4063#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004064
4065 ;
4066 return 0;
4067}
4068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004069rm -f conftest.$ac_objext
4070if { (ac_try="$ac_compile"
4071case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074esac
4075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } &&
4083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4084 { (case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087esac
4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_try") 2>&5
4090 ac_status=$?
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }; } &&
4093 { ac_try='test -s conftest.$ac_objext'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004103 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004104cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004109/* end confdefs.h. */
4110#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004112
4113int
4114main ()
4115{
4116#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004117 not big endian
4118#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004119
4120 ;
4121 return 0;
4122}
4123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004124rm -f conftest.$ac_objext
4125if { (ac_try="$ac_compile"
4126case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); } &&
4138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004158 ac_cv_c_bigendian=yes
4159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 echo "$as_me: failed program was:" >&5
4161sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004163 ac_cv_c_bigendian=no
4164fi
4165
4166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167else
4168 echo "$as_me: failed program was:" >&5
4169sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 # It does not; compile a test program.
4172if test "$cross_compiling" = yes; then
4173 # try to guess the endianness by grepping values into an object file
4174 ac_cv_c_bigendian=unknown
4175 cat >conftest.$ac_ext <<_ACEOF
4176/* confdefs.h. */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h. */
4181short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4182short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4183void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4184short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4185short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4186void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004187int
4188main ()
4189{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004191 ;
4192 return 0;
4193}
4194_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004195rm -f conftest.$ac_objext
4196if { (ac_try="$ac_compile"
4197case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_compile") 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4210 { (case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
4214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_try") 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; } &&
4219 { ac_try='test -s conftest.$ac_objext'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; }; then
4229 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004230 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231fi
4232if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4233 if test "$ac_cv_c_bigendian" = unknown; then
4234 ac_cv_c_bigendian=no
4235 else
4236 # finding both strings is unlikely to happen, but who knows?
4237 ac_cv_c_bigendian=unknown
4238 fi
4239fi
Reid Spencera773bd52006-08-04 18:18:08 +00004240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004241 echo "$as_me: failed program was:" >&5
4242sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004244
Torok Edwin871384f2010-01-26 08:50:50 +00004245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246
Reid Spencera773bd52006-08-04 18:18:08 +00004247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004249 cat >conftest.$ac_ext <<_ACEOF
4250/* confdefs.h. */
4251_ACEOF
4252cat confdefs.h >>conftest.$ac_ext
4253cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004254/* end confdefs.h. */
4255$ac_includes_default
4256int
4257main ()
4258{
4259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004260 /* Are we little or big endian? From Harbison&Steele. */
4261 union
4262 {
4263 long int l;
4264 char c[sizeof (long int)];
4265 } u;
4266 u.l = 1;
4267 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004268
4269 ;
4270 return 0;
4271}
4272_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273rm -f conftest$ac_exeext
4274if { (ac_try="$ac_link"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_link") 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4284 { (case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287esac
4288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004293 ac_cv_c_bigendian=no
4294else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004295 echo "$as_me: program exited with status $ac_status" >&5
4296echo "$as_me: failed program was:" >&5
4297sed 's/^/| /' conftest.$ac_ext >&5
4298
4299( exit $ac_status )
4300ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302rm -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 +00004303fi
4304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305
Reid Spencera773bd52006-08-04 18:18:08 +00004306fi
4307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309fi
4310{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4311echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4312case $ac_cv_c_bigendian in
4313 yes)
4314 ENDIAN=big
4315 ;;
4316 no)
4317 ENDIAN=little
4318 ;;
4319 *)
4320 { { echo "$as_me:$LINENO: error: unknown endianness
4321presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4322echo "$as_me: error: unknown endianness
4323presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4324 { (exit 1); exit 1; }; } ;;
4325esac
Reid Spencera773bd52006-08-04 18:18:08 +00004326
4327
4328if test "$cross_compiling" = yes; then
4329 LLVM_CROSS_COMPILING=1
4330
4331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004332{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4333echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4334if test "${ac_cv_build_exeext+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004336else
4337 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4338 ac_cv_build_exeext=.exe
4339else
4340 ac_build_prefix=${build_alias}-
4341
4342 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4343set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004348else
4349 if test -n "$BUILD_CC"; then
4350 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 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 +00004359 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004361 break 2
4362 fi
4363done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004364done
Reid Spencera773bd52006-08-04 18:18:08 +00004365IFS=$as_save_IFS
4366
4367fi
4368fi
4369BUILD_CC=$ac_cv_prog_BUILD_CC
4370if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4372echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374 { echo "$as_me:$LINENO: result: no" >&5
4375echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004376fi
4377
4378
4379 if test -z "$BUILD_CC"; then
4380 # Extract the first word of "gcc", so it can be a program name with args.
4381set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4384if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004386else
4387 if test -n "$BUILD_CC"; then
4388 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4389else
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 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 +00004397 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004399 break 2
4400 fi
4401done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402done
Reid Spencera773bd52006-08-04 18:18:08 +00004403IFS=$as_save_IFS
4404
4405fi
4406fi
4407BUILD_CC=$ac_cv_prog_BUILD_CC
4408if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4410echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004411else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412 { echo "$as_me:$LINENO: result: no" >&5
4413echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004414fi
4415
4416
4417 if test -z "$BUILD_CC"; then
4418 # Extract the first word of "cc", so it can be a program name with args.
4419set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004424else
4425 if test -n "$BUILD_CC"; then
4426 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4427else
4428 ac_prog_rejected=no
4429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430for as_dir in $PATH
4431do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 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 +00004436 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4437 ac_prog_rejected=yes
4438 continue
4439 fi
4440 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004442 break 2
4443 fi
4444done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004445done
Reid Spencera773bd52006-08-04 18:18:08 +00004446IFS=$as_save_IFS
4447
4448if test $ac_prog_rejected = yes; then
4449 # We found a bogon in the path, so make sure we never use it.
4450 set dummy $ac_cv_prog_BUILD_CC
4451 shift
4452 if test $# != 0; then
4453 # We chose a different compiler from the bogus one.
4454 # However, it has the same basename, so the bogon will be chosen
4455 # first if we set BUILD_CC to just the basename; use the full file name.
4456 shift
4457 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4458 fi
4459fi
4460fi
4461fi
4462BUILD_CC=$ac_cv_prog_BUILD_CC
4463if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4465echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004467 { echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004469fi
4470
4471
4472 fi
4473 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4475echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4476 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004477 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4478 rm -f conftest*
4479 echo 'int main () { return 0; }' > conftest.$ac_ext
4480 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004482 (eval $ac_build_link) 2>&5
4483 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004486 for file in conftest.*; do
4487 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004488 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004489 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4490 esac
4491 done
4492 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004493 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4494echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4495 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004496 fi
4497 rm -f conftest*
4498 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4499fi
4500fi
4501
4502BUILD_EXEEXT=""
4503test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004504{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4505echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004506ac_build_exeext=$BUILD_EXEEXT
4507
Jim Grosbach673612e2008-10-02 22:56:44 +00004508 ac_build_prefix=${build_alias}-
4509 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4510set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4513if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004515else
4516 if test -n "$BUILD_CXX"; then
4517 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 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 +00004526 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004528 break 2
4529 fi
4530done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004531done
Jim Grosbach673612e2008-10-02 22:56:44 +00004532IFS=$as_save_IFS
4533
4534fi
4535fi
4536BUILD_CXX=$ac_cv_prog_BUILD_CXX
4537if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4539echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004541 { echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004543fi
4544
4545
4546 if test -z "$BUILD_CXX"; then
4547 # Extract the first word of "g++", so it can be a program name with args.
4548set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004553else
4554 if test -n "$BUILD_CXX"; then
4555 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 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 +00004564 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004566 break 2
4567 fi
4568done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569done
Jim Grosbach673612e2008-10-02 22:56:44 +00004570IFS=$as_save_IFS
4571
4572fi
4573fi
4574BUILD_CXX=$ac_cv_prog_BUILD_CXX
4575if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4577echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { echo "$as_me:$LINENO: result: no" >&5
4580echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004581fi
4582
4583
4584 if test -z "$BUILD_CXX"; then
4585 # Extract the first word of "c++", so it can be a program name with args.
4586set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4589if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004591else
4592 if test -n "$BUILD_CXX"; then
4593 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4594else
4595 ac_prog_rejected=no
4596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597for as_dir in $PATH
4598do
4599 IFS=$as_save_IFS
4600 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004601 for ac_exec_ext in '' $ac_executable_extensions; do
4602 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 +00004603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4604 ac_prog_rejected=yes
4605 continue
4606 fi
4607 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004609 break 2
4610 fi
4611done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004612done
Jim Grosbach673612e2008-10-02 22:56:44 +00004613IFS=$as_save_IFS
4614
4615if test $ac_prog_rejected = yes; then
4616 # We found a bogon in the path, so make sure we never use it.
4617 set dummy $ac_cv_prog_BUILD_CXX
4618 shift
4619 if test $# != 0; then
4620 # We chose a different compiler from the bogus one.
4621 # However, it has the same basename, so the bogon will be chosen
4622 # first if we set BUILD_CXX to just the basename; use the full file name.
4623 shift
4624 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4625 fi
4626fi
4627fi
4628fi
4629BUILD_CXX=$ac_cv_prog_BUILD_CXX
4630if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4632echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004633else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004634 { echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004636fi
4637
4638
4639 fi
4640 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004641else
4642 LLVM_CROSS_COMPILING=0
4643
4644fi
4645
Nick Lewycky5b28f862009-04-10 05:18:27 +00004646if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004647 cvsbuild="yes"
4648 optimize="no"
4649 CVSBUILD=CVSBUILD=1
4650
4651else
4652 cvsbuild="no"
4653 optimize="yes"
4654fi
4655
4656
4657# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004659 enableval=$enable_optimized;
4660else
4661 enableval=$optimize
4662fi
4663
4664if test ${enableval} = "no" ; then
4665 ENABLE_OPTIMIZED=
4666
4667else
4668 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4669
4670fi
4671
David Greene2a5a12c2009-04-17 14:50:39 +00004672# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004674 enableval=$enable_profiling;
4675else
4676 enableval="no"
4677fi
4678
4679if test ${enableval} = "no" ; then
4680 ENABLE_PROFILING=
4681
4682else
4683 ENABLE_PROFILING=ENABLE_PROFILING=1
4684
4685fi
4686
Reid Spencera773bd52006-08-04 18:18:08 +00004687# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004689 enableval=$enable_assertions;
4690else
4691 enableval="yes"
4692fi
4693
4694if test ${enableval} = "yes" ; then
4695 DISABLE_ASSERTIONS=
4696
4697else
4698 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4699
4700fi
4701
David Greenea696d242007-06-28 19:36:08 +00004702# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004704 enableval=$enable_expensive_checks;
4705else
4706 enableval="no"
4707fi
4708
4709if test ${enableval} = "yes" ; then
4710 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4711
4712 EXPENSIVE_CHECKS=yes
4713
4714else
4715 ENABLE_EXPENSIVE_CHECKS=
4716
4717 EXPENSIVE_CHECKS=no
4718
4719fi
4720
Reid Spencer8b2e1412006-11-17 03:32:33 +00004721# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004722if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004723 enableval=$enable_debug_runtime;
4724else
4725 enableval=no
4726fi
4727
4728if test ${enableval} = "no" ; then
4729 DEBUG_RUNTIME=
4730
4731else
4732 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4733
4734fi
4735
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004736# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004738 enableval=$enable_debug_symbols;
4739else
4740 enableval=no
4741fi
4742
4743if test ${enableval} = "no" ; then
4744 DEBUG_SYMBOLS=
4745
4746else
4747 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4748
4749fi
4750
Reid Spencera773bd52006-08-04 18:18:08 +00004751# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004753 enableval=$enable_jit;
4754else
4755 enableval=default
4756fi
4757
4758if test ${enableval} = "no"
4759then
4760 JIT=
4761
4762else
4763 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004764 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004765 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004766 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004767 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004768 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004769 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004770 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004771 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004772 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004773 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004774 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004775 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004776 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004777 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004778 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004779 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004780 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004781 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004782 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004783 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004784 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004785 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004786 Blackfin) TARGET_HAS_JIT=0
4787 ;;
4788 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004789 ;;
4790 esac
4791fi
4792
4793# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004795 enableval=$enable_doxygen;
4796else
4797 enableval=default
4798fi
4799
4800case "$enableval" in
4801 yes) ENABLE_DOXYGEN=1
4802 ;;
4803 no) ENABLE_DOXYGEN=0
4804 ;;
4805 default) ENABLE_DOXYGEN=0
4806 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004807 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4808echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4809 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004810esac
4811
4812# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004813if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004814 enableval=$enable_threads;
4815else
Reid Spencer65c5d752006-11-05 17:08:18 +00004816 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004817fi
4818
4819case "$enableval" in
4820 yes) ENABLE_THREADS=1
4821 ;;
4822 no) ENABLE_THREADS=0
4823 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004824 default) ENABLE_THREADS=1
4825 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4827echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4828 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004829esac
4830
Owen Andersona8603702009-05-19 22:18:56 +00004831cat >>confdefs.h <<_ACEOF
4832#define ENABLE_THREADS $ENABLE_THREADS
4833_ACEOF
4834
4835
Reid Spencer89b0d992006-12-16 22:07:52 +00004836# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004838 enableval=$enable_pic;
4839else
4840 enableval=default
4841fi
4842
4843case "$enableval" in
4844 yes) ENABLE_PIC=1
4845 ;;
4846 no) ENABLE_PIC=0
4847 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004848 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004849 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4851echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004853esac
4854
4855cat >>confdefs.h <<_ACEOF
4856#define ENABLE_PIC $ENABLE_PIC
4857_ACEOF
4858
4859
Reid Spencera773bd52006-08-04 18:18:08 +00004860TARGETS_TO_BUILD=""
4861# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004862if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004863 enableval=$enable_targets;
4864else
4865 enableval=all
4866fi
4867
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004868if test "$enableval" = host-only ; then
4869 enableval=host
4870fi
Reid Spencera773bd52006-08-04 18:18:08 +00004871case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00004872 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004873 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4874 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004875 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4876 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4877 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4878 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4879 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4880 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4881 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4882 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4883 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4884 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4885 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4886 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4887 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4888 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4889 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4890 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004891 host) case "$llvm_cv_target_arch" in
4892 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4893 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4894 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4895 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4896 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4897 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4898 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4899 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4900 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4901 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4902 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004903 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004904 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004905 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4906echo "$as_me: error: Can not set target to build" >&2;}
4907 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004908 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004909 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4910echo "$as_me: error: Unrecognized target $a_target" >&2;}
4911 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004912 esac
4913 done
4914 ;;
4915esac
Reid Spencera773bd52006-08-04 18:18:08 +00004916TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4917
4918
Douglas Gregor0711c302009-06-17 00:43:20 +00004919# Determine whether we are building LLVM support for the native architecture.
4920# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4921for a_target in $TARGETS_TO_BUILD; do
4922 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004923 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004924
4925cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004926#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004927_ACEOF
4928
4929 fi
4930done
4931
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004932# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4933# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004934LLVM_ENUM_TARGETS=""
4935LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004936LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004937LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004938for target_to_build in $TARGETS_TO_BUILD; do
4939 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4940 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4941 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4942 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004943 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4944 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4945 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004946 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4947 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4948 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004949done
4950
4951
4952
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004953
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004954
Reid Spencer65c5d752006-11-05 17:08:18 +00004955# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004956if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00004957 enableval=$enable_cbe_printf_a;
4958else
4959 enableval=default
4960fi
4961
4962case "$enableval" in
4963 yes) ENABLE_CBE_PRINTF_A=1
4964 ;;
4965 no) ENABLE_CBE_PRINTF_A=0
4966 ;;
4967 default) ENABLE_CBE_PRINTF_A=1
4968 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004969 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4970echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4971 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004972esac
4973
4974cat >>confdefs.h <<_ACEOF
4975#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4976_ACEOF
4977
4978
Reid Spencera773bd52006-08-04 18:18:08 +00004979
4980# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004981if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004982 withval=$with_llvmgccdir;
4983else
4984 withval=default
4985fi
4986
4987case "$withval" in
4988 default) WITH_LLVMGCCDIR=default ;;
4989 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004990 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4991echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4992 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004993esac
4994
4995
Devang Patel5d28b882007-12-04 22:54:47 +00004996# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004997if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00004998 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4999 WITH_LLVMGCCDIR=""
5000fi
5001
5002
5003
5004# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005005if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005006 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5007 WITH_LLVMGCCDIR=""
5008fi
5009
Douglas Gregor01746742009-05-11 18:05:52 +00005010
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005011if test -n "$LLVMGCC"; then
5012 LLVMGCCCOMMAND="$LLVMGCC"
5013fi
5014
5015if test -n "$LLVMGXX"; then
5016 LLVMGXXCOMMAND="$LLVMGXX"
5017fi
Devang Patel5d28b882007-12-04 22:54:47 +00005018
5019if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005020 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5021echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5022 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005023fi
5024
5025if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005026 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5027echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5028 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005029fi
5030
5031
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005032# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005033if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005034 withval=$with_optimize_option;
5035else
5036 withval=default
5037fi
5038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005039{ echo "$as_me:$LINENO: checking optimization flags" >&5
5040echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005041case "$withval" in
5042 default)
5043 case "$llvm_cv_os_type" in
5044 MingW) optimize_option=-O3 ;;
5045 *) optimize_option=-O2 ;;
5046 esac ;;
5047 *) optimize_option="$withval" ;;
5048esac
5049OPTIMIZE_OPTION=$optimize_option
5050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005051{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5052echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005053
5054
Reid Spencera773bd52006-08-04 18:18:08 +00005055# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005056if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005057 withval=$with_extra_options;
5058else
5059 withval=default
5060fi
5061
5062case "$withval" in
5063 default) EXTRA_OPTIONS= ;;
5064 *) EXTRA_OPTIONS=$withval ;;
5065esac
5066EXTRA_OPTIONS=$EXTRA_OPTIONS
5067
5068
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005069# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005070if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005071 enableval=$enable_bindings;
5072else
5073 enableval=default
5074fi
5075
5076BINDINGS_TO_BUILD=""
5077case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005078 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005079 all ) BINDINGS_TO_BUILD="ocaml" ;;
5080 none | no) BINDINGS_TO_BUILD="" ;;
5081 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5082 case "$a_binding" in
5083 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005084 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5085echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5086 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005087 esac
5088 done
5089 ;;
5090esac
5091
Reid Spencera773bd52006-08-04 18:18:08 +00005092
Gordon Henriksenf0915682007-10-02 16:42:22 +00005093# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005094if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005095 withval=$with_ocaml_libdir;
5096else
5097 withval=auto
5098fi
5099
5100case "$withval" in
5101 auto) with_ocaml_libdir="$withval" ;;
5102 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005103 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5104echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5105 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005106esac
5107
5108
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005109# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005110if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005111 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005112else
5113 withval=""
5114fi
5115
5116
5117cat >>confdefs.h <<_ACEOF
5118#define C_INCLUDE_DIRS "$withval"
5119_ACEOF
5120
5121
5122
Rafael Espindola420d23c2009-11-16 19:46:55 +00005123# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005124if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005125 withval=$with_cxx_include_root;
5126else
5127 withval=""
5128fi
5129
5130
5131cat >>confdefs.h <<_ACEOF
5132#define CXX_INCLUDE_ROOT "$withval"
5133_ACEOF
5134
5135
5136
5137# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005138if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005139 withval=$with_cxx_include_arch;
5140else
5141 withval=""
5142fi
5143
5144
5145cat >>confdefs.h <<_ACEOF
5146#define CXX_INCLUDE_ARCH "$withval"
5147_ACEOF
5148
5149
5150
5151# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005152if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005153 withval=$with_cxx_include_32bit_dir;
5154else
5155 withval=""
5156fi
5157
5158
5159cat >>confdefs.h <<_ACEOF
5160#define CXX_INCLUDE_32BIT_DIR "$withval"
5161_ACEOF
5162
5163
5164
5165# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005166if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005167 withval=$with_cxx_include_64bit_dir;
5168else
5169 withval=""
5170fi
5171
5172
5173cat >>confdefs.h <<_ACEOF
5174#define CXX_INCLUDE_64BIT_DIR "$withval"
5175_ACEOF
5176
5177
5178
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005179# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005180if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005181 withval=$with_binutils_include;
5182else
5183 withval=default
5184fi
5185
5186case "$withval" in
5187 default) WITH_BINUTILS_INCDIR=default ;;
5188 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5190echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5191 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005192esac
5193if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5194 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5195
5196 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5197 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005198 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5199echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5200 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005201 fi
5202fi
5203
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005204# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005205if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005206 enableval=$enable_libffi; case "$enableval" in
5207 yes) llvm_cv_enable_libffi="yes" ;;
5208 no) llvm_cv_enable_libffi="no" ;;
5209 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005210echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5211 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005212 esac
5213else
5214 llvm_cv_enable_libffi=no
5215fi
5216
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005217
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005218if test "$llvm_cv_os_type" = "Win32" ; then
5219 llvmc_dynamic="yes"
5220else
5221 llvmc_dynamic="no"
5222fi
5223
5224# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005225if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005226 enableval=$enable_llvmc_dynamic;
5227else
5228 enableval=$llvmc_dynamic
5229fi
5230
5231if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5232 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5233
5234else
5235 ENABLE_LLVMC_DYNAMIC=
5236
5237fi
5238
5239# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005240if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005241 enableval=$enable_llvmc_dynamic_plugins;
5242else
5243 enableval=yes
5244fi
5245
5246if test ${enableval} = "yes" ; then
5247 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5248
5249else
5250 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5251
5252fi
5253
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005254
Reid Spencera773bd52006-08-04 18:18:08 +00005255ac_ext=c
5256ac_cpp='$CPP $CPPFLAGS'
5257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5261echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005262# On Suns, sometimes $CPP names a directory.
5263if test -n "$CPP" && test -d "$CPP"; then
5264 CPP=
5265fi
5266if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267 if test "${ac_cv_prog_CPP+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005269else
5270 # Double quotes because CPP needs to be expanded
5271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5272 do
5273 ac_preproc_ok=false
5274for ac_c_preproc_warn_flag in '' yes
5275do
5276 # Use a header file that comes with gcc, so configuring glibc
5277 # with a fresh cross-compiler works.
5278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5279 # <limits.h> exists even on freestanding compilers.
5280 # On the NeXT, cc -E runs the code through the compiler's parser,
5281 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005282 cat >conftest.$ac_ext <<_ACEOF
5283/* confdefs.h. */
5284_ACEOF
5285cat confdefs.h >>conftest.$ac_ext
5286cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005287/* end confdefs.h. */
5288#ifdef __STDC__
5289# include <limits.h>
5290#else
5291# include <assert.h>
5292#endif
5293 Syntax error
5294_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005295if { (ac_try="$ac_cpp conftest.$ac_ext"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5302 ac_status=$?
5303 grep -v '^ *+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5311 else
5312 ac_cpp_err=
5313 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005314else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005315 ac_cpp_err=yes
5316fi
5317if test -z "$ac_cpp_err"; then
5318 :
5319else
5320 echo "$as_me: failed program was:" >&5
5321sed 's/^/| /' conftest.$ac_ext >&5
5322
Reid Spencera773bd52006-08-04 18:18:08 +00005323 # Broken: fails on valid input.
5324continue
5325fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326
Reid Spencera773bd52006-08-04 18:18:08 +00005327rm -f conftest.err conftest.$ac_ext
5328
5329 # OK, works on sane cases. Now check whether nonexistent headers
5330 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005331 cat >conftest.$ac_ext <<_ACEOF
5332/* confdefs.h. */
5333_ACEOF
5334cat confdefs.h >>conftest.$ac_ext
5335cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005336/* end confdefs.h. */
5337#include <ac_nonexistent.h>
5338_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339if { (ac_try="$ac_cpp conftest.$ac_ext"
5340case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343esac
5344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } >/dev/null; then
5352 if test -s conftest.err; then
5353 ac_cpp_err=$ac_c_preproc_warn_flag
5354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5355 else
5356 ac_cpp_err=
5357 fi
5358else
5359 ac_cpp_err=yes
5360fi
5361if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005362 # Broken: success on invalid input.
5363continue
5364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
Reid Spencera773bd52006-08-04 18:18:08 +00005368 # Passes both tests.
5369ac_preproc_ok=:
5370break
5371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005372
Reid Spencera773bd52006-08-04 18:18:08 +00005373rm -f conftest.err conftest.$ac_ext
5374
5375done
5376# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5377rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005378if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005379 break
5380fi
5381
5382 done
5383 ac_cv_prog_CPP=$CPP
5384
5385fi
5386 CPP=$ac_cv_prog_CPP
5387else
5388 ac_cv_prog_CPP=$CPP
5389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005390{ echo "$as_me:$LINENO: result: $CPP" >&5
5391echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005392ac_preproc_ok=false
5393for ac_c_preproc_warn_flag in '' yes
5394do
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005401 cat >conftest.$ac_ext <<_ACEOF
5402/* confdefs.h. */
5403_ACEOF
5404cat confdefs.h >>conftest.$ac_ext
5405cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005406/* end confdefs.h. */
5407#ifdef __STDC__
5408# include <limits.h>
5409#else
5410# include <assert.h>
5411#endif
5412 Syntax error
5413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005414if { (ac_try="$ac_cpp conftest.$ac_ext"
5415case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418esac
5419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 else
5431 ac_cpp_err=
5432 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005434 ac_cpp_err=yes
5435fi
5436if test -z "$ac_cpp_err"; then
5437 :
5438else
5439 echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
Reid Spencera773bd52006-08-04 18:18:08 +00005442 # Broken: fails on valid input.
5443continue
5444fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005445
Reid Spencera773bd52006-08-04 18:18:08 +00005446rm -f conftest.err conftest.$ac_ext
5447
5448 # OK, works on sane cases. Now check whether nonexistent headers
5449 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005450 cat >conftest.$ac_ext <<_ACEOF
5451/* confdefs.h. */
5452_ACEOF
5453cat confdefs.h >>conftest.$ac_ext
5454cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005455/* end confdefs.h. */
5456#include <ac_nonexistent.h>
5457_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005458if { (ac_try="$ac_cpp conftest.$ac_ext"
5459case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462esac
5463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5465 ac_status=$?
5466 grep -v '^ *+' conftest.er1 >conftest.err
5467 rm -f conftest.er1
5468 cat conftest.err >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } >/dev/null; then
5471 if test -s conftest.err; then
5472 ac_cpp_err=$ac_c_preproc_warn_flag
5473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5474 else
5475 ac_cpp_err=
5476 fi
5477else
5478 ac_cpp_err=yes
5479fi
5480if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005481 # Broken: success on invalid input.
5482continue
5483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005484 echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
Reid Spencera773bd52006-08-04 18:18:08 +00005487 # Passes both tests.
5488ac_preproc_ok=:
5489break
5490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005491
Reid Spencera773bd52006-08-04 18:18:08 +00005492rm -f conftest.err conftest.$ac_ext
5493
5494done
5495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5496rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005497if $ac_preproc_ok; then
5498 :
Reid Spencera773bd52006-08-04 18:18:08 +00005499else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5501See \`config.log' for more details." >&5
5502echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5503See \`config.log' for more details." >&2;}
5504 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005505fi
5506
5507ac_ext=c
5508ac_cpp='$CPP $CPPFLAGS'
5509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511ac_compiler_gnu=$ac_cv_c_compiler_gnu
5512
5513ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
5518if test -n "$ac_tool_prefix"; then
5519 for ac_prog in gcc
5520 do
5521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5522set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5525if test "${ac_cv_prog_CC+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005527else
5528 if test -n "$CC"; then
5529 ac_cv_prog_CC="$CC" # Let the user override the test.
5530else
5531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532for as_dir in $PATH
5533do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 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 +00005538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005540 break 2
5541 fi
5542done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005543done
Reid Spencera773bd52006-08-04 18:18:08 +00005544IFS=$as_save_IFS
5545
5546fi
5547fi
5548CC=$ac_cv_prog_CC
5549if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005550 { echo "$as_me:$LINENO: result: $CC" >&5
5551echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005553 { echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005555fi
5556
5557
5558 test -n "$CC" && break
5559 done
5560fi
5561if test -z "$CC"; then
5562 ac_ct_CC=$CC
5563 for ac_prog in gcc
5564do
5565 # Extract the first word of "$ac_prog", so it can be a program name with args.
5566set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5569if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005571else
5572 if test -n "$ac_ct_CC"; then
5573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5574else
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005580 for ac_exec_ext in '' $ac_executable_extensions; do
5581 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 +00005582 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005584 break 2
5585 fi
5586done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587done
Reid Spencera773bd52006-08-04 18:18:08 +00005588IFS=$as_save_IFS
5589
5590fi
5591fi
5592ac_ct_CC=$ac_cv_prog_ac_ct_CC
5593if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005594 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5595echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005597 { echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005599fi
5600
5601
5602 test -n "$ac_ct_CC" && break
5603done
5604
5605 if test "x$ac_ct_CC" = x; then
5606 CC=""
5607 else
5608 case $cross_compiling:$ac_tool_warned in
5609yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005610{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5611whose name does not start with the host triplet. If you think this
5612configuration is useful to you, please write to autoconf@gnu.org." >&5
5613echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5614whose name does not start with the host triplet. If you think this
5615configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005616ac_tool_warned=yes ;;
5617esac
5618 CC=$ac_ct_CC
5619 fi
5620fi
5621
5622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005623test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5624See \`config.log' for more details." >&5
5625echo "$as_me: error: no acceptable C compiler found in \$PATH
5626See \`config.log' for more details." >&2;}
5627 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005628
5629# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005630echo "$as_me:$LINENO: checking for C compiler version" >&5
5631ac_compiler=`set X $ac_compile; echo $2`
5632{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005633case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005639 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); }
5642{ (ac_try="$ac_compiler -v >&5"
5643case "(($ac_try" in
5644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5645 *) ac_try_echo=$ac_try;;
5646esac
5647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5648 (eval "$ac_compiler -v >&5") 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }
5652{ (ac_try="$ac_compiler -V >&5"
5653case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656esac
5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compiler -V >&5") 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005663{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5664echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5665if test "${ac_cv_c_compiler_gnu+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005667else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668 cat >conftest.$ac_ext <<_ACEOF
5669/* confdefs.h. */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005673/* end confdefs.h. */
5674
5675int
5676main ()
5677{
5678#ifndef __GNUC__
5679 choke me
5680#endif
5681
5682 ;
5683 return 0;
5684}
5685_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005686rm -f conftest.$ac_objext
5687if { (ac_try="$ac_compile"
5688case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691esac
5692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } &&
5700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5701 { (case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_try") 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_try") 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005720 ac_compiler_gnu=yes
5721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005722 echo "$as_me: failed program was:" >&5
5723sed 's/^/| /' conftest.$ac_ext >&5
5724
5725 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005726fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727
Reid Spencera773bd52006-08-04 18:18:08 +00005728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729ac_cv_c_compiler_gnu=$ac_compiler_gnu
5730
5731fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005732{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5733echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5734GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005735ac_test_CFLAGS=${CFLAGS+set}
5736ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005737{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5738echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5739if test "${ac_cv_prog_cc_g+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005741else
5742 ac_save_c_werror_flag=$ac_c_werror_flag
5743 ac_c_werror_flag=yes
5744 ac_cv_prog_cc_g=no
5745 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005746 cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h. */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005751/* end confdefs.h. */
5752
5753int
5754main ()
5755{
5756
5757 ;
5758 return 0;
5759}
5760_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761rm -f conftest.$ac_objext
5762if { (ac_try="$ac_compile"
5763case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5776 { (case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779esac
5780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_try") 2>&5
5792 ac_status=$?
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005795 ac_cv_prog_cc_g=yes
5796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005797 echo "$as_me: failed program was:" >&5
5798sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 CFLAGS=""
5801 cat >conftest.$ac_ext <<_ACEOF
5802/* confdefs.h. */
5803_ACEOF
5804cat confdefs.h >>conftest.$ac_ext
5805cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005806/* end confdefs.h. */
5807
5808int
5809main ()
5810{
5811
5812 ;
5813 return 0;
5814}
5815_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005816rm -f conftest.$ac_objext
5817if { (ac_try="$ac_compile"
5818case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821esac
5822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 :
Torok Edwin871384f2010-01-26 08:50:50 +00005851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005856 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005857 cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h. */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005862/* end confdefs.h. */
5863
5864int
5865main ()
5866{
5867
5868 ;
5869 return 0;
5870}
5871_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005872rm -f conftest.$ac_objext
5873if { (ac_try="$ac_compile"
5874case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } &&
5886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5887 { (case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_try") 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005906 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005907else
5908 echo "$as_me: failed program was:" >&5
5909sed 's/^/| /' conftest.$ac_ext >&5
5910
5911
Reid Spencera773bd52006-08-04 18:18:08 +00005912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005913
Reid Spencera773bd52006-08-04 18:18:08 +00005914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005916
Reid Spencera773bd52006-08-04 18:18:08 +00005917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005919
Reid Spencera773bd52006-08-04 18:18:08 +00005920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 ac_c_werror_flag=$ac_save_c_werror_flag
5922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005923{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5924echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005925if test "$ac_test_CFLAGS" = set; then
5926 CFLAGS=$ac_save_CFLAGS
5927elif test $ac_cv_prog_cc_g = yes; then
5928 if test "$GCC" = yes; then
5929 CFLAGS="-g -O2"
5930 else
5931 CFLAGS="-g"
5932 fi
5933else
5934 if test "$GCC" = yes; then
5935 CFLAGS="-O2"
5936 else
5937 CFLAGS=
5938 fi
5939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005940{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5941echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5942if test "${ac_cv_prog_cc_c89+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005944else
5945 ac_cv_prog_cc_c89=no
5946ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005947cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005952/* end confdefs.h. */
5953#include <stdarg.h>
5954#include <stdio.h>
5955#include <sys/types.h>
5956#include <sys/stat.h>
5957/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5958struct buf { int x; };
5959FILE * (*rcsopen) (struct buf *, struct stat *, int);
5960static char *e (p, i)
5961 char **p;
5962 int i;
5963{
5964 return p[i];
5965}
5966static char *f (char * (*g) (char **, int), char **p, ...)
5967{
5968 char *s;
5969 va_list v;
5970 va_start (v,p);
5971 s = g (p, va_arg (v,int));
5972 va_end (v);
5973 return s;
5974}
5975
5976/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5977 function prototypes and stuff, but not '\xHH' hex character constants.
5978 These don't provoke an error unfortunately, instead are silently treated
5979 as 'x'. The following induces an error, until -std is added to get
5980 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5981 array size at least. It's necessary to write '\x00'==0 to get something
5982 that's true only with -std. */
5983int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5984
5985/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5986 inside strings and character constants. */
5987#define FOO(x) 'x'
5988int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5989
5990int test (int i, double x);
5991struct s1 {int (*f) (int a);};
5992struct s2 {int (*f) (double a);};
5993int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5994int argc;
5995char **argv;
5996int
5997main ()
5998{
5999return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6000 ;
6001 return 0;
6002}
6003_ACEOF
6004for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6005 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6006do
6007 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006008 rm -f conftest.$ac_objext
6009if { (ac_try="$ac_compile"
6010case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
6014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_compile") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } &&
6022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6023 { (case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_try") 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (case "(($ac_try" in
6034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035 *) ac_try_echo=$ac_try;;
6036esac
6037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038 (eval "$ac_try") 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006042 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006043else
6044 echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047
Reid Spencera773bd52006-08-04 18:18:08 +00006048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006049
Reid Spencera773bd52006-08-04 18:18:08 +00006050rm -f core conftest.err conftest.$ac_objext
6051 test "x$ac_cv_prog_cc_c89" != "xno" && break
6052done
6053rm -f conftest.$ac_ext
6054CC=$ac_save_CC
6055
6056fi
6057# AC_CACHE_VAL
6058case "x$ac_cv_prog_cc_c89" in
6059 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 { echo "$as_me:$LINENO: result: none needed" >&5
6061echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006062 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006063 { echo "$as_me:$LINENO: result: unsupported" >&5
6064echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006065 *)
6066 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006067 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6068echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006069esac
6070
6071
6072ac_ext=c
6073ac_cpp='$CPP $CPPFLAGS'
6074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6076ac_compiler_gnu=$ac_cv_c_compiler_gnu
6077
6078ac_ext=cpp
6079ac_cpp='$CXXCPP $CPPFLAGS'
6080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6083if test -z "$CXX"; then
6084 if test -n "$CCC"; then
6085 CXX=$CCC
6086 else
6087 if test -n "$ac_tool_prefix"; then
6088 for ac_prog in g++
6089 do
6090 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6091set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094if test "${ac_cv_prog_CXX+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006096else
6097 if test -n "$CXX"; then
6098 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 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 +00006107 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006109 break 2
6110 fi
6111done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006112done
Reid Spencera773bd52006-08-04 18:18:08 +00006113IFS=$as_save_IFS
6114
6115fi
6116fi
6117CXX=$ac_cv_prog_CXX
6118if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119 { echo "$as_me:$LINENO: result: $CXX" >&5
6120echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006121else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006122 { echo "$as_me:$LINENO: result: no" >&5
6123echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006124fi
6125
6126
6127 test -n "$CXX" && break
6128 done
6129fi
6130if test -z "$CXX"; then
6131 ac_ct_CXX=$CXX
6132 for ac_prog in g++
6133do
6134 # Extract the first word of "$ac_prog", so it can be a program name with args.
6135set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6138if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006140else
6141 if test -n "$ac_ct_CXX"; then
6142 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6143else
6144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 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 +00006151 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006153 break 2
6154 fi
6155done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006156done
Reid Spencera773bd52006-08-04 18:18:08 +00006157IFS=$as_save_IFS
6158
6159fi
6160fi
6161ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6162if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6164echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006166 { echo "$as_me:$LINENO: result: no" >&5
6167echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006168fi
6169
6170
6171 test -n "$ac_ct_CXX" && break
6172done
6173
6174 if test "x$ac_ct_CXX" = x; then
6175 CXX="g++"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006179{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6180whose name does not start with the host triplet. If you think this
6181configuration is useful to you, please write to autoconf@gnu.org." >&5
6182echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6183whose name does not start with the host triplet. If you think this
6184configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006185ac_tool_warned=yes ;;
6186esac
6187 CXX=$ac_ct_CXX
6188 fi
6189fi
6190
6191 fi
6192fi
6193# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006194echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6195ac_compiler=`set X $ac_compile; echo $2`
6196{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006197case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006203 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }
6206{ (ac_try="$ac_compiler -v >&5"
6207case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210esac
6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compiler -v >&5") 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }
6216{ (ac_try="$ac_compiler -V >&5"
6217case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220esac
6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compiler -V >&5") 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006226
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006227{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6228echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6229if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006231else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006232 cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006237/* end confdefs.h. */
6238
6239int
6240main ()
6241{
6242#ifndef __GNUC__
6243 choke me
6244#endif
6245
6246 ;
6247 return 0;
6248}
6249_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250rm -f conftest.$ac_objext
6251if { (ac_try="$ac_compile"
6252case "(($ac_try" in
6253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6254 *) ac_try_echo=$ac_try;;
6255esac
6256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_compile") 2>conftest.er1
6258 ac_status=$?
6259 grep -v '^ *+' conftest.er1 >conftest.err
6260 rm -f conftest.er1
6261 cat conftest.err >&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; } &&
6274 { ac_try='test -s conftest.$ac_objext'
6275 { (case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_try") 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006284 ac_compiler_gnu=yes
6285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 echo "$as_me: failed program was:" >&5
6287sed 's/^/| /' conftest.$ac_ext >&5
6288
6289 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006290fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291
Reid Spencera773bd52006-08-04 18:18:08 +00006292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6294
6295fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6297echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6298GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006299ac_test_CXXFLAGS=${CXXFLAGS+set}
6300ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006301{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6302echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6303if test "${ac_cv_prog_cxx_g+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006305else
6306 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6307 ac_cxx_werror_flag=yes
6308 ac_cv_prog_cxx_g=no
6309 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310 cat >conftest.$ac_ext <<_ACEOF
6311/* confdefs.h. */
6312_ACEOF
6313cat confdefs.h >>conftest.$ac_ext
6314cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006315/* end confdefs.h. */
6316
6317int
6318main ()
6319{
6320
6321 ;
6322 return 0;
6323}
6324_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325rm -f conftest.$ac_objext
6326if { (ac_try="$ac_compile"
6327case "(($ac_try" in
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6330esac
6331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6346 ac_status=$?
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_try") 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006359 ac_cv_prog_cxx_g=yes
6360else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 CXXFLAGS=""
6365 cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h. */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006370/* end confdefs.h. */
6371
6372int
6373main ()
6374{
6375
6376 ;
6377 return 0;
6378}
6379_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006380rm -f conftest.$ac_objext
6381if { (ac_try="$ac_compile"
6382case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385esac
6386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } &&
6394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6395 { (case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_try") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }; } &&
6404 { ac_try='test -s conftest.$ac_objext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 :
Torok Edwin871384f2010-01-26 08:50:50 +00006415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006416 echo "$as_me: failed program was:" >&5
6417sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006420 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006421 cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h. */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006426/* end confdefs.h. */
6427
6428int
6429main ()
6430{
6431
6432 ;
6433 return 0;
6434}
6435_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006436rm -f conftest.$ac_objext
6437if { (ac_try="$ac_compile"
6438case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6444 ac_status=$?
6445 grep -v '^ *+' conftest.er1 >conftest.err
6446 rm -f conftest.er1
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } &&
6450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6451 { (case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454esac
6455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_try") 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest.$ac_objext'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464esac
6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006470 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006471else
6472 echo "$as_me: failed program was:" >&5
6473sed 's/^/| /' conftest.$ac_ext >&5
6474
6475
Reid Spencera773bd52006-08-04 18:18:08 +00006476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006477
Reid Spencera773bd52006-08-04 18:18:08 +00006478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006480
Reid Spencera773bd52006-08-04 18:18:08 +00006481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006483
Reid Spencera773bd52006-08-04 18:18:08 +00006484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006487{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6488echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006489if test "$ac_test_CXXFLAGS" = set; then
6490 CXXFLAGS=$ac_save_CXXFLAGS
6491elif test $ac_cv_prog_cxx_g = yes; then
6492 if test "$GXX" = yes; then
6493 CXXFLAGS="-g -O2"
6494 else
6495 CXXFLAGS="-g"
6496 fi
6497else
6498 if test "$GXX" = yes; then
6499 CXXFLAGS="-O2"
6500 else
6501 CXXFLAGS=
6502 fi
6503fi
6504ac_ext=c
6505ac_cpp='$CPP $CPPFLAGS'
6506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
Reid Spencera773bd52006-08-04 18:18:08 +00006510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006511{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6512echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6513if test "${lt_cv_path_NM+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006515else
6516 if test -n "$NM"; then
6517 # Let the user override the test.
6518 lt_cv_path_NM="$NM"
6519else
6520 lt_nm_to_check="${ac_tool_prefix}nm"
6521 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6522 lt_nm_to_check="$lt_nm_to_check nm"
6523 fi
6524 for lt_tmp_nm in $lt_nm_to_check; do
6525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6526 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6527 IFS="$lt_save_ifs"
6528 test -z "$ac_dir" && ac_dir=.
6529 tmp_nm="$ac_dir/$lt_tmp_nm"
6530 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6531 # Check to see if the nm accepts a BSD-compat flag.
6532 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6533 # nm: unknown option "B" ignored
6534 # Tru64's nm complains that /dev/null is an invalid object file
6535 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6536 */dev/null* | *'Invalid file or object type'*)
6537 lt_cv_path_NM="$tmp_nm -B"
6538 break
6539 ;;
6540 *)
6541 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6542 */dev/null*)
6543 lt_cv_path_NM="$tmp_nm -p"
6544 break
6545 ;;
6546 *)
6547 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6548 continue # so that we can try to find one that supports BSD flags
6549 ;;
6550 esac
6551 ;;
6552 esac
6553 fi
6554 done
6555 IFS="$lt_save_ifs"
6556 done
6557 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6558fi
6559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006560{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6561echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006562NM="$lt_cv_path_NM"
6563
6564
6565
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006566{ echo "$as_me:$LINENO: checking for GNU make" >&5
6567echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6568if test "${llvm_cv_gnu_make_command+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006570else
6571 llvm_cv_gnu_make_command=''
6572 for a in "$MAKE" make gmake gnumake ; do
6573 if test -z "$a" ; then continue ; fi ;
6574 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6575 then
6576 llvm_cv_gnu_make_command=$a ;
6577 break;
6578 fi
6579 done
6580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006581{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6582echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006583 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6584 ifGNUmake='' ;
6585 else
6586 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006587 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6588echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006589 fi
6590
6591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6593echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006594LN_S=$as_ln_s
6595if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596 { echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006598else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6600echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006601fi
6602
6603# Extract the first word of "cmp", so it can be a program name with args.
6604set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607if test "${ac_cv_path_CMP+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006609else
6610 case $CMP in
6611 [\\/]* | ?:[\\/]*)
6612 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6613 ;;
6614 *)
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 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 +00006622 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006624 break 2
6625 fi
6626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006627done
Reid Spencera773bd52006-08-04 18:18:08 +00006628IFS=$as_save_IFS
6629
6630 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6631 ;;
6632esac
6633fi
6634CMP=$ac_cv_path_CMP
6635if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636 { echo "$as_me:$LINENO: result: $CMP" >&5
6637echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639 { echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006641fi
6642
6643
6644# Extract the first word of "cp", so it can be a program name with args.
6645set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648if test "${ac_cv_path_CP+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006650else
6651 case $CP in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 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 +00006663 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006665 break 2
6666 fi
6667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668done
Reid Spencera773bd52006-08-04 18:18:08 +00006669IFS=$as_save_IFS
6670
6671 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6672 ;;
6673esac
6674fi
6675CP=$ac_cv_path_CP
6676if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677 { echo "$as_me:$LINENO: result: $CP" >&5
6678echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006680 { echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006682fi
6683
6684
6685# Extract the first word of "date", so it can be a program name with args.
6686set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_DATE+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006691else
6692 case $DATE in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 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 +00006704 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006706 break 2
6707 fi
6708done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709done
Reid Spencera773bd52006-08-04 18:18:08 +00006710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6713 ;;
6714esac
6715fi
6716DATE=$ac_cv_path_DATE
6717if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 { echo "$as_me:$LINENO: result: $DATE" >&5
6719echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006723fi
6724
6725
6726# Extract the first word of "find", so it can be a program name with args.
6727set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730if test "${ac_cv_path_FIND+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006732else
6733 case $FIND in
6734 [\\/]* | ?:[\\/]*)
6735 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6736 ;;
6737 *)
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743 for ac_exec_ext in '' $ac_executable_extensions; do
6744 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 +00006745 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006747 break 2
6748 fi
6749done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006750done
Reid Spencera773bd52006-08-04 18:18:08 +00006751IFS=$as_save_IFS
6752
6753 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6754 ;;
6755esac
6756fi
6757FIND=$ac_cv_path_FIND
6758if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759 { echo "$as_me:$LINENO: result: $FIND" >&5
6760echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006761else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762 { echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006764fi
6765
6766
6767# Extract the first word of "grep", so it can be a program name with args.
6768set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771if test "${ac_cv_path_GREP+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006773else
6774 case $GREP in
6775 [\\/]* | ?:[\\/]*)
6776 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6777 ;;
6778 *)
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 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 +00006786 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006788 break 2
6789 fi
6790done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006791done
Reid Spencera773bd52006-08-04 18:18:08 +00006792IFS=$as_save_IFS
6793
6794 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6795 ;;
6796esac
6797fi
6798GREP=$ac_cv_path_GREP
6799if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 { echo "$as_me:$LINENO: result: $GREP" >&5
6801echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803 { echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006805fi
6806
6807
6808# Extract the first word of "mkdir", so it can be a program name with args.
6809set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6812if test "${ac_cv_path_MKDIR+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006814else
6815 case $MKDIR in
6816 [\\/]* | ?:[\\/]*)
6817 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6818 ;;
6819 *)
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006827 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006829 break 2
6830 fi
6831done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006832done
Reid Spencera773bd52006-08-04 18:18:08 +00006833IFS=$as_save_IFS
6834
6835 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6836 ;;
6837esac
6838fi
6839MKDIR=$ac_cv_path_MKDIR
6840if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6842echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006843else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006846fi
6847
6848
6849# Extract the first word of "mv", so it can be a program name with args.
6850set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853if test "${ac_cv_path_MV+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006855else
6856 case $MV in
6857 [\\/]* | ?:[\\/]*)
6858 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6859 ;;
6860 *)
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862for as_dir in $PATH
6863do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006868 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006870 break 2
6871 fi
6872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006873done
Reid Spencera773bd52006-08-04 18:18:08 +00006874IFS=$as_save_IFS
6875
6876 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6877 ;;
6878esac
6879fi
6880MV=$ac_cv_path_MV
6881if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882 { echo "$as_me:$LINENO: result: $MV" >&5
6883echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006884else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885 { echo "$as_me:$LINENO: result: no" >&5
6886echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006887fi
6888
6889
6890if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6892set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895if test "${ac_cv_prog_RANLIB+set}" = set; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006897else
6898 if test -n "$RANLIB"; then
6899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6900else
6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902for as_dir in $PATH
6903do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 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 +00006908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006910 break 2
6911 fi
6912done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006913done
Reid Spencera773bd52006-08-04 18:18:08 +00006914IFS=$as_save_IFS
6915
6916fi
6917fi
6918RANLIB=$ac_cv_prog_RANLIB
6919if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6921echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923 { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006925fi
6926
6927
6928fi
6929if test -z "$ac_cv_prog_RANLIB"; then
6930 ac_ct_RANLIB=$RANLIB
6931 # Extract the first word of "ranlib", so it can be a program name with args.
6932set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6935if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006937else
6938 if test -n "$ac_ct_RANLIB"; then
6939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6940else
6941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 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 +00006948 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006950 break 2
6951 fi
6952done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953done
Reid Spencera773bd52006-08-04 18:18:08 +00006954IFS=$as_save_IFS
6955
6956fi
6957fi
6958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6959if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6961echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006963 { echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006965fi
6966
6967 if test "x$ac_ct_RANLIB" = x; then
6968 RANLIB=":"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6973whose name does not start with the host triplet. If you think this
6974configuration is useful to you, please write to autoconf@gnu.org." >&5
6975echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6976whose name does not start with the host triplet. If you think this
6977configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006978ac_tool_warned=yes ;;
6979esac
6980 RANLIB=$ac_ct_RANLIB
6981 fi
6982else
6983 RANLIB="$ac_cv_prog_RANLIB"
6984fi
6985
Torok Edwin871384f2010-01-26 08:50:50 +00006986if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6988set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991if test "${ac_cv_prog_AR+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006993else
6994 if test -n "$AR"; then
6995 ac_cv_prog_AR="$AR" # Let the user override the test.
6996else
6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 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 +00007004 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007006 break 2
7007 fi
7008done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007009done
Torok Edwin871384f2010-01-26 08:50:50 +00007010IFS=$as_save_IFS
7011
7012fi
7013fi
7014AR=$ac_cv_prog_AR
7015if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007016 { echo "$as_me:$LINENO: result: $AR" >&5
7017echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019 { echo "$as_me:$LINENO: result: no" >&5
7020echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007021fi
7022
7023
7024fi
7025if test -z "$ac_cv_prog_AR"; then
7026 ac_ct_AR=$AR
7027 # Extract the first word of "ar", so it can be a program name with args.
7028set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007033else
7034 if test -n "$ac_ct_AR"; then
7035 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7036else
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 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 +00007044 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007046 break 2
7047 fi
7048done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007049done
Torok Edwin871384f2010-01-26 08:50:50 +00007050IFS=$as_save_IFS
7051
7052fi
7053fi
7054ac_ct_AR=$ac_cv_prog_ac_ct_AR
7055if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7057echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007059 { echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007061fi
7062
7063 if test "x$ac_ct_AR" = x; then
7064 AR="false"
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007068{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7069whose name does not start with the host triplet. If you think this
7070configuration is useful to you, please write to autoconf@gnu.org." >&5
7071echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7072whose name does not start with the host triplet. If you think this
7073configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007074ac_tool_warned=yes ;;
7075esac
7076 AR=$ac_ct_AR
7077 fi
7078else
7079 AR="$ac_cv_prog_AR"
7080fi
7081
Reid Spencera773bd52006-08-04 18:18:08 +00007082# Extract the first word of "rm", so it can be a program name with args.
7083set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086if test "${ac_cv_path_RM+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007088else
7089 case $RM in
7090 [\\/]* | ?:[\\/]*)
7091 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 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 +00007101 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007103 break 2
7104 fi
7105done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106done
Reid Spencera773bd52006-08-04 18:18:08 +00007107IFS=$as_save_IFS
7108
7109 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7110 ;;
7111esac
7112fi
7113RM=$ac_cv_path_RM
7114if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 { echo "$as_me:$LINENO: result: $RM" >&5
7116echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007118 { echo "$as_me:$LINENO: result: no" >&5
7119echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007120fi
7121
7122
7123# Extract the first word of "sed", so it can be a program name with args.
7124set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007125{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127if test "${ac_cv_path_SED+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007129else
7130 case $SED in
7131 [\\/]* | ?:[\\/]*)
7132 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7133 ;;
7134 *)
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 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 +00007142 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007144 break 2
7145 fi
7146done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147done
Reid Spencera773bd52006-08-04 18:18:08 +00007148IFS=$as_save_IFS
7149
7150 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7151 ;;
7152esac
7153fi
7154SED=$ac_cv_path_SED
7155if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 { echo "$as_me:$LINENO: result: $SED" >&5
7157echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007159 { echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007161fi
7162
7163
7164# Extract the first word of "tar", so it can be a program name with args.
7165set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168if test "${ac_cv_path_TAR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007170else
7171 case $TAR in
7172 [\\/]* | ?:[\\/]*)
7173 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7174 ;;
7175 *)
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181 for ac_exec_ext in '' $ac_executable_extensions; do
7182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007183 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007185 break 2
7186 fi
7187done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007188done
Reid Spencera773bd52006-08-04 18:18:08 +00007189IFS=$as_save_IFS
7190
7191 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7192 ;;
7193esac
7194fi
7195TAR=$ac_cv_path_TAR
7196if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 { echo "$as_me:$LINENO: result: $TAR" >&5
7198echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 { echo "$as_me:$LINENO: result: no" >&5
7201echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007202fi
7203
7204
7205# Extract the first word of "pwd", so it can be a program name with args.
7206set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7209if test "${ac_cv_path_BINPWD+set}" = set; then
7210 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007211else
7212 case $BINPWD in
7213 [\\/]* | ?:[\\/]*)
7214 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7215 ;;
7216 *)
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 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 +00007224 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007226 break 2
7227 fi
7228done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007229done
Reid Spencera773bd52006-08-04 18:18:08 +00007230IFS=$as_save_IFS
7231
7232 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7233 ;;
7234esac
7235fi
7236BINPWD=$ac_cv_path_BINPWD
7237if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7239echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241 { echo "$as_me:$LINENO: result: no" >&5
7242echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007243fi
7244
7245
7246
7247# Extract the first word of "Graphviz", so it can be a program name with args.
7248set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007253else
7254 case $GRAPHVIZ in
7255 [\\/]* | ?:[\\/]*)
7256 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7257 ;;
7258 *)
7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262 IFS=$as_save_IFS
7263 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 for ac_exec_ext in '' $ac_executable_extensions; do
7265 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 +00007266 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007268 break 2
7269 fi
7270done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007271done
Reid Spencera773bd52006-08-04 18:18:08 +00007272IFS=$as_save_IFS
7273
7274 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7275 ;;
7276esac
7277fi
7278GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7279if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7281echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007283 { echo "$as_me:$LINENO: result: no" >&5
7284echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007285fi
7286
7287
7288if test "$GRAPHVIZ" != "echo Graphviz" ; then
7289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290cat >>confdefs.h <<\_ACEOF
7291#define HAVE_GRAPHVIZ 1
7292_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007293
Jeff Cohen28783c32007-01-12 18:22:38 +00007294 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007295 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7296 fi
7297
7298cat >>confdefs.h <<_ACEOF
7299#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7300_ACEOF
7301
7302fi
7303# Extract the first word of "dot", so it can be a program name with args.
7304set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307if test "${ac_cv_path_DOT+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007309else
7310 case $DOT in
7311 [\\/]* | ?:[\\/]*)
7312 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7313 ;;
7314 *)
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 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 +00007322 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007324 break 2
7325 fi
7326done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327done
Reid Spencera773bd52006-08-04 18:18:08 +00007328IFS=$as_save_IFS
7329
7330 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7331 ;;
7332esac
7333fi
7334DOT=$ac_cv_path_DOT
7335if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: $DOT" >&5
7337echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 { echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007341fi
7342
7343
7344if test "$DOT" != "echo dot" ; then
7345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346cat >>confdefs.h <<\_ACEOF
7347#define HAVE_DOT 1
7348_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007349
Jeff Cohen28783c32007-01-12 18:22:38 +00007350 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007351 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7352 fi
7353
7354cat >>confdefs.h <<_ACEOF
7355#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7356_ACEOF
7357
7358fi
David Greenef0b9eff2009-07-09 17:16:26 +00007359# Extract the first word of "fdp", so it can be a program name with args.
7360set dummy fdp; 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_FDP+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007365else
7366 case $FDP in
7367 [\\/]* | ?:[\\/]*)
7368 ac_cv_path_FDP="$FDP" # 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
David Greenef0b9eff2009-07-09 17:16:26 +00007378 ac_cv_path_FDP="$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
David Greenef0b9eff2009-07-09 17:16:26 +00007380 break 2
7381 fi
7382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007383done
David Greenef0b9eff2009-07-09 17:16:26 +00007384IFS=$as_save_IFS
7385
7386 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7387 ;;
7388esac
7389fi
7390FDP=$ac_cv_path_FDP
7391if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392 { echo "$as_me:$LINENO: result: $FDP" >&5
7393echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007394else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 { echo "$as_me:$LINENO: result: no" >&5
7396echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007397fi
7398
7399
7400if test "$FDP" != "echo fdp" ; then
7401
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007402cat >>confdefs.h <<\_ACEOF
7403#define HAVE_FDP 1
7404_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007405
7406 if test "$llvm_cv_os_type" = "MingW" ; then
7407 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7408 fi
7409
7410cat >>confdefs.h <<_ACEOF
7411#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7412_ACEOF
7413
7414fi
7415# Extract the first word of "neato", so it can be a program name with args.
7416set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419if test "${ac_cv_path_NEATO+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007421else
7422 case $NEATO in
7423 [\\/]* | ?:[\\/]*)
7424 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7425 ;;
7426 *)
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH
7429do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 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 +00007434 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007436 break 2
7437 fi
7438done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007439done
David Greenef0b9eff2009-07-09 17:16:26 +00007440IFS=$as_save_IFS
7441
7442 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7443 ;;
7444esac
7445fi
7446NEATO=$ac_cv_path_NEATO
7447if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: $NEATO" >&5
7449echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007450else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 { echo "$as_me:$LINENO: result: no" >&5
7452echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007453fi
7454
7455
7456if test "$NEATO" != "echo neato" ; then
7457
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007458cat >>confdefs.h <<\_ACEOF
7459#define HAVE_NEATO 1
7460_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007461
7462 if test "$llvm_cv_os_type" = "MingW" ; then
7463 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7464 fi
7465
7466cat >>confdefs.h <<_ACEOF
7467#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7468_ACEOF
7469
7470fi
7471# Extract the first word of "twopi", so it can be a program name with args.
7472set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7475if test "${ac_cv_path_TWOPI+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007477else
7478 case $TWOPI in
7479 [\\/]* | ?:[\\/]*)
7480 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7481 ;;
7482 *)
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 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 +00007490 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007492 break 2
7493 fi
7494done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007495done
David Greenef0b9eff2009-07-09 17:16:26 +00007496IFS=$as_save_IFS
7497
7498 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7499 ;;
7500esac
7501fi
7502TWOPI=$ac_cv_path_TWOPI
7503if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7505echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007506else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507 { echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007509fi
7510
7511
7512if test "$TWOPI" != "echo twopi" ; then
7513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007514cat >>confdefs.h <<\_ACEOF
7515#define HAVE_TWOPI 1
7516_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007517
7518 if test "$llvm_cv_os_type" = "MingW" ; then
7519 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7520 fi
7521
7522cat >>confdefs.h <<_ACEOF
7523#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7524_ACEOF
7525
7526fi
7527# Extract the first word of "circo", so it can be a program name with args.
7528set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_CIRCO+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007533else
7534 case $CIRCO in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 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 +00007546 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007548 break 2
7549 fi
7550done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007551done
David Greenef0b9eff2009-07-09 17:16:26 +00007552IFS=$as_save_IFS
7553
7554 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7555 ;;
7556esac
7557fi
7558CIRCO=$ac_cv_path_CIRCO
7559if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7561echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007562else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 { echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007565fi
7566
7567
7568if test "$CIRCO" != "echo circo" ; then
7569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007570cat >>confdefs.h <<\_ACEOF
7571#define HAVE_CIRCO 1
7572_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007573
7574 if test "$llvm_cv_os_type" = "MingW" ; then
7575 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7576 fi
7577
7578cat >>confdefs.h <<_ACEOF
7579#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7580_ACEOF
7581
7582fi
Reid Spencera773bd52006-08-04 18:18:08 +00007583for ac_prog in gv gsview32
7584do
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_GV+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007591else
7592 case $GV in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 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 +00007604 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007606 break 2
7607 fi
7608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609done
Reid Spencera773bd52006-08-04 18:18:08 +00007610IFS=$as_save_IFS
7611
7612 ;;
7613esac
7614fi
7615GV=$ac_cv_path_GV
7616if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 { echo "$as_me:$LINENO: result: $GV" >&5
7618echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 { echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007622fi
7623
7624
7625 test -n "$GV" && break
7626done
7627test -n "$GV" || GV="echo gv"
7628
7629if test "$GV" != "echo gv" ; then
7630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007631cat >>confdefs.h <<\_ACEOF
7632#define HAVE_GV 1
7633_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007634
Jeff Cohen28783c32007-01-12 18:22:38 +00007635 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007636 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7637 fi
7638
7639cat >>confdefs.h <<_ACEOF
7640#define LLVM_PATH_GV "$GV${EXEEXT}"
7641_ACEOF
7642
7643fi
7644# Extract the first word of "dotty", so it can be a program name with args.
7645set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648if test "${ac_cv_path_DOTTY+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007650else
7651 case $DOTTY in
7652 [\\/]* | ?:[\\/]*)
7653 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7654 ;;
7655 *)
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 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 +00007663 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007665 break 2
7666 fi
7667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668done
Reid Spencera773bd52006-08-04 18:18:08 +00007669IFS=$as_save_IFS
7670
7671 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7672 ;;
7673esac
7674fi
7675DOTTY=$ac_cv_path_DOTTY
7676if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7678echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007680 { echo "$as_me:$LINENO: result: no" >&5
7681echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007682fi
7683
7684
7685if test "$DOTTY" != "echo dotty" ; then
7686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007687cat >>confdefs.h <<\_ACEOF
7688#define HAVE_DOTTY 1
7689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007690
Jeff Cohen28783c32007-01-12 18:22:38 +00007691 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007692 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7693 fi
7694
7695cat >>confdefs.h <<_ACEOF
7696#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7697_ACEOF
7698
7699fi
7700
7701
7702# Extract the first word of "perl", so it can be a program name with args.
7703set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706if test "${ac_cv_path_PERL+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007708else
7709 case $PERL in
7710 [\\/]* | ?:[\\/]*)
7711 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7712 ;;
7713 *)
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 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 +00007721 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007723 break 2
7724 fi
7725done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726done
Reid Spencera773bd52006-08-04 18:18:08 +00007727IFS=$as_save_IFS
7728
7729 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7730 ;;
7731esac
7732fi
7733PERL=$ac_cv_path_PERL
7734if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007735 { echo "$as_me:$LINENO: result: $PERL" >&5
7736echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738 { echo "$as_me:$LINENO: result: no" >&5
7739echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007740fi
7741
7742
7743if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7745echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007746 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747 { echo "$as_me:$LINENO: result: yes" >&5
7748echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007749 else
7750 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751 { echo "$as_me:$LINENO: result: not found" >&5
7752echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007753 fi
7754fi
7755
7756
7757if test x"$PERL" = xnone; then
7758 HAVE_PERL=0
7759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007760 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7761echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7762 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007763else
7764 HAVE_PERL=1
7765
7766fi
7767
7768# Find a good install program. We prefer a C program (faster),
7769# so one script is as good as another. But avoid the broken or
7770# incompatible versions:
7771# SysV /etc/install, /usr/sbin/install
7772# SunOS /usr/etc/install
7773# IRIX /sbin/install
7774# AIX /bin/install
7775# AmigaOS /C/install, which installs bootblocks on floppy discs
7776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7779# OS/2's system install, which has a completely different semantic
7780# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7782echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007783if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007784if test "${ac_cv_path_install+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007786else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790 IFS=$as_save_IFS
7791 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792 # Account for people who put trailing slashes in PATH elements.
7793case $as_dir/ in
7794 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007795 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007797 /usr/ucb/* ) ;;
7798 *)
7799 # OSF1 and SCO ODT 3.0 have their own names for install.
7800 # Don't use installbsd from OSF since it installs stuff as root
7801 # by default.
7802 for ac_prog in ginstall scoinst install; do
7803 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007804 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 +00007805 if test $ac_prog = install &&
7806 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7807 # AIX install. It has an incompatible calling convention.
7808 :
7809 elif test $ac_prog = install &&
7810 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7811 # program-specific install script used by HP pwplus--don't use.
7812 :
7813 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7815 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007816 fi
7817 fi
7818 done
7819 done
7820 ;;
7821esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007822done
Reid Spencera773bd52006-08-04 18:18:08 +00007823IFS=$as_save_IFS
7824
7825
7826fi
7827 if test "${ac_cv_path_install+set}" = set; then
7828 INSTALL=$ac_cv_path_install
7829 else
7830 # As a last resort, use the slow shell script. Don't cache a
7831 # value for INSTALL within a source directory, because that will
7832 # break other packages using the cache if that directory is
7833 # removed, or if the value is a relative name.
7834 INSTALL=$ac_install_sh
7835 fi
7836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007837{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7838echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007839
7840# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7841# It thinks the first close brace ends the variable substitution.
7842test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7843
7844test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7845
7846test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7847
7848
7849# Extract the first word of "bzip2", so it can be a program name with args.
7850set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7853if test "${ac_cv_path_BZIP2+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007855else
7856 case $BZIP2 in
7857 [\\/]* | ?:[\\/]*)
7858 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7859 ;;
7860 *)
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007868 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007870 break 2
7871 fi
7872done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007873done
Reid Spencera773bd52006-08-04 18:18:08 +00007874IFS=$as_save_IFS
7875
Reid Spencera773bd52006-08-04 18:18:08 +00007876 ;;
7877esac
7878fi
7879BZIP2=$ac_cv_path_BZIP2
7880if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7882echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007883else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884 { echo "$as_me:$LINENO: result: no" >&5
7885echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007886fi
7887
7888
7889# Extract the first word of "doxygen", so it can be a program name with args.
7890set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7893if test "${ac_cv_path_DOXYGEN+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007895else
7896 case $DOXYGEN in
7897 [\\/]* | ?:[\\/]*)
7898 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7899 ;;
7900 *)
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 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 +00007908 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007910 break 2
7911 fi
7912done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913done
Reid Spencera773bd52006-08-04 18:18:08 +00007914IFS=$as_save_IFS
7915
Reid Spencera773bd52006-08-04 18:18:08 +00007916 ;;
7917esac
7918fi
7919DOXYGEN=$ac_cv_path_DOXYGEN
7920if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7922echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007924 { echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007926fi
7927
7928
Reid Spencera773bd52006-08-04 18:18:08 +00007929# Extract the first word of "groff", so it can be a program name with args.
7930set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7933if test "${ac_cv_path_GROFF+set}" = set; then
7934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007935else
7936 case $GROFF in
7937 [\\/]* | ?:[\\/]*)
7938 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7939 ;;
7940 *)
7941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 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 +00007948 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007950 break 2
7951 fi
7952done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007953done
Reid Spencera773bd52006-08-04 18:18:08 +00007954IFS=$as_save_IFS
7955
Reid Spencera773bd52006-08-04 18:18:08 +00007956 ;;
7957esac
7958fi
7959GROFF=$ac_cv_path_GROFF
7960if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007961 { echo "$as_me:$LINENO: result: $GROFF" >&5
7962echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964 { echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007966fi
7967
7968
7969# Extract the first word of "gzip", so it can be a program name with args.
7970set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7973if test "${ac_cv_path_GZIP+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007975else
7976 case $GZIP in
7977 [\\/]* | ?:[\\/]*)
7978 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7979 ;;
7980 *)
7981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984 IFS=$as_save_IFS
7985 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986 for ac_exec_ext in '' $ac_executable_extensions; do
7987 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 +00007988 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007990 break 2
7991 fi
7992done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007993done
Reid Spencera773bd52006-08-04 18:18:08 +00007994IFS=$as_save_IFS
7995
Reid Spencera773bd52006-08-04 18:18:08 +00007996 ;;
7997esac
7998fi
7999GZIP=$ac_cv_path_GZIP
8000if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001 { echo "$as_me:$LINENO: result: $GZIP" >&5
8002echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008003else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004 { echo "$as_me:$LINENO: result: no" >&5
8005echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008006fi
8007
8008
8009# Extract the first word of "pod2html", so it can be a program name with args.
8010set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008011{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8013if test "${ac_cv_path_POD2HTML+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008015else
8016 case $POD2HTML in
8017 [\\/]* | ?:[\\/]*)
8018 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8019 ;;
8020 *)
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 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 +00008028 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008030 break 2
8031 fi
8032done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008033done
Reid Spencera773bd52006-08-04 18:18:08 +00008034IFS=$as_save_IFS
8035
Reid Spencera773bd52006-08-04 18:18:08 +00008036 ;;
8037esac
8038fi
8039POD2HTML=$ac_cv_path_POD2HTML
8040if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8042echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008044 { echo "$as_me:$LINENO: result: no" >&5
8045echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008046fi
8047
8048
8049# Extract the first word of "pod2man", so it can be a program name with args.
8050set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8053if test "${ac_cv_path_POD2MAN+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008055else
8056 case $POD2MAN in
8057 [\\/]* | ?:[\\/]*)
8058 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8059 ;;
8060 *)
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 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 +00008068 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008070 break 2
8071 fi
8072done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008073done
Reid Spencera773bd52006-08-04 18:18:08 +00008074IFS=$as_save_IFS
8075
Reid Spencera773bd52006-08-04 18:18:08 +00008076 ;;
8077esac
8078fi
8079POD2MAN=$ac_cv_path_POD2MAN
8080if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8082echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008084 { echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008086fi
8087
8088
8089# Extract the first word of "runtest", so it can be a program name with args.
8090set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8093if test "${ac_cv_path_RUNTEST+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008095else
8096 case $RUNTEST in
8097 [\\/]* | ?:[\\/]*)
8098 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8099 ;;
8100 *)
8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 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 +00008108 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008110 break 2
8111 fi
8112done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008113done
Reid Spencera773bd52006-08-04 18:18:08 +00008114IFS=$as_save_IFS
8115
Reid Spencera773bd52006-08-04 18:18:08 +00008116 ;;
8117esac
8118fi
8119RUNTEST=$ac_cv_path_RUNTEST
8120if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8122echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008124 { echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008126fi
8127
8128
8129
8130no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8132echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008133
8134# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008135if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008136 withval=$with_tclinclude; with_tclinclude=${withval}
8137else
8138 with_tclinclude=''
8139fi
8140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008141if test "${ac_cv_path_tclsh+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008143else
8144
8145if test x"${with_tclinclude}" != x ; then
8146 if test -f ${with_tclinclude}/tclsh ; then
8147 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8148 elif test -f ${with_tclinclude}/src/tclsh ; then
8149 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8150 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8152echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8153 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008154 fi
8155fi
Torok Edwin871384f2010-01-26 08:50:50 +00008156fi
8157
Reid Spencera773bd52006-08-04 18:18:08 +00008158
8159if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008160 { echo "$as_me:$LINENO: result: none" >&5
8161echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008162 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
8163do
8164 # Extract the first word of "$ac_prog", so it can be a program name with args.
8165set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168if test "${ac_cv_path_TCLSH+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008170else
8171 case $TCLSH in
8172 [\\/]* | ?:[\\/]*)
8173 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8174 ;;
8175 *)
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 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 +00008183 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008185 break 2
8186 fi
8187done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008188done
Reid Spencera773bd52006-08-04 18:18:08 +00008189IFS=$as_save_IFS
8190
8191 ;;
8192esac
8193fi
8194TCLSH=$ac_cv_path_TCLSH
8195if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8197echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008198else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008199 { echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008201fi
8202
8203
8204 test -n "$TCLSH" && break
8205done
8206
8207 if test x"${TCLSH}" = x ; then
8208 ac_cv_path_tclsh='';
8209 else
8210 ac_cv_path_tclsh="${TCLSH}";
8211 fi
8212else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008213 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8214echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008215 TCLSH="${ac_cv_path_tclsh}"
8216
8217fi
8218
Reid Spencera773bd52006-08-04 18:18:08 +00008219# Extract the first word of "zip", so it can be a program name with args.
8220set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8223if test "${ac_cv_path_ZIP+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008225else
8226 case $ZIP in
8227 [\\/]* | ?:[\\/]*)
8228 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8229 ;;
8230 *)
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 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 +00008238 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008240 break 2
8241 fi
8242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008243done
Reid Spencera773bd52006-08-04 18:18:08 +00008244IFS=$as_save_IFS
8245
Reid Spencera773bd52006-08-04 18:18:08 +00008246 ;;
8247esac
8248fi
8249ZIP=$ac_cv_path_ZIP
8250if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251 { echo "$as_me:$LINENO: result: $ZIP" >&5
8252echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008253else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254 { echo "$as_me:$LINENO: result: no" >&5
8255echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008256fi
8257
8258
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008259for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008260do
8261 # Extract the first word of "$ac_prog", so it can be a program name with args.
8262set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8265if test "${ac_cv_path_OCAMLC+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008267else
8268 case $OCAMLC in
8269 [\\/]* | ?:[\\/]*)
8270 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8271 ;;
8272 *)
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274for as_dir in $PATH
8275do
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 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 +00008280 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008282 break 2
8283 fi
8284done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008286IFS=$as_save_IFS
8287
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008288 ;;
8289esac
8290fi
8291OCAMLC=$ac_cv_path_OCAMLC
8292if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008293 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8294echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296 { echo "$as_me:$LINENO: result: no" >&5
8297echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008298fi
8299
8300
Gordon Henriksene7072162008-03-07 18:20:01 +00008301 test -n "$OCAMLC" && break
8302done
8303
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008304for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008305do
8306 # Extract the first word of "$ac_prog", so it can be a program name with args.
8307set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8310if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8311 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008312else
8313 case $OCAMLOPT in
8314 [\\/]* | ?:[\\/]*)
8315 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8316 ;;
8317 *)
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319for as_dir in $PATH
8320do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 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 +00008325 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008327 break 2
8328 fi
8329done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008331IFS=$as_save_IFS
8332
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008333 ;;
8334esac
8335fi
8336OCAMLOPT=$ac_cv_path_OCAMLOPT
8337if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8339echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341 { echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008343fi
8344
8345
Gordon Henriksene7072162008-03-07 18:20:01 +00008346 test -n "$OCAMLOPT" && break
8347done
8348
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008349for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008350do
8351 # Extract the first word of "$ac_prog", so it can be a program name with args.
8352set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8355if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008357else
8358 case $OCAMLDEP in
8359 [\\/]* | ?:[\\/]*)
8360 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8361 ;;
8362 *)
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 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 +00008370 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008372 break 2
8373 fi
8374done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008375done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008376IFS=$as_save_IFS
8377
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008378 ;;
8379esac
8380fi
8381OCAMLDEP=$ac_cv_path_OCAMLDEP
8382if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8384echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386 { echo "$as_me:$LINENO: result: no" >&5
8387echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008388fi
8389
8390
Gordon Henriksene7072162008-03-07 18:20:01 +00008391 test -n "$OCAMLDEP" && break
8392done
8393
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008394for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008395do
8396 # Extract the first word of "$ac_prog", so it can be a program name with args.
8397set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8400if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008402else
8403 case $OCAMLDOC in
8404 [\\/]* | ?:[\\/]*)
8405 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8406 ;;
8407 *)
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409for as_dir in $PATH
8410do
8411 IFS=$as_save_IFS
8412 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 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 +00008415 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008417 break 2
8418 fi
8419done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008421IFS=$as_save_IFS
8422
8423 ;;
8424esac
8425fi
8426OCAMLDOC=$ac_cv_path_OCAMLDOC
8427if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8429echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431 { echo "$as_me:$LINENO: result: no" >&5
8432echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008433fi
8434
8435
8436 test -n "$OCAMLDOC" && break
8437done
8438
Torok Edwincc499a42008-10-22 09:56:27 +00008439for ac_prog in gas as
8440do
8441 # Extract the first word of "$ac_prog", so it can be a program name with args.
8442set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008443{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8445if test "${ac_cv_path_GAS+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008447else
8448 case $GAS in
8449 [\\/]* | ?:[\\/]*)
8450 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8451 ;;
8452 *)
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454for as_dir in $PATH
8455do
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008460 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008462 break 2
8463 fi
8464done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008465done
Torok Edwincc499a42008-10-22 09:56:27 +00008466IFS=$as_save_IFS
8467
8468 ;;
8469esac
8470fi
8471GAS=$ac_cv_path_GAS
8472if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473 { echo "$as_me:$LINENO: result: $GAS" >&5
8474echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008476 { echo "$as_me:$LINENO: result: no" >&5
8477echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008478fi
8479
8480
8481 test -n "$GAS" && break
8482done
8483
Reid Spencera773bd52006-08-04 18:18:08 +00008484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008485{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8486echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8487if test "${llvm_cv_link_use_r+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008489else
8490 ac_ext=c
8491ac_cpp='$CPP $CPPFLAGS'
8492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8494ac_compiler_gnu=$ac_cv_c_compiler_gnu
8495
8496 oldcflags="$CFLAGS"
8497 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008498 cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008503/* end confdefs.h. */
8504
8505int
8506main ()
8507{
8508int main() { return 0; }
8509 ;
8510 return 0;
8511}
8512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (ac_try="$ac_link"
8515case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518esac
8519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008547 llvm_cv_link_use_r=yes
8548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549 echo "$as_me: failed program was:" >&5
8550sed 's/^/| /' conftest.$ac_ext >&5
8551
8552 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008553fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008554
Bill Wendlingebcceee2009-04-18 11:20:33 +00008555rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008556 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008557 CFLAGS="$oldcflags"
8558 ac_ext=c
8559ac_cpp='$CPP $CPPFLAGS'
8560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562ac_compiler_gnu=$ac_cv_c_compiler_gnu
8563
8564
8565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008566{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8567echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008568if test "$llvm_cv_link_use_r" = yes ; then
8569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008570cat >>confdefs.h <<\_ACEOF
8571#define HAVE_LINK_R 1
8572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008573
8574 fi
8575
8576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8578echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8579if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008581else
8582 ac_ext=c
8583ac_cpp='$CPP $CPPFLAGS'
8584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8586ac_compiler_gnu=$ac_cv_c_compiler_gnu
8587
8588 oldcflags="$CFLAGS"
8589 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008590 cat >conftest.$ac_ext <<_ACEOF
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008595/* end confdefs.h. */
8596
8597int
8598main ()
8599{
8600int main() { return 0; }
8601 ;
8602 return 0;
8603}
8604_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008605rm -f conftest.$ac_objext conftest$ac_exeext
8606if { (ac_try="$ac_link"
8607case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610esac
8611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_link") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } &&
8619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8620 { (case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_try") 2>&5
8626 ac_status=$?
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633esac
8634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_try") 2>&5
8636 ac_status=$?
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008639 llvm_cv_link_use_export_dynamic=yes
8640else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641 echo "$as_me: failed program was:" >&5
8642sed 's/^/| /' conftest.$ac_ext >&5
8643
8644 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008646
Bill Wendlingebcceee2009-04-18 11:20:33 +00008647rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008648 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008649 CFLAGS="$oldcflags"
8650 ac_ext=c
8651ac_cpp='$CPP $CPPFLAGS'
8652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656
8657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008658{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8659echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008660if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008662cat >>confdefs.h <<\_ACEOF
8663#define HAVE_LINK_EXPORT_DYNAMIC 1
8664_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008665
8666 fi
8667
8668
Reid Spencera773bd52006-08-04 18:18:08 +00008669
8670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008671{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8672echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8673if test "${ac_cv_c_const+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008676 cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008681/* end confdefs.h. */
8682
8683int
8684main ()
8685{
8686/* FIXME: Include the comments suggested by Paul. */
8687#ifndef __cplusplus
8688 /* Ultrix mips cc rejects this. */
8689 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008690 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008691 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008692 char const *const *ccp;
8693 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008694 /* NEC SVR4.0.2 mips cc rejects this. */
8695 struct point {int x, y;};
8696 static struct point const zero = {0,0};
8697 /* AIX XL C 1.02.0.0 rejects this.
8698 It does not let you subtract one const X* pointer from another in
8699 an arm of an if-expression whose if-part is not a constant
8700 expression */
8701 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008702 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008703 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008704 ++ccp;
8705 p = (char**) ccp;
8706 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008707 { /* SCO 3.2v4 cc rejects this. */
8708 char *t;
8709 char const *s = 0 ? (char *) 0 : (char const *) 0;
8710
8711 *t++ = 0;
8712 if (s) return 0;
8713 }
8714 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8715 int x[] = {25, 17};
8716 const int *foo = &x[0];
8717 ++foo;
8718 }
8719 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8720 typedef const int *iptr;
8721 iptr p = 0;
8722 ++p;
8723 }
8724 { /* AIX XL C 1.02.0.0 rejects this saying
8725 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8726 struct s { int j; const int *ap[3]; };
8727 struct s *b; b->j = 5;
8728 }
8729 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8730 const int foo = 10;
8731 if (!foo) return 0;
8732 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008733 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008734#endif
8735
8736 ;
8737 return 0;
8738}
8739_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008740rm -f conftest.$ac_objext
8741if { (ac_try="$ac_compile"
8742case "(($ac_try" in
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8745esac
8746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_compile") 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8755 { (case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758esac
8759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_try") 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (case "(($ac_try" in
8766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8768esac
8769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_try") 2>&5
8771 ac_status=$?
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008774 ac_cv_c_const=yes
8775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008776 echo "$as_me: failed program was:" >&5
8777sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008781
Reid Spencera773bd52006-08-04 18:18:08 +00008782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008784{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8785echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008786if test $ac_cv_c_const = no; then
8787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008788cat >>confdefs.h <<\_ACEOF
8789#define const
8790_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008791
8792fi
8793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008794
8795
8796
8797
8798
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008799ac_header_dirent=no
8800for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8802{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8803echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008807 cat >conftest.$ac_ext <<_ACEOF
8808/* confdefs.h. */
8809_ACEOF
8810cat confdefs.h >>conftest.$ac_ext
8811cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008812/* end confdefs.h. */
8813#include <sys/types.h>
8814#include <$ac_hdr>
8815
8816int
8817main ()
8818{
8819if ((DIR *) 0)
8820return 0;
8821 ;
8822 return 0;
8823}
8824_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008825rm -f conftest.$ac_objext
8826if { (ac_try="$ac_compile"
8827case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8830esac
8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; } &&
8849 { ac_try='test -s conftest.$ac_objext'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853esac
8854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008859 eval "$as_ac_Header=yes"
8860else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008861 echo "$as_me: failed program was:" >&5
8862sed 's/^/| /' conftest.$ac_ext >&5
8863
8864 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008866
Reid Spencera773bd52006-08-04 18:18:08 +00008867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008869ac_res=`eval echo '${'$as_ac_Header'}'`
8870 { echo "$as_me:$LINENO: result: $ac_res" >&5
8871echo "${ECHO_T}$ac_res" >&6; }
8872if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008873 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008874#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008875_ACEOF
8876
8877ac_header_dirent=$ac_hdr; break
8878fi
8879
8880done
8881# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8882if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008883 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8884echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8885if test "${ac_cv_search_opendir+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008887else
8888 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008889cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008894/* end confdefs.h. */
8895
Reid Spencera773bd52006-08-04 18:18:08 +00008896/* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008899#ifdef __cplusplus
8900extern "C"
8901#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008902char opendir ();
8903int
8904main ()
8905{
Reid Spencera773bd52006-08-04 18:18:08 +00008906return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008907 ;
8908 return 0;
8909}
8910_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008911for ac_lib in '' dir; do
8912 if test -z "$ac_lib"; then
8913 ac_res="none required"
8914 else
8915 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008917 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008918 rm -f conftest.$ac_objext conftest$ac_exeext
8919if { (ac_try="$ac_link"
8920case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923esac
8924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_link") 2>conftest.er1
8926 ac_status=$?
8927 grep -v '^ *+' conftest.er1 >conftest.err
8928 rm -f conftest.er1
8929 cat conftest.err >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); } &&
8932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8933 { (case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936esac
8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_try") 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946esac
8947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_try") 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008952 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008953else
8954 echo "$as_me: failed program was:" >&5
8955sed 's/^/| /' conftest.$ac_ext >&5
8956
8957
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008959
Bill Wendlingebcceee2009-04-18 11:20:33 +00008960rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008961 conftest$ac_exeext
8962 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008963 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008964fi
John Criswell7a73b802003-06-30 21:59:07 +00008965done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008966if test "${ac_cv_search_opendir+set}" = set; then
8967 :
Reid Spencera773bd52006-08-04 18:18:08 +00008968else
8969 ac_cv_search_opendir=no
8970fi
8971rm conftest.$ac_ext
8972LIBS=$ac_func_search_save_LIBS
8973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008974{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8975echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008976ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008977if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008979
Reid Spencera773bd52006-08-04 18:18:08 +00008980fi
8981
8982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008983 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8984echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8985if test "${ac_cv_search_opendir+set}" = set; then
8986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008987else
8988 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008989cat >conftest.$ac_ext <<_ACEOF
8990/* confdefs.h. */
8991_ACEOF
8992cat confdefs.h >>conftest.$ac_ext
8993cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008994/* end confdefs.h. */
8995
8996/* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999#ifdef __cplusplus
9000extern "C"
9001#endif
9002char opendir ();
9003int
9004main ()
9005{
9006return opendir ();
9007 ;
9008 return 0;
9009}
9010_ACEOF
9011for ac_lib in '' x; do
9012 if test -z "$ac_lib"; then
9013 ac_res="none required"
9014 else
9015 ac_res=-l$ac_lib
9016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9017 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009018 rm -f conftest.$ac_objext conftest$ac_exeext
9019if { (ac_try="$ac_link"
9020case "(($ac_try" in
9021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022 *) ac_try_echo=$ac_try;;
9023esac
9024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_link") 2>conftest.er1
9026 ac_status=$?
9027 grep -v '^ *+' conftest.er1 >conftest.err
9028 rm -f conftest.er1
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9033 { (case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036esac
9037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_try") 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9045 *) ac_try_echo=$ac_try;;
9046esac
9047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009052 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009053else
9054 echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057
Reid Spencera773bd52006-08-04 18:18:08 +00009058fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009059
Bill Wendlingebcceee2009-04-18 11:20:33 +00009060rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009061 conftest$ac_exeext
9062 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009063 break
9064fi
9065done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009066if test "${ac_cv_search_opendir+set}" = set; then
9067 :
Reid Spencera773bd52006-08-04 18:18:08 +00009068else
9069 ac_cv_search_opendir=no
9070fi
9071rm conftest.$ac_ext
9072LIBS=$ac_func_search_save_LIBS
9073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009074{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9075echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009076ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009077if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009078 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9079
9080fi
9081
9082fi
John Criswell7a73b802003-06-30 21:59:07 +00009083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009084
John Criswell7a73b802003-06-30 21:59:07 +00009085for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009086do
9087as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9093fi
9094ac_res=`eval echo '${'$as_ac_Header'}'`
9095 { echo "$as_me:$LINENO: result: $ac_res" >&5
9096echo "${ECHO_T}$ac_res" >&6; }
9097else
9098 # Is the header compilable?
9099{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9100echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9101cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
9107$ac_includes_default
9108#include <$ac_header>
9109_ACEOF
9110rm -f conftest.$ac_objext
9111if { (ac_try="$ac_compile"
9112case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115esac
9116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9125 { (case "(($ac_try" in
9126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9127 *) ac_try_echo=$ac_try;;
9128esac
9129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9130 (eval "$ac_try") 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (case "(($ac_try" in
9136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9137 *) ac_try_echo=$ac_try;;
9138esac
9139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9140 (eval "$ac_try") 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; }; then
9144 ac_header_compiler=yes
9145else
9146 echo "$as_me: failed program was:" >&5
9147sed 's/^/| /' conftest.$ac_ext >&5
9148
9149 ac_header_compiler=no
9150fi
9151
9152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9154echo "${ECHO_T}$ac_header_compiler" >&6; }
9155
9156# Is the header present?
9157{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9159cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h. */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h. */
9165#include <$ac_header>
9166_ACEOF
9167if { (ac_try="$ac_cpp conftest.$ac_ext"
9168case "(($ac_try" in
9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9170 *) ac_try_echo=$ac_try;;
9171esac
9172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev/null; then
9180 if test -s conftest.err; then
9181 ac_cpp_err=$ac_c_preproc_warn_flag
9182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9183 else
9184 ac_cpp_err=
9185 fi
9186else
9187 ac_cpp_err=yes
9188fi
9189if test -z "$ac_cpp_err"; then
9190 ac_header_preproc=yes
9191else
9192 echo "$as_me: failed program was:" >&5
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 ac_header_preproc=no
9196fi
9197
9198rm -f conftest.err conftest.$ac_ext
9199{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9200echo "${ECHO_T}$ac_header_preproc" >&6; }
9201
9202# So? What about this header?
9203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9204 yes:no: )
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9209 ac_header_preproc=yes
9210 ;;
9211 no:yes:* )
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9215echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9219echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9224 ( cat <<\_ASBOX
9225## ----------------------------------- ##
9226## Report this to llvmbugs@cs.uiuc.edu ##
9227## ----------------------------------- ##
9228_ASBOX
9229 ) | sed "s/^/$as_me: WARNING: /" >&2
9230 ;;
9231esac
9232{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236else
9237 eval "$as_ac_Header=\$ac_header_preproc"
9238fi
9239ac_res=`eval echo '${'$as_ac_Header'}'`
9240 { echo "$as_me:$LINENO: result: $ac_res" >&5
9241echo "${ECHO_T}$ac_res" >&6; }
9242
9243fi
9244if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009245 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009247_ACEOF
9248
9249fi
9250
9251done
9252
Reid Spencera773bd52006-08-04 18:18:08 +00009253# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009254if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009255 enableval=$enable_ltdl_install;
9256fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009259
9260
9261if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262 INSTALL_LTDL_TRUE=
9263 INSTALL_LTDL_FALSE='#'
9264else
9265 INSTALL_LTDL_TRUE='#'
9266 INSTALL_LTDL_FALSE=
9267fi
9268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009269
9270
9271if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272 CONVENIENCE_LTDL_TRUE=
9273 CONVENIENCE_LTDL_FALSE='#'
9274else
9275 CONVENIENCE_LTDL_TRUE='#'
9276 CONVENIENCE_LTDL_FALSE=
9277fi
9278
9279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009280{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9281echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282library_names_spec=
9283libname_spec='lib$name'
9284soname_spec=
9285shrext_cmds=".so"
9286postinstall_cmds=
9287postuninstall_cmds=
9288finish_cmds=
9289finish_eval=
9290shlibpath_var=
9291shlibpath_overrides_runpath=unknown
9292version_type=none
9293dynamic_linker="$host_os ld.so"
9294sys_lib_dlsearch_path_spec="/lib /usr/lib"
9295if test "$GCC" = yes; then
9296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9298 # if the path contains ";" then we assume it to be the separator
9299 # otherwise default to the standard path separator (i.e. ":") - it is
9300 # assumed that no part of a normal pathname contains ";" but that should
9301 # okay in the real world where ";" in dirpaths is itself problematic.
9302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9303 else
9304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9305 fi
9306else
9307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9308fi
9309need_lib_prefix=unknown
9310hardcode_into_libs=no
9311
9312# when you set need_version to no, make sure it does not cause -set_version
9313# flags to be left without arguments
9314need_version=unknown
9315
9316case $host_os in
9317aix3*)
9318 version_type=linux
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9320 shlibpath_var=LIBPATH
9321
9322 # AIX 3 has no versioning support, so we append a major version to the name.
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 ;;
9325
9326aix4* | aix5*)
9327 version_type=linux
9328 need_lib_prefix=no
9329 need_version=no
9330 hardcode_into_libs=yes
9331 if test "$host_cpu" = ia64; then
9332 # AIX 5 supports IA64
9333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 else
9336 # With GCC up to 2.95.x, collect2 would create an import file
9337 # for dependence libraries. The import file would start with
9338 # the line `#! .'. This would cause the generated library to
9339 # depend on `.', always an invalid library. This was fixed in
9340 # development snapshots of GCC prior to 3.0.
9341 case $host_os in
9342 aix4 | aix4.[01] | aix4.[01].*)
9343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9344 echo ' yes '
9345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9346 :
9347 else
9348 can_build_shared=no
9349 fi
9350 ;;
9351 esac
9352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9353 # soname into executable. Probably we can add versioning support to
9354 # collect2, so additional links can be useful in future.
9355 if test "$aix_use_runtimelinking" = yes; then
9356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9357 # instead of lib<name>.a to let people know that these are not
9358 # typical AIX shared libraries.
9359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360 else
9361 # We preserve .a as extension for shared libraries through AIX4.2
9362 # and later when we are not doing run time linking.
9363 library_names_spec='${libname}${release}.a $libname.a'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 fi
9366 shlibpath_var=LIBPATH
9367 fi
9368 ;;
9369
9370amigaos*)
9371 library_names_spec='$libname.ixlibrary $libname.a'
9372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9373 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'
9374 ;;
9375
9376beos*)
9377 library_names_spec='${libname}${shared_ext}'
9378 dynamic_linker="$host_os ld.so"
9379 shlibpath_var=LIBRARY_PATH
9380 ;;
9381
9382bsdi[45]*)
9383 version_type=linux
9384 need_version=no
9385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386 soname_spec='${libname}${release}${shared_ext}$major'
9387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9391 # the default ld.so.conf also contains /usr/contrib/lib and
9392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9393 # libtool to hard-code these into programs
9394 ;;
9395
9396cygwin* | mingw* | pw32*)
9397 version_type=windows
9398 shrext_cmds=".dll"
9399 need_version=no
9400 need_lib_prefix=no
9401
9402 case $GCC,$host_os in
9403 yes,cygwin* | yes,mingw* | yes,pw32*)
9404 library_names_spec='$libname.dll.a'
9405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9406 postinstall_cmds='base_file=`basename \${file}`~
9407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9408 dldir=$destdir/`dirname \$dlpath`~
9409 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009410 $install_prog $dir/$dlname \$dldir/$dlname~
9411 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9413 dlpath=$dir/\$dldll~
9414 $rm \$dlpath'
9415 shlibpath_overrides_runpath=yes
9416
9417 case $host_os in
9418 cygwin*)
9419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9420 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9421 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9422 ;;
9423 mingw*)
9424 # MinGW DLLs use traditional 'lib' prefix
9425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9427 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9428 # It is most probably a Windows format PATH printed by
9429 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9430 # path with ; separators, and with drive letters. We can handle the
9431 # drive letters (cygwin fileutils understands them), so leave them,
9432 # especially as we might pass files found there to a mingw objdump,
9433 # which wouldn't understand a cygwinified path. Ahh.
9434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9435 else
9436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9437 fi
9438 ;;
9439 pw32*)
9440 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009441 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 +00009442 ;;
9443 esac
9444 ;;
9445
9446 *)
9447 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9448 ;;
9449 esac
9450 dynamic_linker='Win32 ld.exe'
9451 # FIXME: first we should search . and the directory the executable is in
9452 shlibpath_var=PATH
9453 ;;
9454
9455darwin* | rhapsody*)
9456 dynamic_linker="$host_os dyld"
9457 version_type=darwin
9458 need_lib_prefix=no
9459 need_version=no
9460 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9461 soname_spec='${libname}${release}${major}$shared_ext'
9462 shlibpath_overrides_runpath=yes
9463 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009464 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9466 if test "$GCC" = yes; then
9467 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"`
9468 else
9469 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9470 fi
9471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9472 ;;
9473
9474dgux*)
9475 version_type=linux
9476 need_lib_prefix=no
9477 need_version=no
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 ;;
9482
9483freebsd1*)
9484 dynamic_linker=no
9485 ;;
9486
9487kfreebsd*-gnu)
9488 version_type=linux
9489 need_lib_prefix=no
9490 need_version=no
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=no
9495 hardcode_into_libs=yes
9496 dynamic_linker='GNU ld.so'
9497 ;;
9498
Reid Spencera773bd52006-08-04 18:18:08 +00009499freebsd* | dragonfly*)
9500 # DragonFly does not have aout. When/if they implement a new
9501 # versioning mechanism, adjust this.
9502 if test -x /usr/bin/objformat; then
9503 objformat=`/usr/bin/objformat`
9504 else
9505 case $host_os in
9506 freebsd[123]*) objformat=aout ;;
9507 *) objformat=elf ;;
9508 esac
9509 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009510 version_type=freebsd-$objformat
9511 case $version_type in
9512 freebsd-elf*)
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9514 need_version=no
9515 need_lib_prefix=no
9516 ;;
9517 freebsd-*)
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9519 need_version=yes
9520 ;;
9521 esac
9522 shlibpath_var=LD_LIBRARY_PATH
9523 case $host_os in
9524 freebsd2*)
9525 shlibpath_overrides_runpath=yes
9526 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009527 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009528 shlibpath_overrides_runpath=yes
9529 hardcode_into_libs=yes
9530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009533 shlibpath_overrides_runpath=no
9534 hardcode_into_libs=yes
9535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009536 freebsd*) # from 4.6 on
9537 shlibpath_overrides_runpath=yes
9538 hardcode_into_libs=yes
9539 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540 esac
9541 ;;
9542
9543gnu*)
9544 version_type=linux
9545 need_lib_prefix=no
9546 need_version=no
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 shlibpath_var=LD_LIBRARY_PATH
9550 hardcode_into_libs=yes
9551 ;;
9552
9553hpux9* | hpux10* | hpux11*)
9554 # Give a soname corresponding to the major version so that dld.sl refuses to
9555 # link against other versions.
9556 version_type=sunos
9557 need_lib_prefix=no
9558 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009559 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560 ia64*)
9561 shrext_cmds='.so'
9562 hardcode_into_libs=yes
9563 dynamic_linker="$host_os dld.so"
9564 shlibpath_var=LD_LIBRARY_PATH
9565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 if test "X$HPUX_IA64_MODE" = X32; then
9569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9570 else
9571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9572 fi
9573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9574 ;;
9575 hppa*64*)
9576 shrext_cmds='.sl'
9577 hardcode_into_libs=yes
9578 dynamic_linker="$host_os dld.sl"
9579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9585 ;;
9586 *)
9587 shrext_cmds='.sl'
9588 dynamic_linker="$host_os dld.sl"
9589 shlibpath_var=SHLIB_PATH
9590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 ;;
9594 esac
9595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9596 postinstall_cmds='chmod 555 $lib'
9597 ;;
9598
Reid Spencera773bd52006-08-04 18:18:08 +00009599interix3*)
9600 version_type=linux
9601 need_lib_prefix=no
9602 need_version=no
9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9604 soname_spec='${libname}${release}${shared_ext}$major'
9605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9606 shlibpath_var=LD_LIBRARY_PATH
9607 shlibpath_overrides_runpath=no
9608 hardcode_into_libs=yes
9609 ;;
9610
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611irix5* | irix6* | nonstopux*)
9612 case $host_os in
9613 nonstopux*) version_type=nonstopux ;;
9614 *)
9615 if test "$lt_cv_prog_gnu_ld" = yes; then
9616 version_type=linux
9617 else
9618 version_type=irix
9619 fi ;;
9620 esac
9621 need_lib_prefix=no
9622 need_version=no
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9625 case $host_os in
9626 irix5* | nonstopux*)
9627 libsuff= shlibsuff=
9628 ;;
9629 *)
9630 case $LD in # libtool.m4 will add one of these switches to LD
9631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9632 libsuff= shlibsuff= libmagic=32-bit;;
9633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9634 libsuff=32 shlibsuff=N32 libmagic=N32;;
9635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9637 *) libsuff= shlibsuff= libmagic=never-match;;
9638 esac
9639 ;;
9640 esac
9641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9642 shlibpath_overrides_runpath=no
9643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9645 hardcode_into_libs=yes
9646 ;;
9647
9648# No shared lib support for Linux oldld, aout, or coff.
9649linux*oldld* | linux*aout* | linux*coff*)
9650 dynamic_linker=no
9651 ;;
9652
9653# This must be Linux ELF.
9654linux*)
9655 version_type=linux
9656 need_lib_prefix=no
9657 need_version=no
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=no
9663 # This implies no fast_install, which is unacceptable.
9664 # Some rework will be needed to allow for fast_install
9665 # before this can be enabled.
9666 hardcode_into_libs=yes
9667
9668 # Append ld.so.conf contents to the search path
9669 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009670 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 +00009671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9672 fi
9673
9674 # We used to test for /lib/ld.so.1 and disable shared libraries on
9675 # powerpc, because MkLinux only supported shared libraries with the
9676 # GNU dynamic linker. Since this was broken with cross compilers,
9677 # most powerpc-linux boxes support dynamic linking these days and
9678 # people can always --disable-shared, the test was removed, and we
9679 # assume the GNU/Linux dynamic linker is in use.
9680 dynamic_linker='GNU/Linux ld.so'
9681 ;;
9682
9683knetbsd*-gnu)
9684 version_type=linux
9685 need_lib_prefix=no
9686 need_version=no
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 shlibpath_overrides_runpath=no
9691 hardcode_into_libs=yes
9692 dynamic_linker='GNU ld.so'
9693 ;;
9694
9695netbsd*)
9696 version_type=sunos
9697 need_lib_prefix=no
9698 need_version=no
9699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9702 dynamic_linker='NetBSD (a.out) ld.so'
9703 else
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 dynamic_linker='NetBSD ld.elf_so'
9707 fi
9708 shlibpath_var=LD_LIBRARY_PATH
9709 shlibpath_overrides_runpath=yes
9710 hardcode_into_libs=yes
9711 ;;
9712
9713newsos6)
9714 version_type=linux
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 shlibpath_overrides_runpath=yes
9718 ;;
9719
9720nto-qnx*)
9721 version_type=linux
9722 need_lib_prefix=no
9723 need_version=no
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 shlibpath_var=LD_LIBRARY_PATH
9727 shlibpath_overrides_runpath=yes
9728 ;;
9729
9730openbsd*)
9731 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009732 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9735 case $host_os in
9736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9737 *) need_version=no ;;
9738 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9741 shlibpath_var=LD_LIBRARY_PATH
9742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9743 case $host_os in
9744 openbsd2.[89] | openbsd2.[89].*)
9745 shlibpath_overrides_runpath=no
9746 ;;
9747 *)
9748 shlibpath_overrides_runpath=yes
9749 ;;
9750 esac
9751 else
9752 shlibpath_overrides_runpath=yes
9753 fi
9754 ;;
9755
9756os2*)
9757 libname_spec='$name'
9758 shrext_cmds=".dll"
9759 need_lib_prefix=no
9760 library_names_spec='$libname${shared_ext} $libname.a'
9761 dynamic_linker='OS/2 ld.exe'
9762 shlibpath_var=LIBPATH
9763 ;;
9764
9765osf3* | osf4* | osf5*)
9766 version_type=osf
9767 need_lib_prefix=no
9768 need_version=no
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 shlibpath_var=LD_LIBRARY_PATH
9772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9774 ;;
9775
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776solaris*)
9777 version_type=linux
9778 need_lib_prefix=no
9779 need_version=no
9780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9781 soname_spec='${libname}${release}${shared_ext}$major'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=yes
9784 hardcode_into_libs=yes
9785 # ldd complains unless libraries are executable
9786 postinstall_cmds='chmod +x $lib'
9787 ;;
9788
9789sunos4*)
9790 version_type=sunos
9791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9793 shlibpath_var=LD_LIBRARY_PATH
9794 shlibpath_overrides_runpath=yes
9795 if test "$with_gnu_ld" = yes; then
9796 need_lib_prefix=no
9797 fi
9798 need_version=yes
9799 ;;
9800
Reid Spencera773bd52006-08-04 18:18:08 +00009801sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009802 version_type=linux
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 case $host_vendor in
9807 sni)
9808 shlibpath_overrides_runpath=no
9809 need_lib_prefix=no
9810 export_dynamic_flag_spec='${wl}-Blargedynsym'
9811 runpath_var=LD_RUN_PATH
9812 ;;
9813 siemens)
9814 need_lib_prefix=no
9815 ;;
9816 motorola)
9817 need_lib_prefix=no
9818 need_version=no
9819 shlibpath_overrides_runpath=no
9820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9821 ;;
9822 esac
9823 ;;
9824
9825sysv4*MP*)
9826 if test -d /usr/nec ;then
9827 version_type=linux
9828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9829 soname_spec='$libname${shared_ext}.$major'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 fi
9832 ;;
9833
Reid Spencera773bd52006-08-04 18:18:08 +00009834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9835 version_type=freebsd-elf
9836 need_lib_prefix=no
9837 need_version=no
9838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 shlibpath_var=LD_LIBRARY_PATH
9841 hardcode_into_libs=yes
9842 if test "$with_gnu_ld" = yes; then
9843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9844 shlibpath_overrides_runpath=no
9845 else
9846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9847 shlibpath_overrides_runpath=yes
9848 case $host_os in
9849 sco3.2v5*)
9850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9851 ;;
9852 esac
9853 fi
9854 sys_lib_dlsearch_path_spec='/usr/lib'
9855 ;;
9856
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857uts4*)
9858 version_type=linux
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860 soname_spec='${libname}${release}${shared_ext}$major'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 ;;
9863
9864*)
9865 dynamic_linker=no
9866 ;;
9867esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009868{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9869echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870test "$dynamic_linker" = no && can_build_shared=no
9871
Reid Spencera773bd52006-08-04 18:18:08 +00009872variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9873if test "$GCC" = yes; then
9874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9875fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876
Reid Spencera773bd52006-08-04 18:18:08 +00009877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009878{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9879echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9880if test "${libltdl_cv_shlibext+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009882else
9883
9884module=yes
9885eval libltdl_cv_shlibext=$shrext_cmds
9886
9887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009888{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9889echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890if test -n "$libltdl_cv_shlibext"; then
9891
9892cat >>confdefs.h <<_ACEOF
9893#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9894_ACEOF
9895
9896fi
9897
9898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009899{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9900echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9901if test "${libltdl_cv_shlibpath_var+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903else
9904 libltdl_cv_shlibpath_var="$shlibpath_var"
9905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009906{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9907echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908if test -n "$libltdl_cv_shlibpath_var"; then
9909
9910cat >>confdefs.h <<_ACEOF
9911#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9912_ACEOF
9913
9914fi
9915
9916
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009917{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9918echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9919if test "${libltdl_cv_sys_search_path+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921else
9922 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009924{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9925echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926if test -n "$libltdl_cv_sys_search_path"; then
9927 sys_search_path=
9928 for dir in $libltdl_cv_sys_search_path; do
9929 if test -z "$sys_search_path"; then
9930 sys_search_path="$dir"
9931 else
9932 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9933 fi
9934 done
9935
9936cat >>confdefs.h <<_ACEOF
9937#define LTDL_SYSSEARCHPATH "$sys_search_path"
9938_ACEOF
9939
9940fi
9941
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009942{ echo "$as_me:$LINENO: checking for objdir" >&5
9943echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9944if test "${libltdl_cv_objdir+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946else
9947 libltdl_cv_objdir="$objdir"
9948 if test -n "$objdir"; then
9949 :
9950 else
9951 rm -f .libs 2>/dev/null
9952 mkdir .libs 2>/dev/null
9953 if test -d .libs; then
9954 libltdl_cv_objdir=.libs
9955 else
9956 # MS-DOS does not allow filenames that begin with a dot.
9957 libltdl_cv_objdir=_libs
9958 fi
9959 rmdir .libs 2>/dev/null
9960 fi
9961
9962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009963{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9964echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009965
9966cat >>confdefs.h <<_ACEOF
9967#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9968_ACEOF
9969
9970
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971
9972
9973
9974
9975# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009976{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9977echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9978if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980else
9981
9982# These are sane defaults that work on at least a few old systems.
9983# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9984
9985# Character class describing NM global symbol codes.
9986symcode='[BCDEGRST]'
9987
9988# Regexp to match symbols that can be accessed directly from C.
9989sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9990
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991# Transform an extracted symbol line into a proper C declaration
9992lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9993
9994# Transform an extracted symbol line into symbol name and symbol address
9995lt_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'"
9996
9997# Define system-specific variables.
9998case $host_os in
9999aix*)
10000 symcode='[BCDT]'
10001 ;;
10002cygwin* | mingw* | pw32*)
10003 symcode='[ABCDGISTW]'
10004 ;;
10005hpux*) # Its linker distinguishes data from code symbols
10006 if test "$host_cpu" = ia64; then
10007 symcode='[ABCDEGRST]'
10008 fi
10009 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10010 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'"
10011 ;;
10012linux*)
10013 if test "$host_cpu" = ia64; then
10014 symcode='[ABCDGIRSTW]'
10015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10016 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'"
10017 fi
10018 ;;
10019irix* | nonstopux*)
10020 symcode='[BCDEGRST]'
10021 ;;
10022osf*)
10023 symcode='[BCDEGQRST]'
10024 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010025solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026 symcode='[BDRT]'
10027 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010028sco3.2v5*)
10029 symcode='[DT]'
10030 ;;
10031sysv4.2uw2*)
10032 symcode='[DT]'
10033 ;;
10034sysv5* | sco5v6* | unixware* | OpenUNIX*)
10035 symcode='[ABDT]'
10036 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010037sysv4)
10038 symcode='[DFNSTU]'
10039 ;;
10040esac
10041
10042# Handle CRLF in mingw tool chain
10043opt_cr=
10044case $build_os in
10045mingw*)
10046 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10047 ;;
10048esac
10049
10050# If we're using GNU nm, then use its standard symbol codes.
10051case `$NM -V 2>&1` in
10052*GNU* | *'with BFD'*)
10053 symcode='[ABCDGIRSTW]' ;;
10054esac
10055
10056# Try without a prefix undercore, then with it.
10057for ac_symprfx in "" "_"; do
10058
Reid Spencera773bd52006-08-04 18:18:08 +000010059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10060 symxfrm="\\1 $ac_symprfx\\2 \\2"
10061
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010062 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010063 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 +000010064
10065 # Check to see that the pipe works correctly.
10066 pipe_works=no
10067
10068 rm -f conftest*
10069 cat > conftest.$ac_ext <<EOF
10070#ifdef __cplusplus
10071extern "C" {
10072#endif
10073char nm_test_var;
10074void nm_test_func(){}
10075#ifdef __cplusplus
10076}
10077#endif
10078int main(){nm_test_var='a';nm_test_func();return(0);}
10079EOF
10080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 (eval $ac_compile) 2>&5
10083 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086 # Now try to grab the symbols.
10087 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010088 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 +000010089 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10090 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 # Try sorting and uniquifying the output.
10094 if sort "$nlist" | uniq > "$nlist"T; then
10095 mv -f "$nlist"T "$nlist"
10096 else
10097 rm -f "$nlist"T
10098 fi
10099
10100 # Make sure that we snagged all the symbols we need.
10101 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10102 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10103 cat <<EOF > conftest.$ac_ext
10104#ifdef __cplusplus
10105extern "C" {
10106#endif
10107
10108EOF
10109 # Now generate the symbol file.
10110 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10111
10112 cat <<EOF >> conftest.$ac_ext
10113#if defined (__STDC__) && __STDC__
10114# define lt_ptr_t void *
10115#else
10116# define lt_ptr_t char *
10117# define const
10118#endif
10119
10120/* The mapping between symbol names and symbols. */
10121const struct {
10122 const char *name;
10123 lt_ptr_t address;
10124}
10125lt_preloaded_symbols[] =
10126{
10127EOF
10128 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10129 cat <<\EOF >> conftest.$ac_ext
10130 {0, (lt_ptr_t) 0}
10131};
10132
10133#ifdef __cplusplus
10134}
10135#endif
10136EOF
10137 # Now try linking the two files.
10138 mv conftest.$ac_objext conftstm.$ac_objext
10139 lt_save_LIBS="$LIBS"
10140 lt_save_CFLAGS="$CFLAGS"
10141 LIBS="conftstm.$ac_objext"
10142 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144 (eval $ac_link) 2>&5
10145 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010148 pipe_works=yes
10149 fi
10150 LIBS="$lt_save_LIBS"
10151 CFLAGS="$lt_save_CFLAGS"
10152 else
10153 echo "cannot find nm_test_func in $nlist" >&5
10154 fi
10155 else
10156 echo "cannot find nm_test_var in $nlist" >&5
10157 fi
10158 else
10159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10160 fi
10161 else
10162 echo "$progname: failed program was:" >&5
10163 cat conftest.$ac_ext >&5
10164 fi
10165 rm -f conftest* conftst*
10166
10167 # Do not use the global_symbol_pipe unless it works.
10168 if test "$pipe_works" = yes; then
10169 break
10170 else
10171 lt_cv_sys_global_symbol_pipe=
10172 fi
10173done
10174
10175fi
10176
10177if test -z "$lt_cv_sys_global_symbol_pipe"; then
10178 lt_cv_sys_global_symbol_to_cdecl=
10179fi
10180if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181 { echo "$as_me:$LINENO: result: failed" >&5
10182echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010184 { echo "$as_me:$LINENO: result: ok" >&5
10185echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186fi
10187
10188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010189{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10190echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10191if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193else
10194 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10195 libltdl_cv_preloaded_symbols=yes
10196 else
10197 libltdl_cv_preloaded_symbols=no
10198 fi
10199
10200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010201{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10202echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010205cat >>confdefs.h <<\_ACEOF
10206#define HAVE_PRELOADED_SYMBOLS 1
10207_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208
10209fi
10210
10211LIBADD_DL=
10212
10213ac_ext=c
10214ac_cpp='$CPP $CPPFLAGS'
10215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218
10219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010220{ echo "$as_me:$LINENO: checking for shl_load" >&5
10221echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10222if test "${ac_cv_func_shl_load+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225 cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h. */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h. */
10231/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10233#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010235/* System header to define __stub macros and hopefully few prototypes,
10236 which can conflict with char shl_load (); below.
10237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10238 <limits.h> exists even on freestanding compilers. */
10239
10240#ifdef __STDC__
10241# include <limits.h>
10242#else
10243# include <assert.h>
10244#endif
10245
10246#undef shl_load
10247
10248/* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10251#ifdef __cplusplus
10252extern "C"
10253#endif
10254char shl_load ();
10255/* The GNU C library defines this for functions which it implements
10256 to always fail with ENOSYS. Some functions are actually named
10257 something starting with __ and the normal name is an alias. */
10258#if defined __stub_shl_load || defined __stub___shl_load
10259choke me
10260#endif
10261
10262int
10263main ()
10264{
10265return shl_load ();
10266 ;
10267 return 0;
10268}
10269_ACEOF
10270rm -f conftest.$ac_objext conftest$ac_exeext
10271if { (ac_try="$ac_link"
10272case "(($ac_try" in
10273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274 *) ac_try_echo=$ac_try;;
10275esac
10276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } &&
10284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest$ac_exeext'
10295 { (case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10298esac
10299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300 (eval "$ac_try") 2>&5
10301 ac_status=$?
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); }; }; then
10304 ac_cv_func_shl_load=yes
10305else
10306 echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_cv_func_shl_load=no
10310fi
10311
10312rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10314fi
10315{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10316echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10317if test $ac_cv_func_shl_load = yes; then
10318
10319cat >>confdefs.h <<\_ACEOF
10320#define HAVE_SHL_LOAD 1
10321_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322
10323else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010324 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10325echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10326if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010328else
10329 ac_check_lib_save_LIBS=$LIBS
10330LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010331cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336/* end confdefs.h. */
10337
Reid Spencera773bd52006-08-04 18:18:08 +000010338/* Override any GCC internal prototype to avoid an error.
10339 Use char because int might match the return type of a GCC
10340 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010341#ifdef __cplusplus
10342extern "C"
10343#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010344char shl_load ();
10345int
10346main ()
10347{
Reid Spencera773bd52006-08-04 18:18:08 +000010348return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349 ;
10350 return 0;
10351}
10352_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010353rm -f conftest.$ac_objext conftest$ac_exeext
10354if { (ac_try="$ac_link"
10355case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10358esac
10359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10361 ac_status=$?
10362 grep -v '^ *+' conftest.er1 >conftest.err
10363 rm -f conftest.er1
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } &&
10367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10368 { (case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371esac
10372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_try") 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_try") 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387 ac_cv_lib_dld_shl_load=yes
10388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010389 echo "$as_me: failed program was:" >&5
10390sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010394
Bill Wendlingebcceee2009-04-18 11:20:33 +000010395rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010396 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010397LIBS=$ac_check_lib_save_LIBS
10398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010399{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10400echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10401if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010403cat >>confdefs.h <<\_ACEOF
10404#define HAVE_SHL_LOAD 1
10405_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406
10407 LIBADD_DL="$LIBADD_DL -ldld"
10408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010409 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10410echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10411if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413else
10414 ac_check_lib_save_LIBS=$LIBS
10415LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010416cat >conftest.$ac_ext <<_ACEOF
10417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421/* end confdefs.h. */
10422
Reid Spencera773bd52006-08-04 18:18:08 +000010423/* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426#ifdef __cplusplus
10427extern "C"
10428#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429char dlopen ();
10430int
10431main ()
10432{
Reid Spencera773bd52006-08-04 18:18:08 +000010433return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434 ;
10435 return 0;
10436}
10437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010438rm -f conftest.$ac_objext conftest$ac_exeext
10439if { (ac_try="$ac_link"
10440case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443esac
10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10459 ac_status=$?
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; } &&
10462 { ac_try='test -s conftest$ac_exeext'
10463 { (case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10466esac
10467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468 (eval "$ac_try") 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472 ac_cv_lib_dl_dlopen=yes
10473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010479
Bill Wendlingebcceee2009-04-18 11:20:33 +000010480rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010481 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482LIBS=$ac_check_lib_save_LIBS
10483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010484{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10485echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10486if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010488cat >>confdefs.h <<\_ACEOF
10489#define HAVE_LIBDL 1
10490_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491
10492 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010494 cat >conftest.$ac_ext <<_ACEOF
10495/* confdefs.h. */
10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499/* end confdefs.h. */
10500#if HAVE_DLFCN_H
10501# include <dlfcn.h>
10502#endif
10503
10504int
10505main ()
10506{
10507dlopen(0, 0);
10508 ;
10509 return 0;
10510}
10511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010512rm -f conftest.$ac_objext conftest$ac_exeext
10513if { (ac_try="$ac_link"
10514case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517esac
10518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_link") 2>conftest.er1
10520 ac_status=$?
10521 grep -v '^ *+' conftest.er1 >conftest.err
10522 rm -f conftest.er1
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10527 { (case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530esac
10531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_try") 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; } &&
10536 { ac_try='test -s conftest$ac_exeext'
10537 { (case "(($ac_try" in
10538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539 *) ac_try_echo=$ac_try;;
10540esac
10541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542 (eval "$ac_try") 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010547cat >>confdefs.h <<\_ACEOF
10548#define HAVE_LIBDL 1
10549_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550 libltdl_cv_func_dlopen="yes"
10551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10556echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10557if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559else
10560 ac_check_lib_save_LIBS=$LIBS
10561LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010562cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h. */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567/* end confdefs.h. */
10568
Reid Spencera773bd52006-08-04 18:18:08 +000010569/* Override any GCC internal prototype to avoid an error.
10570 Use char because int might match the return type of a GCC
10571 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572#ifdef __cplusplus
10573extern "C"
10574#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575char dlopen ();
10576int
10577main ()
10578{
Reid Spencera773bd52006-08-04 18:18:08 +000010579return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580 ;
10581 return 0;
10582}
10583_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010584rm -f conftest.$ac_objext conftest$ac_exeext
10585if { (ac_try="$ac_link"
10586case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10589esac
10590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
10592 ac_status=$?
10593 grep -v '^ *+' conftest.er1 >conftest.err
10594 rm -f conftest.er1
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10602esac
10603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612esac
10613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010618 ac_cv_lib_svld_dlopen=yes
10619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010620 echo "$as_me: failed program was:" >&5
10621sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010625
Bill Wendlingebcceee2009-04-18 11:20:33 +000010626rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010627 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010628LIBS=$ac_check_lib_save_LIBS
10629fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010630{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10631echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10632if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010634cat >>confdefs.h <<\_ACEOF
10635#define HAVE_LIBDL 1
10636_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637
10638 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10639else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010640 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10641echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10642if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644else
10645 ac_check_lib_save_LIBS=$LIBS
10646LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652/* end confdefs.h. */
10653
Reid Spencera773bd52006-08-04 18:18:08 +000010654/* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657#ifdef __cplusplus
10658extern "C"
10659#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660char dld_link ();
10661int
10662main ()
10663{
Reid Spencera773bd52006-08-04 18:18:08 +000010664return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 ;
10666 return 0;
10667}
10668_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010669rm -f conftest.$ac_objext conftest$ac_exeext
10670if { (ac_try="$ac_link"
10671case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674esac
10675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest$ac_exeext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697esac
10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 ac_cv_lib_dld_dld_link=yes
10704else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010710
Bill Wendlingebcceee2009-04-18 11:20:33 +000010711rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010712 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713LIBS=$ac_check_lib_save_LIBS
10714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010715{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10716echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10717if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010719cat >>confdefs.h <<\_ACEOF
10720#define HAVE_DLD 1
10721_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010722
10723 LIBADD_DL="$LIBADD_DL -ldld"
10724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010725 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10726echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10727if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10729else
10730 cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h. */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h. */
10736/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10738#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010739
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010740/* System header to define __stub macros and hopefully few prototypes,
10741 which can conflict with char _dyld_func_lookup (); below.
10742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10743 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010745#ifdef __STDC__
10746# include <limits.h>
10747#else
10748# include <assert.h>
10749#endif
10750
10751#undef _dyld_func_lookup
10752
10753/* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10756#ifdef __cplusplus
10757extern "C"
10758#endif
10759char _dyld_func_lookup ();
10760/* The GNU C library defines this for functions which it implements
10761 to always fail with ENOSYS. Some functions are actually named
10762 something starting with __ and the normal name is an alias. */
10763#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10764choke me
10765#endif
10766
10767int
10768main ()
10769{
10770return _dyld_func_lookup ();
10771 ;
10772 return 0;
10773}
10774_ACEOF
10775rm -f conftest.$ac_objext conftest$ac_exeext
10776if { (ac_try="$ac_link"
10777case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_link") 2>conftest.er1
10783 ac_status=$?
10784 grep -v '^ *+' conftest.er1 >conftest.err
10785 rm -f conftest.er1
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } &&
10789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10790 { (case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793esac
10794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_try") 2>&5
10796 ac_status=$?
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; } &&
10799 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10809 ac_cv_func__dyld_func_lookup=yes
10810else
10811 echo "$as_me: failed program was:" >&5
10812sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815fi
Reid Spencera773bd52006-08-04 18:18:08 +000010816
Bill Wendlingebcceee2009-04-18 11:20:33 +000010817rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010818 conftest$ac_exeext conftest.$ac_ext
10819fi
10820{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10821echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10822if test $ac_cv_func__dyld_func_lookup = yes; then
10823
10824cat >>confdefs.h <<\_ACEOF
10825#define HAVE_DYLD 1
10826_ACEOF
10827
10828fi
10829
10830
10831fi
10832
10833
10834fi
10835
10836
10837fi
10838
10839rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841
10842fi
10843
10844
10845fi
10846
10847
10848fi
10849
10850
10851if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10852then
10853 lt_save_LIBS="$LIBS"
10854 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010855
10856for ac_func in dlerror
10857do
10858as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10859{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10860echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10861if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864 cat >conftest.$ac_ext <<_ACEOF
10865/* confdefs.h. */
10866_ACEOF
10867cat confdefs.h >>conftest.$ac_ext
10868cat >>conftest.$ac_ext <<_ACEOF
10869/* end confdefs.h. */
10870/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10872#define $ac_func innocuous_$ac_func
10873
10874/* System header to define __stub macros and hopefully few prototypes,
10875 which can conflict with char $ac_func (); below.
10876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10877 <limits.h> exists even on freestanding compilers. */
10878
10879#ifdef __STDC__
10880# include <limits.h>
10881#else
10882# include <assert.h>
10883#endif
10884
10885#undef $ac_func
10886
10887/* Override any GCC internal prototype to avoid an error.
10888 Use char because int might match the return type of a GCC
10889 builtin and then its argument prototype would still apply. */
10890#ifdef __cplusplus
10891extern "C"
10892#endif
10893char $ac_func ();
10894/* The GNU C library defines this for functions which it implements
10895 to always fail with ENOSYS. Some functions are actually named
10896 something starting with __ and the normal name is an alias. */
10897#if defined __stub_$ac_func || defined __stub___$ac_func
10898choke me
10899#endif
10900
10901int
10902main ()
10903{
10904return $ac_func ();
10905 ;
10906 return 0;
10907}
10908_ACEOF
10909rm -f conftest.$ac_objext conftest$ac_exeext
10910if { (ac_try="$ac_link"
10911case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914esac
10915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_link") 2>conftest.er1
10917 ac_status=$?
10918 grep -v '^ *+' conftest.er1 >conftest.err
10919 rm -f conftest.er1
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10924 { (case "(($ac_try" in
10925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10927esac
10928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_try") 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; } &&
10933 { ac_try='test -s conftest$ac_exeext'
10934 { (case "(($ac_try" in
10935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936 *) ac_try_echo=$ac_try;;
10937esac
10938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939 (eval "$ac_try") 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 eval "$as_ac_var=yes"
10944else
10945 echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 eval "$as_ac_var=no"
10949fi
10950
10951rm -f core conftest.err conftest.$ac_objext \
10952 conftest$ac_exeext conftest.$ac_ext
10953fi
10954ac_res=`eval echo '${'$as_ac_var'}'`
10955 { echo "$as_me:$LINENO: result: $ac_res" >&5
10956echo "${ECHO_T}$ac_res" >&6; }
10957if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960_ACEOF
10961
10962fi
10963done
10964
10965 LIBS="$lt_save_LIBS"
10966fi
10967ac_ext=c
10968ac_cpp='$CPP $CPPFLAGS'
10969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10971ac_compiler_gnu=$ac_cv_c_compiler_gnu
10972
10973
10974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010975{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10976echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10977if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979else
10980 ac_cv_sys_symbol_underscore=no
10981 cat > conftest.$ac_ext <<EOF
10982void nm_test_func(){}
10983int main(){nm_test_func;return 0;}
10984EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986 (eval $ac_compile) 2>&5
10987 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990 # Now try to grab the symbols.
10991 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010992 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 +000010993 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10994 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997 # See whether the symbols have a leading underscore.
10998 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10999 ac_cv_sys_symbol_underscore=yes
11000 else
11001 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11002 :
11003 else
11004 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11005 fi
11006 fi
11007 else
11008 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11009 fi
11010 else
11011 echo "configure: failed program was:" >&5
11012 cat conftest.c >&5
11013 fi
11014 rm -rf conftest*
11015
11016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011017{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11018echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019
11020
11021if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11022 if test x"$libltdl_cv_func_dlopen" = xyes ||
11023 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011024 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11025echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11026if test "${libltdl_cv_need_uscore+set}" = set; then
11027 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011028else
11029 libltdl_cv_need_uscore=unknown
11030 save_LIBS="$LIBS"
11031 LIBS="$LIBS $LIBADD_DL"
11032 if test "$cross_compiling" = yes; then :
11033 libltdl_cv_need_uscore=cross
11034else
11035 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11036 lt_status=$lt_dlunknown
11037 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskin2155d452010-02-18 04:43:02 +000011038#line 11038 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039#include "confdefs.h"
11040
11041#if HAVE_DLFCN_H
11042#include <dlfcn.h>
11043#endif
11044
11045#include <stdio.h>
11046
11047#ifdef RTLD_GLOBAL
11048# define LT_DLGLOBAL RTLD_GLOBAL
11049#else
11050# ifdef DL_GLOBAL
11051# define LT_DLGLOBAL DL_GLOBAL
11052# else
11053# define LT_DLGLOBAL 0
11054# endif
11055#endif
11056
11057/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11058 find out it does not work in some platform. */
11059#ifndef LT_DLLAZY_OR_NOW
11060# ifdef RTLD_LAZY
11061# define LT_DLLAZY_OR_NOW RTLD_LAZY
11062# else
11063# ifdef DL_LAZY
11064# define LT_DLLAZY_OR_NOW DL_LAZY
11065# else
11066# ifdef RTLD_NOW
11067# define LT_DLLAZY_OR_NOW RTLD_NOW
11068# else
11069# ifdef DL_NOW
11070# define LT_DLLAZY_OR_NOW DL_NOW
11071# else
11072# define LT_DLLAZY_OR_NOW 0
11073# endif
11074# endif
11075# endif
11076# endif
11077#endif
11078
11079#ifdef __cplusplus
11080extern "C" void exit (int);
11081#endif
11082
11083void fnord() { int i=42;}
11084int main ()
11085{
11086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11087 int status = $lt_dlunknown;
11088
11089 if (self)
11090 {
11091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11092 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11093 /* dlclose (self); */
11094 }
Reid Spencera773bd52006-08-04 18:18:08 +000011095 else
11096 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011097
11098 exit (status);
11099}
11100EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011102 (eval $ac_link) 2>&5
11103 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011106 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107 lt_status=$?
11108 case x$lt_status in
11109 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11110 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011111 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112 esac
11113 else :
11114 # compilation failed
11115
11116 fi
11117fi
11118rm -fr conftest*
11119
11120 LIBS="$save_LIBS"
11121
11122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011123{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11124echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125 fi
11126fi
11127
11128if test x"$libltdl_cv_need_uscore" = xyes; then
11129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011130cat >>confdefs.h <<\_ACEOF
11131#define NEED_USCORE 1
11132_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133
11134fi
11135
11136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011137{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11138echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11139if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141else
11142 # PORTME does your system automatically load deplibs for dlopen?
11143 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11144 # For now, we just catch OSes we know something about -- in the
11145 # future, we'll try test this programmatically.
11146 libltdl_cv_sys_dlopen_deplibs=unknown
11147 case "$host_os" in
11148 aix3*|aix4.1.*|aix4.2.*)
11149 # Unknown whether this is true for these versions of AIX, but
11150 # we want this `case' here to explicitly catch those versions.
11151 libltdl_cv_sys_dlopen_deplibs=unknown
11152 ;;
11153 aix[45]*)
11154 libltdl_cv_sys_dlopen_deplibs=yes
11155 ;;
11156 darwin*)
11157 # Assuming the user has installed a libdl from somewhere, this is true
11158 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11159 libltdl_cv_sys_dlopen_deplibs=yes
11160 ;;
11161 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11162 # GNU and its variants, using gnu ld.so (Glibc)
11163 libltdl_cv_sys_dlopen_deplibs=yes
11164 ;;
11165 hpux10*|hpux11*)
11166 libltdl_cv_sys_dlopen_deplibs=yes
11167 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011168 interix*)
11169 libltdl_cv_sys_dlopen_deplibs=yes
11170 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171 irix[12345]*|irix6.[01]*)
11172 # Catch all versions of IRIX before 6.2, and indicate that we don't
11173 # know how it worked for any of those versions.
11174 libltdl_cv_sys_dlopen_deplibs=unknown
11175 ;;
11176 irix*)
11177 # The case above catches anything before 6.2, and it's known that
11178 # at 6.2 and later dlopen does load deplibs.
11179 libltdl_cv_sys_dlopen_deplibs=yes
11180 ;;
11181 netbsd*)
11182 libltdl_cv_sys_dlopen_deplibs=yes
11183 ;;
11184 openbsd*)
11185 libltdl_cv_sys_dlopen_deplibs=yes
11186 ;;
11187 osf[1234]*)
11188 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11189 # it did *not* use an RPATH in a shared library to find objects the
11190 # library depends on, so we explictly say `no'.
11191 libltdl_cv_sys_dlopen_deplibs=no
11192 ;;
11193 osf5.0|osf5.0a|osf5.1)
11194 # dlopen *does* load deplibs and with the right loader patch applied
11195 # it even uses RPATH in a shared library to search for shared objects
11196 # that the library depends on, but there's no easy way to know if that
11197 # patch is installed. Since this is the case, all we can really
11198 # say is unknown -- it depends on the patch being installed. If
11199 # it is, this changes to `yes'. Without it, it would be `no'.
11200 libltdl_cv_sys_dlopen_deplibs=unknown
11201 ;;
11202 osf*)
11203 # the two cases above should catch all versions of osf <= 5.1. Read
11204 # the comments above for what we know about them.
11205 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11206 # is used to find them so we can finally say `yes'.
11207 libltdl_cv_sys_dlopen_deplibs=yes
11208 ;;
11209 solaris*)
11210 libltdl_cv_sys_dlopen_deplibs=yes
11211 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11213 libltdl_cv_sys_dlopen_deplibs=yes
11214 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 esac
11216
11217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011218{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11219echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011222cat >>confdefs.h <<\_ACEOF
11223#define LTDL_DLOPEN_DEPLIBS 1
11224_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225
11226fi
11227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011228
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011230do
11231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237fi
11238ac_res=`eval echo '${'$as_ac_Header'}'`
11239 { echo "$as_me:$LINENO: result: $ac_res" >&5
11240echo "${ECHO_T}$ac_res" >&6; }
11241else
11242 # Is the header compilable?
11243{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11245cat >conftest.$ac_ext <<_ACEOF
11246/* confdefs.h. */
11247_ACEOF
11248cat confdefs.h >>conftest.$ac_ext
11249cat >>conftest.$ac_ext <<_ACEOF
11250/* end confdefs.h. */
11251$ac_includes_default
11252#include <$ac_header>
11253_ACEOF
11254rm -f conftest.$ac_objext
11255if { (ac_try="$ac_compile"
11256case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
11260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_compile") 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
11268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11269 { (case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_try") 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; } &&
11278 { ac_try='test -s conftest.$ac_objext'
11279 { (case "(($ac_try" in
11280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281 *) ac_try_echo=$ac_try;;
11282esac
11283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284 (eval "$ac_try") 2>&5
11285 ac_status=$?
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); }; }; then
11288 ac_header_compiler=yes
11289else
11290 echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
11293 ac_header_compiler=no
11294fi
11295
11296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11297{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11298echo "${ECHO_T}$ac_header_compiler" >&6; }
11299
11300# Is the header present?
11301{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11303cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309#include <$ac_header>
11310_ACEOF
11311if { (ac_try="$ac_cpp conftest.$ac_ext"
11312case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); } >/dev/null; then
11324 if test -s conftest.err; then
11325 ac_cpp_err=$ac_c_preproc_warn_flag
11326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11327 else
11328 ac_cpp_err=
11329 fi
11330else
11331 ac_cpp_err=yes
11332fi
11333if test -z "$ac_cpp_err"; then
11334 ac_header_preproc=yes
11335else
11336 echo "$as_me: failed program was:" >&5
11337sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 ac_header_preproc=no
11340fi
11341
11342rm -f conftest.err conftest.$ac_ext
11343{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344echo "${ECHO_T}$ac_header_preproc" >&6; }
11345
11346# So? What about this header?
11347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348 yes:no: )
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11354 ;;
11355 no:yes:* )
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368 ( cat <<\_ASBOX
11369## ----------------------------------- ##
11370## Report this to llvmbugs@cs.uiuc.edu ##
11371## ----------------------------------- ##
11372_ASBOX
11373 ) | sed "s/^/$as_me: WARNING: /" >&2
11374 ;;
11375esac
11376{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
11381 eval "$as_ac_Header=\$ac_header_preproc"
11382fi
11383ac_res=`eval echo '${'$as_ac_Header'}'`
11384 { echo "$as_me:$LINENO: result: $ac_res" >&5
11385echo "${ECHO_T}$ac_res" >&6; }
11386
11387fi
11388if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011389 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391_ACEOF
11392
11393fi
11394
11395done
11396
11397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011398{ echo "$as_me:$LINENO: checking for error_t" >&5
11399echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11400if test "${ac_cv_type_error_t+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410# include <argz.h>
11411#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011412
11413typedef error_t ac__type_new_;
11414int
11415main ()
11416{
11417if ((ac__type_new_ *) 0)
11418 return 0;
11419if (sizeof (ac__type_new_))
11420 return 0;
11421 ;
11422 return 0;
11423}
11424_ACEOF
11425rm -f conftest.$ac_objext
11426if { (ac_try="$ac_compile"
11427case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_compile") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11446 ac_status=$?
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; } &&
11449 { ac_try='test -s conftest.$ac_objext'
11450 { (case "(($ac_try" in
11451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11453esac
11454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 ac_cv_type_error_t=yes
11460else
11461 echo "$as_me: failed program was:" >&5
11462sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 ac_cv_type_error_t=no
11465fi
11466
11467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468fi
11469{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11470echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11471if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472
11473cat >>confdefs.h <<_ACEOF
11474#define HAVE_ERROR_T 1
11475_ACEOF
11476
11477
11478else
11479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011480cat >>confdefs.h <<\_ACEOF
11481#define error_t int
11482_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483
11484fi
11485
11486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011487
11488
11489
11490
11491
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011493do
11494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11499else
11500 cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11508#define $ac_func innocuous_$ac_func
11509
11510/* System header to define __stub macros and hopefully few prototypes,
11511 which can conflict with char $ac_func (); below.
11512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11513 <limits.h> exists even on freestanding compilers. */
11514
11515#ifdef __STDC__
11516# include <limits.h>
11517#else
11518# include <assert.h>
11519#endif
11520
11521#undef $ac_func
11522
11523/* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526#ifdef __cplusplus
11527extern "C"
11528#endif
11529char $ac_func ();
11530/* The GNU C library defines this for functions which it implements
11531 to always fail with ENOSYS. Some functions are actually named
11532 something starting with __ and the normal name is an alias. */
11533#if defined __stub_$ac_func || defined __stub___$ac_func
11534choke me
11535#endif
11536
11537int
11538main ()
11539{
11540return $ac_func ();
11541 ;
11542 return 0;
11543}
11544_ACEOF
11545rm -f conftest.$ac_objext conftest$ac_exeext
11546if { (ac_try="$ac_link"
11547case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550esac
11551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_link") 2>conftest.er1
11553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560 { (case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563esac
11564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_try") 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest$ac_exeext'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 eval "$as_ac_var=yes"
11580else
11581 echo "$as_me: failed program was:" >&5
11582sed 's/^/| /' conftest.$ac_ext >&5
11583
11584 eval "$as_ac_var=no"
11585fi
11586
11587rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589fi
11590ac_res=`eval echo '${'$as_ac_var'}'`
11591 { echo "$as_me:$LINENO: result: $ac_res" >&5
11592echo "${ECHO_T}$ac_res" >&6; }
11593if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596_ACEOF
11597
11598fi
11599done
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011620
11621
11622
11623
11624
11625
11626
11627
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11629 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011630do
11631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11637fi
11638ac_res=`eval echo '${'$as_ac_Header'}'`
11639 { echo "$as_me:$LINENO: result: $ac_res" >&5
11640echo "${ECHO_T}$ac_res" >&6; }
11641else
11642 # Is the header compilable?
11643{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11645cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651$ac_includes_default
11652#include <$ac_header>
11653_ACEOF
11654rm -f conftest.$ac_objext
11655if { (ac_try="$ac_compile"
11656case "(($ac_try" in
11657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658 *) ac_try_echo=$ac_try;;
11659esac
11660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_compile") 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11672esac
11673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11675 ac_status=$?
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; } &&
11678 { ac_try='test -s conftest.$ac_objext'
11679 { (case "(($ac_try" in
11680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681 *) ac_try_echo=$ac_try;;
11682esac
11683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_try") 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_header_compiler=yes
11689else
11690 echo "$as_me: failed program was:" >&5
11691sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 ac_header_compiler=no
11694fi
11695
11696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11698echo "${ECHO_T}$ac_header_compiler" >&6; }
11699
11700# Is the header present?
11701{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11703cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
11709#include <$ac_header>
11710_ACEOF
11711if { (ac_try="$ac_cpp conftest.$ac_ext"
11712case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11715esac
11716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11718 ac_status=$?
11719 grep -v '^ *+' conftest.er1 >conftest.err
11720 rm -f conftest.er1
11721 cat conftest.err >&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } >/dev/null; then
11724 if test -s conftest.err; then
11725 ac_cpp_err=$ac_c_preproc_warn_flag
11726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11727 else
11728 ac_cpp_err=
11729 fi
11730else
11731 ac_cpp_err=yes
11732fi
11733if test -z "$ac_cpp_err"; then
11734 ac_header_preproc=yes
11735else
11736 echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739 ac_header_preproc=no
11740fi
11741
11742rm -f conftest.err conftest.$ac_ext
11743{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11744echo "${ECHO_T}$ac_header_preproc" >&6; }
11745
11746# So? What about this header?
11747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11748 yes:no: )
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11753 ac_header_preproc=yes
11754 ;;
11755 no:yes:* )
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11759echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11763echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11768 ( cat <<\_ASBOX
11769## ----------------------------------- ##
11770## Report this to llvmbugs@cs.uiuc.edu ##
11771## ----------------------------------- ##
11772_ASBOX
11773 ) | sed "s/^/$as_me: WARNING: /" >&2
11774 ;;
11775esac
11776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780else
11781 eval "$as_ac_Header=\$ac_header_preproc"
11782fi
11783ac_res=`eval echo '${'$as_ac_Header'}'`
11784 { echo "$as_me:$LINENO: result: $ac_res" >&5
11785echo "${ECHO_T}$ac_res" >&6; }
11786
11787fi
11788if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011791_ACEOF
11792
11793fi
11794
11795done
11796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011797
11798
11799
11800
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011802do
11803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809fi
11810ac_res=`eval echo '${'$as_ac_Header'}'`
11811 { echo "$as_me:$LINENO: result: $ac_res" >&5
11812echo "${ECHO_T}$ac_res" >&6; }
11813else
11814 # Is the header compilable?
11815{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11816echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11817cat >conftest.$ac_ext <<_ACEOF
11818/* confdefs.h. */
11819_ACEOF
11820cat confdefs.h >>conftest.$ac_ext
11821cat >>conftest.$ac_ext <<_ACEOF
11822/* end confdefs.h. */
11823$ac_includes_default
11824#include <$ac_header>
11825_ACEOF
11826rm -f conftest.$ac_objext
11827if { (ac_try="$ac_compile"
11828case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831esac
11832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_compile") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } &&
11840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11841 { (case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11844esac
11845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_try") 2>&5
11847 ac_status=$?
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); }; } &&
11850 { ac_try='test -s conftest.$ac_objext'
11851 { (case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854esac
11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_try") 2>&5
11857 ac_status=$?
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 ac_header_compiler=yes
11861else
11862 echo "$as_me: failed program was:" >&5
11863sed 's/^/| /' conftest.$ac_ext >&5
11864
11865 ac_header_compiler=no
11866fi
11867
11868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11869{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11870echo "${ECHO_T}$ac_header_compiler" >&6; }
11871
11872# Is the header present?
11873{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11875cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
11881#include <$ac_header>
11882_ACEOF
11883if { (ac_try="$ac_cpp conftest.$ac_ext"
11884case "(($ac_try" in
11885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886 *) ac_try_echo=$ac_try;;
11887esac
11888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } >/dev/null; then
11896 if test -s conftest.err; then
11897 ac_cpp_err=$ac_c_preproc_warn_flag
11898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11899 else
11900 ac_cpp_err=
11901 fi
11902else
11903 ac_cpp_err=yes
11904fi
11905if test -z "$ac_cpp_err"; then
11906 ac_header_preproc=yes
11907else
11908 echo "$as_me: failed program was:" >&5
11909sed 's/^/| /' conftest.$ac_ext >&5
11910
11911 ac_header_preproc=no
11912fi
11913
11914rm -f conftest.err conftest.$ac_ext
11915{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11916echo "${ECHO_T}$ac_header_preproc" >&6; }
11917
11918# So? What about this header?
11919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11920 yes:no: )
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11925 ac_header_preproc=yes
11926 ;;
11927 no:yes:* )
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11940 ( cat <<\_ASBOX
11941## ----------------------------------- ##
11942## Report this to llvmbugs@cs.uiuc.edu ##
11943## ----------------------------------- ##
11944_ASBOX
11945 ) | sed "s/^/$as_me: WARNING: /" >&2
11946 ;;
11947esac
11948{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 eval "$as_ac_Header=\$ac_header_preproc"
11954fi
11955ac_res=`eval echo '${'$as_ac_Header'}'`
11956 { echo "$as_me:$LINENO: result: $ac_res" >&5
11957echo "${ECHO_T}$ac_res" >&6; }
11958
11959fi
11960if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011961 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963_ACEOF
11964
11965fi
11966
11967done
11968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011969
11970
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011972do
11973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11979fi
11980ac_res=`eval echo '${'$as_ac_Header'}'`
11981 { echo "$as_me:$LINENO: result: $ac_res" >&5
11982echo "${ECHO_T}$ac_res" >&6; }
11983else
11984 # Is the header compilable?
11985{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11987cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */
11993$ac_includes_default
11994#include <$ac_header>
11995_ACEOF
11996rm -f conftest.$ac_objext
11997if { (ac_try="$ac_compile"
11998case "(($ac_try" in
11999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12000 *) ac_try_echo=$ac_try;;
12001esac
12002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12003 (eval "$ac_compile") 2>conftest.er1
12004 ac_status=$?
12005 grep -v '^ *+' conftest.er1 >conftest.err
12006 rm -f conftest.er1
12007 cat conftest.err >&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12017 ac_status=$?
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; } &&
12020 { ac_try='test -s conftest.$ac_objext'
12021 { (case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12024esac
12025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_try") 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 ac_header_compiler=yes
12031else
12032 echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_header_compiler=no
12036fi
12037
12038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040echo "${ECHO_T}$ac_header_compiler" >&6; }
12041
12042# Is the header present?
12043{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12045cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h. */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h. */
12051#include <$ac_header>
12052_ACEOF
12053if { (ac_try="$ac_cpp conftest.$ac_ext"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } >/dev/null; then
12066 if test -s conftest.err; then
12067 ac_cpp_err=$ac_c_preproc_warn_flag
12068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12069 else
12070 ac_cpp_err=
12071 fi
12072else
12073 ac_cpp_err=yes
12074fi
12075if test -z "$ac_cpp_err"; then
12076 ac_header_preproc=yes
12077else
12078 echo "$as_me: failed program was:" >&5
12079sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_header_preproc=no
12082fi
12083
12084rm -f conftest.err conftest.$ac_ext
12085{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12086echo "${ECHO_T}$ac_header_preproc" >&6; }
12087
12088# So? What about this header?
12089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12090 yes:no: )
12091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12095 ac_header_preproc=yes
12096 ;;
12097 no:yes:* )
12098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12110 ( cat <<\_ASBOX
12111## ----------------------------------- ##
12112## Report this to llvmbugs@cs.uiuc.edu ##
12113## ----------------------------------- ##
12114_ASBOX
12115 ) | sed "s/^/$as_me: WARNING: /" >&2
12116 ;;
12117esac
12118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12122else
12123 eval "$as_ac_Header=\$ac_header_preproc"
12124fi
12125ac_res=`eval echo '${'$as_ac_Header'}'`
12126 { echo "$as_me:$LINENO: result: $ac_res" >&5
12127echo "${ECHO_T}$ac_res" >&6; }
12128
12129fi
12130if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133_ACEOF
12134 break
12135fi
12136
12137done
12138
12139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012140
12141
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012143do
12144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12145{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12147if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149else
12150 cat >conftest.$ac_ext <<_ACEOF
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */
12156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12158#define $ac_func innocuous_$ac_func
12159
12160/* System header to define __stub macros and hopefully few prototypes,
12161 which can conflict with char $ac_func (); below.
12162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12163 <limits.h> exists even on freestanding compilers. */
12164
12165#ifdef __STDC__
12166# include <limits.h>
12167#else
12168# include <assert.h>
12169#endif
12170
12171#undef $ac_func
12172
12173/* Override any GCC internal prototype to avoid an error.
12174 Use char because int might match the return type of a GCC
12175 builtin and then its argument prototype would still apply. */
12176#ifdef __cplusplus
12177extern "C"
12178#endif
12179char $ac_func ();
12180/* The GNU C library defines this for functions which it implements
12181 to always fail with ENOSYS. Some functions are actually named
12182 something starting with __ and the normal name is an alias. */
12183#if defined __stub_$ac_func || defined __stub___$ac_func
12184choke me
12185#endif
12186
12187int
12188main ()
12189{
12190return $ac_func ();
12191 ;
12192 return 0;
12193}
12194_ACEOF
12195rm -f conftest.$ac_objext conftest$ac_exeext
12196if { (ac_try="$ac_link"
12197case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200esac
12201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213esac
12214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223esac
12224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 eval "$as_ac_var=yes"
12230else
12231 echo "$as_me: failed program was:" >&5
12232sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 eval "$as_ac_var=no"
12235fi
12236
12237rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239fi
12240ac_res=`eval echo '${'$as_ac_var'}'`
12241 { echo "$as_me:$LINENO: result: $ac_res" >&5
12242echo "${ECHO_T}$ac_res" >&6; }
12243if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012244 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246_ACEOF
12247 break
12248fi
12249done
12250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251
12252
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012253for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012254do
12255as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12256{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12257echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12258if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260else
12261 cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h. */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
12266/* end confdefs.h. */
12267/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12269#define $ac_func innocuous_$ac_func
12270
12271/* System header to define __stub macros and hopefully few prototypes,
12272 which can conflict with char $ac_func (); below.
12273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12274 <limits.h> exists even on freestanding compilers. */
12275
12276#ifdef __STDC__
12277# include <limits.h>
12278#else
12279# include <assert.h>
12280#endif
12281
12282#undef $ac_func
12283
12284/* Override any GCC internal prototype to avoid an error.
12285 Use char because int might match the return type of a GCC
12286 builtin and then its argument prototype would still apply. */
12287#ifdef __cplusplus
12288extern "C"
12289#endif
12290char $ac_func ();
12291/* The GNU C library defines this for functions which it implements
12292 to always fail with ENOSYS. Some functions are actually named
12293 something starting with __ and the normal name is an alias. */
12294#if defined __stub_$ac_func || defined __stub___$ac_func
12295choke me
12296#endif
12297
12298int
12299main ()
12300{
12301return $ac_func ();
12302 ;
12303 return 0;
12304}
12305_ACEOF
12306rm -f conftest.$ac_objext conftest$ac_exeext
12307if { (ac_try="$ac_link"
12308case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311esac
12312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_link") 2>conftest.er1
12314 ac_status=$?
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
12320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12321 { (case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324esac
12325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_try") 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest$ac_exeext'
12331 { (case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334esac
12335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_try") 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 eval "$as_ac_var=yes"
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 eval "$as_ac_var=no"
12346fi
12347
12348rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350fi
12351ac_res=`eval echo '${'$as_ac_var'}'`
12352 { echo "$as_me:$LINENO: result: $ac_res" >&5
12353echo "${ECHO_T}$ac_res" >&6; }
12354if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012355 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012357_ACEOF
12358 break
12359fi
12360done
12361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012362
12363
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012364for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012365do
12366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12367{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12369if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371else
12372 cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
12378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12380#define $ac_func innocuous_$ac_func
12381
12382/* System header to define __stub macros and hopefully few prototypes,
12383 which can conflict with char $ac_func (); below.
12384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12385 <limits.h> exists even on freestanding compilers. */
12386
12387#ifdef __STDC__
12388# include <limits.h>
12389#else
12390# include <assert.h>
12391#endif
12392
12393#undef $ac_func
12394
12395/* Override any GCC internal prototype to avoid an error.
12396 Use char because int might match the return type of a GCC
12397 builtin and then its argument prototype would still apply. */
12398#ifdef __cplusplus
12399extern "C"
12400#endif
12401char $ac_func ();
12402/* The GNU C library defines this for functions which it implements
12403 to always fail with ENOSYS. Some functions are actually named
12404 something starting with __ and the normal name is an alias. */
12405#if defined __stub_$ac_func || defined __stub___$ac_func
12406choke me
12407#endif
12408
12409int
12410main ()
12411{
12412return $ac_func ();
12413 ;
12414 return 0;
12415}
12416_ACEOF
12417rm -f conftest.$ac_objext conftest$ac_exeext
12418if { (ac_try="$ac_link"
12419case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_link") 2>conftest.er1
12425 ac_status=$?
12426 grep -v '^ *+' conftest.er1 >conftest.err
12427 rm -f conftest.er1
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435esac
12436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest$ac_exeext'
12442 { (case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12445esac
12446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 eval "$as_ac_var=yes"
12452else
12453 echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 eval "$as_ac_var=no"
12457fi
12458
12459rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461fi
12462ac_res=`eval echo '${'$as_ac_var'}'`
12463 { echo "$as_me:$LINENO: result: $ac_res" >&5
12464echo "${ECHO_T}$ac_res" >&6; }
12465if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012466 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012467#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468_ACEOF
12469 break
12470fi
12471done
12472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012473
12474
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012476do
12477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12478{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12480if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
12489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12491#define $ac_func innocuous_$ac_func
12492
12493/* System header to define __stub macros and hopefully few prototypes,
12494 which can conflict with char $ac_func (); below.
12495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12496 <limits.h> exists even on freestanding compilers. */
12497
12498#ifdef __STDC__
12499# include <limits.h>
12500#else
12501# include <assert.h>
12502#endif
12503
12504#undef $ac_func
12505
12506/* Override any GCC internal prototype to avoid an error.
12507 Use char because int might match the return type of a GCC
12508 builtin and then its argument prototype would still apply. */
12509#ifdef __cplusplus
12510extern "C"
12511#endif
12512char $ac_func ();
12513/* The GNU C library defines this for functions which it implements
12514 to always fail with ENOSYS. Some functions are actually named
12515 something starting with __ and the normal name is an alias. */
12516#if defined __stub_$ac_func || defined __stub___$ac_func
12517choke me
12518#endif
12519
12520int
12521main ()
12522{
12523return $ac_func ();
12524 ;
12525 return 0;
12526}
12527_ACEOF
12528rm -f conftest.$ac_objext conftest$ac_exeext
12529if { (ac_try="$ac_link"
12530case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533esac
12534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_link") 2>conftest.er1
12536 ac_status=$?
12537 grep -v '^ *+' conftest.er1 >conftest.err
12538 rm -f conftest.er1
12539 cat conftest.err >&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); } &&
12542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
12547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; } &&
12552 { ac_try='test -s conftest$ac_exeext'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 eval "$as_ac_var=yes"
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 eval "$as_ac_var=no"
12568fi
12569
12570rm -f core conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572fi
12573ac_res=`eval echo '${'$as_ac_var'}'`
12574 { echo "$as_me:$LINENO: result: $ac_res" >&5
12575echo "${ECHO_T}$ac_res" >&6; }
12576if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012577 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012578#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012579_ACEOF
12580
12581fi
12582done
12583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012584
12585
12586
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588do
12589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12590{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12592if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594else
12595 cat >conftest.$ac_ext <<_ACEOF
12596/* confdefs.h. */
12597_ACEOF
12598cat confdefs.h >>conftest.$ac_ext
12599cat >>conftest.$ac_ext <<_ACEOF
12600/* end confdefs.h. */
12601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12603#define $ac_func innocuous_$ac_func
12604
12605/* System header to define __stub macros and hopefully few prototypes,
12606 which can conflict with char $ac_func (); below.
12607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12608 <limits.h> exists even on freestanding compilers. */
12609
12610#ifdef __STDC__
12611# include <limits.h>
12612#else
12613# include <assert.h>
12614#endif
12615
12616#undef $ac_func
12617
12618/* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
12621#ifdef __cplusplus
12622extern "C"
12623#endif
12624char $ac_func ();
12625/* The GNU C library defines this for functions which it implements
12626 to always fail with ENOSYS. Some functions are actually named
12627 something starting with __ and the normal name is an alias. */
12628#if defined __stub_$ac_func || defined __stub___$ac_func
12629choke me
12630#endif
12631
12632int
12633main ()
12634{
12635return $ac_func ();
12636 ;
12637 return 0;
12638}
12639_ACEOF
12640rm -f conftest.$ac_objext conftest$ac_exeext
12641if { (ac_try="$ac_link"
12642case "(($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_link") 2>conftest.er1
12648 ac_status=$?
12649 grep -v '^ *+' conftest.er1 >conftest.err
12650 rm -f conftest.er1
12651 cat conftest.err >&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12655 { (case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12658esac
12659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_try") 2>&5
12661 ac_status=$?
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
12665 { (case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_try") 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 eval "$as_ac_var=yes"
12675else
12676 echo "$as_me: failed program was:" >&5
12677sed 's/^/| /' conftest.$ac_ext >&5
12678
12679 eval "$as_ac_var=no"
12680fi
12681
12682rm -f core conftest.err conftest.$ac_objext \
12683 conftest$ac_exeext conftest.$ac_ext
12684fi
12685ac_res=`eval echo '${'$as_ac_var'}'`
12686 { echo "$as_me:$LINENO: result: $ac_res" >&5
12687echo "${ECHO_T}$ac_res" >&6; }
12688if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012689 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012691_ACEOF
12692
12693fi
12694done
12695
12696
Douglas Gregor01746742009-05-11 18:05:52 +000012697
Reid Spencer7931a782004-12-27 06:15:02 +000012698if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012699 LLVMGCC="llvm-gcc${EXEEXT}"
12700 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012701 LLVMGCCCOMMAND="$LLVMGCC"
12702 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012703 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12704
12705 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12706
Reid Spencerc84492c2005-06-02 22:34:49 +000012707 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12708set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012709{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12711if test "${ac_cv_path_LLVMGCC+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012713else
12714 case $LLVMGCC in
12715 [\\/]* | ?:[\\/]*)
12716 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12717 ;;
12718 *)
12719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12720for as_dir in $PATH
12721do
12722 IFS=$as_save_IFS
12723 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012724 for ac_exec_ext in '' $ac_executable_extensions; do
12725 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 +000012726 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012728 break 2
12729 fi
12730done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012731done
Reid Spencera773bd52006-08-04 18:18:08 +000012732IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012733
Reid Spencer59473af2004-12-25 07:31:29 +000012734 ;;
12735esac
12736fi
12737LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012738if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012739 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12740echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012741else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012742 { echo "$as_me:$LINENO: result: no" >&5
12743echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012744fi
12745
Reid Spencera773bd52006-08-04 18:18:08 +000012746
Reid Spencerc84492c2005-06-02 22:34:49 +000012747 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12748set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12751if test "${ac_cv_path_LLVMGXX+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012753else
12754 case $LLVMGXX in
12755 [\\/]* | ?:[\\/]*)
12756 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12757 ;;
12758 *)
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760for as_dir in $PATH
12761do
12762 IFS=$as_save_IFS
12763 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012764 for ac_exec_ext in '' $ac_executable_extensions; do
12765 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 +000012766 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012768 break 2
12769 fi
12770done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012771done
Reid Spencera773bd52006-08-04 18:18:08 +000012772IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012773
Reid Spencer59473af2004-12-25 07:31:29 +000012774 ;;
12775esac
12776fi
12777LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012778if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012779 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12780echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012782 { echo "$as_me:$LINENO: result: no" >&5
12783echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012784fi
12785
Reid Spencera773bd52006-08-04 18:18:08 +000012786
Reid Spencer59473af2004-12-25 07:31:29 +000012787else
Devang Patel5d28b882007-12-04 22:54:47 +000012788 if test -z "$LLVMGCC"; then
12789 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012790 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012791 fi
12792 if test -z "$LLVMGXX"; then
12793 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012794 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012795 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012796
Reid Spencer59473af2004-12-25 07:31:29 +000012797 LLVMGCC=$LLVMGCC
12798
12799 LLVMGXX=$LLVMGXX
12800
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012801 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12802
12803 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12804
Reid Spencer59473af2004-12-25 07:31:29 +000012805fi
12806
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012808{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12809echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012810
Reid Spencer86901802004-12-08 23:07:27 +000012811ICC=no
12812IXX=no
12813case $CC in
12814 icc*|icpc*)
12815 ICC=yes
12816 IXX=yes
12817 ;;
12818 *)
12819 ;;
12820esac
12821
Duraid Madina937c60a2006-02-15 07:57:42 +000012822if test "$GCC" != "yes" && test "$ICC" != "yes"
12823then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012824 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12825echo "$as_me: error: gcc|icc required but not found" >&2;}
12826 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012827fi
12828
12829if test "$GXX" != "yes" && test "$IXX" != "yes"
12830then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12832echo "$as_me: error: g++|icc required but not found" >&2;}
12833 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012834fi
12835
Reid Spencer86901802004-12-08 23:07:27 +000012836if test "$GCC" = "yes"
12837then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012838 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012839#if !defined(__GNUC__) || __GNUC__ < 3
12840#error Unsupported GCC version
12841#endif
12842
12843_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012844rm -f conftest.$ac_objext
12845if { (ac_try="$ac_compile"
12846case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849esac
12850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_compile") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } &&
12858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12859 { (case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12862esac
12863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_try") 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try='test -s conftest.$ac_objext'
12869 { (case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_try") 2>&5
12875 ac_status=$?
12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877 (exit $ac_status); }; }; then
12878 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880 echo "$as_me: failed program was:" >&5
12881sed 's/^/| /' conftest.$ac_ext >&5
12882
12883 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12884echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12885 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012886fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012887
Chris Lattner399c7c72008-02-05 19:43:53 +000012888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012889fi
12890
12891if test -z "$llvm_cv_gnu_make_command"
12892then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012893 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12894echo "$as_me: error: GNU Make required but not found" >&2;}
12895 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012896fi
12897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898{ echo "$as_me:$LINENO: result: ok" >&5
12899echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012901{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12902echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012903NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12904
12905NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012907{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12908echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012909
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012910
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012911
12912{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12913echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12914if test "${ac_cv_lib_m_sin+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012916else
12917 ac_check_lib_save_LIBS=$LIBS
12918LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012919cat >conftest.$ac_ext <<_ACEOF
12920/* confdefs.h. */
12921_ACEOF
12922cat confdefs.h >>conftest.$ac_ext
12923cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012924/* end confdefs.h. */
12925
Reid Spencera773bd52006-08-04 18:18:08 +000012926/* Override any GCC internal prototype to avoid an error.
12927 Use char because int might match the return type of a GCC
12928 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012929#ifdef __cplusplus
12930extern "C"
12931#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012932char sin ();
12933int
12934main ()
12935{
Reid Spencera773bd52006-08-04 18:18:08 +000012936return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012937 ;
12938 return 0;
12939}
12940_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012941rm -f conftest.$ac_objext conftest$ac_exeext
12942if { (ac_try="$ac_link"
12943case "(($ac_try" in
12944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12945 *) ac_try_echo=$ac_try;;
12946esac
12947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12948 (eval "$ac_link") 2>conftest.er1
12949 ac_status=$?
12950 grep -v '^ *+' conftest.er1 >conftest.err
12951 rm -f conftest.er1
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959esac
12960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_try") 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest$ac_exeext'
12966 { (case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969esac
12970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12971 (eval "$ac_try") 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012975 ac_cv_lib_m_sin=yes
12976else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982
Bill Wendlingebcceee2009-04-18 11:20:33 +000012983rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012985LIBS=$ac_check_lib_save_LIBS
12986fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012987{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12988echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12989if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012990 cat >>confdefs.h <<_ACEOF
12991#define HAVE_LIBM 1
12992_ACEOF
12993
12994 LIBS="-lm $LIBS"
12995
12996fi
12997
Jeff Cohen28783c32007-01-12 18:22:38 +000012998if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012999
13000{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13001echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13002if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013004else
13005 ac_check_lib_save_LIBS=$LIBS
13006LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013007cat >conftest.$ac_ext <<_ACEOF
13008/* confdefs.h. */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013012/* end confdefs.h. */
13013
Reid Spencer48fdf912006-06-01 19:03:21 +000013014
Reid Spencer484fc8e2006-06-01 16:55:59 +000013015int
13016main ()
13017{
Reid Spencera773bd52006-08-04 18:18:08 +000013018return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013019 ;
13020 return 0;
13021}
13022_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013023rm -f conftest.$ac_objext conftest$ac_exeext
13024if { (ac_try="$ac_link"
13025case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_link") 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } &&
13037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038 { (case "(($ac_try" in
13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040 *) ac_try_echo=$ac_try;;
13041esac
13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043 (eval "$ac_try") 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest$ac_exeext'
13048 { (case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_try") 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013057 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013058else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013059 echo "$as_me: failed program was:" >&5
13060sed 's/^/| /' conftest.$ac_ext >&5
13061
13062 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013064
Bill Wendlingebcceee2009-04-18 11:20:33 +000013065rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013067LIBS=$ac_check_lib_save_LIBS
13068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13070echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13071if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013072 cat >>confdefs.h <<_ACEOF
13073#define HAVE_LIBIMAGEHLP 1
13074_ACEOF
13075
13076 LIBS="-limagehlp $LIBS"
13077
13078fi
13079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013080
13081{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13082echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13083if test "${ac_cv_lib_psapi_main+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013085else
13086 ac_check_lib_save_LIBS=$LIBS
13087LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013088cat >conftest.$ac_ext <<_ACEOF
13089/* confdefs.h. */
13090_ACEOF
13091cat confdefs.h >>conftest.$ac_ext
13092cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013093/* end confdefs.h. */
13094
Reid Spencer48fdf912006-06-01 19:03:21 +000013095
Reid Spencer484fc8e2006-06-01 16:55:59 +000013096int
13097main ()
13098{
Reid Spencera773bd52006-08-04 18:18:08 +000013099return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013100 ;
13101 return 0;
13102}
13103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013104rm -f conftest.$ac_objext conftest$ac_exeext
13105if { (ac_try="$ac_link"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13112 ac_status=$?
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013138 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013140 echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145
Bill Wendlingebcceee2009-04-18 11:20:33 +000013146rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013147 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013148LIBS=$ac_check_lib_save_LIBS
13149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013150{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13151echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13152if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013153 cat >>confdefs.h <<_ACEOF
13154#define HAVE_LIBPSAPI 1
13155_ACEOF
13156
13157 LIBS="-lpsapi $LIBS"
13158
13159fi
13160
13161fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013163{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13164echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13165if test "${ac_cv_search_dlopen+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013167else
13168 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013169cat >conftest.$ac_ext <<_ACEOF
13170/* confdefs.h. */
13171_ACEOF
13172cat confdefs.h >>conftest.$ac_ext
13173cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013175
Reid Spencera773bd52006-08-04 18:18:08 +000013176/* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013179#ifdef __cplusplus
13180extern "C"
13181#endif
John Criswell7a73b802003-06-30 21:59:07 +000013182char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013183int
13184main ()
13185{
Reid Spencera773bd52006-08-04 18:18:08 +000013186return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013187 ;
13188 return 0;
13189}
13190_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013191for ac_lib in '' dl; do
13192 if test -z "$ac_lib"; then
13193 ac_res="none required"
13194 else
13195 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013197 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013198 rm -f conftest.$ac_objext conftest$ac_exeext
13199if { (ac_try="$ac_link"
13200case "(($ac_try" in
13201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13202 *) ac_try_echo=$ac_try;;
13203esac
13204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_link") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } &&
13212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13213 { (case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216esac
13217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13218 (eval "$ac_try") 2>&5
13219 ac_status=$?
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226esac
13227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_try") 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013232 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013233else
13234 echo "$as_me: failed program was:" >&5
13235sed 's/^/| /' conftest.$ac_ext >&5
13236
13237
John Criswell7a73b802003-06-30 21:59:07 +000013238fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013239
Bill Wendlingebcceee2009-04-18 11:20:33 +000013240rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013241 conftest$ac_exeext
13242 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013243 break
John Criswell7a73b802003-06-30 21:59:07 +000013244fi
Reid Spencera773bd52006-08-04 18:18:08 +000013245done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013246if test "${ac_cv_search_dlopen+set}" = set; then
13247 :
Reid Spencera773bd52006-08-04 18:18:08 +000013248else
13249 ac_cv_search_dlopen=no
13250fi
13251rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013252LIBS=$ac_func_search_save_LIBS
13253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13255echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013256ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260cat >>confdefs.h <<\_ACEOF
13261#define HAVE_DLOPEN 1
13262_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013263
13264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013265 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13266echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013267fi
13268
13269
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013270if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13272echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13273if test "${ac_cv_search_ffi_call+set}" = set; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013275else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013276 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013277cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013282/* end confdefs.h. */
13283
13284/* Override any GCC internal prototype to avoid an error.
13285 Use char because int might match the return type of a GCC
13286 builtin and then its argument prototype would still apply. */
13287#ifdef __cplusplus
13288extern "C"
13289#endif
13290char ffi_call ();
13291int
13292main ()
13293{
13294return ffi_call ();
13295 ;
13296 return 0;
13297}
13298_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013299for ac_lib in '' ffi; do
13300 if test -z "$ac_lib"; then
13301 ac_res="none required"
13302 else
13303 ac_res=-l$ac_lib
13304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13305 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013306 rm -f conftest.$ac_objext conftest$ac_exeext
13307if { (ac_try="$ac_link"
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_link") 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_exeext'
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
Nick Lewycky267fddb2009-04-13 04:26:27 +000013340 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013346fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013347
Bill Wendlingebcceee2009-04-18 11:20:33 +000013348rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013349 conftest$ac_exeext
13350 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013351 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013352fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013353done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013354if test "${ac_cv_search_ffi_call+set}" = set; then
13355 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013356else
13357 ac_cv_search_ffi_call=no
13358fi
13359rm conftest.$ac_ext
13360LIBS=$ac_func_search_save_LIBS
13361fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013362{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13363echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013364ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13367
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013368cat >>confdefs.h <<\_ACEOF
13369#define HAVE_FFI_CALL 1
13370_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013371
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013372else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013373 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13374echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13375 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013376fi
13377
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013378fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013379
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13381echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13382if test "${ac_cv_search_mallinfo+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013384else
13385 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013386cat >conftest.$ac_ext <<_ACEOF
13387/* confdefs.h. */
13388_ACEOF
13389cat confdefs.h >>conftest.$ac_ext
13390cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013392
Reid Spencera773bd52006-08-04 18:18:08 +000013393/* Override any GCC internal prototype to avoid an error.
13394 Use char because int might match the return type of a GCC
13395 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013396#ifdef __cplusplus
13397extern "C"
13398#endif
John Criswell7a73b802003-06-30 21:59:07 +000013399char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013400int
13401main ()
13402{
Reid Spencera773bd52006-08-04 18:18:08 +000013403return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013404 ;
13405 return 0;
13406}
13407_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013408for ac_lib in '' malloc; do
13409 if test -z "$ac_lib"; then
13410 ac_res="none required"
13411 else
13412 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013413 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013414 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415 rm -f conftest.$ac_objext conftest$ac_exeext
13416if { (ac_try="$ac_link"
13417case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420esac
13421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_link") 2>conftest.er1
13423 ac_status=$?
13424 grep -v '^ *+' conftest.er1 >conftest.err
13425 rm -f conftest.er1
13426 cat conftest.err >&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13430 { (case "(($ac_try" in
13431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13432 *) ac_try_echo=$ac_try;;
13433esac
13434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13435 (eval "$ac_try") 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; } &&
13439 { ac_try='test -s conftest$ac_exeext'
13440 { (case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13443esac
13444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_try") 2>&5
13446 ac_status=$?
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013449 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013450else
13451 echo "$as_me: failed program was:" >&5
13452sed 's/^/| /' conftest.$ac_ext >&5
13453
13454
John Criswell7a73b802003-06-30 21:59:07 +000013455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013456
Bill Wendlingebcceee2009-04-18 11:20:33 +000013457rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458 conftest$ac_exeext
13459 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013460 break
John Criswell7a73b802003-06-30 21:59:07 +000013461fi
Reid Spencera773bd52006-08-04 18:18:08 +000013462done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013463if test "${ac_cv_search_mallinfo+set}" = set; then
13464 :
Reid Spencera773bd52006-08-04 18:18:08 +000013465else
13466 ac_cv_search_mallinfo=no
13467fi
13468rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013469LIBS=$ac_func_search_save_LIBS
13470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013471{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13472echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013473ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013474if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013475 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477cat >>confdefs.h <<\_ACEOF
13478#define HAVE_MALLINFO 1
13479_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013480
13481fi
13482
13483
Reid Spencer0a262ba2005-08-24 10:07:20 +000013484if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013485
13486{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13487echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13488if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013490else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013491 ac_check_lib_save_LIBS=$LIBS
13492LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013498/* end confdefs.h. */
13499
Reid Spencera773bd52006-08-04 18:18:08 +000013500/* Override any GCC internal prototype to avoid an error.
13501 Use char because int might match the return type of a GCC
13502 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013503#ifdef __cplusplus
13504extern "C"
13505#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013506char pthread_mutex_init ();
13507int
13508main ()
13509{
Reid Spencera773bd52006-08-04 18:18:08 +000013510return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013511 ;
13512 return 0;
13513}
13514_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013515rm -f conftest.$ac_objext conftest$ac_exeext
13516if { (ac_try="$ac_link"
13517case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_link") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13533esac
13534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_try") 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13543esac
13544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_try") 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013549 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013551 echo "$as_me: failed program was:" >&5
13552sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013555fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013556
Bill Wendlingebcceee2009-04-18 11:20:33 +000013557rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013558 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013559LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013561{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13562echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13563if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013564 cat >>confdefs.h <<_ACEOF
13565#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013566_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013567
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013568 LIBS="-lpthread $LIBS"
13569
Reid Spencer22177fe2005-07-12 15:24:20 +000013570fi
13571
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013572 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13573echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13574if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013576else
13577 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013578cat >conftest.$ac_ext <<_ACEOF
13579/* confdefs.h. */
13580_ACEOF
13581cat confdefs.h >>conftest.$ac_ext
13582cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013583/* end confdefs.h. */
13584
Reid Spencera773bd52006-08-04 18:18:08 +000013585/* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013588#ifdef __cplusplus
13589extern "C"
13590#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013591char pthread_mutex_lock ();
13592int
13593main ()
13594{
Reid Spencera773bd52006-08-04 18:18:08 +000013595return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013596 ;
13597 return 0;
13598}
13599_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013600for ac_lib in '' pthread; do
13601 if test -z "$ac_lib"; then
13602 ac_res="none required"
13603 else
13604 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013606 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013607 rm -f conftest.$ac_objext conftest$ac_exeext
13608if { (ac_try="$ac_link"
13609case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } &&
13621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625esac
13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try='test -s conftest$ac_exeext'
13632 { (case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635esac
13636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_try") 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013641 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
13646
Brian Gaeke5f268f72003-12-05 19:29:01 +000013647fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013648
Bill Wendlingebcceee2009-04-18 11:20:33 +000013649rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013650 conftest$ac_exeext
13651 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013652 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013653fi
Reid Spencera773bd52006-08-04 18:18:08 +000013654done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013655if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13656 :
Reid Spencera773bd52006-08-04 18:18:08 +000013657else
13658 ac_cv_search_pthread_mutex_lock=no
13659fi
13660rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013661LIBS=$ac_func_search_save_LIBS
13662fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13664echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013665ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013669cat >>confdefs.h <<\_ACEOF
13670#define HAVE_PTHREAD_MUTEX_LOCK 1
13671_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013672
13673fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013675 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13676echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13677if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013679else
13680 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013681cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013686/* end confdefs.h. */
13687
13688/* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13691#ifdef __cplusplus
13692extern "C"
13693#endif
13694char pthread_rwlock_init ();
13695int
13696main ()
13697{
13698return pthread_rwlock_init ();
13699 ;
13700 return 0;
13701}
13702_ACEOF
13703for ac_lib in '' pthread; do
13704 if test -z "$ac_lib"; then
13705 ac_res="none required"
13706 else
13707 ac_res=-l$ac_lib
13708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13709 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013710 rm -f conftest.$ac_objext conftest$ac_exeext
13711if { (ac_try="$ac_link"
13712case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_link") 2>conftest.er1
13718 ac_status=$?
13719 grep -v '^ *+' conftest.er1 >conftest.err
13720 rm -f conftest.er1
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13725 { (case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728esac
13729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_try") 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; } &&
13734 { ac_try='test -s conftest$ac_exeext'
13735 { (case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13738esac
13739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_try") 2>&5
13741 ac_status=$?
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013744 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013745else
13746 echo "$as_me: failed program was:" >&5
13747sed 's/^/| /' conftest.$ac_ext >&5
13748
13749
Owen Andersonde8aed22009-06-16 18:20:20 +000013750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013751
Owen Andersonde8aed22009-06-16 18:20:20 +000013752rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753 conftest$ac_exeext
13754 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013755 break
13756fi
13757done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013758if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13759 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013760else
13761 ac_cv_search_pthread_rwlock_init=no
13762fi
13763rm conftest.$ac_ext
13764LIBS=$ac_func_search_save_LIBS
13765fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013766{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13767echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013768ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013769if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013772cat >>confdefs.h <<\_ACEOF
13773#define HAVE_PTHREAD_RWLOCK_INIT 1
13774_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013775
13776fi
13777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13779echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13780if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013782else
13783 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013784cat >conftest.$ac_ext <<_ACEOF
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013789/* end confdefs.h. */
13790
13791/* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13794#ifdef __cplusplus
13795extern "C"
13796#endif
13797char pthread_getspecific ();
13798int
13799main ()
13800{
13801return pthread_getspecific ();
13802 ;
13803 return 0;
13804}
13805_ACEOF
13806for ac_lib in '' pthread; do
13807 if test -z "$ac_lib"; then
13808 ac_res="none required"
13809 else
13810 ac_res=-l$ac_lib
13811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13812 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813 rm -f conftest.$ac_objext conftest$ac_exeext
13814if { (ac_try="$ac_link"
13815case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818esac
13819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_link") 2>conftest.er1
13821 ac_status=$?
13822 grep -v '^ *+' conftest.er1 >conftest.err
13823 rm -f conftest.er1
13824 cat conftest.err >&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13828 { (case "(($ac_try" in
13829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13830 *) ac_try_echo=$ac_try;;
13831esac
13832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13833 (eval "$ac_try") 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; } &&
13837 { ac_try='test -s conftest$ac_exeext'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13841esac
13842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013847 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013848else
13849 echo "$as_me: failed program was:" >&5
13850sed 's/^/| /' conftest.$ac_ext >&5
13851
13852
Owen Anderson27fcfe12009-06-25 23:10:26 +000013853fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013854
Owen Anderson27fcfe12009-06-25 23:10:26 +000013855rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013856 conftest$ac_exeext
13857 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013858 break
13859fi
13860done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13862 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013863else
13864 ac_cv_search_pthread_getspecific=no
13865fi
13866rm conftest.$ac_ext
13867LIBS=$ac_func_search_save_LIBS
13868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013869{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13870echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013871ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013875cat >>confdefs.h <<\_ACEOF
13876#define HAVE_PTHREAD_GETSPECIFIC 1
13877_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013878
13879fi
13880
Reid Spencer0a262ba2005-08-24 10:07:20 +000013881fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013882
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013883
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013884# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013885if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013886 withval=$with_udis86;
13887 USE_UDIS86=1
13888
13889 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013890 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013891 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13892 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013893
13894{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13895echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13896if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013898else
13899 ac_check_lib_save_LIBS=$LIBS
13900LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013901cat >conftest.$ac_ext <<_ACEOF
13902/* confdefs.h. */
13903_ACEOF
13904cat confdefs.h >>conftest.$ac_ext
13905cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013906/* end confdefs.h. */
13907
13908/* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13911#ifdef __cplusplus
13912extern "C"
13913#endif
13914char ud_init ();
13915int
13916main ()
13917{
13918return ud_init ();
13919 ;
13920 return 0;
13921}
13922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013923rm -f conftest.$ac_objext conftest$ac_exeext
13924if { (ac_try="$ac_link"
13925case "(($ac_try" in
13926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13928esac
13929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_link") 2>conftest.er1
13931 ac_status=$?
13932 grep -v '^ *+' conftest.er1 >conftest.err
13933 rm -f conftest.er1
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest$ac_exeext'
13948 { (case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951esac
13952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_try") 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013957 ac_cv_lib_udis86_ud_init=yes
13958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959 echo "$as_me: failed program was:" >&5
13960sed 's/^/| /' conftest.$ac_ext >&5
13961
13962 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013964
Bill Wendlingebcceee2009-04-18 11:20:33 +000013965rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013966 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013967LIBS=$ac_check_lib_save_LIBS
13968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013969{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13970echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13971if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013972 cat >>confdefs.h <<_ACEOF
13973#define HAVE_LIBUDIS86 1
13974_ACEOF
13975
13976 LIBS="-ludis86 $LIBS"
13977
13978else
13979
13980 echo "Error! You need to have libudis86 around."
13981 exit -1
13982
13983fi
13984
13985
13986else
13987 USE_UDIS86=0
13988
13989fi
13990
13991
13992cat >>confdefs.h <<_ACEOF
13993#define USE_UDIS86 $USE_UDIS86
13994_ACEOF
13995
13996
13997
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013998# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013999if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014000 withval=$with_oprofile;
14001 USE_OPROFILE=1
14002
14003 case "$withval" in
14004 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014005 no) llvm_cv_oppath=
14006 USE_OPROFILE=0
14007 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014008 *) llvm_cv_oppath="${withval}/lib/oprofile"
14009 CPPFLAGS="-I${withval}/include";;
14010 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014011 if test -n "$llvm_cv_oppath" ; then
14012 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14014echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14015if test "${ac_cv_search_bfd_init+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014017else
14018 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014019cat >conftest.$ac_ext <<_ACEOF
14020/* confdefs.h. */
14021_ACEOF
14022cat confdefs.h >>conftest.$ac_ext
14023cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014024/* end confdefs.h. */
14025
14026/* Override any GCC internal prototype to avoid an error.
14027 Use char because int might match the return type of a GCC
14028 builtin and then its argument prototype would still apply. */
14029#ifdef __cplusplus
14030extern "C"
14031#endif
14032char bfd_init ();
14033int
14034main ()
14035{
14036return bfd_init ();
14037 ;
14038 return 0;
14039}
14040_ACEOF
14041for ac_lib in '' bfd; do
14042 if test -z "$ac_lib"; then
14043 ac_res="none required"
14044 else
14045 ac_res=-l$ac_lib
14046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14047 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048 rm -f conftest.$ac_objext conftest$ac_exeext
14049if { (ac_try="$ac_link"
14050case "(($ac_try" in
14051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052 *) ac_try_echo=$ac_try;;
14053esac
14054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055 (eval "$ac_link") 2>conftest.er1
14056 ac_status=$?
14057 grep -v '^ *+' conftest.er1 >conftest.err
14058 rm -f conftest.er1
14059 cat conftest.err >&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14063 { (case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14066esac
14067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_try") 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076esac
14077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14079 ac_status=$?
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014082 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083else
14084 echo "$as_me: failed program was:" >&5
14085sed 's/^/| /' conftest.$ac_ext >&5
14086
14087
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014088fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014089
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014090rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014091 conftest$ac_exeext
14092 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014093 break
14094fi
14095done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014096if test "${ac_cv_search_bfd_init+set}" = set; then
14097 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014098else
14099 ac_cv_search_bfd_init=no
14100fi
14101rm conftest.$ac_ext
14102LIBS=$ac_func_search_save_LIBS
14103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014104{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14105echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014106ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014107if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14109
14110fi
14111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014112 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14113echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14114if test "${ac_cv_search_op_open_agent+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014116else
14117 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118cat >conftest.$ac_ext <<_ACEOF
14119/* confdefs.h. */
14120_ACEOF
14121cat confdefs.h >>conftest.$ac_ext
14122cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014123/* end confdefs.h. */
14124
14125/* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14128#ifdef __cplusplus
14129extern "C"
14130#endif
14131char op_open_agent ();
14132int
14133main ()
14134{
14135return op_open_agent ();
14136 ;
14137 return 0;
14138}
14139_ACEOF
14140for ac_lib in '' opagent; do
14141 if test -z "$ac_lib"; then
14142 ac_res="none required"
14143 else
14144 ac_res=-l$ac_lib
14145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14146 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147 rm -f conftest.$ac_objext conftest$ac_exeext
14148if { (ac_try="$ac_link"
14149case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152esac
14153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_link") 2>conftest.er1
14155 ac_status=$?
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14162 { (case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14165esac
14166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167 (eval "$ac_try") 2>&5
14168 ac_status=$?
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; } &&
14171 { ac_try='test -s conftest$ac_exeext'
14172 { (case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14175esac
14176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_try") 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014181 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014182else
14183 echo "$as_me: failed program was:" >&5
14184sed 's/^/| /' conftest.$ac_ext >&5
14185
14186
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014187fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014188
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014189rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014190 conftest$ac_exeext
14191 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014192 break
14193fi
14194done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014195if test "${ac_cv_search_op_open_agent+set}" = set; then
14196 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014197else
14198 ac_cv_search_op_open_agent=no
14199fi
14200rm conftest.$ac_ext
14201LIBS=$ac_func_search_save_LIBS
14202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014203{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14204echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014205ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14208
14209else
14210
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014211 echo "Error! You need to have libopagent around."
14212 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014213
14214fi
14215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014216 if test "${ac_cv_header_opagent_h+set}" = set; then
14217 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14218echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14219if test "${ac_cv_header_opagent_h+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14221fi
14222{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14223echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14224else
14225 # Is the header compilable?
14226{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14227echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14228cat >conftest.$ac_ext <<_ACEOF
14229/* confdefs.h. */
14230_ACEOF
14231cat confdefs.h >>conftest.$ac_ext
14232cat >>conftest.$ac_ext <<_ACEOF
14233/* end confdefs.h. */
14234$ac_includes_default
14235#include <opagent.h>
14236_ACEOF
14237rm -f conftest.$ac_objext
14238if { (ac_try="$ac_compile"
14239case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242esac
14243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14245 ac_status=$?
14246 grep -v '^ *+' conftest.er1 >conftest.err
14247 rm -f conftest.er1
14248 cat conftest.err >&5
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } &&
14251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252 { (case "(($ac_try" in
14253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254 *) ac_try_echo=$ac_try;;
14255esac
14256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_try") 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; } &&
14261 { ac_try='test -s conftest.$ac_objext'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14265esac
14266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14268 ac_status=$?
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_header_compiler=yes
14272else
14273 echo "$as_me: failed program was:" >&5
14274sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276 ac_header_compiler=no
14277fi
14278
14279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14280{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14281echo "${ECHO_T}$ac_header_compiler" >&6; }
14282
14283# Is the header present?
14284{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14285echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14286cat >conftest.$ac_ext <<_ACEOF
14287/* confdefs.h. */
14288_ACEOF
14289cat confdefs.h >>conftest.$ac_ext
14290cat >>conftest.$ac_ext <<_ACEOF
14291/* end confdefs.h. */
14292#include <opagent.h>
14293_ACEOF
14294if { (ac_try="$ac_cpp conftest.$ac_ext"
14295case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14298esac
14299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14301 ac_status=$?
14302 grep -v '^ *+' conftest.er1 >conftest.err
14303 rm -f conftest.er1
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } >/dev/null; then
14307 if test -s conftest.err; then
14308 ac_cpp_err=$ac_c_preproc_warn_flag
14309 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14310 else
14311 ac_cpp_err=
14312 fi
14313else
14314 ac_cpp_err=yes
14315fi
14316if test -z "$ac_cpp_err"; then
14317 ac_header_preproc=yes
14318else
14319 echo "$as_me: failed program was:" >&5
14320sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 ac_header_preproc=no
14323fi
14324
14325rm -f conftest.err conftest.$ac_ext
14326{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14327echo "${ECHO_T}$ac_header_preproc" >&6; }
14328
14329# So? What about this header?
14330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14331 yes:no: )
14332 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14333echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14334 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14335echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14336 ac_header_preproc=yes
14337 ;;
14338 no:yes:* )
14339 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14340echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14342echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14343 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14344echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14345 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14346echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14347 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14348echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14350echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14351 ( cat <<\_ASBOX
14352## ----------------------------------- ##
14353## Report this to llvmbugs@cs.uiuc.edu ##
14354## ----------------------------------- ##
14355_ASBOX
14356 ) | sed "s/^/$as_me: WARNING: /" >&2
14357 ;;
14358esac
14359{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14360echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14361if test "${ac_cv_header_opagent_h+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 ac_cv_header_opagent_h=$ac_header_preproc
14365fi
14366{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14367echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14368
14369fi
14370if test $ac_cv_header_opagent_h = yes; then
14371 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014372else
14373
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014374 echo "Error! You need to have opagent.h around."
14375 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014376
14377fi
14378
14379
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014380 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014381
14382else
14383
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014384 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014385
14386
14387fi
14388
14389
14390cat >>confdefs.h <<_ACEOF
14391#define USE_OPROFILE $USE_OPROFILE
14392_ACEOF
14393
14394
14395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014396
14397
14398
14399
14400
Reid Spencer59473af2004-12-25 07:31:29 +000014401ac_header_dirent=no
14402for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014403 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14404{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14405echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014409 cat >conftest.$ac_ext <<_ACEOF
14410/* confdefs.h. */
14411_ACEOF
14412cat confdefs.h >>conftest.$ac_ext
14413cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014414/* end confdefs.h. */
14415#include <sys/types.h>
14416#include <$ac_hdr>
14417
14418int
14419main ()
14420{
14421if ((DIR *) 0)
14422return 0;
14423 ;
14424 return 0;
14425}
14426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014427rm -f conftest.$ac_objext
14428if { (ac_try="$ac_compile"
14429case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432esac
14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_compile") 2>conftest.er1
14435 ac_status=$?
14436 grep -v '^ *+' conftest.er1 >conftest.err
14437 rm -f conftest.er1
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } &&
14441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14442 { (case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445esac
14446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_try") 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; } &&
14451 { ac_try='test -s conftest.$ac_objext'
14452 { (case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_try") 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014461 eval "$as_ac_Header=yes"
14462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014463 echo "$as_me: failed program was:" >&5
14464sed 's/^/| /' conftest.$ac_ext >&5
14465
14466 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468
Reid Spencera773bd52006-08-04 18:18:08 +000014469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014471ac_res=`eval echo '${'$as_ac_Header'}'`
14472 { echo "$as_me:$LINENO: result: $ac_res" >&5
14473echo "${ECHO_T}$ac_res" >&6; }
14474if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014475 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014476#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014477_ACEOF
14478
14479ac_header_dirent=$ac_hdr; break
14480fi
14481
14482done
14483# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14484if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14486echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14487if test "${ac_cv_search_opendir+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014489else
14490 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014491cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014496/* end confdefs.h. */
14497
Reid Spencera773bd52006-08-04 18:18:08 +000014498/* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014501#ifdef __cplusplus
14502extern "C"
14503#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014504char opendir ();
14505int
14506main ()
14507{
Reid Spencera773bd52006-08-04 18:18:08 +000014508return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014509 ;
14510 return 0;
14511}
14512_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014513for ac_lib in '' dir; do
14514 if test -z "$ac_lib"; then
14515 ac_res="none required"
14516 else
14517 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014519 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520 rm -f conftest.$ac_objext conftest$ac_exeext
14521if { (ac_try="$ac_link"
14522case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014554 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559
Reid Spencer59473af2004-12-25 07:31:29 +000014560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561
Bill Wendlingebcceee2009-04-18 11:20:33 +000014562rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563 conftest$ac_exeext
14564 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014565 break
Reid Spencer59473af2004-12-25 07:31:29 +000014566fi
Reid Spencera773bd52006-08-04 18:18:08 +000014567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568if test "${ac_cv_search_opendir+set}" = set; then
14569 :
Reid Spencera773bd52006-08-04 18:18:08 +000014570else
14571 ac_cv_search_opendir=no
14572fi
14573rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014574LIBS=$ac_func_search_save_LIBS
14575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14577echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014578ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014581
14582fi
14583
14584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014585 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14586echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14587if test "${ac_cv_search_opendir+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014589else
14590 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014591cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014596/* end confdefs.h. */
14597
Reid Spencera773bd52006-08-04 18:18:08 +000014598/* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014601#ifdef __cplusplus
14602extern "C"
14603#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014604char opendir ();
14605int
14606main ()
14607{
Reid Spencera773bd52006-08-04 18:18:08 +000014608return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014609 ;
14610 return 0;
14611}
14612_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014613for ac_lib in '' x; do
14614 if test -z "$ac_lib"; then
14615 ac_res="none required"
14616 else
14617 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014619 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014620 rm -f conftest.$ac_objext conftest$ac_exeext
14621if { (ac_try="$ac_link"
14622case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625esac
14626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_link") 2>conftest.er1
14628 ac_status=$?
14629 grep -v '^ *+' conftest.er1 >conftest.err
14630 rm -f conftest.er1
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638esac
14639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest$ac_exeext'
14645 { (case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14648esac
14649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_try") 2>&5
14651 ac_status=$?
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014654 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014655else
14656 echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
14659
Reid Spencer59473af2004-12-25 07:31:29 +000014660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014661
Bill Wendlingebcceee2009-04-18 11:20:33 +000014662rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014663 conftest$ac_exeext
14664 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014665 break
Reid Spencer59473af2004-12-25 07:31:29 +000014666fi
Reid Spencera773bd52006-08-04 18:18:08 +000014667done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014668if test "${ac_cv_search_opendir+set}" = set; then
14669 :
Reid Spencera773bd52006-08-04 18:18:08 +000014670else
14671 ac_cv_search_opendir=no
14672fi
14673rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014674LIBS=$ac_func_search_save_LIBS
14675fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014676{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14677echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014678ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014679if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014681
14682fi
14683
14684fi
14685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014686{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14687echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14688if test "${ac_cv_header_mmap_anon+set}" = set; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014690else
14691 ac_ext=c
14692ac_cpp='$CPP $CPPFLAGS'
14693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14695ac_compiler_gnu=$ac_cv_c_compiler_gnu
14696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014697 cat >conftest.$ac_ext <<_ACEOF
14698/* confdefs.h. */
14699_ACEOF
14700cat confdefs.h >>conftest.$ac_ext
14701cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014702/* end confdefs.h. */
14703#include <sys/mman.h>
14704#include <unistd.h>
14705#include <fcntl.h>
14706int
14707main ()
14708{
14709mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14710 ;
14711 return 0;
14712}
14713_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014714rm -f conftest.$ac_objext
14715if { (ac_try="$ac_compile"
14716case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719esac
14720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_compile") 2>conftest.er1
14722 ac_status=$?
14723 grep -v '^ *+' conftest.er1 >conftest.err
14724 rm -f conftest.er1
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14729 { (case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14732esac
14733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_try") 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (case "(($ac_try" in
14740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14741 *) ac_try_echo=$ac_try;;
14742esac
14743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_try") 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014748 ac_cv_header_mmap_anon=yes
14749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014750 echo "$as_me: failed program was:" >&5
14751sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014755
Reid Spencera773bd52006-08-04 18:18:08 +000014756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014757 ac_ext=c
14758ac_cpp='$CPP $CPPFLAGS'
14759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14761ac_compiler_gnu=$ac_cv_c_compiler_gnu
14762
14763
14764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014765{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14766echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014767if test "$ac_cv_header_mmap_anon" = yes; then
14768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014769cat >>confdefs.h <<\_ACEOF
14770#define HAVE_MMAP_ANONYMOUS 1
14771_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014772
14773fi
14774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014775{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14776echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14777if test "${ac_cv_header_stat_broken+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014779else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014780 cat >conftest.$ac_ext <<_ACEOF
14781/* confdefs.h. */
14782_ACEOF
14783cat confdefs.h >>conftest.$ac_ext
14784cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014785/* end confdefs.h. */
14786#include <sys/types.h>
14787#include <sys/stat.h>
14788
Reid Spencera773bd52006-08-04 18:18:08 +000014789#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014790# if S_ISBLK (S_IFDIR)
14791You lose.
14792# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014793#endif
14794
Reid Spencera773bd52006-08-04 18:18:08 +000014795#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014796# if S_ISBLK (S_IFCHR)
14797You lose.
14798# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014799#endif
14800
Reid Spencera773bd52006-08-04 18:18:08 +000014801#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014802# if S_ISLNK (S_IFREG)
14803You lose.
14804# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014805#endif
14806
Reid Spencera773bd52006-08-04 18:18:08 +000014807#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014808# if S_ISSOCK (S_IFREG)
14809You lose.
14810# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014811#endif
14812
14813_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14815 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014816 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014817else
14818 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014820rm -f conftest*
14821
Reid Spencer59473af2004-12-25 07:31:29 +000014822fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014823{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14824echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014825if test $ac_cv_header_stat_broken = yes; then
14826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014827cat >>confdefs.h <<\_ACEOF
14828#define STAT_MACROS_BROKEN 1
14829_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014830
14831fi
14832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014833{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14834echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14835if test "${ac_cv_header_stdc+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014838 cat >conftest.$ac_ext <<_ACEOF
14839/* confdefs.h. */
14840_ACEOF
14841cat confdefs.h >>conftest.$ac_ext
14842cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014844#include <stdlib.h>
14845#include <stdarg.h>
14846#include <string.h>
14847#include <float.h>
14848
John Criswell0c38eaf2003-09-10 15:17:25 +000014849int
14850main ()
14851{
14852
14853 ;
14854 return 0;
14855}
John Criswell7a73b802003-06-30 21:59:07 +000014856_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014857rm -f conftest.$ac_objext
14858if { (ac_try="$ac_compile"
14859case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14862esac
14863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14864 (eval "$ac_compile") 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14872 { (case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875esac
14876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14877 (eval "$ac_try") 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14885esac
14886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14887 (eval "$ac_try") 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014891 ac_cv_header_stdc=yes
14892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014893 echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014897fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014898
Reid Spencera773bd52006-08-04 18:18:08 +000014899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014900
14901if test $ac_cv_header_stdc = yes; then
14902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014903 cat >conftest.$ac_ext <<_ACEOF
14904/* confdefs.h. */
14905_ACEOF
14906cat confdefs.h >>conftest.$ac_ext
14907cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014909#include <string.h>
14910
14911_ACEOF
14912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014913 $EGREP "memchr" >/dev/null 2>&1; then
14914 :
John Criswell7a73b802003-06-30 21:59:07 +000014915else
14916 ac_cv_header_stdc=no
14917fi
14918rm -f conftest*
14919
14920fi
14921
14922if test $ac_cv_header_stdc = yes; then
14923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014924 cat >conftest.$ac_ext <<_ACEOF
14925/* confdefs.h. */
14926_ACEOF
14927cat confdefs.h >>conftest.$ac_ext
14928cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014930#include <stdlib.h>
14931
14932_ACEOF
14933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014934 $EGREP "free" >/dev/null 2>&1; then
14935 :
John Criswell7a73b802003-06-30 21:59:07 +000014936else
14937 ac_cv_header_stdc=no
14938fi
14939rm -f conftest*
14940
14941fi
14942
14943if test $ac_cv_header_stdc = yes; then
14944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000014946 :
14947else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948 cat >conftest.$ac_ext <<_ACEOF
14949/* confdefs.h. */
14950_ACEOF
14951cat confdefs.h >>conftest.$ac_ext
14952cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014954#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000014955#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000014956#if ((' ' & 0x0FF) == 0x020)
14957# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14958# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14959#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014960# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014961 (('a' <= (c) && (c) <= 'i') \
14962 || ('j' <= (c) && (c) <= 'r') \
14963 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000014964# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14965#endif
14966
14967#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14968int
14969main ()
14970{
14971 int i;
14972 for (i = 0; i < 256; i++)
14973 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000014974 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000014975 return 2;
14976 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000014977}
14978_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014979rm -f conftest$ac_exeext
14980if { (ac_try="$ac_link"
14981case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984esac
14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_link") 2>&5
14987 ac_status=$?
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14990 { (case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_try") 2>&5
14996 ac_status=$?
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 :
John Criswell7a73b802003-06-30 21:59:07 +000015000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015001 echo "$as_me: program exited with status $ac_status" >&5
15002echo "$as_me: failed program was:" >&5
15003sed 's/^/| /' conftest.$ac_ext >&5
15004
15005( exit $ac_status )
15006ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008rm -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 +000015009fi
15010
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015011
John Criswell7a73b802003-06-30 21:59:07 +000015012fi
15013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015014{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15015echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015016if test $ac_cv_header_stdc = yes; then
15017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015018cat >>confdefs.h <<\_ACEOF
15019#define STDC_HEADERS 1
15020_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015021
15022fi
15023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15025echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15026if test "${ac_cv_header_sys_wait_h+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015029 cat >conftest.$ac_ext <<_ACEOF
15030/* confdefs.h. */
15031_ACEOF
15032cat confdefs.h >>conftest.$ac_ext
15033cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015035#include <sys/types.h>
15036#include <sys/wait.h>
15037#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015038# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015039#endif
15040#ifndef WIFEXITED
15041# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15042#endif
15043
John Criswell7a73b802003-06-30 21:59:07 +000015044int
15045main ()
15046{
15047 int s;
15048 wait (&s);
15049 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15050 ;
15051 return 0;
15052}
15053_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015054rm -f conftest.$ac_objext
15055if { (ac_try="$ac_compile"
15056case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059esac
15060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_compile") 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15069 { (case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072esac
15073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_try") 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; } &&
15078 { ac_try='test -s conftest.$ac_objext'
15079 { (case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082esac
15083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_try") 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015088 ac_cv_header_sys_wait_h=yes
15089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015090 echo "$as_me: failed program was:" >&5
15091sed 's/^/| /' conftest.$ac_ext >&5
15092
15093 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015095
Reid Spencera773bd52006-08-04 18:18:08 +000015096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015097fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015098{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15099echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015100if test $ac_cv_header_sys_wait_h = yes; then
15101
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015102cat >>confdefs.h <<\_ACEOF
15103#define HAVE_SYS_WAIT_H 1
15104_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015105
15106fi
15107
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015108{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15109echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15110if test "${ac_cv_header_time+set}" = set; then
15111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015112else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015113 cat >conftest.$ac_ext <<_ACEOF
15114/* confdefs.h. */
15115_ACEOF
15116cat confdefs.h >>conftest.$ac_ext
15117cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015118/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015119#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015120#include <sys/time.h>
15121#include <time.h>
15122
15123int
15124main ()
15125{
15126if ((struct tm *) 0)
15127return 0;
15128 ;
15129 return 0;
15130}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015131_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015132rm -f conftest.$ac_objext
15133if { (ac_try="$ac_compile"
15134case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137esac
15138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15147 { (case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15150esac
15151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_try") 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; } &&
15156 { ac_try='test -s conftest.$ac_objext'
15157 { (case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_try") 2>&5
15163 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015166 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015167else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015168 echo "$as_me: failed program was:" >&5
15169sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015173
Reid Spencera773bd52006-08-04 18:18:08 +000015174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15177echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015178if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015180cat >>confdefs.h <<\_ACEOF
15181#define TIME_WITH_SYS_TIME 1
15182_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015183
15184fi
15185
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015186
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015187
15188
15189
15190
15191
15192
Reid Spencer59473af2004-12-25 07:31:29 +000015193for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015194do
15195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15199if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201fi
15202ac_res=`eval echo '${'$as_ac_Header'}'`
15203 { echo "$as_me:$LINENO: result: $ac_res" >&5
15204echo "${ECHO_T}$ac_res" >&6; }
15205else
15206 # Is the header compilable?
15207{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15208echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15209cat >conftest.$ac_ext <<_ACEOF
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
15215$ac_includes_default
15216#include <$ac_header>
15217_ACEOF
15218rm -f conftest.$ac_objext
15219if { (ac_try="$ac_compile"
15220case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223esac
15224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15225 (eval "$ac_compile") 2>conftest.er1
15226 ac_status=$?
15227 grep -v '^ *+' conftest.er1 >conftest.err
15228 rm -f conftest.er1
15229 cat conftest.err >&5
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15233 { (case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236esac
15237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_try") 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (case "(($ac_try" in
15244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15245 *) ac_try_echo=$ac_try;;
15246esac
15247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_try") 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; }; then
15252 ac_header_compiler=yes
15253else
15254 echo "$as_me: failed program was:" >&5
15255sed 's/^/| /' conftest.$ac_ext >&5
15256
15257 ac_header_compiler=no
15258fi
15259
15260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15262echo "${ECHO_T}$ac_header_compiler" >&6; }
15263
15264# Is the header present?
15265{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15267cat >conftest.$ac_ext <<_ACEOF
15268/* confdefs.h. */
15269_ACEOF
15270cat confdefs.h >>conftest.$ac_ext
15271cat >>conftest.$ac_ext <<_ACEOF
15272/* end confdefs.h. */
15273#include <$ac_header>
15274_ACEOF
15275if { (ac_try="$ac_cpp conftest.$ac_ext"
15276case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279esac
15280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } >/dev/null; then
15288 if test -s conftest.err; then
15289 ac_cpp_err=$ac_c_preproc_warn_flag
15290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15291 else
15292 ac_cpp_err=
15293 fi
15294else
15295 ac_cpp_err=yes
15296fi
15297if test -z "$ac_cpp_err"; then
15298 ac_header_preproc=yes
15299else
15300 echo "$as_me: failed program was:" >&5
15301sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ac_header_preproc=no
15304fi
15305
15306rm -f conftest.err conftest.$ac_ext
15307{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15308echo "${ECHO_T}$ac_header_preproc" >&6; }
15309
15310# So? What about this header?
15311case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15312 yes:no: )
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15314echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15316echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15317 ac_header_preproc=yes
15318 ;;
15319 no:yes:* )
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15321echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15323echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15325echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15327echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15329echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15331echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15332 ( cat <<\_ASBOX
15333## ----------------------------------- ##
15334## Report this to llvmbugs@cs.uiuc.edu ##
15335## ----------------------------------- ##
15336_ASBOX
15337 ) | sed "s/^/$as_me: WARNING: /" >&2
15338 ;;
15339esac
15340{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15341echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15344else
15345 eval "$as_ac_Header=\$ac_header_preproc"
15346fi
15347ac_res=`eval echo '${'$as_ac_Header'}'`
15348 { echo "$as_me:$LINENO: result: $ac_res" >&5
15349echo "${ECHO_T}$ac_res" >&6; }
15350
15351fi
15352if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015353 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015354#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015355_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015356
15357fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015358
Reid Spencer59473af2004-12-25 07:31:29 +000015359done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015361
15362
15363
15364
15365
15366
Douglas Gregor071d73d2009-05-18 17:21:34 +000015367for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015368do
15369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375fi
15376ac_res=`eval echo '${'$as_ac_Header'}'`
15377 { echo "$as_me:$LINENO: result: $ac_res" >&5
15378echo "${ECHO_T}$ac_res" >&6; }
15379else
15380 # Is the header compilable?
15381{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15383cat >conftest.$ac_ext <<_ACEOF
15384/* confdefs.h. */
15385_ACEOF
15386cat confdefs.h >>conftest.$ac_ext
15387cat >>conftest.$ac_ext <<_ACEOF
15388/* end confdefs.h. */
15389$ac_includes_default
15390#include <$ac_header>
15391_ACEOF
15392rm -f conftest.$ac_objext
15393if { (ac_try="$ac_compile"
15394case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15397esac
15398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_compile") 2>conftest.er1
15400 ac_status=$?
15401 grep -v '^ *+' conftest.er1 >conftest.err
15402 rm -f conftest.er1
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15407 { (case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410esac
15411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_try") 2>&5
15413 ac_status=$?
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420esac
15421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_header_compiler=yes
15427else
15428 echo "$as_me: failed program was:" >&5
15429sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 ac_header_compiler=no
15432fi
15433
15434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436echo "${ECHO_T}$ac_header_compiler" >&6; }
15437
15438# Is the header present?
15439{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15441cat >conftest.$ac_ext <<_ACEOF
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
15446/* end confdefs.h. */
15447#include <$ac_header>
15448_ACEOF
15449if { (ac_try="$ac_cpp conftest.$ac_ext"
15450case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453esac
15454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15456 ac_status=$?
15457 grep -v '^ *+' conftest.er1 >conftest.err
15458 rm -f conftest.er1
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } >/dev/null; then
15462 if test -s conftest.err; then
15463 ac_cpp_err=$ac_c_preproc_warn_flag
15464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15465 else
15466 ac_cpp_err=
15467 fi
15468else
15469 ac_cpp_err=yes
15470fi
15471if test -z "$ac_cpp_err"; then
15472 ac_header_preproc=yes
15473else
15474 echo "$as_me: failed program was:" >&5
15475sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 ac_header_preproc=no
15478fi
15479
15480rm -f conftest.err conftest.$ac_ext
15481{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482echo "${ECHO_T}$ac_header_preproc" >&6; }
15483
15484# So? What about this header?
15485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15486 yes:no: )
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc=yes
15492 ;;
15493 no:yes:* )
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15506 ( cat <<\_ASBOX
15507## ----------------------------------- ##
15508## Report this to llvmbugs@cs.uiuc.edu ##
15509## ----------------------------------- ##
15510_ASBOX
15511 ) | sed "s/^/$as_me: WARNING: /" >&2
15512 ;;
15513esac
15514{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518else
15519 eval "$as_ac_Header=\$ac_header_preproc"
15520fi
15521ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523echo "${ECHO_T}$ac_res" >&6; }
15524
15525fi
15526if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015527 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015529_ACEOF
15530
15531fi
15532
15533done
15534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015535
15536
Douglas Gregor071d73d2009-05-18 17:21:34 +000015537for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015538do
15539as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15544 echo $ECHO_N "(cached) $ECHO_C" >&6
15545fi
15546ac_res=`eval echo '${'$as_ac_Header'}'`
15547 { echo "$as_me:$LINENO: result: $ac_res" >&5
15548echo "${ECHO_T}$ac_res" >&6; }
15549else
15550 # Is the header compilable?
15551{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15553cat >conftest.$ac_ext <<_ACEOF
15554/* confdefs.h. */
15555_ACEOF
15556cat confdefs.h >>conftest.$ac_ext
15557cat >>conftest.$ac_ext <<_ACEOF
15558/* end confdefs.h. */
15559$ac_includes_default
15560#include <$ac_header>
15561_ACEOF
15562rm -f conftest.$ac_objext
15563if { (ac_try="$ac_compile"
15564case "(($ac_try" in
15565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15566 *) ac_try_echo=$ac_try;;
15567esac
15568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15569 (eval "$ac_compile") 2>conftest.er1
15570 ac_status=$?
15571 grep -v '^ *+' conftest.er1 >conftest.err
15572 rm -f conftest.er1
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15577 { (case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15580esac
15581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_try") 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest.$ac_objext'
15587 { (case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590esac
15591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_try") 2>&5
15593 ac_status=$?
15594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595 (exit $ac_status); }; }; then
15596 ac_header_compiler=yes
15597else
15598 echo "$as_me: failed program was:" >&5
15599sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ac_header_compiler=no
15602fi
15603
15604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15605{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15606echo "${ECHO_T}$ac_header_compiler" >&6; }
15607
15608# Is the header present?
15609{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15610echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15611cat >conftest.$ac_ext <<_ACEOF
15612/* confdefs.h. */
15613_ACEOF
15614cat confdefs.h >>conftest.$ac_ext
15615cat >>conftest.$ac_ext <<_ACEOF
15616/* end confdefs.h. */
15617#include <$ac_header>
15618_ACEOF
15619if { (ac_try="$ac_cpp conftest.$ac_ext"
15620case "(($ac_try" in
15621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15622 *) ac_try_echo=$ac_try;;
15623esac
15624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15626 ac_status=$?
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } >/dev/null; then
15632 if test -s conftest.err; then
15633 ac_cpp_err=$ac_c_preproc_warn_flag
15634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15635 else
15636 ac_cpp_err=
15637 fi
15638else
15639 ac_cpp_err=yes
15640fi
15641if test -z "$ac_cpp_err"; then
15642 ac_header_preproc=yes
15643else
15644 echo "$as_me: failed program was:" >&5
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
15647 ac_header_preproc=no
15648fi
15649
15650rm -f conftest.err conftest.$ac_ext
15651{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15652echo "${ECHO_T}$ac_header_preproc" >&6; }
15653
15654# So? What about this header?
15655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15656 yes:no: )
15657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15661 ac_header_preproc=yes
15662 ;;
15663 no:yes:* )
15664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15676 ( cat <<\_ASBOX
15677## ----------------------------------- ##
15678## Report this to llvmbugs@cs.uiuc.edu ##
15679## ----------------------------------- ##
15680_ASBOX
15681 ) | sed "s/^/$as_me: WARNING: /" >&2
15682 ;;
15683esac
15684{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688else
15689 eval "$as_ac_Header=\$ac_header_preproc"
15690fi
15691ac_res=`eval echo '${'$as_ac_Header'}'`
15692 { echo "$as_me:$LINENO: result: $ac_res" >&5
15693echo "${ECHO_T}$ac_res" >&6; }
15694
15695fi
15696if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015697 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015699_ACEOF
15700
15701fi
15702
15703done
Reid Spencer59473af2004-12-25 07:31:29 +000015704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015705
15706
15707
15708
Reid Spencerbe3e4192007-08-17 05:45:26 +000015709for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015710do
15711as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15717fi
15718ac_res=`eval echo '${'$as_ac_Header'}'`
15719 { echo "$as_me:$LINENO: result: $ac_res" >&5
15720echo "${ECHO_T}$ac_res" >&6; }
15721else
15722 # Is the header compilable?
15723{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15724echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15725cat >conftest.$ac_ext <<_ACEOF
15726/* confdefs.h. */
15727_ACEOF
15728cat confdefs.h >>conftest.$ac_ext
15729cat >>conftest.$ac_ext <<_ACEOF
15730/* end confdefs.h. */
15731$ac_includes_default
15732#include <$ac_header>
15733_ACEOF
15734rm -f conftest.$ac_objext
15735if { (ac_try="$ac_compile"
15736case "(($ac_try" in
15737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15738 *) ac_try_echo=$ac_try;;
15739esac
15740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15741 (eval "$ac_compile") 2>conftest.er1
15742 ac_status=$?
15743 grep -v '^ *+' conftest.er1 >conftest.err
15744 rm -f conftest.er1
15745 cat conftest.err >&5
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15749 { (case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15752esac
15753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_try") 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; } &&
15758 { ac_try='test -s conftest.$ac_objext'
15759 { (case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762esac
15763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764 (eval "$ac_try") 2>&5
15765 ac_status=$?
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); }; }; then
15768 ac_header_compiler=yes
15769else
15770 echo "$as_me: failed program was:" >&5
15771sed 's/^/| /' conftest.$ac_ext >&5
15772
15773 ac_header_compiler=no
15774fi
15775
15776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15778echo "${ECHO_T}$ac_header_compiler" >&6; }
15779
15780# Is the header present?
15781{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15782echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15783cat >conftest.$ac_ext <<_ACEOF
15784/* confdefs.h. */
15785_ACEOF
15786cat confdefs.h >>conftest.$ac_ext
15787cat >>conftest.$ac_ext <<_ACEOF
15788/* end confdefs.h. */
15789#include <$ac_header>
15790_ACEOF
15791if { (ac_try="$ac_cpp conftest.$ac_ext"
15792case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15795esac
15796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15798 ac_status=$?
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } >/dev/null; then
15804 if test -s conftest.err; then
15805 ac_cpp_err=$ac_c_preproc_warn_flag
15806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15807 else
15808 ac_cpp_err=
15809 fi
15810else
15811 ac_cpp_err=yes
15812fi
15813if test -z "$ac_cpp_err"; then
15814 ac_header_preproc=yes
15815else
15816 echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5
15818
15819 ac_header_preproc=no
15820fi
15821
15822rm -f conftest.err conftest.$ac_ext
15823{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15824echo "${ECHO_T}$ac_header_preproc" >&6; }
15825
15826# So? What about this header?
15827case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15828 yes:no: )
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15832echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15833 ac_header_preproc=yes
15834 ;;
15835 no:yes:* )
15836 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15837echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15838 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15839echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15840 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15841echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15842 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15843echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15845echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15846 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15847echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15848 ( cat <<\_ASBOX
15849## ----------------------------------- ##
15850## Report this to llvmbugs@cs.uiuc.edu ##
15851## ----------------------------------- ##
15852_ASBOX
15853 ) | sed "s/^/$as_me: WARNING: /" >&2
15854 ;;
15855esac
15856{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 echo $ECHO_N "(cached) $ECHO_C" >&6
15860else
15861 eval "$as_ac_Header=\$ac_header_preproc"
15862fi
15863ac_res=`eval echo '${'$as_ac_Header'}'`
15864 { echo "$as_me:$LINENO: result: $ac_res" >&5
15865echo "${ECHO_T}$ac_res" >&6; }
15866
15867fi
15868if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015869 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015870#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015871_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015872
15873fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015874
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015875done
15876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015877
15878
15879
15880
Douglas Gregor01746742009-05-11 18:05:52 +000015881for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015882do
15883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889fi
15890ac_res=`eval echo '${'$as_ac_Header'}'`
15891 { echo "$as_me:$LINENO: result: $ac_res" >&5
15892echo "${ECHO_T}$ac_res" >&6; }
15893else
15894 # Is the header compilable?
15895{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15896echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15897cat >conftest.$ac_ext <<_ACEOF
15898/* confdefs.h. */
15899_ACEOF
15900cat confdefs.h >>conftest.$ac_ext
15901cat >>conftest.$ac_ext <<_ACEOF
15902/* end confdefs.h. */
15903$ac_includes_default
15904#include <$ac_header>
15905_ACEOF
15906rm -f conftest.$ac_objext
15907if { (ac_try="$ac_compile"
15908case "(($ac_try" in
15909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910 *) ac_try_echo=$ac_try;;
15911esac
15912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913 (eval "$ac_compile") 2>conftest.er1
15914 ac_status=$?
15915 grep -v '^ *+' conftest.er1 >conftest.err
15916 rm -f conftest.er1
15917 cat conftest.err >&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); } &&
15920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15921 { (case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924esac
15925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_try") 2>&5
15927 ac_status=$?
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try='test -s conftest.$ac_objext'
15931 { (case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934esac
15935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_try") 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15940 ac_header_compiler=yes
15941else
15942 echo "$as_me: failed program was:" >&5
15943sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ac_header_compiler=no
15946fi
15947
15948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950echo "${ECHO_T}$ac_header_compiler" >&6; }
15951
15952# Is the header present?
15953{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15954echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15955cat >conftest.$ac_ext <<_ACEOF
15956/* confdefs.h. */
15957_ACEOF
15958cat confdefs.h >>conftest.$ac_ext
15959cat >>conftest.$ac_ext <<_ACEOF
15960/* end confdefs.h. */
15961#include <$ac_header>
15962_ACEOF
15963if { (ac_try="$ac_cpp conftest.$ac_ext"
15964case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967esac
15968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } >/dev/null; then
15976 if test -s conftest.err; then
15977 ac_cpp_err=$ac_c_preproc_warn_flag
15978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979 else
15980 ac_cpp_err=
15981 fi
15982else
15983 ac_cpp_err=yes
15984fi
15985if test -z "$ac_cpp_err"; then
15986 ac_header_preproc=yes
15987else
15988 echo "$as_me: failed program was:" >&5
15989sed 's/^/| /' conftest.$ac_ext >&5
15990
15991 ac_header_preproc=no
15992fi
15993
15994rm -f conftest.err conftest.$ac_ext
15995{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996echo "${ECHO_T}$ac_header_preproc" >&6; }
15997
15998# So? What about this header?
15999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16000 yes:no: )
16001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16002echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16004echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16005 ac_header_preproc=yes
16006 ;;
16007 no:yes:* )
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16009echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16011echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16013echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16015echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16019echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16020 ( cat <<\_ASBOX
16021## ----------------------------------- ##
16022## Report this to llvmbugs@cs.uiuc.edu ##
16023## ----------------------------------- ##
16024_ASBOX
16025 ) | sed "s/^/$as_me: WARNING: /" >&2
16026 ;;
16027esac
16028{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16032else
16033 eval "$as_ac_Header=\$ac_header_preproc"
16034fi
16035ac_res=`eval echo '${'$as_ac_Header'}'`
16036 { echo "$as_me:$LINENO: result: $ac_res" >&5
16037echo "${ECHO_T}$ac_res" >&6; }
16038
16039fi
16040if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016041 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016043_ACEOF
16044
16045fi
16046
16047done
16048
Reid Spencer0a262ba2005-08-24 10:07:20 +000016049if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016050
16051for ac_header in pthread.h
16052do
16053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059fi
16060ac_res=`eval echo '${'$as_ac_Header'}'`
16061 { echo "$as_me:$LINENO: result: $ac_res" >&5
16062echo "${ECHO_T}$ac_res" >&6; }
16063else
16064 # Is the header compilable?
16065{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16067cat >conftest.$ac_ext <<_ACEOF
16068/* confdefs.h. */
16069_ACEOF
16070cat confdefs.h >>conftest.$ac_ext
16071cat >>conftest.$ac_ext <<_ACEOF
16072/* end confdefs.h. */
16073$ac_includes_default
16074#include <$ac_header>
16075_ACEOF
16076rm -f conftest.$ac_objext
16077if { (ac_try="$ac_compile"
16078case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16081esac
16082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_compile") 2>conftest.er1
16084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
16090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094esac
16095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest.$ac_objext'
16101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
16107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
16110 ac_header_compiler=yes
16111else
16112 echo "$as_me: failed program was:" >&5
16113sed 's/^/| /' conftest.$ac_ext >&5
16114
16115 ac_header_compiler=no
16116fi
16117
16118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16119{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16120echo "${ECHO_T}$ac_header_compiler" >&6; }
16121
16122# Is the header present?
16123{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16125cat >conftest.$ac_ext <<_ACEOF
16126/* confdefs.h. */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h. */
16131#include <$ac_header>
16132_ACEOF
16133if { (ac_try="$ac_cpp conftest.$ac_ext"
16134case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16137esac
16138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16140 ac_status=$?
16141 grep -v '^ *+' conftest.er1 >conftest.err
16142 rm -f conftest.er1
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); } >/dev/null; then
16146 if test -s conftest.err; then
16147 ac_cpp_err=$ac_c_preproc_warn_flag
16148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16149 else
16150 ac_cpp_err=
16151 fi
16152else
16153 ac_cpp_err=yes
16154fi
16155if test -z "$ac_cpp_err"; then
16156 ac_header_preproc=yes
16157else
16158 echo "$as_me: failed program was:" >&5
16159sed 's/^/| /' conftest.$ac_ext >&5
16160
16161 ac_header_preproc=no
16162fi
16163
16164rm -f conftest.err conftest.$ac_ext
16165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16166echo "${ECHO_T}$ac_header_preproc" >&6; }
16167
16168# So? What about this header?
16169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16170 yes:no: )
16171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16175 ac_header_preproc=yes
16176 ;;
16177 no:yes:* )
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16181echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16185echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16190 ( cat <<\_ASBOX
16191## ----------------------------------- ##
16192## Report this to llvmbugs@cs.uiuc.edu ##
16193## ----------------------------------- ##
16194_ASBOX
16195 ) | sed "s/^/$as_me: WARNING: /" >&2
16196 ;;
16197esac
16198{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16202else
16203 eval "$as_ac_Header=\$ac_header_preproc"
16204fi
16205ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207echo "${ECHO_T}$ac_res" >&6; }
16208
16209fi
16210if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016211 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016213_ACEOF
16214 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016215
16216else
16217 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016218
16219fi
16220
Reid Spencerbe3e4192007-08-17 05:45:26 +000016221done
Reid Spencer1000b732006-12-01 00:37:14 +000016222
16223else
16224 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016225
16226fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016227
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016228if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016229
16230
16231for ac_header in ffi.h ffi/ffi.h
16232do
16233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239fi
16240ac_res=`eval echo '${'$as_ac_Header'}'`
16241 { echo "$as_me:$LINENO: result: $ac_res" >&5
16242echo "${ECHO_T}$ac_res" >&6; }
16243else
16244 # Is the header compilable?
16245{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16247cat >conftest.$ac_ext <<_ACEOF
16248/* confdefs.h. */
16249_ACEOF
16250cat confdefs.h >>conftest.$ac_ext
16251cat >>conftest.$ac_ext <<_ACEOF
16252/* end confdefs.h. */
16253$ac_includes_default
16254#include <$ac_header>
16255_ACEOF
16256rm -f conftest.$ac_objext
16257if { (ac_try="$ac_compile"
16258case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261esac
16262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274esac
16275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16287 ac_status=$?
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_header_compiler=yes
16291else
16292 echo "$as_me: failed program was:" >&5
16293sed 's/^/| /' conftest.$ac_ext >&5
16294
16295 ac_header_compiler=no
16296fi
16297
16298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16300echo "${ECHO_T}$ac_header_compiler" >&6; }
16301
16302# Is the header present?
16303{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16305cat >conftest.$ac_ext <<_ACEOF
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311#include <$ac_header>
16312_ACEOF
16313if { (ac_try="$ac_cpp conftest.$ac_ext"
16314case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16317esac
16318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16320 ac_status=$?
16321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } >/dev/null; then
16326 if test -s conftest.err; then
16327 ac_cpp_err=$ac_c_preproc_warn_flag
16328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16329 else
16330 ac_cpp_err=
16331 fi
16332else
16333 ac_cpp_err=yes
16334fi
16335if test -z "$ac_cpp_err"; then
16336 ac_header_preproc=yes
16337else
16338 echo "$as_me: failed program was:" >&5
16339sed 's/^/| /' conftest.$ac_ext >&5
16340
16341 ac_header_preproc=no
16342fi
16343
16344rm -f conftest.err conftest.$ac_ext
16345{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16346echo "${ECHO_T}$ac_header_preproc" >&6; }
16347
16348# So? What about this header?
16349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16350 yes:no: )
16351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16355 ac_header_preproc=yes
16356 ;;
16357 no:yes:* )
16358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16370 ( cat <<\_ASBOX
16371## ----------------------------------- ##
16372## Report this to llvmbugs@cs.uiuc.edu ##
16373## ----------------------------------- ##
16374_ASBOX
16375 ) | sed "s/^/$as_me: WARNING: /" >&2
16376 ;;
16377esac
16378{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382else
16383 eval "$as_ac_Header=\$ac_header_preproc"
16384fi
16385ac_res=`eval echo '${'$as_ac_Header'}'`
16386 { echo "$as_me:$LINENO: result: $ac_res" >&5
16387echo "${ECHO_T}$ac_res" >&6; }
16388
16389fi
16390if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016391 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016393_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016394
16395fi
16396
16397done
16398
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016399fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016400
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016401
Reid Spencer8085cff2005-01-16 02:58:39 +000016402
Torok Edwin871384f2010-01-26 08:50:50 +000016403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016404 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16405echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16406if test "${ac_cv_huge_val_sanity+set}" = set; then
16407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016408else
16409
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016410 ac_ext=cpp
16411ac_cpp='$CXXCPP $CPPFLAGS'
16412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016415
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016416 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016418 ac_cv_huge_val_sanity=yes
16419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016420 cat >conftest.$ac_ext <<_ACEOF
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016425/* end confdefs.h. */
16426#include <math.h>
16427int
16428main ()
16429{
16430double x = HUGE_VAL; return x != x;
16431 ;
16432 return 0;
16433}
16434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016435rm -f conftest$ac_exeext
16436if { (ac_try="$ac_link"
16437case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440esac
16441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_link") 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16446 { (case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16449esac
16450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_try") 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016455 ac_cv_huge_val_sanity=yes
16456else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016457 echo "$as_me: program exited with status $ac_status" >&5
16458echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461( exit $ac_status )
16462ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016463fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016464rm -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 +000016465fi
16466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016467
Reid Spencerb2ed05262006-11-03 18:04:08 +000016468 ac_ext=c
16469ac_cpp='$CPP $CPPFLAGS'
16470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16472ac_compiler_gnu=$ac_cv_c_compiler_gnu
16473
16474
16475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016476{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16477echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016478 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16479
16480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016481{ echo "$as_me:$LINENO: checking for pid_t" >&5
16482echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16483if test "${ac_cv_type_pid_t+set}" = set; then
16484 echo $ECHO_N "(cached) $ECHO_C" >&6
16485else
16486 cat >conftest.$ac_ext <<_ACEOF
16487/* confdefs.h. */
16488_ACEOF
16489cat confdefs.h >>conftest.$ac_ext
16490cat >>conftest.$ac_ext <<_ACEOF
16491/* end confdefs.h. */
16492$ac_includes_default
16493typedef pid_t ac__type_new_;
16494int
16495main ()
16496{
16497if ((ac__type_new_ *) 0)
16498 return 0;
16499if (sizeof (ac__type_new_))
16500 return 0;
16501 ;
16502 return 0;
16503}
16504_ACEOF
16505rm -f conftest.$ac_objext
16506if { (ac_try="$ac_compile"
16507case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510esac
16511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_compile") 2>conftest.er1
16513 ac_status=$?
16514 grep -v '^ *+' conftest.er1 >conftest.err
16515 rm -f conftest.er1
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16520 { (case "(($ac_try" in
16521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522 *) ac_try_echo=$ac_try;;
16523esac
16524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_try") 2>&5
16526 ac_status=$?
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); }; } &&
16529 { ac_try='test -s conftest.$ac_objext'
16530 { (case "(($ac_try" in
16531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16532 *) ac_try_echo=$ac_try;;
16533esac
16534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16535 (eval "$ac_try") 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
16539 ac_cv_type_pid_t=yes
16540else
16541 echo "$as_me: failed program was:" >&5
16542sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016544 ac_cv_type_pid_t=no
16545fi
16546
16547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16548fi
16549{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16550echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16551if test $ac_cv_type_pid_t = yes; then
16552 :
John Criswell7a73b802003-06-30 21:59:07 +000016553else
16554
16555cat >>confdefs.h <<_ACEOF
16556#define pid_t int
16557_ACEOF
16558
16559fi
16560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016561{ echo "$as_me:$LINENO: checking for size_t" >&5
16562echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16563if test "${ac_cv_type_size_t+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16565else
16566 cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573typedef size_t ac__type_new_;
16574int
16575main ()
16576{
16577if ((ac__type_new_ *) 0)
16578 return 0;
16579if (sizeof (ac__type_new_))
16580 return 0;
16581 ;
16582 return 0;
16583}
16584_ACEOF
16585rm -f conftest.$ac_objext
16586if { (ac_try="$ac_compile"
16587case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16590esac
16591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_compile") 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16600 { (case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16603esac
16604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16605 (eval "$ac_try") 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; } &&
16609 { ac_try='test -s conftest.$ac_objext'
16610 { (case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16613esac
16614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_try") 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 ac_cv_type_size_t=yes
16620else
16621 echo "$as_me: failed program was:" >&5
16622sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016623
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016624 ac_cv_type_size_t=no
16625fi
16626
16627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628fi
16629{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16630echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16631if test $ac_cv_type_size_t = yes; then
16632 :
John Criswell7a73b802003-06-30 21:59:07 +000016633else
16634
16635cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016636#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016637_ACEOF
16638
16639fi
16640
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016641
16642cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016643#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016644_ACEOF
16645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016646{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16647echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16648if test "${ac_cv_struct_tm+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016651 cat >conftest.$ac_ext <<_ACEOF
16652/* confdefs.h. */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016656/* end confdefs.h. */
16657#include <sys/types.h>
16658#include <time.h>
16659
16660int
16661main ()
16662{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016663struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016664 ;
16665 return 0;
16666}
16667_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016668rm -f conftest.$ac_objext
16669if { (ac_try="$ac_compile"
16670case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673esac
16674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_compile") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16683 { (case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686esac
16687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_try") 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016702 ac_cv_struct_tm=time.h
16703else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016704 echo "$as_me: failed program was:" >&5
16705sed 's/^/| /' conftest.$ac_ext >&5
16706
16707 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016709
Reid Spencera773bd52006-08-04 18:18:08 +000016710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016712{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16713echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016714if test $ac_cv_struct_tm = sys/time.h; then
16715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016716cat >>confdefs.h <<\_ACEOF
16717#define TM_IN_SYS_TIME 1
16718_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016719
16720fi
16721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016722{ echo "$as_me:$LINENO: checking for int64_t" >&5
16723echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16724if test "${ac_cv_type_int64_t+set}" = set; then
16725 echo $ECHO_N "(cached) $ECHO_C" >&6
16726else
16727 cat >conftest.$ac_ext <<_ACEOF
16728/* confdefs.h. */
16729_ACEOF
16730cat confdefs.h >>conftest.$ac_ext
16731cat >>conftest.$ac_ext <<_ACEOF
16732/* end confdefs.h. */
16733$ac_includes_default
16734typedef int64_t ac__type_new_;
16735int
16736main ()
16737{
16738if ((ac__type_new_ *) 0)
16739 return 0;
16740if (sizeof (ac__type_new_))
16741 return 0;
16742 ;
16743 return 0;
16744}
16745_ACEOF
16746rm -f conftest.$ac_objext
16747if { (ac_try="$ac_compile"
16748case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16751esac
16752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16754 ac_status=$?
16755 grep -v '^ *+' conftest.er1 >conftest.err
16756 rm -f conftest.er1
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16764esac
16765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16767 ac_status=$?
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; } &&
16770 { ac_try='test -s conftest.$ac_objext'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774esac
16775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_type_int64_t=yes
16781else
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785 ac_cv_type_int64_t=no
16786fi
16787
16788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16789fi
16790{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16791echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16792if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016793
16794cat >>confdefs.h <<_ACEOF
16795#define HAVE_INT64_T 1
16796_ACEOF
16797
16798
16799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016800 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16801echo "$as_me: error: Type int64_t required but not found" >&2;}
16802 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016803fi
16804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016805{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16806echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16807if test "${ac_cv_type_uint64_t+set}" = set; then
16808 echo $ECHO_N "(cached) $ECHO_C" >&6
16809else
16810 cat >conftest.$ac_ext <<_ACEOF
16811/* confdefs.h. */
16812_ACEOF
16813cat confdefs.h >>conftest.$ac_ext
16814cat >>conftest.$ac_ext <<_ACEOF
16815/* end confdefs.h. */
16816$ac_includes_default
16817typedef uint64_t ac__type_new_;
16818int
16819main ()
16820{
16821if ((ac__type_new_ *) 0)
16822 return 0;
16823if (sizeof (ac__type_new_))
16824 return 0;
16825 ;
16826 return 0;
16827}
16828_ACEOF
16829rm -f conftest.$ac_objext
16830if { (ac_try="$ac_compile"
16831case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16834esac
16835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_compile") 2>conftest.er1
16837 ac_status=$?
16838 grep -v '^ *+' conftest.er1 >conftest.err
16839 rm -f conftest.er1
16840 cat conftest.err >&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); } &&
16843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16847esac
16848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16857esac
16858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_try") 2>&5
16860 ac_status=$?
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 ac_cv_type_uint64_t=yes
16864else
16865 echo "$as_me: failed program was:" >&5
16866sed 's/^/| /' conftest.$ac_ext >&5
16867
16868 ac_cv_type_uint64_t=no
16869fi
16870
16871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16872fi
16873{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16874echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16875if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016876
16877cat >>confdefs.h <<_ACEOF
16878#define HAVE_UINT64_T 1
16879_ACEOF
16880
16881
16882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016883 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16884echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16885if test "${ac_cv_type_u_int64_t+set}" = set; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887else
16888 cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895typedef u_int64_t ac__type_new_;
16896int
16897main ()
16898{
16899if ((ac__type_new_ *) 0)
16900 return 0;
16901if (sizeof (ac__type_new_))
16902 return 0;
16903 ;
16904 return 0;
16905}
16906_ACEOF
16907rm -f conftest.$ac_objext
16908if { (ac_try="$ac_compile"
16909case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_compile") 2>conftest.er1
16915 ac_status=$?
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
16921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16928 ac_status=$?
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; } &&
16931 { ac_try='test -s conftest.$ac_objext'
16932 { (case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16935esac
16936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_try") 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; }; then
16941 ac_cv_type_u_int64_t=yes
16942else
16943 echo "$as_me: failed program was:" >&5
16944sed 's/^/| /' conftest.$ac_ext >&5
16945
16946 ac_cv_type_u_int64_t=no
16947fi
16948
16949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950fi
16951{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16952echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16953if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016954
16955cat >>confdefs.h <<_ACEOF
16956#define HAVE_U_INT64_T 1
16957_ACEOF
16958
16959
Misha Brukmanceca9042004-09-02 23:02:30 +000016960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016961 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16962echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16963 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016964fi
16965
John Criswell679ff312004-09-02 18:44:44 +000016966fi
16967
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016968
16969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016970
16971
16972
16973
16974
16975
16976
Reid Spencerdf3be822006-01-23 08:15:53 +000016977for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016978do
16979as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16980{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16981echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16982if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16983 echo $ECHO_N "(cached) $ECHO_C" >&6
16984else
16985 cat >conftest.$ac_ext <<_ACEOF
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
16991/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16993#define $ac_func innocuous_$ac_func
16994
16995/* System header to define __stub macros and hopefully few prototypes,
16996 which can conflict with char $ac_func (); below.
16997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16998 <limits.h> exists even on freestanding compilers. */
16999
17000#ifdef __STDC__
17001# include <limits.h>
17002#else
17003# include <assert.h>
17004#endif
17005
17006#undef $ac_func
17007
17008/* Override any GCC internal prototype to avoid an error.
17009 Use char because int might match the return type of a GCC
17010 builtin and then its argument prototype would still apply. */
17011#ifdef __cplusplus
17012extern "C"
17013#endif
17014char $ac_func ();
17015/* The GNU C library defines this for functions which it implements
17016 to always fail with ENOSYS. Some functions are actually named
17017 something starting with __ and the normal name is an alias. */
17018#if defined __stub_$ac_func || defined __stub___$ac_func
17019choke me
17020#endif
17021
17022int
17023main ()
17024{
17025return $ac_func ();
17026 ;
17027 return 0;
17028}
17029_ACEOF
17030rm -f conftest.$ac_objext conftest$ac_exeext
17031if { (ac_try="$ac_link"
17032case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035esac
17036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_link") 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17045 { (case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17048esac
17049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_try") 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest$ac_exeext'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; }; then
17064 eval "$as_ac_var=yes"
17065else
17066 echo "$as_me: failed program was:" >&5
17067sed 's/^/| /' conftest.$ac_ext >&5
17068
17069 eval "$as_ac_var=no"
17070fi
17071
17072rm -f core conftest.err conftest.$ac_objext \
17073 conftest$ac_exeext conftest.$ac_ext
17074fi
17075ac_res=`eval echo '${'$as_ac_var'}'`
17076 { echo "$as_me:$LINENO: result: $ac_res" >&5
17077echo "${ECHO_T}$ac_res" >&6; }
17078if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017079 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017081_ACEOF
17082
17083fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017084done
John Criswell7a73b802003-06-30 21:59:07 +000017085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017086
17087
17088
17089
Reid Spencer96cf5872007-07-13 10:05:30 +000017090for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017091do
17092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17093{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17095if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097else
17098 cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17106#define $ac_func innocuous_$ac_func
17107
17108/* System header to define __stub macros and hopefully few prototypes,
17109 which can conflict with char $ac_func (); below.
17110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17111 <limits.h> exists even on freestanding compilers. */
17112
17113#ifdef __STDC__
17114# include <limits.h>
17115#else
17116# include <assert.h>
17117#endif
17118
17119#undef $ac_func
17120
17121/* Override any GCC internal prototype to avoid an error.
17122 Use char because int might match the return type of a GCC
17123 builtin and then its argument prototype would still apply. */
17124#ifdef __cplusplus
17125extern "C"
17126#endif
17127char $ac_func ();
17128/* The GNU C library defines this for functions which it implements
17129 to always fail with ENOSYS. Some functions are actually named
17130 something starting with __ and the normal name is an alias. */
17131#if defined __stub_$ac_func || defined __stub___$ac_func
17132choke me
17133#endif
17134
17135int
17136main ()
17137{
17138return $ac_func ();
17139 ;
17140 return 0;
17141}
17142_ACEOF
17143rm -f conftest.$ac_objext conftest$ac_exeext
17144if { (ac_try="$ac_link"
17145case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17148esac
17149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_link") 2>conftest.er1
17151 ac_status=$?
17152 grep -v '^ *+' conftest.er1 >conftest.err
17153 rm -f conftest.er1
17154 cat conftest.err >&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); } &&
17157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161esac
17162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_try") 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest$ac_exeext'
17168 { (case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_try") 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 eval "$as_ac_var=yes"
17178else
17179 echo "$as_me: failed program was:" >&5
17180sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 eval "$as_ac_var=no"
17183fi
17184
17185rm -f core conftest.err conftest.$ac_objext \
17186 conftest$ac_exeext conftest.$ac_ext
17187fi
17188ac_res=`eval echo '${'$as_ac_var'}'`
17189 { echo "$as_me:$LINENO: result: $ac_res" >&5
17190echo "${ECHO_T}$ac_res" >&6; }
17191if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017192 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017194_ACEOF
17195
17196fi
17197done
17198
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017199
17200
17201
17202
17203
Reid Spencerb90645c2007-02-16 19:17:20 +000017204for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017205do
17206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17207{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17209if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17211else
17212 cat >conftest.$ac_ext <<_ACEOF
17213/* confdefs.h. */
17214_ACEOF
17215cat confdefs.h >>conftest.$ac_ext
17216cat >>conftest.$ac_ext <<_ACEOF
17217/* end confdefs.h. */
17218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17220#define $ac_func innocuous_$ac_func
17221
17222/* System header to define __stub macros and hopefully few prototypes,
17223 which can conflict with char $ac_func (); below.
17224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17225 <limits.h> exists even on freestanding compilers. */
17226
17227#ifdef __STDC__
17228# include <limits.h>
17229#else
17230# include <assert.h>
17231#endif
17232
17233#undef $ac_func
17234
17235/* Override any GCC internal prototype to avoid an error.
17236 Use char because int might match the return type of a GCC
17237 builtin and then its argument prototype would still apply. */
17238#ifdef __cplusplus
17239extern "C"
17240#endif
17241char $ac_func ();
17242/* The GNU C library defines this for functions which it implements
17243 to always fail with ENOSYS. Some functions are actually named
17244 something starting with __ and the normal name is an alias. */
17245#if defined __stub_$ac_func || defined __stub___$ac_func
17246choke me
17247#endif
17248
17249int
17250main ()
17251{
17252return $ac_func ();
17253 ;
17254 return 0;
17255}
17256_ACEOF
17257rm -f conftest.$ac_objext conftest$ac_exeext
17258if { (ac_try="$ac_link"
17259case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17262esac
17263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_link") 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } &&
17271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17272 { (case "(($ac_try" in
17273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17274 *) ac_try_echo=$ac_try;;
17275esac
17276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17277 (eval "$ac_try") 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; } &&
17281 { ac_try='test -s conftest$ac_exeext'
17282 { (case "(($ac_try" in
17283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17284 *) ac_try_echo=$ac_try;;
17285esac
17286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17287 (eval "$ac_try") 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; }; then
17291 eval "$as_ac_var=yes"
17292else
17293 echo "$as_me: failed program was:" >&5
17294sed 's/^/| /' conftest.$ac_ext >&5
17295
17296 eval "$as_ac_var=no"
17297fi
17298
17299rm -f core conftest.err conftest.$ac_objext \
17300 conftest$ac_exeext conftest.$ac_ext
17301fi
17302ac_res=`eval echo '${'$as_ac_var'}'`
17303 { echo "$as_me:$LINENO: result: $ac_res" >&5
17304echo "${ECHO_T}$ac_res" >&6; }
17305if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017306 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017307#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017308_ACEOF
17309
17310fi
17311done
17312
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017313
17314
17315
Reid Spencerb90645c2007-02-16 19:17:20 +000017316for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017317do
17318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17319{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323else
17324 cat >conftest.$ac_ext <<_ACEOF
17325/* confdefs.h. */
17326_ACEOF
17327cat confdefs.h >>conftest.$ac_ext
17328cat >>conftest.$ac_ext <<_ACEOF
17329/* end confdefs.h. */
17330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17332#define $ac_func innocuous_$ac_func
17333
17334/* System header to define __stub macros and hopefully few prototypes,
17335 which can conflict with char $ac_func (); below.
17336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17337 <limits.h> exists even on freestanding compilers. */
17338
17339#ifdef __STDC__
17340# include <limits.h>
17341#else
17342# include <assert.h>
17343#endif
17344
17345#undef $ac_func
17346
17347/* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17350#ifdef __cplusplus
17351extern "C"
17352#endif
17353char $ac_func ();
17354/* The GNU C library defines this for functions which it implements
17355 to always fail with ENOSYS. Some functions are actually named
17356 something starting with __ and the normal name is an alias. */
17357#if defined __stub_$ac_func || defined __stub___$ac_func
17358choke me
17359#endif
17360
17361int
17362main ()
17363{
17364return $ac_func ();
17365 ;
17366 return 0;
17367}
17368_ACEOF
17369rm -f conftest.$ac_objext conftest$ac_exeext
17370if { (ac_try="$ac_link"
17371case "(($ac_try" in
17372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17373 *) ac_try_echo=$ac_try;;
17374esac
17375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17376 (eval "$ac_link") 2>conftest.er1
17377 ac_status=$?
17378 grep -v '^ *+' conftest.er1 >conftest.err
17379 rm -f conftest.er1
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397esac
17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_try") 2>&5
17400 ac_status=$?
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 eval "$as_ac_var=yes"
17404else
17405 echo "$as_me: failed program was:" >&5
17406sed 's/^/| /' conftest.$ac_ext >&5
17407
17408 eval "$as_ac_var=no"
17409fi
17410
17411rm -f core conftest.err conftest.$ac_objext \
17412 conftest$ac_exeext conftest.$ac_ext
17413fi
17414ac_res=`eval echo '${'$as_ac_var'}'`
17415 { echo "$as_me:$LINENO: result: $ac_res" >&5
17416echo "${ECHO_T}$ac_res" >&6; }
17417if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017418 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017420_ACEOF
17421
17422fi
17423done
17424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017425
17426
17427
17428
17429
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017430for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017431do
17432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17433{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17435if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17437else
17438 cat >conftest.$ac_ext <<_ACEOF
17439/* confdefs.h. */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h. */
17444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17446#define $ac_func innocuous_$ac_func
17447
17448/* System header to define __stub macros and hopefully few prototypes,
17449 which can conflict with char $ac_func (); below.
17450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17451 <limits.h> exists even on freestanding compilers. */
17452
17453#ifdef __STDC__
17454# include <limits.h>
17455#else
17456# include <assert.h>
17457#endif
17458
17459#undef $ac_func
17460
17461/* Override any GCC internal prototype to avoid an error.
17462 Use char because int might match the return type of a GCC
17463 builtin and then its argument prototype would still apply. */
17464#ifdef __cplusplus
17465extern "C"
17466#endif
17467char $ac_func ();
17468/* The GNU C library defines this for functions which it implements
17469 to always fail with ENOSYS. Some functions are actually named
17470 something starting with __ and the normal name is an alias. */
17471#if defined __stub_$ac_func || defined __stub___$ac_func
17472choke me
17473#endif
17474
17475int
17476main ()
17477{
17478return $ac_func ();
17479 ;
17480 return 0;
17481}
17482_ACEOF
17483rm -f conftest.$ac_objext conftest$ac_exeext
17484if { (ac_try="$ac_link"
17485case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_link") 2>conftest.er1
17491 ac_status=$?
17492 grep -v '^ *+' conftest.er1 >conftest.err
17493 rm -f conftest.er1
17494 cat conftest.err >&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); } &&
17497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17498 { (case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501esac
17502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_try") 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; } &&
17507 { ac_try='test -s conftest$ac_exeext'
17508 { (case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17511esac
17512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17513 (eval "$ac_try") 2>&5
17514 ac_status=$?
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); }; }; then
17517 eval "$as_ac_var=yes"
17518else
17519 echo "$as_me: failed program was:" >&5
17520sed 's/^/| /' conftest.$ac_ext >&5
17521
17522 eval "$as_ac_var=no"
17523fi
17524
17525rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527fi
17528ac_res=`eval echo '${'$as_ac_var'}'`
17529 { echo "$as_me:$LINENO: result: $ac_res" >&5
17530echo "${ECHO_T}$ac_res" >&6; }
17531if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017532 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017534_ACEOF
17535
17536fi
17537done
Reid Spencerdf3be822006-01-23 08:15:53 +000017538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017539
17540
17541
17542
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017543for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017544do
17545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17546{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17548if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17550else
17551 cat >conftest.$ac_ext <<_ACEOF
17552/* confdefs.h. */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h. */
17557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17559#define $ac_func innocuous_$ac_func
17560
17561/* System header to define __stub macros and hopefully few prototypes,
17562 which can conflict with char $ac_func (); below.
17563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17564 <limits.h> exists even on freestanding compilers. */
17565
17566#ifdef __STDC__
17567# include <limits.h>
17568#else
17569# include <assert.h>
17570#endif
17571
17572#undef $ac_func
17573
17574/* Override any GCC internal prototype to avoid an error.
17575 Use char because int might match the return type of a GCC
17576 builtin and then its argument prototype would still apply. */
17577#ifdef __cplusplus
17578extern "C"
17579#endif
17580char $ac_func ();
17581/* The GNU C library defines this for functions which it implements
17582 to always fail with ENOSYS. Some functions are actually named
17583 something starting with __ and the normal name is an alias. */
17584#if defined __stub_$ac_func || defined __stub___$ac_func
17585choke me
17586#endif
17587
17588int
17589main ()
17590{
17591return $ac_func ();
17592 ;
17593 return 0;
17594}
17595_ACEOF
17596rm -f conftest.$ac_objext conftest$ac_exeext
17597if { (ac_try="$ac_link"
17598case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601esac
17602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_link") 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614esac
17615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest$ac_exeext'
17621 { (case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624esac
17625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_try") 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 eval "$as_ac_var=yes"
17631else
17632 echo "$as_me: failed program was:" >&5
17633sed 's/^/| /' conftest.$ac_ext >&5
17634
17635 eval "$as_ac_var=no"
17636fi
17637
17638rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640fi
17641ac_res=`eval echo '${'$as_ac_var'}'`
17642 { echo "$as_me:$LINENO: result: $ac_res" >&5
17643echo "${ECHO_T}$ac_res" >&6; }
17644if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017645 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017647_ACEOF
17648
17649fi
17650done
17651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017652
17653
17654
17655
Chris Lattner511f11d2005-11-14 07:25:50 +000017656for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017657do
17658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17659{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17661if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663else
17664 cat >conftest.$ac_ext <<_ACEOF
17665/* confdefs.h. */
17666_ACEOF
17667cat confdefs.h >>conftest.$ac_ext
17668cat >>conftest.$ac_ext <<_ACEOF
17669/* end confdefs.h. */
17670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17672#define $ac_func innocuous_$ac_func
17673
17674/* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char $ac_func (); below.
17676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677 <limits.h> exists even on freestanding compilers. */
17678
17679#ifdef __STDC__
17680# include <limits.h>
17681#else
17682# include <assert.h>
17683#endif
17684
17685#undef $ac_func
17686
17687/* Override any GCC internal prototype to avoid an error.
17688 Use char because int might match the return type of a GCC
17689 builtin and then its argument prototype would still apply. */
17690#ifdef __cplusplus
17691extern "C"
17692#endif
17693char $ac_func ();
17694/* The GNU C library defines this for functions which it implements
17695 to always fail with ENOSYS. Some functions are actually named
17696 something starting with __ and the normal name is an alias. */
17697#if defined __stub_$ac_func || defined __stub___$ac_func
17698choke me
17699#endif
17700
17701int
17702main ()
17703{
17704return $ac_func ();
17705 ;
17706 return 0;
17707}
17708_ACEOF
17709rm -f conftest.$ac_objext conftest$ac_exeext
17710if { (ac_try="$ac_link"
17711case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714esac
17715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_link") 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } &&
17723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17724 { (case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17727esac
17728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_try") 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest$ac_exeext'
17734 { (case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17737esac
17738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739 (eval "$ac_try") 2>&5
17740 ac_status=$?
17741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 eval "$as_ac_var=yes"
17744else
17745 echo "$as_me: failed program was:" >&5
17746sed 's/^/| /' conftest.$ac_ext >&5
17747
17748 eval "$as_ac_var=no"
17749fi
17750
17751rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17753fi
17754ac_res=`eval echo '${'$as_ac_var'}'`
17755 { echo "$as_me:$LINENO: result: $ac_res" >&5
17756echo "${ECHO_T}$ac_res" >&6; }
17757if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017758 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017760_ACEOF
17761
17762fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017763done
John Criswell7a73b802003-06-30 21:59:07 +000017764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017765
17766
17767
17768
Reid Spencerafa22e22006-12-10 23:29:19 +000017769for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017770do
17771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17772{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17774if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17775 echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777 cat >conftest.$ac_ext <<_ACEOF
17778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
17783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17785#define $ac_func innocuous_$ac_func
17786
17787/* System header to define __stub macros and hopefully few prototypes,
17788 which can conflict with char $ac_func (); below.
17789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17790 <limits.h> exists even on freestanding compilers. */
17791
17792#ifdef __STDC__
17793# include <limits.h>
17794#else
17795# include <assert.h>
17796#endif
17797
17798#undef $ac_func
17799
17800/* Override any GCC internal prototype to avoid an error.
17801 Use char because int might match the return type of a GCC
17802 builtin and then its argument prototype would still apply. */
17803#ifdef __cplusplus
17804extern "C"
17805#endif
17806char $ac_func ();
17807/* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810#if defined __stub_$ac_func || defined __stub___$ac_func
17811choke me
17812#endif
17813
17814int
17815main ()
17816{
17817return $ac_func ();
17818 ;
17819 return 0;
17820}
17821_ACEOF
17822rm -f conftest.$ac_objext conftest$ac_exeext
17823if { (ac_try="$ac_link"
17824case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827esac
17828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_link") 2>conftest.er1
17830 ac_status=$?
17831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
17836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17837 { (case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840esac
17841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_try") 2>&5
17843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; } &&
17846 { ac_try='test -s conftest$ac_exeext'
17847 { (case "(($ac_try" in
17848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849 *) ac_try_echo=$ac_try;;
17850esac
17851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852 (eval "$ac_try") 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; }; then
17856 eval "$as_ac_var=yes"
17857else
17858 echo "$as_me: failed program was:" >&5
17859sed 's/^/| /' conftest.$ac_ext >&5
17860
17861 eval "$as_ac_var=no"
17862fi
17863
17864rm -f core conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17866fi
17867ac_res=`eval echo '${'$as_ac_var'}'`
17868 { echo "$as_me:$LINENO: result: $ac_res" >&5
17869echo "${ECHO_T}$ac_res" >&6; }
17870if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017871 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017873_ACEOF
17874
17875fi
17876done
17877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017878{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17879echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17880if test "${llvm_cv_c_printf_a+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017882else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017883 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017884ac_cpp='$CPP $CPPFLAGS'
17885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17887ac_compiler_gnu=$ac_cv_c_compiler_gnu
17888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017889 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017890 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017891else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017892 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017893
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017894 /* confdefs.h. */
17895_ACEOF
17896cat confdefs.h >>conftest.$ac_ext
17897cat >>conftest.$ac_ext <<_ACEOF
17898/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017899
John Criswella0137d32003-10-13 16:22:01 +000017900#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017901#include <stdlib.h>
17902
John Criswella0137d32003-10-13 16:22:01 +000017903int
17904main ()
17905{
17906
Reid Spencer2706f8c2004-09-19 23:53:36 +000017907volatile double A, B;
17908char Buffer[100];
17909A = 1;
17910A /= 10.0;
17911sprintf(Buffer, "%a", A);
17912B = atof(Buffer);
17913if (A != B)
17914 return (1);
17915if (A != 0x1.999999999999ap-4)
17916 return (1);
17917return (0);
John Criswella0137d32003-10-13 16:22:01 +000017918 ;
17919 return 0;
17920}
17921_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017922rm -f conftest$ac_exeext
17923if { (ac_try="$ac_link"
17924case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17927esac
17928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17933 { (case "(($ac_try" in
17934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935 *) ac_try_echo=$ac_try;;
17936esac
17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938 (eval "$ac_try") 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017942 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017943else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017944 echo "$as_me: program exited with status $ac_status" >&5
17945echo "$as_me: failed program was:" >&5
17946sed 's/^/| /' conftest.$ac_ext >&5
17947
17948( exit $ac_status )
17949llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017951rm -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 +000017952fi
Reid Spencera773bd52006-08-04 18:18:08 +000017953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017954
Reid Spencer2706f8c2004-09-19 23:53:36 +000017955 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017956ac_cpp='$CPP $CPPFLAGS'
17957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959ac_compiler_gnu=$ac_cv_c_compiler_gnu
17960
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017962{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17963echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017964 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017966cat >>confdefs.h <<\_ACEOF
17967#define HAVE_PRINTF_A 1
17968_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017969
Reid Spencer2706f8c2004-09-19 23:53:36 +000017970 fi
John Criswella0137d32003-10-13 16:22:01 +000017971
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017973{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17974echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17975if test "${ac_cv_func_rand48+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017977else
Reid Spencera773bd52006-08-04 18:18:08 +000017978 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017979ac_cpp='$CXXCPP $CPPFLAGS'
17980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17983
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017984 cat >conftest.$ac_ext <<_ACEOF
17985/* confdefs.h. */
17986_ACEOF
17987cat confdefs.h >>conftest.$ac_ext
17988cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017989/* end confdefs.h. */
17990#include <stdlib.h>
17991int
17992main ()
17993{
17994srand48(0);lrand48();drand48();
17995 ;
17996 return 0;
17997}
17998_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017999rm -f conftest.$ac_objext
18000if { (ac_try="$ac_compile"
18001case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18004esac
18005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_compile") 2>conftest.er1
18007 ac_status=$?
18008 grep -v '^ *+' conftest.er1 >conftest.err
18009 rm -f conftest.er1
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } &&
18013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18014 { (case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18017esac
18018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_try") 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
18024 { (case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027esac
18028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_try") 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018033 ac_cv_func_rand48=yes
18034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018035 echo "$as_me: failed program was:" >&5
18036sed 's/^/| /' conftest.$ac_ext >&5
18037
18038 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018040
Reid Spencera773bd52006-08-04 18:18:08 +000018041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018042 ac_ext=c
18043ac_cpp='$CPP $CPPFLAGS'
18044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018049{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18050echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018051
18052if test "$ac_cv_func_rand48" = "yes" ; then
18053
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018054cat >>confdefs.h <<\_ACEOF
18055#define HAVE_RAND48 1
18056_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018057
18058fi
John Criswell0021c312004-02-13 21:57:29 +000018059
18060
Torok Edwin871384f2010-01-26 08:50:50 +000018061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018062{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18063echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18064if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18065 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018066else
Reid Spencera773bd52006-08-04 18:18:08 +000018067 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018068ac_cpp='$CXXCPP $CPPFLAGS'
18069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018073 cat >conftest.$ac_ext <<_ACEOF
18074/* confdefs.h. */
18075_ACEOF
18076cat confdefs.h >>conftest.$ac_ext
18077cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018078/* end confdefs.h. */
18079#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018080int
18081main ()
18082{
18083float f; isnan(f);
18084 ;
18085 return 0;
18086}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018087_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018088rm -f conftest.$ac_objext
18089if { (ac_try="$ac_compile"
18090case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093esac
18094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_compile") 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18103 { (case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18106esac
18107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_try") 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest.$ac_objext'
18113 { (case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18116esac
18117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_try") 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018122 ac_cv_func_isnan_in_math_h=yes
18123else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018124 echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018128fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018129
Reid Spencera773bd52006-08-04 18:18:08 +000018130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018131 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018132ac_cpp='$CPP $CPPFLAGS'
18133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18135ac_compiler_gnu=$ac_cv_c_compiler_gnu
18136
18137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018138{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18139echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018140
18141
18142if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018143
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018144cat >>confdefs.h <<\_ACEOF
18145#define HAVE_ISNAN_IN_MATH_H 1
18146_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018147
Reid Spencerabec8f92004-10-27 23:03:44 +000018148fi
18149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018150{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18151echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18152if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018154else
Reid Spencera773bd52006-08-04 18:18:08 +000018155 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018156ac_cpp='$CXXCPP $CPPFLAGS'
18157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018161 cat >conftest.$ac_ext <<_ACEOF
18162/* confdefs.h. */
18163_ACEOF
18164cat confdefs.h >>conftest.$ac_ext
18165cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018166/* end confdefs.h. */
18167#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018168int
18169main ()
18170{
18171float f; isnan(f);
18172 ;
18173 return 0;
18174}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018175_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018176rm -f conftest.$ac_objext
18177if { (ac_try="$ac_compile"
18178case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18181esac
18182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_compile") 2>conftest.er1
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18191 { (case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18194esac
18195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_try") 2>&5
18197 ac_status=$?
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); }; } &&
18200 { ac_try='test -s conftest.$ac_objext'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204esac
18205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018210 ac_cv_func_isnan_in_cmath=yes
18211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018212 echo "$as_me: failed program was:" >&5
18213sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018217
Reid Spencera773bd52006-08-04 18:18:08 +000018218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018219 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018220ac_cpp='$CPP $CPPFLAGS'
18221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223ac_compiler_gnu=$ac_cv_c_compiler_gnu
18224
18225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018226{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18227echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018228
18229if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018231cat >>confdefs.h <<\_ACEOF
18232#define HAVE_ISNAN_IN_CMATH 1
18233_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018234
Reid Spencerabec8f92004-10-27 23:03:44 +000018235fi
18236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018237{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18238echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18239if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018241else
Reid Spencera773bd52006-08-04 18:18:08 +000018242 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018243ac_cpp='$CXXCPP $CPPFLAGS'
18244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018248 cat >conftest.$ac_ext <<_ACEOF
18249/* confdefs.h. */
18250_ACEOF
18251cat confdefs.h >>conftest.$ac_ext
18252cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018253/* end confdefs.h. */
18254#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018255int
18256main ()
18257{
18258float f; std::isnan(f);
18259 ;
18260 return 0;
18261}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018262_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018263rm -f conftest.$ac_objext
18264if { (ac_try="$ac_compile"
18265case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_compile") 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018297 ac_cv_func_std_isnan_in_cmath=yes
18298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018299 echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018304
Reid Spencera773bd52006-08-04 18:18:08 +000018305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018306 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018307ac_cpp='$CPP $CPPFLAGS'
18308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18310ac_compiler_gnu=$ac_cv_c_compiler_gnu
18311
18312fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018313{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18314echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018315
18316if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018318cat >>confdefs.h <<\_ACEOF
18319#define HAVE_STD_ISNAN_IN_CMATH 1
18320_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018321
Reid Spencerabec8f92004-10-27 23:03:44 +000018322fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018323
18324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018325{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18326echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18327if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018329else
Reid Spencera773bd52006-08-04 18:18:08 +000018330 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018331ac_cpp='$CXXCPP $CPPFLAGS'
18332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018336 cat >conftest.$ac_ext <<_ACEOF
18337/* confdefs.h. */
18338_ACEOF
18339cat confdefs.h >>conftest.$ac_ext
18340cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018341/* end confdefs.h. */
18342#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018343int
18344main ()
18345{
18346float f; isinf(f);
18347 ;
18348 return 0;
18349}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018350_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018351rm -f conftest.$ac_objext
18352if { (ac_try="$ac_compile"
18353case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18356esac
18357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_compile") 2>conftest.er1
18359 ac_status=$?
18360 grep -v '^ *+' conftest.er1 >conftest.err
18361 rm -f conftest.er1
18362 cat conftest.err >&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); } &&
18365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18375 { ac_try='test -s conftest.$ac_objext'
18376 { (case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18379esac
18380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_try") 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018385 ac_cv_func_isinf_in_math_h=yes
18386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018387 echo "$as_me: failed program was:" >&5
18388sed 's/^/| /' conftest.$ac_ext >&5
18389
18390 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018392
Reid Spencera773bd52006-08-04 18:18:08 +000018393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018394 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018395ac_cpp='$CPP $CPPFLAGS'
18396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18398ac_compiler_gnu=$ac_cv_c_compiler_gnu
18399
18400fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018401{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18402echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018403
18404if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018405
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018406cat >>confdefs.h <<\_ACEOF
18407#define HAVE_ISINF_IN_MATH_H 1
18408_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018409
Reid Spencerabec8f92004-10-27 23:03:44 +000018410fi
18411
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018412{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18413echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18414if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018416else
Reid Spencera773bd52006-08-04 18:18:08 +000018417 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018418ac_cpp='$CXXCPP $CPPFLAGS'
18419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18422
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018423 cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018428/* end confdefs.h. */
18429#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018430int
18431main ()
18432{
18433float f; isinf(f);
18434 ;
18435 return 0;
18436}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018438rm -f conftest.$ac_objext
18439if { (ac_try="$ac_compile"
18440case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443esac
18444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_compile") 2>conftest.er1
18446 ac_status=$?
18447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456esac
18457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest.$ac_objext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466esac
18467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018472 ac_cv_func_isinf_in_cmath=yes
18473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018479
Reid Spencera773bd52006-08-04 18:18:08 +000018480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018481 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018482ac_cpp='$CPP $CPPFLAGS'
18483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18485ac_compiler_gnu=$ac_cv_c_compiler_gnu
18486
18487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018488{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18489echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018490
18491if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018492
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018493cat >>confdefs.h <<\_ACEOF
18494#define HAVE_ISINF_IN_CMATH 1
18495_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018496
Reid Spencerabec8f92004-10-27 23:03:44 +000018497fi
18498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018499{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18500echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18501if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18502 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018503else
Reid Spencera773bd52006-08-04 18:18:08 +000018504 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018505ac_cpp='$CXXCPP $CPPFLAGS'
18506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18509
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018510 cat >conftest.$ac_ext <<_ACEOF
18511/* confdefs.h. */
18512_ACEOF
18513cat confdefs.h >>conftest.$ac_ext
18514cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018515/* end confdefs.h. */
18516#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018517int
18518main ()
18519{
18520float f; std::isinf(f)}
18521 ;
18522 return 0;
18523}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018524_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018525rm -f conftest.$ac_objext
18526if { (ac_try="$ac_compile"
18527case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530esac
18531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_compile") 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } &&
18539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18540 { (case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18543esac
18544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_try") 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
18550 { (case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_try") 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018559 ac_cv_func_std_isinf_in_cmath=yes
18560else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018561 echo "$as_me: failed program was:" >&5
18562sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018566
Reid Spencera773bd52006-08-04 18:18:08 +000018567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018568 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018569ac_cpp='$CPP $CPPFLAGS'
18570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18572ac_compiler_gnu=$ac_cv_c_compiler_gnu
18573
18574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018575{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18576echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018577
18578if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018580cat >>confdefs.h <<\_ACEOF
18581#define HAVE_STD_ISINF_IN_CMATH 1
18582_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018583
Reid Spencerabec8f92004-10-27 23:03:44 +000018584fi
18585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018586{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18587echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18588if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018590else
Reid Spencera773bd52006-08-04 18:18:08 +000018591 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018592ac_cpp='$CXXCPP $CPPFLAGS'
18593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018597 cat >conftest.$ac_ext <<_ACEOF
18598/* confdefs.h. */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018602/* end confdefs.h. */
18603#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018604int
18605main ()
18606{
18607float f; finite(f);
18608 ;
18609 return 0;
18610}
Brian Gaeked59a6472004-07-21 03:33:58 +000018611_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018612rm -f conftest.$ac_objext
18613if { (ac_try="$ac_compile"
18614case "(($ac_try" in
18615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616 *) ac_try_echo=$ac_try;;
18617esac
18618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619 (eval "$ac_compile") 2>conftest.er1
18620 ac_status=$?
18621 grep -v '^ *+' conftest.er1 >conftest.err
18622 rm -f conftest.er1
18623 cat conftest.err >&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); } &&
18626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18627 { (case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18630esac
18631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_try") 2>&5
18633 ac_status=$?
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); }; } &&
18636 { ac_try='test -s conftest.$ac_objext'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18640esac
18641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18643 ac_status=$?
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018646 ac_cv_func_finite_in_ieeefp_h=yes
18647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018648 echo "$as_me: failed program was:" >&5
18649sed 's/^/| /' conftest.$ac_ext >&5
18650
18651 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018652fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018653
Reid Spencera773bd52006-08-04 18:18:08 +000018654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018655 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018656ac_cpp='$CPP $CPPFLAGS'
18657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18659ac_compiler_gnu=$ac_cv_c_compiler_gnu
18660
18661fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018662{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18663echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018664
Brian Gaeke6802b552004-10-28 05:06:45 +000018665if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018667cat >>confdefs.h <<\_ACEOF
18668#define HAVE_FINITE_IN_IEEEFP_H 1
18669_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018670
Reid Spencerabec8f92004-10-27 23:03:44 +000018671fi
18672
18673
18674
Reid Spencer30fe5262007-01-20 07:48:49 +000018675if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018676
18677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018678for ac_header in stdlib.h unistd.h
18679do
18680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18686fi
18687ac_res=`eval echo '${'$as_ac_Header'}'`
18688 { echo "$as_me:$LINENO: result: $ac_res" >&5
18689echo "${ECHO_T}$ac_res" >&6; }
18690else
18691 # Is the header compilable?
18692{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18694cat >conftest.$ac_ext <<_ACEOF
18695/* confdefs.h. */
18696_ACEOF
18697cat confdefs.h >>conftest.$ac_ext
18698cat >>conftest.$ac_ext <<_ACEOF
18699/* end confdefs.h. */
18700$ac_includes_default
18701#include <$ac_header>
18702_ACEOF
18703rm -f conftest.$ac_objext
18704if { (ac_try="$ac_compile"
18705case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18708esac
18709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_compile") 2>conftest.er1
18711 ac_status=$?
18712 grep -v '^ *+' conftest.er1 >conftest.err
18713 rm -f conftest.er1
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } &&
18717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18718 { (case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18721esac
18722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_try") 2>&5
18724 ac_status=$?
18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); }; } &&
18727 { ac_try='test -s conftest.$ac_objext'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731esac
18732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_header_compiler=yes
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018742 ac_header_compiler=no
18743fi
18744
18745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18746{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18747echo "${ECHO_T}$ac_header_compiler" >&6; }
18748
18749# Is the header present?
18750{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18752cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758#include <$ac_header>
18759_ACEOF
18760if { (ac_try="$ac_cpp conftest.$ac_ext"
18761case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764esac
18765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } >/dev/null; then
18773 if test -s conftest.err; then
18774 ac_cpp_err=$ac_c_preproc_warn_flag
18775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18776 else
18777 ac_cpp_err=
18778 fi
18779else
18780 ac_cpp_err=yes
18781fi
18782if test -z "$ac_cpp_err"; then
18783 ac_header_preproc=yes
18784else
18785 echo "$as_me: failed program was:" >&5
18786sed 's/^/| /' conftest.$ac_ext >&5
18787
18788 ac_header_preproc=no
18789fi
18790
18791rm -f conftest.err conftest.$ac_ext
18792{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18793echo "${ECHO_T}$ac_header_preproc" >&6; }
18794
18795# So? What about this header?
18796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18797 yes:no: )
18798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18802 ac_header_preproc=yes
18803 ;;
18804 no:yes:* )
18805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18812echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18817 ( cat <<\_ASBOX
18818## ----------------------------------- ##
18819## Report this to llvmbugs@cs.uiuc.edu ##
18820## ----------------------------------- ##
18821_ASBOX
18822 ) | sed "s/^/$as_me: WARNING: /" >&2
18823 ;;
18824esac
18825{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829else
18830 eval "$as_ac_Header=\$ac_header_preproc"
18831fi
18832ac_res=`eval echo '${'$as_ac_Header'}'`
18833 { echo "$as_me:$LINENO: result: $ac_res" >&5
18834echo "${ECHO_T}$ac_res" >&6; }
18835
18836fi
18837if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018838 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018840_ACEOF
18841
18842fi
18843
18844done
18845
18846
18847for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018848do
18849as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18850{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18851echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18852if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18853 echo $ECHO_N "(cached) $ECHO_C" >&6
18854else
18855 cat >conftest.$ac_ext <<_ACEOF
18856/* confdefs.h. */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h. */
18861/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18863#define $ac_func innocuous_$ac_func
18864
18865/* System header to define __stub macros and hopefully few prototypes,
18866 which can conflict with char $ac_func (); below.
18867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868 <limits.h> exists even on freestanding compilers. */
18869
18870#ifdef __STDC__
18871# include <limits.h>
18872#else
18873# include <assert.h>
18874#endif
18875
18876#undef $ac_func
18877
18878/* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18881#ifdef __cplusplus
18882extern "C"
18883#endif
18884char $ac_func ();
18885/* The GNU C library defines this for functions which it implements
18886 to always fail with ENOSYS. Some functions are actually named
18887 something starting with __ and the normal name is an alias. */
18888#if defined __stub_$ac_func || defined __stub___$ac_func
18889choke me
18890#endif
18891
18892int
18893main ()
18894{
18895return $ac_func ();
18896 ;
18897 return 0;
18898}
18899_ACEOF
18900rm -f conftest.$ac_objext conftest$ac_exeext
18901if { (ac_try="$ac_link"
18902case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18905esac
18906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_link") 2>conftest.er1
18908 ac_status=$?
18909 grep -v '^ *+' conftest.er1 >conftest.err
18910 rm -f conftest.er1
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); } &&
18914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915 { (case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918esac
18919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_try") 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest$ac_exeext'
18925 { (case "(($ac_try" in
18926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927 *) ac_try_echo=$ac_try;;
18928esac
18929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930 (eval "$ac_try") 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; }; then
18934 eval "$as_ac_var=yes"
18935else
18936 echo "$as_me: failed program was:" >&5
18937sed 's/^/| /' conftest.$ac_ext >&5
18938
18939 eval "$as_ac_var=no"
18940fi
18941
18942rm -f core conftest.err conftest.$ac_objext \
18943 conftest$ac_exeext conftest.$ac_ext
18944fi
18945ac_res=`eval echo '${'$as_ac_var'}'`
18946 { echo "$as_me:$LINENO: result: $ac_res" >&5
18947echo "${ECHO_T}$ac_res" >&6; }
18948if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018949 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018951_ACEOF
18952
18953fi
18954done
18955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018956{ echo "$as_me:$LINENO: checking for working mmap" >&5
18957echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18958if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18959 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018961 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018962 ac_cv_func_mmap_fixed_mapped=no
18963else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018964 cat >conftest.$ac_ext <<_ACEOF
18965/* confdefs.h. */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018969/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018970$ac_includes_default
18971/* malloc might have been renamed as rpl_malloc. */
18972#undef malloc
18973
18974/* Thanks to Mike Haertel and Jim Avera for this test.
18975 Here is a matrix of mmap possibilities:
18976 mmap private not fixed
18977 mmap private fixed at somewhere currently unmapped
18978 mmap private fixed at somewhere already mapped
18979 mmap shared not fixed
18980 mmap shared fixed at somewhere currently unmapped
18981 mmap shared fixed at somewhere already mapped
18982 For private mappings, we should verify that changes cannot be read()
18983 back from the file, nor mmap's back from the file at a different
18984 address. (There have been systems where private was not correctly
18985 implemented like the infamous i386 svr4.0, and systems where the
18986 VM page cache was not coherent with the file system buffer cache
18987 like early versions of FreeBSD and possibly contemporary NetBSD.)
18988 For shared mappings, we should conversely verify that changes get
18989 propagated back to all the places they're supposed to be.
18990
18991 Grep wants private fixed already mapped.
18992 The main things grep needs to know about mmap are:
18993 * does it exist and is it safe to write into the mmap'd area
18994 * how to use it (BSD variants) */
18995
18996#include <fcntl.h>
18997#include <sys/mman.h>
18998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018999#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019000char *malloc ();
19001#endif
19002
19003/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019004#if !HAVE_GETPAGESIZE
19005/* Assume that all systems that can run configure have sys/param.h. */
19006# if !HAVE_SYS_PARAM_H
19007# define HAVE_SYS_PARAM_H 1
19008# endif
19009
John Criswell7a73b802003-06-30 21:59:07 +000019010# ifdef _SC_PAGESIZE
19011# define getpagesize() sysconf(_SC_PAGESIZE)
19012# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019013# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019014# include <sys/param.h>
19015# ifdef EXEC_PAGESIZE
19016# define getpagesize() EXEC_PAGESIZE
19017# else /* no EXEC_PAGESIZE */
19018# ifdef NBPG
19019# define getpagesize() NBPG * CLSIZE
19020# ifndef CLSIZE
19021# define CLSIZE 1
19022# endif /* no CLSIZE */
19023# else /* no NBPG */
19024# ifdef NBPC
19025# define getpagesize() NBPC
19026# else /* no NBPC */
19027# ifdef PAGESIZE
19028# define getpagesize() PAGESIZE
19029# endif /* PAGESIZE */
19030# endif /* no NBPC */
19031# endif /* no NBPG */
19032# endif /* no EXEC_PAGESIZE */
19033# else /* no HAVE_SYS_PARAM_H */
19034# define getpagesize() 8192 /* punt totally */
19035# endif /* no HAVE_SYS_PARAM_H */
19036# endif /* no _SC_PAGESIZE */
19037
19038#endif /* no HAVE_GETPAGESIZE */
19039
19040int
19041main ()
19042{
19043 char *data, *data2, *data3;
19044 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019045 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019046
19047 pagesize = getpagesize ();
19048
19049 /* First, make a file with some known garbage in it. */
19050 data = (char *) malloc (pagesize);
19051 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019052 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019053 for (i = 0; i < pagesize; ++i)
19054 *(data + i) = rand ();
19055 umask (0);
19056 fd = creat ("conftest.mmap", 0600);
19057 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019058 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019059 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019060 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019061 close (fd);
19062
19063 /* Next, try to mmap the file at a fixed address which already has
19064 something else allocated at it. If we can, also make sure that
19065 we see the same garbage. */
19066 fd = open ("conftest.mmap", O_RDWR);
19067 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019068 return 1;
19069 data2 = (char *) malloc (2 * pagesize);
19070 if (!data2)
19071 return 1;
19072 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019073 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019074 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019075 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019076 for (i = 0; i < pagesize; ++i)
19077 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019078 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019079
19080 /* Finally, make sure that changes to the mapped area do not
19081 percolate back to the file as seen by read(). (This is a bug on
19082 some variants of i386 svr4.0.) */
19083 for (i = 0; i < pagesize; ++i)
19084 *(data2 + i) = *(data2 + i) + 1;
19085 data3 = (char *) malloc (pagesize);
19086 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019087 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019088 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019089 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019090 for (i = 0; i < pagesize; ++i)
19091 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019092 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019093 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019094 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019095}
19096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019097rm -f conftest$ac_exeext
19098if { (ac_try="$ac_link"
19099case "(($ac_try" in
19100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19101 *) ac_try_echo=$ac_try;;
19102esac
19103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19104 (eval "$ac_link") 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19108 { (case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19111esac
19112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113 (eval "$ac_try") 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019117 ac_cv_func_mmap_fixed_mapped=yes
19118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019119 echo "$as_me: program exited with status $ac_status" >&5
19120echo "$as_me: failed program was:" >&5
19121sed 's/^/| /' conftest.$ac_ext >&5
19122
19123( exit $ac_status )
19124ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019126rm -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 +000019127fi
Reid Spencera773bd52006-08-04 18:18:08 +000019128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019129
John Criswell7a73b802003-06-30 21:59:07 +000019130fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019131{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19132echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019133if test $ac_cv_func_mmap_fixed_mapped = yes; then
19134
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019135cat >>confdefs.h <<\_ACEOF
19136#define HAVE_MMAP 1
19137_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019138
19139fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019140rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019142 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19143echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19144if test "${ac_cv_func_mmap_file+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019146else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019147 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019148ac_cpp='$CPP $CPPFLAGS'
19149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151ac_compiler_gnu=$ac_cv_c_compiler_gnu
19152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019153 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019154 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019156 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019158 /* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019163
John Criswell7a73b802003-06-30 21:59:07 +000019164#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019165#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019166#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019167
19168int
19169main ()
19170{
John Criswell7a73b802003-06-30 21:59:07 +000019171
19172 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019173 fd = creat ("foo",0777);
19174 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19175 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019176 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019177 ;
19178 return 0;
19179}
John Criswell7a73b802003-06-30 21:59:07 +000019180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019181rm -f conftest$ac_exeext
19182if { (ac_try="$ac_link"
19183case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19186esac
19187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_link") 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19192 { (case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19195esac
19196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_try") 2>&5
19198 ac_status=$?
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019201 ac_cv_func_mmap_file=yes
19202else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019203 echo "$as_me: program exited with status $ac_status" >&5
19204echo "$as_me: failed program was:" >&5
19205sed 's/^/| /' conftest.$ac_ext >&5
19206
19207( exit $ac_status )
19208ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019210rm -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 +000019211fi
Reid Spencera773bd52006-08-04 18:18:08 +000019212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019213
John Criswell7a73b802003-06-30 21:59:07 +000019214 ac_ext=c
19215ac_cpp='$CPP $CPPFLAGS'
19216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19218ac_compiler_gnu=$ac_cv_c_compiler_gnu
19219
19220
19221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019222{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19223echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019224if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019226cat >>confdefs.h <<\_ACEOF
19227#define HAVE_MMAP_FILE
19228_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019229
19230 MMAP_FILE=yes
19231
19232fi
19233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019234 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19235echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19236if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019238else
Reid Spencer582a23c2004-12-29 07:07:57 +000019239 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019240 ac_cv_need_dev_zero_for_mmap=yes
19241 else
19242 ac_cv_need_dev_zero_for_mmap=no
19243 fi
19244
19245fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019246{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19247echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019248if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019250cat >>confdefs.h <<\_ACEOF
19251#define NEED_DEV_ZERO_FOR_MMAP 1
19252_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019253
19254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019255
Reid Spencer30fe5262007-01-20 07:48:49 +000019256 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19257 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019258 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19259echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019260 fi
19261 if test "$ac_cv_func_mmap_file" = "no"
19262 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019263 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19264echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019265 fi
John Criswellb13092b2003-07-22 21:00:24 +000019266fi
John Criswell7a73b802003-06-30 21:59:07 +000019267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019268{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19269echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19270cat >conftest.$ac_ext <<_ACEOF
19271/* confdefs.h. */
19272_ACEOF
19273cat confdefs.h >>conftest.$ac_ext
19274cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019275/* end confdefs.h. */
19276int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019277 volatile unsigned long val = 1;
19278 __sync_synchronize();
19279 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019280 __sync_add_and_fetch(&val, 1);
19281 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019282 return 0;
19283 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019284
19285_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286rm -f conftest.$ac_objext conftest$ac_exeext
19287if { (ac_try="$ac_link"
19288case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19291esac
19292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_link") 2>conftest.er1
19294 ac_status=$?
19295 grep -v '^ *+' conftest.er1 >conftest.err
19296 rm -f conftest.er1
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); } &&
19300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19301 { (case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19304esac
19305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_try") 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; } &&
19310 { ac_try='test -s conftest$ac_exeext'
19311 { (case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19314esac
19315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_try") 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 { echo "$as_me:$LINENO: result: yes" >&5
19321echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019323cat >>confdefs.h <<\_ACEOF
19324#define LLVM_MULTITHREADED 1
19325_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019326
Owen Andersond4b272b2009-05-18 23:58:51 +000019327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019328 echo "$as_me: failed program was:" >&5
19329sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019331 { echo "$as_me:$LINENO: result: no" >&5
19332echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019334cat >>confdefs.h <<\_ACEOF
19335#define LLVM_MULTITHREADED 0
19336_ACEOF
19337
19338 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19339echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019341
Owen Andersond4b272b2009-05-18 23:58:51 +000019342rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019343 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019344
19345
John Criswell7a73b802003-06-30 21:59:07 +000019346
Nick Lewycky4372e692009-09-29 06:18:23 +000019347if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019348 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19349echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19350if test "${llvm_cv_linux_mixed+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019352else
19353 ac_ext=c
19354ac_cpp='$CPP $CPPFLAGS'
19355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19357ac_compiler_gnu=$ac_cv_c_compiler_gnu
19358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019359 cat >conftest.$ac_ext <<_ACEOF
19360/* confdefs.h. */
19361_ACEOF
19362cat confdefs.h >>conftest.$ac_ext
19363cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019364/* end confdefs.h. */
19365#ifndef __x86_64__
19366 error: Not x86-64 even if uname says so!
19367 #endif
19368
19369int
19370main ()
19371{
19372
19373 ;
19374 return 0;
19375}
19376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377rm -f conftest.$ac_objext
19378if { (ac_try="$ac_compile"
19379case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19382esac
19383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_compile") 2>conftest.er1
19385 ac_status=$?
19386 grep -v '^ *+' conftest.er1 >conftest.err
19387 rm -f conftest.er1
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
19391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19392 { (case "(($ac_try" in
19393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19394 *) ac_try_echo=$ac_try;;
19395esac
19396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19397 (eval "$ac_try") 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest.$ac_objext'
19402 { (case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19405esac
19406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_try") 2>&5
19408 ac_status=$?
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019411 llvm_cv_linux_mixed=no
19412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019413 echo "$as_me: failed program was:" >&5
19414sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019418
Nick Lewycky4372e692009-09-29 06:18:23 +000019419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 ac_ext=c
19421ac_cpp='$CPP $CPPFLAGS'
19422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19424ac_compiler_gnu=$ac_cv_c_compiler_gnu
19425
19426
19427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019428{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19429echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019430
19431 if test "$llvm_cv_linux_mixed" = "yes"; then
19432 llvm_cv_target_arch="x86"
19433 ARCH="x86"
19434 fi
19435fi
19436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019437
Reid Spencer9372f152007-07-30 20:13:24 +000019438for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019439do
19440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19441{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19443if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445else
19446 cat >conftest.$ac_ext <<_ACEOF
19447/* confdefs.h. */
19448_ACEOF
19449cat confdefs.h >>conftest.$ac_ext
19450cat >>conftest.$ac_ext <<_ACEOF
19451/* end confdefs.h. */
19452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19454#define $ac_func innocuous_$ac_func
19455
19456/* System header to define __stub macros and hopefully few prototypes,
19457 which can conflict with char $ac_func (); below.
19458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19459 <limits.h> exists even on freestanding compilers. */
19460
19461#ifdef __STDC__
19462# include <limits.h>
19463#else
19464# include <assert.h>
19465#endif
19466
19467#undef $ac_func
19468
19469/* Override any GCC internal prototype to avoid an error.
19470 Use char because int might match the return type of a GCC
19471 builtin and then its argument prototype would still apply. */
19472#ifdef __cplusplus
19473extern "C"
19474#endif
19475char $ac_func ();
19476/* The GNU C library defines this for functions which it implements
19477 to always fail with ENOSYS. Some functions are actually named
19478 something starting with __ and the normal name is an alias. */
19479#if defined __stub_$ac_func || defined __stub___$ac_func
19480choke me
19481#endif
19482
19483int
19484main ()
19485{
19486return $ac_func ();
19487 ;
19488 return 0;
19489}
19490_ACEOF
19491rm -f conftest.$ac_objext conftest$ac_exeext
19492if { (ac_try="$ac_link"
19493case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496esac
19497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_link") 2>conftest.er1
19499 ac_status=$?
19500 grep -v '^ *+' conftest.er1 >conftest.err
19501 rm -f conftest.er1
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509esac
19510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest$ac_exeext'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519esac
19520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 eval "$as_ac_var=yes"
19526else
19527 echo "$as_me: failed program was:" >&5
19528sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 eval "$as_ac_var=no"
19531fi
19532
19533rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19535fi
19536ac_res=`eval echo '${'$as_ac_var'}'`
19537 { echo "$as_me:$LINENO: result: $ac_res" >&5
19538echo "${ECHO_T}$ac_res" >&6; }
19539if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019540 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019542_ACEOF
19543
19544fi
19545done
19546
19547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019548{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19549echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19550if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019552else
19553 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019554if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019555 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019556 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19557 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019558 if test $? -eq 0 ; then
19559 llvm_cv_llvmgcc_sanity="yes"
19560 fi
19561 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019562fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019563fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019564{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19565echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019566
19567if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019568 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19569echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019570 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019571 LLVMCC1=$llvmcc1path
19572
Reid Spencer502935f2004-12-22 05:56:56 +000019573 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019574 LLVMCC1PLUS=$llvmcc1pluspath
19575
Reid Spencer502935f2004-12-22 05:56:56 +000019576 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19577 LLVMGCCDIR=$llvmgccdir
19578
Reid Spencer282d8c12006-12-21 22:55:41 +000019579 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
19580 LLVMGCCLIBEXEC=$llvmgcclibexec
19581
Reid Spencerb5d75b82006-05-09 00:31:01 +000019582 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000019583 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
19584 LLVMGCC_VERSION=$llvmgccversion
19585
19586 LLVMGCC_MAJVERS=$llvmgccmajvers
19587
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019588 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019589 LLVMGCC_LANGS=$llvmgcclangs
19590
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019591 { echo "$as_me:$LINENO: result: ok" >&5
19592echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019593fi
19594
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019595SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019596
19597
Reid Spencere9de0912004-08-20 09:03:57 +000019598# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019599# information into substitutions that will end up in Makefile.config.in
19600# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019601if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019602 prefix="/usr/local"
19603fi
Reid Spencere9de0912004-08-20 09:03:57 +000019604eval LLVM_PREFIX="${prefix}";
19605eval LLVM_BINDIR="${prefix}/bin";
19606eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019607eval LLVM_DATADIR="${prefix}/share/llvm";
19608eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19609eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019610eval LLVM_INCLUDEDIR="${prefix}/include";
19611eval LLVM_INFODIR="${prefix}/info";
19612eval LLVM_MANDIR="${prefix}/man";
19613LLVM_CONFIGTIME=`date`
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019625# Place the various directores into the config.h file as #defines so that we
19626# can know about the installation paths within LLVM.
19627
Reid Spencere9de0912004-08-20 09:03:57 +000019628cat >>confdefs.h <<_ACEOF
19629#define LLVM_PREFIX "$LLVM_PREFIX"
19630_ACEOF
19631
19632
19633cat >>confdefs.h <<_ACEOF
19634#define LLVM_BINDIR "$LLVM_BINDIR"
19635_ACEOF
19636
19637
19638cat >>confdefs.h <<_ACEOF
19639#define LLVM_LIBDIR "$LLVM_LIBDIR"
19640_ACEOF
19641
19642
19643cat >>confdefs.h <<_ACEOF
19644#define LLVM_DATADIR "$LLVM_DATADIR"
19645_ACEOF
19646
19647
19648cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019649#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019650_ACEOF
19651
19652
19653cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019654#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019655_ACEOF
19656
19657
19658cat >>confdefs.h <<_ACEOF
19659#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19660_ACEOF
19661
19662
19663cat >>confdefs.h <<_ACEOF
19664#define LLVM_INFODIR "$LLVM_INFODIR"
19665_ACEOF
19666
19667
19668cat >>confdefs.h <<_ACEOF
19669#define LLVM_MANDIR "$LLVM_MANDIR"
19670_ACEOF
19671
19672
19673cat >>confdefs.h <<_ACEOF
19674#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19675_ACEOF
19676
19677
Eric Christopher790e11c2007-12-01 00:34:39 +000019678cat >>confdefs.h <<_ACEOF
19679#define LLVM_HOSTTRIPLE "$host"
19680_ACEOF
19681
19682
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019683# Determine which bindings to build.
19684if test "$BINDINGS_TO_BUILD" = auto ; then
19685 BINDINGS_TO_BUILD=""
19686 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19687 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19688 fi
19689fi
19690BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19691
19692
19693# This isn't really configurey, but it avoids having to repeat the list in
19694# other files.
19695ALL_BINDINGS=ocaml
19696
19697
Gordon Henriksenf0915682007-10-02 16:42:22 +000019698# Do any work necessary to ensure that bindings have what they need.
19699binding_prereqs_failed=0
19700for a_binding in $BINDINGS_TO_BUILD ; do
19701 case "$a_binding" in
19702 ocaml)
19703 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019704 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19705echo "$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 +000019706 binding_prereqs_failed=1
19707 fi
19708 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019709 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19710echo "$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 +000019711 binding_prereqs_failed=1
19712 fi
19713 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019714 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19715echo "$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 +000019716 fi
19717 if test "x$with_ocaml_libdir" != xauto ; then
19718 OCAML_LIBDIR=$with_ocaml_libdir
19719
19720 else
19721 ocaml_stdlib="`"$OCAMLC" -where`"
19722 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19723 then
19724 # ocaml stdlib is beneath our prefix; use stdlib
19725 OCAML_LIBDIR=$ocaml_stdlib
19726
19727 else
19728 # ocaml stdlib is outside our prefix; use libdir/ocaml
19729 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19730
19731 fi
19732 fi
19733 ;;
19734 esac
19735done
19736if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019737 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19738echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19739 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000019740fi
19741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019742{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19743echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19744if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019746else
19747 ac_ext=cpp
19748ac_cpp='$CXXCPP $CPPFLAGS'
19749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19752
19753 oldcxxflags="$CXXFLAGS"
19754 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019755 cat >conftest.$ac_ext <<_ACEOF
19756/* confdefs.h. */
19757_ACEOF
19758cat confdefs.h >>conftest.$ac_ext
19759cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019760/* end confdefs.h. */
19761
19762int
19763main ()
19764{
19765
19766 ;
19767 return 0;
19768}
19769_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019770rm -f conftest.$ac_objext
19771if { (ac_try="$ac_compile"
19772case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19775esac
19776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_compile") 2>conftest.er1
19778 ac_status=$?
19779 grep -v '^ *+' conftest.er1 >conftest.err
19780 rm -f conftest.er1
19781 cat conftest.err >&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } &&
19784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19785 { (case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19788esac
19789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_try") 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest.$ac_objext'
19795 { (case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19798esac
19799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_try") 2>&5
19801 ac_status=$?
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019804 llvm_cv_cxx_visibility_inlines_hidden=yes
19805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806 echo "$as_me: failed program was:" >&5
19807sed 's/^/| /' conftest.$ac_ext >&5
19808
19809 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019810fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019811
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19813 CXXFLAGS="$oldcxxflags"
19814 ac_ext=c
19815ac_cpp='$CPP $CPPFLAGS'
19816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19818ac_compiler_gnu=$ac_cv_c_compiler_gnu
19819
19820
19821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019822{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19823echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019824if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19825 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19826
19827else
19828 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19829
19830fi
19831
Gordon Henriksenf0915682007-10-02 16:42:22 +000019832
Nick Lewycky731c6ab2009-03-05 08:20:44 +000019833if test "$llvm_cv_link_use_r" = "yes" ; then
19834 RPATH="-Wl,-R"
19835else
19836 RPATH="-Wl,-rpath"
19837fi
19838
19839
19840if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19841 RDYNAMIC="-Wl,-export-dynamic"
19842else
19843 RDYNAMIC=""
19844fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019845
19846
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019847
Reid Spencera773bd52006-08-04 18:18:08 +000019848ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019849
Douglas Gregor1555a232009-06-16 20:12:29 +000019850ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19851
19852ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19853
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000019854ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19855
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000019856ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19857
Chandler Carruth8b67f772009-10-26 01:35:46 +000019858ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019859
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019860
Reid Spencera773bd52006-08-04 18:18:08 +000019861ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019862
19863
Reid Spencerea949cf2006-08-16 00:45:38 +000019864ac_config_files="$ac_config_files llvm.spec"
19865
19866
Reid Spencera773bd52006-08-04 18:18:08 +000019867ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000019868
19869
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000019870ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19871
19872
Reid Spencera773bd52006-08-04 18:18:08 +000019873ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000019874
19875
Reid Spencera773bd52006-08-04 18:18:08 +000019876ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000019877
Reid Spencera773bd52006-08-04 18:18:08 +000019878ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019879
19880
Reid Spencera773bd52006-08-04 18:18:08 +000019881ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019882
19883
Reid Spencera773bd52006-08-04 18:18:08 +000019884ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019885
19886
Reid Spencera773bd52006-08-04 18:18:08 +000019887ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019888
19889
Reid Spencer8b2e1412006-11-17 03:32:33 +000019890ac_config_commands="$ac_config_commands runtime/Makefile"
19891
19892
Reid Spencera773bd52006-08-04 18:18:08 +000019893ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019894
19895
Reid Spencera773bd52006-08-04 18:18:08 +000019896ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019897
19898
Bill Wendlingf24eb392009-01-04 23:12:30 +000019899ac_config_commands="$ac_config_commands unittests/Makefile"
19900
19901
Reid Spencera773bd52006-08-04 18:18:08 +000019902ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019903
19904
Reid Spencera773bd52006-08-04 18:18:08 +000019905ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019906
19907
Reid Spencera773bd52006-08-04 18:18:08 +000019908ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019909
19910
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000019911ac_config_commands="$ac_config_commands bindings/Makefile"
19912
19913
19914ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19915
19916
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019917
John Criswell7a73b802003-06-30 21:59:07 +000019918cat >confcache <<\_ACEOF
19919# This file is a shell script that caches the results of configure
19920# tests run on this system so they can be shared between configure
19921# scripts and configure runs, see configure's option --config-cache.
19922# It is not useful on other systems. If it contains results you don't
19923# want to keep, you may remove or edit it.
19924#
19925# config.status only pays attention to the cache file if you give it
19926# the --recheck option to rerun configure.
19927#
John Criswell0c38eaf2003-09-10 15:17:25 +000019928# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000019929# loading this file, other *unset* `ac_cv_foo' will be assigned the
19930# following values.
19931
19932_ACEOF
19933
19934# The following way of writing the cache mishandles newlines in values,
19935# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000019936# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000019937# Ultrix sh set writes to stderr and can't be redirected directly,
19938# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000019939(
19940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19941 eval ac_val=\$$ac_var
19942 case $ac_val in #(
19943 *${as_nl}*)
19944 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019945 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19946echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019947 esac
19948 case $ac_var in #(
19949 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019950 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019951 esac ;;
19952 esac
19953 done
19954
John Criswell7a73b802003-06-30 21:59:07 +000019955 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000019956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19957 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019958 # `set' does not quote correctly, so add quotes (double-quote
19959 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000019960 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019961 "s/'/'\\\\''/g;
19962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000019963 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000019964 *)
19965 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000019966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000019967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019968 esac |
19969 sort
19970) |
John Criswell7a73b802003-06-30 21:59:07 +000019971 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000019972 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000019973 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000019974 :clear
John Criswell7a73b802003-06-30 21:59:07 +000019975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19976 t end
Reid Spencera773bd52006-08-04 18:18:08 +000019977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19978 :end' >>confcache
19979if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19980 if test -w "$cache_file"; then
19981 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019982 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19983echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000019984 cat confcache >$cache_file
19985 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019986 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19987echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000019988 fi
19989fi
19990rm -f confcache
19991
19992test "x$prefix" = xNONE && prefix=$ac_default_prefix
19993# Let make expand exec_prefix.
19994test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19995
John Criswell7a73b802003-06-30 21:59:07 +000019996DEFS=-DHAVE_CONFIG_H
19997
John Criswell0c38eaf2003-09-10 15:17:25 +000019998ac_libobjs=
19999ac_ltlibobjs=
20000for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20001 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020002 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020003 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020004 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20005 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20007 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020008done
20009LIBOBJS=$ac_libobjs
20010
20011LTLIBOBJS=$ac_ltlibobjs
20012
20013
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020014if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020015 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20016Usually this means the macro was only invoked conditionally." >&5
20017echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20018Usually this means the macro was only invoked conditionally." >&2;}
20019 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020020fi
20021if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020022 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20023Usually this means the macro was only invoked conditionally." >&5
20024echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20025Usually this means the macro was only invoked conditionally." >&2;}
20026 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020027fi
John Criswell7a73b802003-06-30 21:59:07 +000020028
20029: ${CONFIG_STATUS=./config.status}
20030ac_clean_files_save=$ac_clean_files
20031ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020032{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20033echo "$as_me: creating $CONFIG_STATUS" >&6;}
20034cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020035#! $SHELL
20036# Generated by $as_me.
20037# Run this file to recreate the current configuration.
20038# Compiler output produced by configure, useful for debugging
20039# configure, is in config.log if it exists.
20040
20041debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020042ac_cs_recheck=false
20043ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020044SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020045_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020047cat >>$CONFIG_STATUS <<\_ACEOF
20048## --------------------- ##
20049## M4sh Initialization. ##
20050## --------------------- ##
20051
20052# Be Bourne compatible
20053if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020054 emulate sh
20055 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020056 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020057 # is contrary to our usage. Disable this feature.
20058 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020059 setopt NO_GLOB_SUBST
20060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020061 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020062fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020063BIN_SH=xpg4; export BIN_SH # for Tru64
20064DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020065
John Criswell7a73b802003-06-30 21:59:07 +000020066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067# PATH needs CR
20068# Avoid depending upon Character Ranges.
20069as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20070as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20071as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20072as_cr_digits='0123456789'
20073as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020074
20075# The user is always right.
20076if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020077 echo "#! /bin/sh" >conf$$.sh
20078 echo "exit 0" >>conf$$.sh
20079 chmod +x conf$$.sh
20080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20081 PATH_SEPARATOR=';'
20082 else
20083 PATH_SEPARATOR=:
20084 fi
20085 rm -f conf$$.sh
20086fi
20087
20088# Support unset when possible.
20089if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20090 as_unset=unset
20091else
20092 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020093fi
John Criswell7a73b802003-06-30 21:59:07 +000020094
Reid Spencera773bd52006-08-04 18:18:08 +000020095
20096# IFS
20097# We need space, tab and new line, in precisely that order. Quoting is
20098# there to prevent editors from complaining about space-tab.
20099# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20100# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020101as_nl='
20102'
Reid Spencera773bd52006-08-04 18:18:08 +000020103IFS=" "" $as_nl"
20104
20105# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020106case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020107 *[\\/]* ) as_myself=$0 ;;
20108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020109for as_dir in $PATH
20110do
20111 IFS=$as_save_IFS
20112 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20114done
Reid Spencera773bd52006-08-04 18:18:08 +000020115IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020116
Reid Spencera773bd52006-08-04 18:18:08 +000020117 ;;
20118esac
20119# We did not find ourselves, most probably we were run as `sh COMMAND'
20120# in which case we are not to be found in the path.
20121if test "x$as_myself" = x; then
20122 as_myself=$0
20123fi
20124if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020125 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20126 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020127fi
20128
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020129# Work around bugs in pre-3.0 UWIN ksh.
20130for as_var in ENV MAIL MAILPATH
20131do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020132done
20133PS1='$ '
20134PS2='> '
20135PS4='+ '
20136
20137# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138for as_var in \
20139 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20140 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20141 LC_TELEPHONE LC_TIME
20142do
20143 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20144 eval $as_var=C; export $as_var
20145 else
20146 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020147 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020148done
Torok Edwin871384f2010-01-26 08:50:50 +000020149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020150# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020151if expr a : '\(a\)' >/dev/null 2>&1 &&
20152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20153 as_expr=expr
20154else
20155 as_expr=false
20156fi
20157
20158if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20159 as_basename=basename
20160else
20161 as_basename=false
20162fi
20163
20164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020165# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020166as_me=`$as_basename -- "$0" ||
20167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20168 X"$0" : 'X\(//\)$' \| \
20169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020170echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020171 sed '/^.*\/\([^/][^/]*\)\/*$/{
20172 s//\1/
20173 q
20174 }
20175 /^X\/\(\/\/\)$/{
20176 s//\1/
20177 q
20178 }
20179 /^X\/\(\/\).*/{
20180 s//\1/
20181 q
20182 }
20183 s/.*/./; q'`
20184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020185# CDPATH.
20186$as_unset CDPATH
20187
20188
20189
20190 as_lineno_1=$LINENO
20191 as_lineno_2=$LINENO
20192 test "x$as_lineno_1" != "x$as_lineno_2" &&
20193 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20194
20195 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20196 # uniformly replaced by the line number. The first 'sed' inserts a
20197 # line-number line after each line using $LINENO; the second 'sed'
20198 # does the real work. The second script uses 'N' to pair each
20199 # line-number line with the line containing $LINENO, and appends
20200 # trailing '-' during substitution so that $LINENO is not a special
20201 # case at line end.
20202 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20203 # scripts with optimization help from Paolo Bonzini. Blame Lee
20204 # E. McMahon (1931-1989) for sed's syntax. :-)
20205 sed -n '
20206 p
20207 /[$]LINENO/=
20208 ' <$as_myself |
20209 sed '
20210 s/[$]LINENO.*/&-/
20211 t lineno
20212 b
20213 :lineno
20214 N
20215 :loop
20216 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20217 t loop
20218 s/-\n.*//
20219 ' >$as_me.lineno &&
20220 chmod +x "$as_me.lineno" ||
20221 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20222 { (exit 1); exit 1; }; }
20223
20224 # Don't try to exec as it changes $[0], causing all sort of problems
20225 # (the dirname of $[0] is not the place where we might find the
20226 # original and so on. Autoconf is especially sensitive to this).
20227 . "./$as_me.lineno"
20228 # Exit status is that of the last command.
20229 exit
20230}
20231
20232
20233if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20234 as_dirname=dirname
20235else
20236 as_dirname=false
20237fi
Reid Spencera773bd52006-08-04 18:18:08 +000020238
20239ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020240case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020241-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020242 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020243 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020244 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020245 esac;;
20246*)
20247 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020248esac
20249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020250if expr a : '\(a\)' >/dev/null 2>&1 &&
20251 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20252 as_expr=expr
20253else
20254 as_expr=false
20255fi
20256
John Criswell7a73b802003-06-30 21:59:07 +000020257rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020258if test -d conf$$.dir; then
20259 rm -f conf$$.dir/conf$$.file
20260else
20261 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020262 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020264echo >conf$$.file
20265if ln -s conf$$.file conf$$ 2>/dev/null; then
20266 as_ln_s='ln -s'
20267 # ... but there are two gotchas:
20268 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20269 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20270 # In both cases, we have to default to `cp -p'.
20271 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020272 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020273elif ln conf$$.file conf$$ 2>/dev/null; then
20274 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020275else
20276 as_ln_s='cp -p'
20277fi
Reid Spencera773bd52006-08-04 18:18:08 +000020278rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20279rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020280
John Criswell0c38eaf2003-09-10 15:17:25 +000020281if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020282 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020283else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020284 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020285 as_mkdir_p=false
20286fi
20287
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20289# systems may use methods other than mode bits to determine executability.
20290cat >conf$$.file <<_ASEOF
20291#! /bin/sh
20292exit 0
20293_ASEOF
20294chmod +x conf$$.file
20295if test -x conf$$.file >/dev/null 2>&1; then
20296 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020298 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020300rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020301
20302# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020304
20305# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020307
20308
John Criswell7a73b802003-06-30 21:59:07 +000020309exec 6>&1
20310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020311# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020312# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020313# values after options handling.
20314ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000020315This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020316generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020317
20318 CONFIG_FILES = $CONFIG_FILES
20319 CONFIG_HEADERS = $CONFIG_HEADERS
20320 CONFIG_LINKS = $CONFIG_LINKS
20321 CONFIG_COMMANDS = $CONFIG_COMMANDS
20322 $ $0 $@
20323
Reid Spencera773bd52006-08-04 18:18:08 +000020324on `(hostname || uname -n) 2>/dev/null | sed 1q`
20325"
20326
John Criswell7a73b802003-06-30 21:59:07 +000020327_ACEOF
20328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020329cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020330# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020331config_files="$ac_config_files"
20332config_headers="$ac_config_headers"
20333config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020334
Reid Spencera773bd52006-08-04 18:18:08 +000020335_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020336
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020337cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020338ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020339\`$as_me' instantiates files from templates according to the
20340current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020342Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020343
20344 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020345 -V, --version print version number, then exit
20346 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020347 -d, --debug don't remove temporary files
20348 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020349 --file=FILE[:TEMPLATE]
20350 instantiate the configuration file FILE
20351 --header=FILE[:TEMPLATE]
20352 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020353
20354Configuration files:
20355$config_files
20356
20357Configuration headers:
20358$config_headers
20359
John Criswellc764fbc2003-09-06 15:17:13 +000020360Configuration commands:
20361$config_commands
20362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020364
Reid Spencera773bd52006-08-04 18:18:08 +000020365_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020366cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020367ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000020368llvm config.status 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369configured by $0, generated by GNU Autoconf 2.60,
20370 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020373This config.status script is free software; the Free Software Foundation
20374gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020375
20376ac_pwd='$ac_pwd'
20377srcdir='$srcdir'
20378INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020379_ACEOF
20380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020381cat >>$CONFIG_STATUS <<\_ACEOF
20382# If no file are specified by the user, then we need to provide default
20383# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020384ac_need_defaults=:
20385while test $# != 0
20386do
20387 case $1 in
20388 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020389 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20390 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020391 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020392 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020393 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020394 ac_option=$1
20395 ac_optarg=$2
20396 ac_shift=shift
20397 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020398 esac
20399
John Criswell0c38eaf2003-09-10 15:17:25 +000020400 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020401 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20403 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020404 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020405 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020406 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020407 debug=: ;;
20408 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020409 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020411 ac_need_defaults=false;;
20412 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020413 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020414 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020415 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020416 --he | --h)
20417 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020418 { echo "$as_me: error: ambiguous option: $1
20419Try \`$0 --help' for more information." >&2
20420 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020421 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020422 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20425 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020426
20427 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020428 -*) { echo "$as_me: error: unrecognized option: $1
20429Try \`$0 --help' for more information." >&2
20430 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020431
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020432 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020433 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020434
20435 esac
20436 shift
20437done
20438
John Criswell0c38eaf2003-09-10 15:17:25 +000020439ac_configure_extra_args=
20440
20441if $ac_cs_silent; then
20442 exec 6>/dev/null
20443 ac_configure_extra_args="$ac_configure_extra_args --silent"
20444fi
20445
20446_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020447cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020448if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20450 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020451 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020452 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020453fi
20454
John Criswell7a73b802003-06-30 21:59:07 +000020455_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020456cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020457exec 5>>config.log
20458{
20459 echo
20460 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20461## Running $as_me. ##
20462_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020464} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020465
Reid Spencera773bd52006-08-04 18:18:08 +000020466_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020468#
Reid Spencera773bd52006-08-04 18:18:08 +000020469# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020470#
Reid Spencerc0682832005-02-24 19:05:19 +000020471llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020472
20473_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020475cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020476
20477# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020478for ac_config_target in $ac_config_targets
20479do
Reid Spencera773bd52006-08-04 18:18:08 +000020480 case $ac_config_target in
20481 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020482 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20483 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020484 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020485 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020486 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020487 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020488 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020489 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020490 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020491 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20492 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20493 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20494 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20495 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20496 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020497 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020498 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20499 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020500 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020501 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20502 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20503 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020504 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20505 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020507 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20508echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20509 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020510 esac
20511done
20512
Reid Spencera773bd52006-08-04 18:18:08 +000020513
John Criswell7a73b802003-06-30 21:59:07 +000020514# If the user did not use the arguments to specify the items to instantiate,
20515# then the envvar interface is used. Set only those that are not.
20516# We use the long form for the default assignment because of an extremely
20517# bizarre bug on SunOS 4.1.3.
20518if $ac_need_defaults; then
20519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020522fi
20523
John Criswell0c38eaf2003-09-10 15:17:25 +000020524# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020525# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020526# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020527# Hook for its removal unless debugging.
20528# Note that there is a small window in which the directory will not be cleaned:
20529# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020530$debug ||
20531{
Reid Spencera773bd52006-08-04 18:18:08 +000020532 tmp=
20533 trap 'exit_status=$?
20534 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20535' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020537}
John Criswell7a73b802003-06-30 21:59:07 +000020538# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020539
John Criswell7a73b802003-06-30 21:59:07 +000020540{
Reid Spencera773bd52006-08-04 18:18:08 +000020541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020542 test -n "$tmp" && test -d "$tmp"
20543} ||
20544{
Reid Spencera773bd52006-08-04 18:18:08 +000020545 tmp=./conf$$-$RANDOM
20546 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020547} ||
20548{
20549 echo "$me: cannot create a temporary directory in ." >&2
20550 { (exit 1); exit 1; }
20551}
John Criswell7a73b802003-06-30 21:59:07 +000020552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020553#
20554# Set up the sed scripts for CONFIG_FILES section.
20555#
20556
20557# No need to generate the scripts if there are no CONFIG_FILES.
20558# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020559if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020560
20561_ACEOF
20562
Reid Spencera773bd52006-08-04 18:18:08 +000020563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020564
Reid Spencera773bd52006-08-04 18:18:08 +000020565ac_delim='%!_!# '
20566for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020567 cat >conf$$subs.sed <<_ACEOF
20568SHELL!$SHELL$ac_delim
20569PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20570PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20571PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20572PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20573PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20574PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20575exec_prefix!$exec_prefix$ac_delim
20576prefix!$prefix$ac_delim
20577program_transform_name!$program_transform_name$ac_delim
20578bindir!$bindir$ac_delim
20579sbindir!$sbindir$ac_delim
20580libexecdir!$libexecdir$ac_delim
20581datarootdir!$datarootdir$ac_delim
20582datadir!$datadir$ac_delim
20583sysconfdir!$sysconfdir$ac_delim
20584sharedstatedir!$sharedstatedir$ac_delim
20585localstatedir!$localstatedir$ac_delim
20586includedir!$includedir$ac_delim
20587oldincludedir!$oldincludedir$ac_delim
20588docdir!$docdir$ac_delim
20589infodir!$infodir$ac_delim
20590htmldir!$htmldir$ac_delim
20591dvidir!$dvidir$ac_delim
20592pdfdir!$pdfdir$ac_delim
20593psdir!$psdir$ac_delim
20594libdir!$libdir$ac_delim
20595localedir!$localedir$ac_delim
20596mandir!$mandir$ac_delim
20597DEFS!$DEFS$ac_delim
20598ECHO_C!$ECHO_C$ac_delim
20599ECHO_N!$ECHO_N$ac_delim
20600ECHO_T!$ECHO_T$ac_delim
20601LIBS!$LIBS$ac_delim
20602build_alias!$build_alias$ac_delim
20603host_alias!$host_alias$ac_delim
20604target_alias!$target_alias$ac_delim
20605LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20606subdirs!$subdirs$ac_delim
20607build!$build$ac_delim
20608build_cpu!$build_cpu$ac_delim
20609build_vendor!$build_vendor$ac_delim
20610build_os!$build_os$ac_delim
20611host!$host$ac_delim
20612host_cpu!$host_cpu$ac_delim
20613host_vendor!$host_vendor$ac_delim
20614host_os!$host_os$ac_delim
20615target!$target$ac_delim
20616target_cpu!$target_cpu$ac_delim
20617target_vendor!$target_vendor$ac_delim
20618target_os!$target_os$ac_delim
20619OS!$OS$ac_delim
20620HOST_OS!$HOST_OS$ac_delim
20621TARGET_OS!$TARGET_OS$ac_delim
20622LINKALL!$LINKALL$ac_delim
20623NOLINKALL!$NOLINKALL$ac_delim
20624LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20625LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20626ARCH!$ARCH$ac_delim
20627ENDIAN!$ENDIAN$ac_delim
20628CC!$CC$ac_delim
20629CFLAGS!$CFLAGS$ac_delim
20630LDFLAGS!$LDFLAGS$ac_delim
20631CPPFLAGS!$CPPFLAGS$ac_delim
20632ac_ct_CC!$ac_ct_CC$ac_delim
20633EXEEXT!$EXEEXT$ac_delim
20634OBJEXT!$OBJEXT$ac_delim
20635CPP!$CPP$ac_delim
20636GREP!$GREP$ac_delim
20637EGREP!$EGREP$ac_delim
20638LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20639BUILD_CC!$BUILD_CC$ac_delim
20640BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20641BUILD_CXX!$BUILD_CXX$ac_delim
20642CVSBUILD!$CVSBUILD$ac_delim
20643ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20644ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20645DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20646ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20647EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20648DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20649DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20650JIT!$JIT$ac_delim
20651TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20652ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20653ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20654ENABLE_PIC!$ENABLE_PIC$ac_delim
20655TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20656LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20657LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20658LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20659LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20660ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20661OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20662EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20663BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin2155d452010-02-18 04:43:02 +000020664ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020665_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020668 break
20669 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020670 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20671echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20672 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020673 else
20674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020675 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020676done
20677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020678ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20679if test -n "$ac_eof"; then
20680 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20681 ac_eof=`expr $ac_eof + 1`
20682fi
20683
20684cat >>$CONFIG_STATUS <<_ACEOF
20685cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020687_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020688sed '
20689s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20690s/^/s,@/; s/!/@,|#_!!_#|/
20691:n
20692t n
20693s/'"$ac_delim"'$/,g/; t
20694s/$/\\/; p
20695N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20696' >>$CONFIG_STATUS <conf$$subs.sed
20697rm -f conf$$subs.sed
20698cat >>$CONFIG_STATUS <<_ACEOF
20699CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000020700_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020701
20702
20703ac_delim='%!_!# '
20704for ac_last_try in false false false false false :; do
20705 cat >conf$$subs.sed <<_ACEOF
20706ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20707CXX!$CXX$ac_delim
20708CXXFLAGS!$CXXFLAGS$ac_delim
20709ac_ct_CXX!$ac_ct_CXX$ac_delim
20710NM!$NM$ac_delim
20711ifGNUmake!$ifGNUmake$ac_delim
20712LN_S!$LN_S$ac_delim
20713CMP!$CMP$ac_delim
20714CP!$CP$ac_delim
20715DATE!$DATE$ac_delim
20716FIND!$FIND$ac_delim
20717MKDIR!$MKDIR$ac_delim
20718MV!$MV$ac_delim
20719RANLIB!$RANLIB$ac_delim
20720AR!$AR$ac_delim
20721RM!$RM$ac_delim
20722SED!$SED$ac_delim
20723TAR!$TAR$ac_delim
20724BINPWD!$BINPWD$ac_delim
20725GRAPHVIZ!$GRAPHVIZ$ac_delim
20726DOT!$DOT$ac_delim
20727FDP!$FDP$ac_delim
20728NEATO!$NEATO$ac_delim
20729TWOPI!$TWOPI$ac_delim
20730CIRCO!$CIRCO$ac_delim
20731GV!$GV$ac_delim
20732DOTTY!$DOTTY$ac_delim
20733PERL!$PERL$ac_delim
20734HAVE_PERL!$HAVE_PERL$ac_delim
20735INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20736INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20737INSTALL_DATA!$INSTALL_DATA$ac_delim
20738BZIP2!$BZIP2$ac_delim
20739DOXYGEN!$DOXYGEN$ac_delim
20740GROFF!$GROFF$ac_delim
20741GZIP!$GZIP$ac_delim
20742POD2HTML!$POD2HTML$ac_delim
20743POD2MAN!$POD2MAN$ac_delim
20744RUNTEST!$RUNTEST$ac_delim
20745TCLSH!$TCLSH$ac_delim
20746ZIP!$ZIP$ac_delim
20747OCAMLC!$OCAMLC$ac_delim
20748OCAMLOPT!$OCAMLOPT$ac_delim
20749OCAMLDEP!$OCAMLDEP$ac_delim
20750OCAMLDOC!$OCAMLDOC$ac_delim
20751GAS!$GAS$ac_delim
20752INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20753INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20754CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20755CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20756LIBADD_DL!$LIBADD_DL$ac_delim
20757LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20758LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20759LLVMGCC!$LLVMGCC$ac_delim
20760LLVMGXX!$LLVMGXX$ac_delim
20761NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20762NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20763USE_UDIS86!$USE_UDIS86$ac_delim
20764USE_OPROFILE!$USE_OPROFILE$ac_delim
20765HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20766HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20767MMAP_FILE!$MMAP_FILE$ac_delim
20768LLVMCC1!$LLVMCC1$ac_delim
20769LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20770LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20771LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
20772LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
20773LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
20774LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20775SHLIBEXT!$SHLIBEXT$ac_delim
20776LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20777LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20778LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20779LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20780LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20781LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20782LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20783LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20784LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20785LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20786BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20787ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20788OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20789ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20790RPATH!$RPATH$ac_delim
20791RDYNAMIC!$RDYNAMIC$ac_delim
20792LIBOBJS!$LIBOBJS$ac_delim
20793LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000020794_ACEOF
20795
Jeffrey Yasskin2155d452010-02-18 04:43:02 +000020796 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020797 break
20798 elif $ac_last_try; then
20799 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20800echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20801 { (exit 1); exit 1; }; }
20802 else
20803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20804 fi
20805done
20806
20807ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20808if test -n "$ac_eof"; then
20809 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20810 ac_eof=`expr $ac_eof + 1`
20811fi
20812
20813cat >>$CONFIG_STATUS <<_ACEOF
20814cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20815/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20816_ACEOF
20817sed '
20818s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20819s/^/s,@/; s/!/@,|#_!!_#|/
20820:n
20821t n
20822s/'"$ac_delim"'$/,g/; t
20823s/$/\\/; p
20824N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20825' >>$CONFIG_STATUS <conf$$subs.sed
20826rm -f conf$$subs.sed
20827cat >>$CONFIG_STATUS <<_ACEOF
20828:end
20829s/|#_!!_#|//g
20830CEOF$ac_eof
20831_ACEOF
20832
20833
Reid Spencera773bd52006-08-04 18:18:08 +000020834# VPATH may cause trouble with some makes, so we remove $(srcdir),
20835# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20836# trailing colons and then remove the whole line if VPATH becomes empty
20837# (actually we leave an empty line to preserve line numbers).
20838if test "x$srcdir" = x.; then
20839 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20840s/:*\$(srcdir):*/:/
20841s/:*\${srcdir}:*/:/
20842s/:*@srcdir@:*/:/
20843s/^\([^=]*=[ ]*\):*/\1/
20844s/:*$//
20845s/^[^=]*=[ ]*$//
20846}'
20847fi
20848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020849cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020850fi # test -n "$CONFIG_FILES"
20851
Reid Spencera773bd52006-08-04 18:18:08 +000020852
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020853for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000020854do
20855 case $ac_tag in
20856 :[FHLC]) ac_mode=$ac_tag; continue;;
20857 esac
20858 case $ac_mode$ac_tag in
20859 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20861echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20862 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020863 :[FH]-) ac_tag=-:-;;
20864 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20865 esac
20866 ac_save_IFS=$IFS
20867 IFS=:
20868 set x $ac_tag
20869 IFS=$ac_save_IFS
20870 shift
20871 ac_file=$1
20872 shift
20873
20874 case $ac_mode in
20875 :L) ac_source=$1;;
20876 :[FH])
20877 ac_file_inputs=
20878 for ac_f
20879 do
20880 case $ac_f in
20881 -) ac_f="$tmp/stdin";;
20882 *) # Look for the file first in the build tree, then in the source tree
20883 # (if the path is not absolute). The absolute path cannot be DOS-style,
20884 # because $ac_f cannot contain `:'.
20885 test -f "$ac_f" ||
20886 case $ac_f in
20887 [\\/$]*) false;;
20888 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20889 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020890 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20891echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20892 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020893 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020894 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000020895 done
20896
20897 # Let's still pretend it is `configure' which instantiates (i.e., don't
20898 # use $as_me), people would be surprised to read:
20899 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020900 configure_input="Generated from "`IFS=:
20901 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000020902 if test x"$ac_file" != x-; then
20903 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904 { echo "$as_me:$LINENO: creating $ac_file" >&5
20905echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000020906 fi
20907
20908 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020909 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000020910 esac
20911 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020912 esac
20913
Reid Spencera773bd52006-08-04 18:18:08 +000020914 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000020915$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020916 X"$ac_file" : 'X\(//\)[^/]' \| \
20917 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000020918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020919echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000020920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20921 s//\1/
20922 q
20923 }
20924 /^X\(\/\/\)[^/].*/{
20925 s//\1/
20926 q
20927 }
20928 /^X\(\/\/\)$/{
20929 s//\1/
20930 q
20931 }
20932 /^X\(\/\).*/{
20933 s//\1/
20934 q
20935 }
20936 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020937 { as_dir="$ac_dir"
20938 case $as_dir in #(
20939 -*) as_dir=./$as_dir;;
20940 esac
20941 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20942 as_dirs=
20943 while :; do
20944 case $as_dir in #(
20945 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20946 *) as_qdir=$as_dir;;
20947 esac
20948 as_dirs="'$as_qdir' $as_dirs"
20949 as_dir=`$as_dirname -- "$as_dir" ||
20950$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20951 X"$as_dir" : 'X\(//\)[^/]' \| \
20952 X"$as_dir" : 'X\(//\)$' \| \
20953 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20954echo X"$as_dir" |
20955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20956 s//\1/
20957 q
20958 }
20959 /^X\(\/\/\)[^/].*/{
20960 s//\1/
20961 q
20962 }
20963 /^X\(\/\/\)$/{
20964 s//\1/
20965 q
20966 }
20967 /^X\(\/\).*/{
20968 s//\1/
20969 q
20970 }
20971 s/.*/./; q'`
20972 test -d "$as_dir" && break
20973 done
20974 test -z "$as_dirs" || eval "mkdir $as_dirs"
20975 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20976echo "$as_me: error: cannot create directory $as_dir" >&2;}
20977 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000020978 ac_builddir=.
20979
Reid Spencera773bd52006-08-04 18:18:08 +000020980case "$ac_dir" in
20981.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20982*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020983 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000020984 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000020986 case $ac_top_builddir_sub in
20987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20989 esac ;;
20990esac
20991ac_abs_top_builddir=$ac_pwd
20992ac_abs_builddir=$ac_pwd$ac_dir_suffix
20993# for backward compatibility:
20994ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000020995
20996case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000020997 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000020998 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000020999 ac_top_srcdir=$ac_top_builddir_sub
21000 ac_abs_top_srcdir=$ac_pwd ;;
21001 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021002 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021003 ac_top_srcdir=$srcdir
21004 ac_abs_top_srcdir=$srcdir ;;
21005 *) # Relative name.
21006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21007 ac_top_srcdir=$ac_top_build_prefix$srcdir
21008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021009esac
Reid Spencera773bd52006-08-04 18:18:08 +000021010ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021011
John Criswell7a73b802003-06-30 21:59:07 +000021012
Reid Spencera773bd52006-08-04 18:18:08 +000021013 case $ac_mode in
21014 :F)
21015 #
21016 # CONFIG_FILE
21017 #
John Criswell7a73b802003-06-30 21:59:07 +000021018
21019 case $INSTALL in
21020 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021021 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021022 esac
John Criswell7a73b802003-06-30 21:59:07 +000021023_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021026# If the template does not know about datarootdir, expand it.
21027# FIXME: This hack should be removed a few years after 2.60.
21028ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021029
21030case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021031 p
21032 q
21033}
21034/@datadir@/p
21035/@docdir@/p
21036/@infodir@/p
21037/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021038/@mandir@/p
21039' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021040*datarootdir*) ac_datarootdir_seen=yes;;
21041*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021042 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21043echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021044_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021045cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021046 ac_datarootdir_hack='
21047 s&@datadir@&$datadir&g
21048 s&@docdir@&$docdir&g
21049 s&@infodir@&$infodir&g
21050 s&@localedir@&$localedir&g
21051 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021052 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021053esac
21054_ACEOF
21055
21056# Neutralize VPATH when `$srcdir' = `.'.
21057# Shell code in configure.ac might set extrasub.
21058# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021059cat >>$CONFIG_STATUS <<_ACEOF
21060 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021061$extrasub
21062_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021063cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021064:t
21065/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021066s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021067s&@top_builddir@&$ac_top_builddir_sub&;t t
21068s&@srcdir@&$ac_srcdir&;t t
21069s&@abs_srcdir@&$ac_abs_srcdir&;t t
21070s&@top_srcdir@&$ac_top_srcdir&;t t
21071s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21072s&@builddir@&$ac_builddir&;t t
21073s&@abs_builddir@&$ac_abs_builddir&;t t
21074s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21075s&@INSTALL@&$ac_INSTALL&;t t
21076$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021077" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021078
Reid Spencera773bd52006-08-04 18:18:08 +000021079test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21080 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21081 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021083which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021084echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021085which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021086
Reid Spencera773bd52006-08-04 18:18:08 +000021087 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021088 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021089 -) cat "$tmp/out"; rm -f "$tmp/out";;
21090 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21091 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021092 ;;
21093 :H)
21094 #
21095 # CONFIG_HEADER
21096 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021097_ACEOF
21098
21099# Transform confdefs.h into a sed script `conftest.defines', that
21100# substitutes the proper values into config.h.in to produce config.h.
21101rm -f conftest.defines conftest.tail
21102# First, append a space to every undef/define line, to ease matching.
21103echo 's/$/ /' >conftest.defines
21104# Then, protect against being on the right side of a sed subst, or in
21105# an unquoted here document, in config.status. If some macros were
21106# called several times there might be several #defines for the same
21107# symbol, which is useless. But do not sort them, since the last
21108# AC_DEFINE must be honored.
21109ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21110# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21111# NAME is the cpp macro being defined, VALUE is the value it is being given.
21112# PARAMS is the parameter list in the macro definition--in most cases, it's
21113# just an empty string.
21114ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21115ac_dB='\\)[ (].*,\\1define\\2'
21116ac_dC=' '
21117ac_dD=' ,'
21118
21119uniq confdefs.h |
21120 sed -n '
21121 t rset
21122 :rset
21123 s/^[ ]*#[ ]*define[ ][ ]*//
21124 t ok
21125 d
21126 :ok
21127 s/[\\&,]/\\&/g
21128 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21129 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21130 ' >>conftest.defines
21131
21132# Remove the space that was appended to ease matching.
21133# Then replace #undef with comments. This is necessary, for
21134# example, in the case of _POSIX_SOURCE, which is predefined and required
21135# on some systems where configure will not decide to define it.
21136# (The regexp can be short, since the line contains either #define or #undef.)
21137echo 's/ $//
21138s,^[ #]*u.*,/* & */,' >>conftest.defines
21139
21140# Break up conftest.defines:
21141ac_max_sed_lines=50
21142
21143# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21144# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21145# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21146# et cetera.
21147ac_in='$ac_file_inputs'
21148ac_out='"$tmp/out1"'
21149ac_nxt='"$tmp/out2"'
21150
21151while :
21152do
21153 # Write a here document:
21154 cat >>$CONFIG_STATUS <<_ACEOF
21155 # First, check the format of the line:
21156 cat >"\$tmp/defines.sed" <<\\CEOF
21157/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21158/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21159b
21160:def
21161_ACEOF
21162 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21163 echo 'CEOF
21164 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21165 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21166 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21167 grep . conftest.tail >/dev/null || break
21168 rm -f conftest.defines
21169 mv conftest.tail conftest.defines
21170done
21171rm -f conftest.defines conftest.tail
21172
21173echo "ac_result=$ac_in" >>$CONFIG_STATUS
21174cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021175 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021176 echo "/* $configure_input */" >"$tmp/config.h"
21177 cat "$ac_result" >>"$tmp/config.h"
21178 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21179 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21180echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021181 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021182 rm -f $ac_file
21183 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021184 fi
21185 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021186 echo "/* $configure_input */"
21187 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021188 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021190 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021191
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021192 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21193echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021194 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021195 esac
John Criswell7a73b802003-06-30 21:59:07 +000021196
Reid Spencera773bd52006-08-04 18:18:08 +000021197
21198 case $ac_file$ac_mode in
21199 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021201 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021203 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021205 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021207 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021209 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021210 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021211 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021212 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021213 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021214 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021215 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021216 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021217 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021218 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021219 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021220 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021221 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021222 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021223 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021224 ${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 +000021225
21226 esac
21227done # for ac_tag
21228
John Criswell7a73b802003-06-30 21:59:07 +000021229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021230{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021231_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021232chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021233ac_clean_files=$ac_clean_files_save
21234
21235
21236# configure is writing to config.log, and then calls config.status.
21237# config.status does its own redirection, appending to config.log.
21238# Unfortunately, on DOS this fails, as config.log is still kept open
21239# by configure, so config.status won't be able to write to it; its
21240# output is simply discarded. So we exec the FD to /dev/null,
21241# effectively closing config.log, so it can be properly (re)opened and
21242# appended to by config.status. When coming back to configure, we
21243# need to make the FD available again.
21244if test "$no_create" != yes; then
21245 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021246 ac_config_status_args=
21247 test "$silent" = yes &&
21248 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021249 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021250 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021251 exec 5>>config.log
21252 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21253 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021254 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021255fi
21256
John Criswell12399a12003-09-30 15:55:44 +000021257#
21258# CONFIG_SUBDIRS section.
21259#
21260if test "$no_recursion" != yes; then
21261
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021262 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021263 ac_sub_configure_args=
21264 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021265 eval "set x $ac_configure_args"
21266 shift
21267 for ac_arg
21268 do
John Criswell12399a12003-09-30 15:55:44 +000021269 if test -n "$ac_prev"; then
21270 ac_prev=
21271 continue
21272 fi
21273 case $ac_arg in
21274 -cache-file | --cache-file | --cache-fil | --cache-fi \
21275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21276 ac_prev=cache_file ;;
21277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21279 | --c=*)
21280 ;;
21281 --config-cache | -C)
21282 ;;
21283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21284 ac_prev=srcdir ;;
21285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21286 ;;
21287 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21288 ac_prev=prefix ;;
21289 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21290 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021291 *)
21292 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021293 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021294 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021295 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021296 esac
21297 done
21298
21299 # Always prepend --prefix to ensure using the same prefix
21300 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021301 ac_arg="--prefix=$prefix"
21302 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021303 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021304 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021306
21307 ac_popdir=`pwd`
21308 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21309
21310 # Do not complain, so a configure script can configure whichever
21311 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021312 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021313
Reid Spencera773bd52006-08-04 18:18:08 +000021314 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021315 echo "$as_me:$LINENO: $ac_msg" >&5
21316 echo "$ac_msg" >&6
21317 { as_dir="$ac_dir"
21318 case $as_dir in #(
21319 -*) as_dir=./$as_dir;;
21320 esac
21321 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21322 as_dirs=
21323 while :; do
21324 case $as_dir in #(
21325 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21326 *) as_qdir=$as_dir;;
21327 esac
21328 as_dirs="'$as_qdir' $as_dirs"
21329 as_dir=`$as_dirname -- "$as_dir" ||
21330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21331 X"$as_dir" : 'X\(//\)[^/]' \| \
21332 X"$as_dir" : 'X\(//\)$' \| \
21333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21334echo X"$as_dir" |
21335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21336 s//\1/
21337 q
21338 }
21339 /^X\(\/\/\)[^/].*/{
21340 s//\1/
21341 q
21342 }
21343 /^X\(\/\/\)$/{
21344 s//\1/
21345 q
21346 }
21347 /^X\(\/\).*/{
21348 s//\1/
21349 q
21350 }
21351 s/.*/./; q'`
21352 test -d "$as_dir" && break
21353 done
21354 test -z "$as_dirs" || eval "mkdir $as_dirs"
21355 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21356echo "$as_me: error: cannot create directory $as_dir" >&2;}
21357 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021358 ac_builddir=.
21359
Reid Spencera773bd52006-08-04 18:18:08 +000021360case "$ac_dir" in
21361.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21362*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021364 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021365 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021366 case $ac_top_builddir_sub in
21367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21369 esac ;;
21370esac
21371ac_abs_top_builddir=$ac_pwd
21372ac_abs_builddir=$ac_pwd$ac_dir_suffix
21373# for backward compatibility:
21374ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021375
21376case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021377 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021378 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021379 ac_top_srcdir=$ac_top_builddir_sub
21380 ac_abs_top_srcdir=$ac_pwd ;;
21381 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021382 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021383 ac_top_srcdir=$srcdir
21384 ac_abs_top_srcdir=$srcdir ;;
21385 *) # Relative name.
21386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21387 ac_top_srcdir=$ac_top_build_prefix$srcdir
21388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021389esac
Reid Spencera773bd52006-08-04 18:18:08 +000021390ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021391
21392
Reid Spencera773bd52006-08-04 18:18:08 +000021393 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021394
21395 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021396 if test -f "$ac_srcdir/configure.gnu"; then
21397 ac_sub_configure=$ac_srcdir/configure.gnu
21398 elif test -f "$ac_srcdir/configure"; then
21399 ac_sub_configure=$ac_srcdir/configure
21400 elif test -f "$ac_srcdir/configure.in"; then
21401 # This should be Cygnus configure.
21402 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021403 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21405echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021406 ac_sub_configure=
21407 fi
21408
21409 # The recursion is here.
21410 if test -n "$ac_sub_configure"; then
21411 # Make the cache file name correct relative to the subdirectory.
21412 case $cache_file in
21413 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021414 *) # Relative name.
21415 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021416 esac
21417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021418 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21419echo "$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 +000021420 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021421 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21422 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021423 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21424echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21425 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021426 fi
21427
Reid Spencera773bd52006-08-04 18:18:08 +000021428 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021429 done
21430fi
21431