blob: 9093ba6cb75bdd1e451b4016d5cb47b39d73d04c [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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767LLVMGCC_LANGS
768SHLIBEXT
769LLVM_PREFIX
770LLVM_BINDIR
771LLVM_LIBDIR
772LLVM_DATADIR
773LLVM_DOCSDIR
774LLVM_ETCDIR
775LLVM_INCLUDEDIR
776LLVM_INFODIR
777LLVM_MANDIR
778LLVM_CONFIGTIME
779BINDINGS_TO_BUILD
780ALL_BINDINGS
781OCAML_LIBDIR
782ENABLE_VISIBILITY_INLINES_HIDDEN
783RPATH
784RDYNAMIC
785LIBOBJS
786LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000787ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794CPPFLAGS
795CPP
796CXX
797CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000798CCC'
Reid Spencera773bd52006-08-04 18:18:08 +0000799ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000800projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000801projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000802projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000803projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000804projects/llvm-reopt
805projects/llvm-gcc
806projects/llvm-java
807projects/llvm-tv
808projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000809projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000811
812# Initialize some variables set by options.
813ac_init_help=
814ac_init_version=false
815# The variables have the same names as the options, with
816# dashes changed to underlines.
817cache_file=/dev/null
818exec_prefix=NONE
819no_create=
820no_recursion=
821prefix=NONE
822program_prefix=NONE
823program_suffix=NONE
824program_transform_name=s,x,x,
825silent=
826site=
827srcdir=
828verbose=
829x_includes=NONE
830x_libraries=NONE
831
832# Installation directory options.
833# These are left unexpanded so users can "make install exec_prefix=/foo"
834# and all the variables that are supposed to be based on exec_prefix
835# by default will actually change.
836# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000837# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000838bindir='${exec_prefix}/bin'
839sbindir='${exec_prefix}/sbin'
840libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000841datarootdir='${prefix}/share'
842datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000843sysconfdir='${prefix}/etc'
844sharedstatedir='${prefix}/com'
845localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000846includedir='${prefix}/include'
847oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000857
858ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000859ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000860for ac_option
861do
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000864 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000865 ac_prev=
866 continue
867 fi
868
Reid Spencera773bd52006-08-04 18:18:08 +0000869 case $ac_option in
870 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *) ac_optarg=yes ;;
872 esac
John Criswell7a73b802003-06-30 21:59:07 +0000873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
Reid Spencera773bd52006-08-04 18:18:08 +0000900 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000901 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000903 datadir=$ac_optarg ;;
904
Reid Spencera773bd52006-08-04 18:18:08 +0000905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
John Criswell7a73b802003-06-30 21:59:07 +0000912 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000913 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000914 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000915 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
916 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
917 { (exit 1); exit 1; }; }
918 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
919 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000930
931 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000932 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000933 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942 | --exec | --exe | --ex)
943 ac_prev=exec_prefix ;;
944 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946 | --exec=* | --exe=* | --ex=*)
947 exec_prefix=$ac_optarg ;;
948
949 -gas | --gas | --ga | --g)
950 # Obsolete; use --with-gas.
951 with_gas=yes ;;
952
953 -help | --help | --hel | --he | -h)
954 ac_init_help=long ;;
955 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956 ac_init_help=recursive ;;
957 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958 ac_init_help=short ;;
959
960 -host | --host | --hos | --ho)
961 ac_prev=host_alias ;;
962 -host=* | --host=* | --hos=* | --ho=*)
963 host_alias=$ac_optarg ;;
964
Reid Spencera773bd52006-08-04 18:18:08 +0000965 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 ac_prev=htmldir ;;
967 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 | --ht=*)
969 htmldir=$ac_optarg ;;
970
John Criswell7a73b802003-06-30 21:59:07 +0000971 -includedir | --includedir | --includedi | --included | --include \
972 | --includ | --inclu | --incl | --inc)
973 ac_prev=includedir ;;
974 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975 | --includ=* | --inclu=* | --incl=* | --inc=*)
976 includedir=$ac_optarg ;;
977
978 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 ac_prev=infodir ;;
980 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981 infodir=$ac_optarg ;;
982
983 -libdir | --libdir | --libdi | --libd)
984 ac_prev=libdir ;;
985 -libdir=* | --libdir=* | --libdi=* | --libd=*)
986 libdir=$ac_optarg ;;
987
988 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989 | --libexe | --libex | --libe)
990 ac_prev=libexecdir ;;
991 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992 | --libexe=* | --libex=* | --libe=*)
993 libexecdir=$ac_optarg ;;
994
Reid Spencera773bd52006-08-04 18:18:08 +0000995 -localedir | --localedir | --localedi | --localed | --locale)
996 ac_prev=localedir ;;
997 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998 localedir=$ac_optarg ;;
999
John Criswell7a73b802003-06-30 21:59:07 +00001000 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001001 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001002 ac_prev=localstatedir ;;
1003 -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 localstatedir=$ac_optarg ;;
1006
1007 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 ac_prev=mandir ;;
1009 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010 mandir=$ac_optarg ;;
1011
1012 -nfp | --nfp | --nf)
1013 # Obsolete; use --without-fp.
1014 with_fp=no ;;
1015
1016 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017 | --no-cr | --no-c | -n)
1018 no_create=yes ;;
1019
1020 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022 no_recursion=yes ;;
1023
1024 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026 | --oldin | --oldi | --old | --ol | --o)
1027 ac_prev=oldincludedir ;;
1028 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031 oldincludedir=$ac_optarg ;;
1032
1033 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 ac_prev=prefix ;;
1035 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036 prefix=$ac_optarg ;;
1037
1038 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039 | --program-pre | --program-pr | --program-p)
1040 ac_prev=program_prefix ;;
1041 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043 program_prefix=$ac_optarg ;;
1044
1045 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046 | --program-suf | --program-su | --program-s)
1047 ac_prev=program_suffix ;;
1048 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050 program_suffix=$ac_optarg ;;
1051
1052 -program-transform-name | --program-transform-name \
1053 | --program-transform-nam | --program-transform-na \
1054 | --program-transform-n | --program-transform- \
1055 | --program-transform | --program-transfor \
1056 | --program-transfo | --program-transf \
1057 | --program-trans | --program-tran \
1058 | --progr-tra | --program-tr | --program-t)
1059 ac_prev=program_transform_name ;;
1060 -program-transform-name=* | --program-transform-name=* \
1061 | --program-transform-nam=* | --program-transform-na=* \
1062 | --program-transform-n=* | --program-transform-=* \
1063 | --program-transform=* | --program-transfor=* \
1064 | --program-transfo=* | --program-transf=* \
1065 | --program-trans=* | --program-tran=* \
1066 | --progr-tra=* | --program-tr=* | --program-t=*)
1067 program_transform_name=$ac_optarg ;;
1068
Reid Spencera773bd52006-08-04 18:18:08 +00001069 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 ac_prev=pdfdir ;;
1071 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072 pdfdir=$ac_optarg ;;
1073
1074 -psdir | --psdir | --psdi | --psd | --ps)
1075 ac_prev=psdir ;;
1076 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077 psdir=$ac_optarg ;;
1078
John Criswell7a73b802003-06-30 21:59:07 +00001079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080 | -silent | --silent | --silen | --sile | --sil)
1081 silent=yes ;;
1082
1083 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 ac_prev=sbindir ;;
1085 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 | --sbi=* | --sb=*)
1087 sbindir=$ac_optarg ;;
1088
1089 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1090 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1091 | --sharedst | --shareds | --shared | --share | --shar \
1092 | --sha | --sh)
1093 ac_prev=sharedstatedir ;;
1094 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1095 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1096 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 | --sha=* | --sh=*)
1098 sharedstatedir=$ac_optarg ;;
1099
1100 -site | --site | --sit)
1101 ac_prev=site ;;
1102 -site=* | --site=* | --sit=*)
1103 site=$ac_optarg ;;
1104
1105 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 ac_prev=srcdir ;;
1107 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1108 srcdir=$ac_optarg ;;
1109
1110 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1111 | --syscon | --sysco | --sysc | --sys | --sy)
1112 ac_prev=sysconfdir ;;
1113 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1114 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1115 sysconfdir=$ac_optarg ;;
1116
1117 -target | --target | --targe | --targ | --tar | --ta | --t)
1118 ac_prev=target_alias ;;
1119 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1120 target_alias=$ac_optarg ;;
1121
1122 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1123 verbose=yes ;;
1124
1125 -version | --version | --versio | --versi | --vers | -V)
1126 ac_init_version=: ;;
1127
1128 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001129 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001130 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001131 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1132 { echo "$as_me: error: invalid package name: $ac_package" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_package=`echo $ac_package| sed 's/-/_/g'`
1135 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001136
1137 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package | sed 's/-/_/g'`
1144 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1149
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1156
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001164 -*) { echo "$as_me: error: unrecognized option: $ac_option
1165Try \`$0 --help' for more information." >&2
1166 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001167 ;;
1168
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001172 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1173 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1174 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001175 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001176 export $ac_envvar ;;
1177
1178 *)
1179 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001182 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 ;;
1185
1186 esac
1187done
1188
1189if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 { echo "$as_me: error: missing argument to $ac_option" >&2
1192 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001193fi
1194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001195# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001196for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001200do
Reid Spencera773bd52006-08-04 18:18:08 +00001201 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001202 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001203 [\\/$]* | ?:[\\/]* ) continue;;
1204 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001205 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001206 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1207 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001208done
1209
1210# There might be people who depend on the old broken behavior: `$host'
1211# used to hold the argument of --host etc.
1212# FIXME: To remove some day.
1213build=$build_alias
1214host=$host_alias
1215target=$target_alias
1216
1217# FIXME: To remove some day.
1218if test "x$host_alias" != x; then
1219 if test "x$build_alias" = x; then
1220 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001221 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001222 If a cross compiler is detected then cross compile mode will be used." >&2
1223 elif test "x$build_alias" != "x$host_alias"; then
1224 cross_compiling=yes
1225 fi
1226fi
1227
1228ac_tool_prefix=
1229test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230
1231test "$silent" = yes && exec 6>/dev/null
1232
1233
Reid Spencera773bd52006-08-04 18:18:08 +00001234ac_pwd=`pwd` && test -n "$ac_pwd" &&
1235ac_ls_di=`ls -di .` &&
1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001237 { echo "$as_me: error: Working directory cannot be determined" >&2
1238 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001239test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001240 { echo "$as_me: error: pwd does not report name of working directory" >&2
1241 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001242
1243
John Criswell7a73b802003-06-30 21:59:07 +00001244# Find the source files, if location was not specified.
1245if test -z "$srcdir"; then
1246 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001247 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001248 ac_confdir=`$as_dirname -- "$0" ||
1249$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1250 X"$0" : 'X\(//\)[^/]' \| \
1251 X"$0" : 'X\(//\)$' \| \
1252 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1253echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\/\)[^/].*/{
1259 s//\1/
1260 q
1261 }
1262 /^X\(\/\/\)$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\).*/{
1267 s//\1/
1268 q
1269 }
1270 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001271 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001272 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001273 srcdir=..
1274 fi
1275else
1276 ac_srcdir_defaulted=no
1277fi
Reid Spencera773bd52006-08-04 18:18:08 +00001278if test ! -r "$srcdir/$ac_unique_file"; then
1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001280 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1281 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001282fi
Reid Spencera773bd52006-08-04 18:18:08 +00001283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001285 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1286 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001287 pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
John Criswell7a73b802003-06-30 21:59:07 +00001304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001312\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE. See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331
John Criswell7a73b802003-06-30 21:59:07 +00001332Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001334 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001336 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001365_ACEOF
1366
1367 cat <<\_ACEOF
1368
1369System types:
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1372 --target=TARGET configure for building compilers for TARGET [HOST]
1373_ACEOF
1374fi
1375
1376if test -n "$ac_init_help"; then
1377 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001378 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001379 esac
1380 cat <<\_ACEOF
1381
1382Optional Features:
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001385 --enable-optimized Compile with optimizations enabled (default is NO)
1386 --enable-profiling Compile with profiling enabled (default is NO)
1387 --enable-assertions Compile with assertion checks enabled (default is
1388 YES)
David Greenea696d242007-06-28 19:36:08 +00001389 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001390 Compile with expensive debug checks enabled (default
1391 is NO)
1392 --enable-debug-runtime Build runtime libs with debug symbols (default is
1393 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001394 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1395 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001396 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001397 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001398 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001399 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001400 is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001401 --enable-targets Build specific host targets: all or
1402 target1,target2,... Valid targets are: host, x86,
1403 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1404 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1405 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001406 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1407 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001408 --enable-bindings Build specific language bindings:
1409 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001410 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001411 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1412 Win32)
1413 --enable-llvmc-dynamic-plugins
1414 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001415 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001416
1417Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001420 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1421 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001422 --with-llvmgcc Specify location of llvm-gcc driver (default
1423 searches PATH)
1424 --with-llvmgxx Specify location of llvm-g++ driver (default
1425 searches PATH)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001426 --with-optimize-option Select the compiler options to use for optimized
1427 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001428 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001429 --with-ocaml-libdir Specify install location for ocaml bindings (default
1430 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001431 --with-c-include-dirs Colon separated list of directories clang will
1432 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001433 --with-cxx-include-root Directory with the libstdc++ headers.
1434 --with-cxx-include-arch Architecture of the libstdc++ headers.
1435 --with-cxx-include-32bit-dir
1436 32 bit multilib dir.
1437 --with-cxx-include-64bit-dir
1438 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001439 --with-binutils-include Specify path to binutils/include/ containing
1440 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001441 --with-tclinclude directory where tcl headers are
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001442 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001443 --with-oprofile=<prefix>
1444 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001445
1446Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001447 CC C compiler command
1448 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001451 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001452 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001453 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001454 CXX C++ compiler command
1455 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001456
1457Use these variables to override the choices made by `configure' or to help
1458it to find libraries and programs with nonstandard names/locations.
1459
1460Report bugs to <llvmbugs@cs.uiuc.edu>.
1461_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001462ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001463fi
1464
1465if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001468 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001469 ac_builddir=.
1470
Reid Spencera773bd52006-08-04 18:18:08 +00001471case "$ac_dir" in
1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001475 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001476 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001477 case $ac_top_builddir_sub in
1478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 esac ;;
1481esac
1482ac_abs_top_builddir=$ac_pwd
1483ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484# for backward compatibility:
1485ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001488 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001489 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001490 ac_top_srcdir=$ac_top_builddir_sub
1491 ac_abs_top_srcdir=$ac_pwd ;;
1492 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001493 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001494 ac_top_srcdir=$srcdir
1495 ac_abs_top_srcdir=$srcdir ;;
1496 *) # Relative name.
1497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498 ac_top_srcdir=$ac_top_build_prefix$srcdir
1499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001500esac
Reid Spencera773bd52006-08-04 18:18:08 +00001501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001502
Reid Spencera773bd52006-08-04 18:18:08 +00001503 cd "$ac_dir" || { ac_status=$?; continue; }
1504 # Check for guested configure.
1505 if test -f "$ac_srcdir/configure.gnu"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508 elif test -f "$ac_srcdir/configure"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001511 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001512 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001513 fi || ac_status=$?
1514 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001515 done
1516fi
1517
Reid Spencera773bd52006-08-04 18:18:08 +00001518test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001519if $ac_init_version; then
1520 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001521llvm configure 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001522generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001524Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15252002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001526This configure script is free software; the Free Software Foundation
1527gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001528
Tanya Lattnerc2264592009-08-22 21:01:26 +00001529Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001530_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001531 exit
John Criswell7a73b802003-06-30 21:59:07 +00001532fi
Reid Spencera773bd52006-08-04 18:18:08 +00001533cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001534This file contains any messages produced by compilers while
1535running configure, to aid debugging if configure makes a mistake.
1536
Tanya Lattner953042b2009-08-22 04:37:30 +00001537It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001539
1540 $ $0 $@
1541
1542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001543exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001544{
1545cat <<_ASUNAME
1546## --------- ##
1547## Platform. ##
1548## --------- ##
1549
1550hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1551uname -m = `(uname -m) 2>/dev/null || echo unknown`
1552uname -r = `(uname -r) 2>/dev/null || echo unknown`
1553uname -s = `(uname -s) 2>/dev/null || echo unknown`
1554uname -v = `(uname -v) 2>/dev/null || echo unknown`
1555
1556/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1557/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1558
1559/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1560/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1561/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001562/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001563/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1564/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1565/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1566
1567_ASUNAME
1568
1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
1571do
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001574 echo "PATH: $as_dir"
1575done
Reid Spencera773bd52006-08-04 18:18:08 +00001576IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001577
1578} >&5
1579
1580cat >&5 <<_ACEOF
1581
1582
1583## ----------- ##
1584## Core tests. ##
1585## ----------- ##
1586
1587_ACEOF
1588
1589
1590# Keep a trace of the command line.
1591# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001592# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001593# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001594# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001595ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001596ac_configure_args0=
1597ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001598ac_must_keep_next=false
1599for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001600do
John Criswell0c38eaf2003-09-10 15:17:25 +00001601 for ac_arg
1602 do
1603 case $ac_arg in
1604 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1606 | -silent | --silent | --silen | --sile | --sil)
1607 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001608 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001609 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 esac
1611 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001612 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001614 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001615 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001616 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001618 case $ac_arg in
1619 *=* | --config-cache | -C | -disable-* | --disable-* \
1620 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1621 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1622 | -with-* | --with-* | -without-* | --without-* | --x)
1623 case "$ac_configure_args0 " in
1624 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1625 esac
1626 ;;
1627 -* ) ac_must_keep_next=true ;;
1628 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001630 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 ;;
1632 esac
1633 done
John Criswell7a73b802003-06-30 21:59:07 +00001634done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001635$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1636$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 +00001637
1638# When interrupted or exit'd, cleanup temporary files, and complete
1639# config.log. We remove comments because anyway the quotes in there
1640# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001641# WARNING: Use '\'' to represent an apostrophe within the trap.
1642# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001643trap 'exit_status=$?
1644 # Save into config.log some information that might help in debugging.
1645 {
1646 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001647
John Criswell7a73b802003-06-30 21:59:07 +00001648 cat <<\_ASBOX
1649## ---------------- ##
1650## Cache variables. ##
1651## ---------------- ##
1652_ASBOX
1653 echo
1654 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001655(
1656 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1657 eval ac_val=\$$ac_var
1658 case $ac_val in #(
1659 *${as_nl}*)
1660 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001661 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1662echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001663 esac
1664 case $ac_var in #(
1665 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001666 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001667 esac ;;
1668 esac
1669 done
John Criswell7a73b802003-06-30 21:59:07 +00001670 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001671 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1672 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001673 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001674 "s/'\''/'\''\\\\'\'''\''/g;
1675 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1676 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001677 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001679 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001680 esac |
1681 sort
1682)
John Criswell7a73b802003-06-30 21:59:07 +00001683 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001684
1685 cat <<\_ASBOX
1686## ----------------- ##
1687## Output variables. ##
1688## ----------------- ##
1689_ASBOX
1690 echo
1691 for ac_var in $ac_subst_vars
1692 do
Reid Spencera773bd52006-08-04 18:18:08 +00001693 eval ac_val=\$$ac_var
1694 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001695 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001696 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001697 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001698 done | sort
1699 echo
1700
1701 if test -n "$ac_subst_files"; then
1702 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001703## ------------------- ##
1704## File substitutions. ##
1705## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001706_ASBOX
1707 echo
1708 for ac_var in $ac_subst_files
1709 do
Reid Spencera773bd52006-08-04 18:18:08 +00001710 eval ac_val=\$$ac_var
1711 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001713 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001714 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001715 done | sort
1716 echo
1717 fi
1718
John Criswell7a73b802003-06-30 21:59:07 +00001719 if test -s confdefs.h; then
1720 cat <<\_ASBOX
1721## ----------- ##
1722## confdefs.h. ##
1723## ----------- ##
1724_ASBOX
1725 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001726 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001727 echo
1728 fi
1729 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001730 echo "$as_me: caught signal $ac_signal"
1731 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001732 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001733 rm -f core *.core core.conftest.* &&
1734 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001735 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001736' 0
John Criswell7a73b802003-06-30 21:59:07 +00001737for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001738 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001739done
1740ac_signal=0
1741
1742# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001743rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001744
1745# Predefined preprocessor variables.
1746
1747cat >>confdefs.h <<_ACEOF
1748#define PACKAGE_NAME "$PACKAGE_NAME"
1749_ACEOF
1750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001751
John Criswell7a73b802003-06-30 21:59:07 +00001752cat >>confdefs.h <<_ACEOF
1753#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1754_ACEOF
1755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001756
John Criswell7a73b802003-06-30 21:59:07 +00001757cat >>confdefs.h <<_ACEOF
1758#define PACKAGE_VERSION "$PACKAGE_VERSION"
1759_ACEOF
1760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001761
John Criswell7a73b802003-06-30 21:59:07 +00001762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_STRING "$PACKAGE_STRING"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1769_ACEOF
1770
1771
1772# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001773# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001774if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001776elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001779 set x "$ac_default_prefix/share/config.site" \
1780 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001781fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782shift
1783for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001784do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001785 if test -r "$ac_site_file"; then
1786 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1787echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001788 sed 's/^/| /' "$ac_site_file" >&5
1789 . "$ac_site_file"
1790 fi
1791done
1792
1793if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 # Some versions of bash will fail to source /dev/null (special
1795 # files actually), so we avoid doing that.
1796 if test -f "$cache_file"; then
1797 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1798echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001799 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001800 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1801 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001802 esac
1803 fi
1804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1806echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001807 >$cache_file
1808fi
1809
1810# Check that the precious variables saved in the cache have kept the same
1811# value.
1812ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001813for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001814 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1815 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001816 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1817 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001818 case $ac_old_set,$ac_new_set in
1819 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1821echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 ac_cache_corrupted=: ;;
1823 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001824 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1825echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001826 ac_cache_corrupted=: ;;
1827 ,);;
1828 *)
1829 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001830 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1831echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1832 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1833echo "$as_me: former value: $ac_old_val" >&2;}
1834 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1835echo "$as_me: current value: $ac_new_val" >&2;}
1836 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001837 fi;;
1838 esac
1839 # Pass precious variables to config.status.
1840 if test "$ac_new_set" = set; then
1841 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001842 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001843 *) ac_arg=$ac_var=$ac_new_val ;;
1844 esac
1845 case " $ac_configure_args " in
1846 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001847 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001848 esac
1849 fi
1850done
1851if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001852 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1853echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1854 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1855echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1856 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
Reid Spencera773bd52006-08-04 18:18:08 +00001882
John Criswell7a73b802003-06-30 21:59:07 +00001883ac_ext=c
1884ac_cpp='$CPP $CPPFLAGS'
1885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888
1889
1890
Tanya Lattnerc2264592009-08-22 21:01:26 +00001891LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001892
1893
1894
1895
1896
1897
1898
John Criswell7a73b802003-06-30 21:59:07 +00001899ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001900for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001901 if test -f "$ac_dir/install-sh"; then
1902 ac_aux_dir=$ac_dir
1903 ac_install_sh="$ac_aux_dir/install-sh -c"
1904 break
1905 elif test -f "$ac_dir/install.sh"; then
1906 ac_aux_dir=$ac_dir
1907 ac_install_sh="$ac_aux_dir/install.sh -c"
1908 break
1909 elif test -f "$ac_dir/shtool"; then
1910 ac_aux_dir=$ac_dir
1911 ac_install_sh="$ac_aux_dir/shtool install -c"
1912 break
1913 fi
John Criswell7a73b802003-06-30 21:59:07 +00001914done
1915if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1917echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1918 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001919fi
Reid Spencera773bd52006-08-04 18:18:08 +00001920
1921# These three variables are undocumented and unsupported,
1922# and are intended to be withdrawn in a future Autoconf release.
1923# They can cause serious problems if a builder's source tree is in a directory
1924# whose full name contains unusual characters.
1925ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1926ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1927ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1928
John Criswell7a73b802003-06-30 21:59:07 +00001929
John Criswell392aaa32003-07-22 19:18:09 +00001930
Reid Spencer2706f8c2004-09-19 23:53:36 +00001931if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001932 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001933 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1934echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1935 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001936 fi
John Criswell93e1c722003-09-15 17:04:06 +00001937fi
1938
John Criswell33a911a2003-11-25 20:36:46 +00001939for i in `ls ${srcdir}/projects`
1940do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001941 if test -d ${srcdir}/projects/${i} ; then
1942 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001943 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001944 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001945 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001946 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001947 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001948 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001949 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00001950 # llvm-test is the old name of the test-suite, kept here for backwards
1951 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00001952 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00001953 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00001954 test-suite) subdirs="$subdirs projects/test-suite"
1955 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001956 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001957;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001958 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001959 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001960 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001961 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001962 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001963 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001964 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001965 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00001966 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00001967 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001968 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00001969 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001970 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001971 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1972echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001973 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001974 esac
John Criswell33a911a2003-11-25 20:36:46 +00001975 fi
1976done
John Criswell559a6c12003-09-30 16:31:48 +00001977
John Criswell7a73b802003-06-30 21:59:07 +00001978
1979# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00001980$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001981 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1982echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1983 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985{ echo "$as_me:$LINENO: checking build system type" >&5
1986echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1987if test "${ac_cv_build+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001989else
Reid Spencera773bd52006-08-04 18:18:08 +00001990 ac_build_alias=$build_alias
1991test "x$ac_build_alias" = x &&
1992 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1993test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001994 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1995echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1996 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001997ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1999echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2000 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002001
2002fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002003{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2004echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002005case $ac_cv_build in
2006*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2008echo "$as_me: error: invalid value of canonical build" >&2;}
2009 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002010esac
John Criswell7a73b802003-06-30 21:59:07 +00002011build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002012ac_save_IFS=$IFS; IFS='-'
2013set x $ac_cv_build
2014shift
2015build_cpu=$1
2016build_vendor=$2
2017shift; shift
2018# Remember, the first character of IFS is used to create $*,
2019# except with old shells:
2020build_os=$*
2021IFS=$ac_save_IFS
2022case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002023
2024
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002025{ echo "$as_me:$LINENO: checking host system type" >&5
2026echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2027if test "${ac_cv_host+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002029else
Reid Spencera773bd52006-08-04 18:18:08 +00002030 if test "x$host_alias" = x; then
2031 ac_cv_host=$ac_cv_build
2032else
2033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2035echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002037fi
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2041echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002042case $ac_cv_host in
2043*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2045echo "$as_me: error: invalid value of canonical host" >&2;}
2046 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002047esac
John Criswell7a73b802003-06-30 21:59:07 +00002048host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002049ac_save_IFS=$IFS; IFS='-'
2050set x $ac_cv_host
2051shift
2052host_cpu=$1
2053host_vendor=$2
2054shift; shift
2055# Remember, the first character of IFS is used to create $*,
2056# except with old shells:
2057host_os=$*
2058IFS=$ac_save_IFS
2059case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002060
2061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: checking target system type" >&5
2063echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2064if test "${ac_cv_target+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002066else
Reid Spencera773bd52006-08-04 18:18:08 +00002067 if test "x$target_alias" = x; then
2068 ac_cv_target=$ac_cv_host
2069else
2070 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002074fi
John Criswell7a73b802003-06-30 21:59:07 +00002075
2076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2078echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079case $ac_cv_target in
2080*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2082echo "$as_me: error: invalid value of canonical target" >&2;}
2083 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002084esac
John Criswell7a73b802003-06-30 21:59:07 +00002085target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_target
2088shift
2089target_cpu=$1
2090target_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094target_os=$*
2095IFS=$ac_save_IFS
2096case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002097
2098
2099# The aliases save the names the user supplied, while $host etc.
2100# will get canonicalized.
2101test -n "$target_alias" &&
2102 test "$program_prefix$program_suffix$program_transform_name" = \
2103 NONENONEs,x,x, &&
2104 program_prefix=${target_alias}-
2105
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002106{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2107echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2108if test "${llvm_cv_os_type+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002110else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002111 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002112 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002113 llvm_cv_link_all_option="-Wl,--whole-archive"
2114 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002115 llvm_cv_os_type="AIX"
2116 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002117 *-*-irix*)
2118 llvm_cv_link_all_option="-Wl,--whole-archive"
2119 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2120 llvm_cv_os_type="IRIX"
2121 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002122 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002123 llvm_cv_link_all_option="-Wl,--whole-archive"
2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002125 llvm_cv_os_type="Cygwin"
2126 llvm_cv_platform_type="Unix" ;;
2127 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002128 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002129 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002130 llvm_cv_os_type="Darwin"
2131 llvm_cv_platform_type="Unix" ;;
2132 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002133 llvm_cv_link_all_option="-Wl,--whole-archive"
2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002135 llvm_cv_os_type="FreeBSD"
2136 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002137 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002138 llvm_cv_link_all_option="-Wl,--whole-archive"
2139 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002140 llvm_cv_os_type="OpenBSD"
2141 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002142 *-*-netbsd*)
2143 llvm_cv_link_all_option="-Wl,--whole-archive"
2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2145 llvm_cv_os_type="NetBSD"
2146 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002147 *-*-dragonfly*)
2148 llvm_cv_link_all_option="-Wl,--whole-archive"
2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2150 llvm_cv_os_type="DragonFly"
2151 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002152 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002155 llvm_cv_os_type="HP-UX"
2156 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002157 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002160 llvm_cv_os_type="Interix"
2161 llvm_cv_platform_type="Unix" ;;
2162 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002165 llvm_cv_os_type="Linux"
2166 llvm_cv_platform_type="Unix" ;;
2167 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002168 llvm_cv_link_all_option="-Wl,-z,allextract"
2169 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002170 llvm_cv_os_type="SunOS"
2171 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002172 *-*-auroraux*)
2173 llvm_cv_link_all_option="-Wl,-z,allextract"
2174 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2175 llvm_cv_os_type="AuroraUX"
2176 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002177 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002178 llvm_cv_link_all_option="-Wl,--whole-archive"
2179 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002180 llvm_cv_os_type="Win32"
2181 llvm_cv_platform_type="Win32" ;;
2182 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002183 llvm_cv_link_all_option="-Wl,--whole-archive"
2184 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002185 llvm_cv_os_type="MingW"
2186 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002187 *-*-haiku*)
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="Haiku"
2191 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002192 *-unknown-eabi*)
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="Freestanding"
2196 llvm_cv_platform_type="Unix" ;;
2197 *-unknown-elf*)
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="Freestanding"
2201 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002203 llvm_cv_link_all_option=""
2204 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002205 llvm_cv_os_type="Unknown"
2206 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002207esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002209{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2210echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002212{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2213echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2214if test "${llvm_cv_target_os_type+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002216else
2217 case $target in
2218 *-*-aix*)
2219 llvm_cv_target_os_type="AIX" ;;
2220 *-*-irix*)
2221 llvm_cv_target_os_type="IRIX" ;;
2222 *-*-cygwin*)
2223 llvm_cv_target_os_type="Cygwin" ;;
2224 *-*-darwin*)
2225 llvm_cv_target_os_type="Darwin" ;;
2226 *-*-freebsd*)
2227 llvm_cv_target_os_type="FreeBSD" ;;
2228 *-*-openbsd*)
2229 llvm_cv_target_os_type="OpenBSD" ;;
2230 *-*-netbsd*)
2231 llvm_cv_target_os_type="NetBSD" ;;
2232 *-*-dragonfly*)
2233 llvm_cv_target_os_type="DragonFly" ;;
2234 *-*-hpux*)
2235 llvm_cv_target_os_type="HP-UX" ;;
2236 *-*-interix*)
2237 llvm_cv_target_os_type="Interix" ;;
2238 *-*-linux*)
2239 llvm_cv_target_os_type="Linux" ;;
2240 *-*-solaris*)
2241 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002242 *-*-auroraux*)
2243 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002244 *-*-win32*)
2245 llvm_cv_target_os_type="Win32" ;;
2246 *-*-mingw*)
2247 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002248 *-*-haiku*)
2249 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002250 *-unknown-eabi*)
2251 llvm_cv_target_os_type="Freestanding" ;;
2252 *)
2253 llvm_cv_target_os_type="Unknown" ;;
2254esac
2255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002256{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2257echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002258
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002260 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2261echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2262 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002263fi
2264
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002266
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002267HOST_OS=$llvm_cv_os_type
2268
2269TARGET_OS=$llvm_cv_target_os_type
2270
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002271
Reid Spencera773bd52006-08-04 18:18:08 +00002272LINKALL=$llvm_cv_link_all_option
2273
2274NOLINKALL=$llvm_cv_no_link_all_option
2275
2276
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277case $llvm_cv_platform_type in
2278 Unix)
2279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002280cat >>confdefs.h <<\_ACEOF
2281#define LLVM_ON_UNIX 1
2282_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002284 LLVM_ON_UNIX=1
2285
2286 LLVM_ON_WIN32=0
2287
Reid Spencer7b3e8512004-12-24 06:29:05 +00002288 ;;
2289 Win32)
2290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002291cat >>confdefs.h <<\_ACEOF
2292#define LLVM_ON_WIN32 1
2293_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002295 LLVM_ON_UNIX=0
2296
2297 LLVM_ON_WIN32=1
2298
Reid Spencer7b3e8512004-12-24 06:29:05 +00002299 ;;
2300esac
2301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002302{ echo "$as_me:$LINENO: checking target architecture" >&5
2303echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2304if test "${llvm_cv_target_arch+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002306else
2307 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002308 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002309 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002310 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2311 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002312 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002313 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002314 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002315 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002316 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002317 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002318 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002319 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002320 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002321esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2324echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002325
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002326if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002327 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2328echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002329fi
John Criswell76595452003-07-01 22:07:39 +00002330
Nick Lewycky83fc4472009-09-29 05:48:51 +00002331# Determine the LLVM native architecture for the target
2332case "$llvm_cv_target_arch" in
2333 x86) LLVM_NATIVE_ARCH="X86" ;;
2334 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2335 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2336esac
2337
2338ARCH=$llvm_cv_target_arch
2339
2340
2341ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002342ac_cpp='$CPP $CPPFLAGS'
2343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002346if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002347 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2348set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351if test "${ac_cv_prog_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353else
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 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 +00002364 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366 break 2
2367 fi
2368done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002369done
Reid Spencera773bd52006-08-04 18:18:08 +00002370IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371
2372fi
2373fi
2374CC=$ac_cv_prog_CC
2375if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002376 { echo "$as_me:$LINENO: result: $CC" >&5
2377echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002379 { echo "$as_me:$LINENO: result: no" >&5
2380echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002381fi
2382
Reid Spencera773bd52006-08-04 18:18:08 +00002383
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384fi
2385if test -z "$ac_cv_prog_CC"; then
2386 ac_ct_CC=$CC
2387 # Extract the first word of "gcc", so it can be a program name with args.
2388set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393else
2394 if test -n "$ac_ct_CC"; then
2395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 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 +00002404 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406 break 2
2407 fi
2408done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409done
Reid Spencera773bd52006-08-04 18:18:08 +00002410IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411
2412fi
2413fi
2414ac_ct_CC=$ac_cv_prog_ac_ct_CC
2415if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002416 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2417echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002418else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002419 { echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421fi
2422
Reid Spencera773bd52006-08-04 18:18:08 +00002423 if test "x$ac_ct_CC" = x; then
2424 CC=""
2425 else
2426 case $cross_compiling:$ac_tool_warned in
2427yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002428{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429whose name does not start with the host triplet. If you think this
2430configuration is useful to you, please write to autoconf@gnu.org." >&5
2431echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002434ac_tool_warned=yes ;;
2435esac
2436 CC=$ac_ct_CC
2437 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438else
2439 CC="$ac_cv_prog_CC"
2440fi
2441
2442if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002443 if test -n "$ac_tool_prefix"; then
2444 # 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 +00002445set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2448if test "${ac_cv_prog_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450else
2451 if test -n "$CC"; then
2452 ac_cv_prog_CC="$CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 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 +00002461 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463 break 2
2464 fi
2465done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002466done
Reid Spencera773bd52006-08-04 18:18:08 +00002467IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468
2469fi
2470fi
2471CC=$ac_cv_prog_CC
2472if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473 { echo "$as_me:$LINENO: result: $CC" >&5
2474echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002476 { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478fi
2479
Reid Spencera773bd52006-08-04 18:18:08 +00002480
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482fi
2483if test -z "$CC"; then
2484 # Extract the first word of "cc", so it can be a program name with args.
2485set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2488if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493else
2494 ac_prog_rejected=no
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 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 +00002502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2503 ac_prog_rejected=yes
2504 continue
2505 fi
2506 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508 break 2
2509 fi
2510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511done
Reid Spencera773bd52006-08-04 18:18:08 +00002512IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513
2514if test $ac_prog_rejected = yes; then
2515 # We found a bogon in the path, so make sure we never use it.
2516 set dummy $ac_cv_prog_CC
2517 shift
2518 if test $# != 0; then
2519 # We chose a different compiler from the bogus one.
2520 # However, it has the same basename, so the bogon will be chosen
2521 # first if we set CC to just the basename; use the full file name.
2522 shift
2523 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2524 fi
2525fi
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002530 { echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002533 { echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535fi
2536
Reid Spencera773bd52006-08-04 18:18:08 +00002537
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538fi
2539if test -z "$CC"; then
2540 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002541 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002542 do
2543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2544set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547if test "${ac_cv_prog_CC+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002549else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550 if test -n "$CC"; then
2551 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002552else
2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 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 +00002560 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002562 break 2
2563 fi
2564done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002565done
Reid Spencera773bd52006-08-04 18:18:08 +00002566IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002567
2568fi
2569fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570CC=$ac_cv_prog_CC
2571if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002572 { echo "$as_me:$LINENO: result: $CC" >&5
2573echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575 { echo "$as_me:$LINENO: result: no" >&5
2576echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002577fi
2578
Reid Spencera773bd52006-08-04 18:18:08 +00002579
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002581 done
2582fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583if test -z "$CC"; then
2584 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002585 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002586do
2587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2588set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002593else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 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 +00002604 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 break 2
2607 fi
2608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609done
Reid Spencera773bd52006-08-04 18:18:08 +00002610IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002611
2612fi
2613fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002621fi
2622
Reid Spencera773bd52006-08-04 18:18:08 +00002623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002625done
John Criswell7a73b802003-06-30 21:59:07 +00002626
Reid Spencera773bd52006-08-04 18:18:08 +00002627 if test "x$ac_ct_CC" = x; then
2628 CC=""
2629 else
2630 case $cross_compiling:$ac_tool_warned in
2631yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002632{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2633whose name does not start with the host triplet. If you think this
2634configuration is useful to you, please write to autoconf@gnu.org." >&5
2635echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002638ac_tool_warned=yes ;;
2639esac
2640 CC=$ac_ct_CC
2641 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642fi
2643
John Criswell7a73b802003-06-30 21:59:07 +00002644fi
2645
2646
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: no acceptable C compiler found in \$PATH
2650See \`config.log' for more details." >&2;}
2651 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652
John Criswell7a73b802003-06-30 21:59:07 +00002653# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654echo "$as_me:$LINENO: checking for C compiler version" >&5
2655ac_compiler=`set X $ac_compile; echo $2`
2656{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002657case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002663 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }
2666{ (ac_try="$ac_compiler -v >&5"
2667case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670esac
2671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler -v >&5") 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676{ (ac_try="$ac_compiler -V >&5"
2677case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680esac
2681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -V >&5") 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002687cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h. */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002692/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002693
John Criswell7a73b802003-06-30 21:59:07 +00002694int
2695main ()
2696{
2697
2698 ;
2699 return 0;
2700}
2701_ACEOF
2702ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002703ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002704# Try to create an executable without -o first, disregard a.out.
2705# It will help us diagnose broken compilers, and finding out an intuition
2706# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002707{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2708echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2709ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2710#
2711# List of possible output files, starting from the most likely.
2712# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2713# only as a last resort. b.out is created by i960 compilers.
2714ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2715#
2716# The IRIX 6 linker writes into existing files which may not be
2717# executable, retaining their permissions. Remove them first so a
2718# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002719ac_rmfiles=
2720for ac_file in $ac_files
2721do
2722 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002724 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2725 esac
2726done
2727rm -f $ac_rmfiles
2728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002730case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002735 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002736 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2740# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2741# in a Makefile. We should not override ac_cv_exeext if it was cached,
2742# so that the user can short-circuit this test for compilers unknown to
2743# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002745do
2746 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002747 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002749 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002750 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002751 # We found the default executable, but exeext='' is most
2752 # certainly right.
2753 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002754 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002756 then :; else
2757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758 fi
2759 # We set ac_cv_exeext here because the later test for it is not
2760 # safe: cross compilers may not add the suffix if given an `-o'
2761 # argument, so we may need to know it at that point already.
2762 # Even if this section looks crufty: it has the advantage of
2763 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002764 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002765 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002766 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002767 esac
2768done
Reid Spencera773bd52006-08-04 18:18:08 +00002769test "$ac_cv_exeext" = no && ac_cv_exeext=
2770
John Criswell7a73b802003-06-30 21:59:07 +00002771else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002772 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002773sed 's/^/| /' conftest.$ac_ext >&5
2774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002775{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2776See \`config.log' for more details." >&5
2777echo "$as_me: error: C compiler cannot create executables
2778See \`config.log' for more details." >&2;}
2779 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002780fi
John Criswell7a73b802003-06-30 21:59:07 +00002781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782ac_exeext=$ac_cv_exeext
2783{ echo "$as_me:$LINENO: result: $ac_file" >&5
2784echo "${ECHO_T}$ac_file" >&6; }
2785
2786# Check that the compiler produces executables we can run. If not, either
2787# the compiler is broken, or we cross compile.
2788{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2789echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2790# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2791# If not cross compiling, check that we can run a simple program.
2792if test "$cross_compiling" != yes; then
2793 if { ac_try='./$ac_file'
2794 { (case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799 (eval "$ac_try") 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 cross_compiling=no
2804 else
2805 if test "$cross_compiling" = maybe; then
2806 cross_compiling=yes
2807 else
2808 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2809If you meant to cross compile, use \`--host'.
2810See \`config.log' for more details." >&5
2811echo "$as_me: error: cannot run C compiled programs.
2812If you meant to cross compile, use \`--host'.
2813See \`config.log' for more details." >&2;}
2814 { (exit 1); exit 1; }; }
2815 fi
2816 fi
2817fi
2818{ echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6; }
2820
2821rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002822ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002823# Check that the compiler produces executables we can run. If not, either
2824# the compiler is broken, or we cross compile.
2825{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2826echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2827{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2828echo "${ECHO_T}$cross_compiling" >&6; }
2829
2830{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2831echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2832if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002838 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002839 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002842 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2843# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2844# work properly (i.e., refer to `conftest.exe'), while it won't with
2845# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002846for ac_file in conftest.exe conftest conftest.*; do
2847 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002848 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002851 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002852 * ) break;;
2853 esac
2854done
2855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002856 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2857See \`config.log' for more details." >&5
2858echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2859See \`config.log' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002862
2863rm -f conftest$ac_cv_exeext
2864{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2865echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002866
2867rm -f conftest.$ac_ext
2868EXEEXT=$ac_cv_exeext
2869ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002870{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2871echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2872if test "${ac_cv_objext+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002875 cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h. */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002880/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002881
John Criswell7a73b802003-06-30 21:59:07 +00002882int
2883main ()
2884{
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002891if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002892case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002897 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002898 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002901 for ac_file in conftest.o conftest.obj conftest.*; do
2902 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002903 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002905 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2906 break;;
2907 esac
2908done
2909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002910 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002911sed 's/^/| /' conftest.$ac_ext >&5
2912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002913{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2914See \`config.log' for more details." >&5
2915echo "$as_me: error: cannot compute suffix of object files: cannot compile
2916See \`config.log' for more details." >&2;}
2917 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919
John Criswell7a73b802003-06-30 21:59:07 +00002920rm -f conftest.$ac_cv_objext conftest.$ac_ext
2921fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002922{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2923echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002924OBJEXT=$ac_cv_objext
2925ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002926{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2927echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2928if test "${ac_cv_c_compiler_gnu+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002931 cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002936/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002937
John Criswell7a73b802003-06-30 21:59:07 +00002938int
2939main ()
2940{
2941#ifndef __GNUC__
2942 choke me
2943#endif
2944
2945 ;
2946 return 0;
2947}
2948_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949rm -f conftest.$ac_objext
2950if { (ac_try="$ac_compile"
2951case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954esac
2955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2956 (eval "$ac_compile") 2>conftest.er1
2957 ac_status=$?
2958 grep -v '^ *+' conftest.er1 >conftest.err
2959 rm -f conftest.er1
2960 cat conftest.err >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); } &&
2963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2964 { (case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_try") 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest.$ac_objext'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002983 ac_compiler_gnu=yes
2984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002985 echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00002989fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002990
Reid Spencera773bd52006-08-04 18:18:08 +00002991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002992ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002993
2994fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002995{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2996echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2997GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002998ac_test_CFLAGS=${CFLAGS+set}
2999ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003000{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3001echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3002if test "${ac_cv_prog_cc_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003004else
Reid Spencera773bd52006-08-04 18:18:08 +00003005 ac_save_c_werror_flag=$ac_c_werror_flag
3006 ac_c_werror_flag=yes
3007 ac_cv_prog_cc_g=no
3008 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003015
John Criswell7a73b802003-06-30 21:59:07 +00003016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003024rm -f conftest.$ac_objext
3025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003058 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063 CFLAGS=""
3064 cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003069/* end confdefs.h. */
3070
3071int
3072main ()
3073{
3074
3075 ;
3076 return 0;
3077}
3078_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003079rm -f conftest.$ac_objext
3080if { (ac_try="$ac_compile"
3081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
3085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086 (eval "$ac_compile") 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } &&
3093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; } &&
3103 { ac_try='test -s conftest.$ac_objext'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
3108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 :
Torok Edwin871384f2010-01-26 08:50:50 +00003114else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003115 echo "$as_me: failed program was:" >&5
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003119 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003169 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174
John Criswell7a73b802003-06-30 21:59:07 +00003175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003176
Reid Spencera773bd52006-08-04 18:18:08 +00003177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3181fi
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
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003186{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3187echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003188if test "$ac_test_CFLAGS" = set; then
3189 CFLAGS=$ac_save_CFLAGS
3190elif test $ac_cv_prog_cc_g = yes; then
3191 if test "$GCC" = yes; then
3192 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003193 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003194 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003195 fi
3196else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003197 if test "$GCC" = yes; then
3198 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003199 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003200 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003201 fi
3202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003203{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3204echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3205if test "${ac_cv_prog_cc_c89+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207else
Reid Spencera773bd52006-08-04 18:18:08 +00003208 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003210cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215/* end confdefs.h. */
3216#include <stdarg.h>
3217#include <stdio.h>
3218#include <sys/types.h>
3219#include <sys/stat.h>
3220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3221struct buf { int x; };
3222FILE * (*rcsopen) (struct buf *, struct stat *, int);
3223static char *e (p, i)
3224 char **p;
3225 int i;
3226{
3227 return p[i];
3228}
3229static char *f (char * (*g) (char **, int), char **p, ...)
3230{
3231 char *s;
3232 va_list v;
3233 va_start (v,p);
3234 s = g (p, va_arg (v,int));
3235 va_end (v);
3236 return s;
3237}
3238
3239/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3240 function prototypes and stuff, but not '\xHH' hex character constants.
3241 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003242 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3244 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003245 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3247
Reid Spencera773bd52006-08-04 18:18:08 +00003248/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3249 inside strings and character constants. */
3250#define FOO(x) 'x'
3251int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3252
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253int test (int i, double x);
3254struct s1 {int (*f) (int a);};
3255struct s2 {int (*f) (double a);};
3256int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3257int argc;
3258char **argv;
3259int
3260main ()
3261{
3262return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3263 ;
3264 return 0;
3265}
3266_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003267for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3268 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269do
3270 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003271 rm -f conftest.$ac_objext
3272if { (ac_try="$ac_compile"
3273case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276esac
3277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278 (eval "$ac_compile") 2>conftest.er1
3279 ac_status=$?
3280 grep -v '^ *+' conftest.er1 >conftest.err
3281 rm -f conftest.er1
3282 cat conftest.err >&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3286 { (case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_try") 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest.$ac_objext'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299esac
3300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003305 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003306else
3307 echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003312
Reid Spencera773bd52006-08-04 18:18:08 +00003313rm -f core conftest.err conftest.$ac_objext
3314 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315done
Reid Spencera773bd52006-08-04 18:18:08 +00003316rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317CC=$ac_save_CC
3318
3319fi
Reid Spencera773bd52006-08-04 18:18:08 +00003320# AC_CACHE_VAL
3321case "x$ac_cv_prog_cc_c89" in
3322 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003323 { echo "$as_me:$LINENO: result: none needed" >&5
3324echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003325 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003326 { echo "$as_me:$LINENO: result: unsupported" >&5
3327echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003329 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003330 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332esac
3333
John Criswell0c38eaf2003-09-10 15:17:25 +00003334
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335ac_ext=c
3336ac_cpp='$CPP $CPPFLAGS'
3337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340
3341
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003342ac_ext=c
3343ac_cpp='$CPP $CPPFLAGS'
3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003347{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3348echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349# On Suns, sometimes $CPP names a directory.
3350if test -n "$CPP" && test -d "$CPP"; then
3351 CPP=
3352fi
3353if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003354 if test "${ac_cv_prog_CPP+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356else
3357 # Double quotes because CPP needs to be expanded
3358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3359 do
3360 ac_preproc_ok=false
3361for ac_c_preproc_warn_flag in '' yes
3362do
3363 # Use a header file that comes with gcc, so configuring glibc
3364 # with a fresh cross-compiler works.
3365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366 # <limits.h> exists even on freestanding compilers.
3367 # On the NeXT, cc -E runs the code through the compiler's parser,
3368 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 cat >conftest.$ac_ext <<_ACEOF
3370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374/* end confdefs.h. */
3375#ifdef __STDC__
3376# include <limits.h>
3377#else
3378# include <assert.h>
3379#endif
3380 Syntax error
3381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003382if { (ac_try="$ac_cpp conftest.$ac_ext"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3398 else
3399 ac_cpp_err=
3400 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003402 ac_cpp_err=yes
3403fi
3404if test -z "$ac_cpp_err"; then
3405 :
3406else
3407 echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410 # Broken: fails on valid input.
3411continue
3412fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414rm -f conftest.err conftest.$ac_ext
3415
Reid Spencera773bd52006-08-04 18:18:08 +00003416 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003423/* end confdefs.h. */
3424#include <ac_nonexistent.h>
3425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426if { (ac_try="$ac_cpp conftest.$ac_ext"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
3445else
3446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449 # Broken: success on invalid input.
3450continue
3451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 # Passes both tests.
3456ac_preproc_ok=:
3457break
3458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003459
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003460rm -f conftest.err conftest.$ac_ext
3461
3462done
3463# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003465if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003466 break
3467fi
3468
3469 done
3470 ac_cv_prog_CPP=$CPP
3471
3472fi
3473 CPP=$ac_cv_prog_CPP
3474else
3475 ac_cv_prog_CPP=$CPP
3476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003477{ echo "$as_me:$LINENO: result: $CPP" >&5
3478echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479ac_preproc_ok=false
3480for ac_c_preproc_warn_flag in '' yes
3481do
3482 # Use a header file that comes with gcc, so configuring glibc
3483 # with a fresh cross-compiler works.
3484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3485 # <limits.h> exists even on freestanding compilers.
3486 # On the NeXT, cc -E runs the code through the compiler's parser,
3487 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493/* end confdefs.h. */
3494#ifdef __STDC__
3495# include <limits.h>
3496#else
3497# include <assert.h>
3498#endif
3499 Syntax error
3500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003501if { (ac_try="$ac_cpp conftest.$ac_ext"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3517 else
3518 ac_cpp_err=
3519 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521 ac_cpp_err=yes
3522fi
3523if test -z "$ac_cpp_err"; then
3524 :
3525else
3526 echo "$as_me: failed program was:" >&5
3527sed 's/^/| /' conftest.$ac_ext >&5
3528
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003529 # Broken: fails on valid input.
3530continue
3531fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003532
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003533rm -f conftest.err conftest.$ac_ext
3534
Reid Spencera773bd52006-08-04 18:18:08 +00003535 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003536 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003537 cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h. */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542/* end confdefs.h. */
3543#include <ac_nonexistent.h>
3544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545if { (ac_try="$ac_cpp conftest.$ac_ext"
3546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3563 fi
3564else
3565 ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003568 # Broken: success on invalid input.
3569continue
3570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 # Passes both tests.
3575ac_preproc_ok=:
3576break
3577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003578
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003579rm -f conftest.err conftest.$ac_ext
3580
3581done
3582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003584if $ac_preproc_ok; then
3585 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003587 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3588See \`config.log' for more details." >&5
3589echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3590See \`config.log' for more details." >&2;}
3591 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592fi
3593
John Criswell7a73b802003-06-30 21:59:07 +00003594ac_ext=c
3595ac_cpp='$CPP $CPPFLAGS'
3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599
John Criswell7a73b802003-06-30 21:59:07 +00003600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003601{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3602echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3603if test "${ac_cv_path_GREP+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003605else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003606 # Extract the first word of "grep ggrep" to use in msg output
3607if test -z "$GREP"; then
3608set dummy grep ggrep; ac_prog_name=$2
3609if test "${ac_cv_path_GREP+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
Reid Spencera773bd52006-08-04 18:18:08 +00003612 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003613# Loop through the user's path and test for each of PROGNAME-LIST
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003615for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003616do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003619 for ac_prog in grep ggrep; do
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3622 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3623 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003624 # Check for GNU $ac_path_GREP
3625case `"$ac_path_GREP" --version 2>&1` in
3626*GNU*)
3627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3628*)
3629 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003630 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003631 while :
3632 do
3633 cat "conftest.in" "conftest.in" >"conftest.tmp"
3634 mv "conftest.tmp" "conftest.in"
3635 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003636 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003639 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003640 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3641 # Best one so far, save it but keep looking for a better one
3642 ac_cv_path_GREP="$ac_path_GREP"
3643 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003644 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003645 # 10*(2^10) chars as input seems more than enough
3646 test $ac_count -gt 10 && break
3647 done
3648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649esac
3650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003651
3652 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003653 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003654done
3655
3656done
Reid Spencera773bd52006-08-04 18:18:08 +00003657IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003658
3659
3660fi
3661
3662GREP="$ac_cv_path_GREP"
3663if test -z "$GREP"; then
3664 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3665echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3666 { (exit 1); exit 1; }; }
3667fi
3668
Reid Spencera773bd52006-08-04 18:18:08 +00003669else
3670 ac_cv_path_GREP=$GREP
3671fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003673
Reid Spencera773bd52006-08-04 18:18:08 +00003674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003675{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3676echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003677 GREP="$ac_cv_path_GREP"
3678
3679
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680{ echo "$as_me:$LINENO: checking for egrep" >&5
3681echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3682if test "${ac_cv_path_EGREP+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003684else
3685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3686 then ac_cv_path_EGREP="$GREP -E"
3687 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003688 # Extract the first word of "egrep" to use in msg output
3689if test -z "$EGREP"; then
3690set dummy egrep; ac_prog_name=$2
3691if test "${ac_cv_path_EGREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
Reid Spencera773bd52006-08-04 18:18:08 +00003694 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695# Loop through the user's path and test for each of PROGNAME-LIST
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003701 for ac_prog in egrep; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3704 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3705 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003706 # Check for GNU $ac_path_EGREP
3707case `"$ac_path_EGREP" --version 2>&1` in
3708*GNU*)
3709 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3710*)
3711 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003713 while :
3714 do
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003719 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003722 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_EGREP="$ac_path_EGREP"
3725 ac_path_EGREP_max=$ac_count
3726 fi
3727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3729 done
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731esac
3732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733
3734 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003735 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736done
3737
3738done
Reid Spencera773bd52006-08-04 18:18:08 +00003739IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740
3741
3742fi
3743
3744EGREP="$ac_cv_path_EGREP"
3745if test -z "$EGREP"; then
3746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3747echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3748 { (exit 1); exit 1; }; }
3749fi
3750
Reid Spencera773bd52006-08-04 18:18:08 +00003751else
3752 ac_cv_path_EGREP=$EGREP
3753fi
3754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003755
Reid Spencera773bd52006-08-04 18:18:08 +00003756 fi
3757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003758{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3759echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003760 EGREP="$ac_cv_path_EGREP"
3761
3762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003763{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3764echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3765if test "${ac_cv_header_stdc+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003768 cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h. */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003774#include <stdlib.h>
3775#include <stdarg.h>
3776#include <string.h>
3777#include <float.h>
3778
John Criswell0c38eaf2003-09-10 15:17:25 +00003779int
3780main ()
3781{
3782
3783 ;
3784 return 0;
3785}
John Criswell7a73b802003-06-30 21:59:07 +00003786_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003787rm -f conftest.$ac_objext
3788if { (ac_try="$ac_compile"
3789case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792esac
3793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } &&
3801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3802 { (case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805esac
3806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_try") 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; } &&
3811 { ac_try='test -s conftest.$ac_objext'
3812 { (case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815esac
3816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817 (eval "$ac_try") 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003821 ac_cv_header_stdc=yes
3822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003823 echo "$as_me: failed program was:" >&5
3824sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003828
Reid Spencera773bd52006-08-04 18:18:08 +00003829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003830
3831if test $ac_cv_header_stdc = yes; then
3832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003833 cat >conftest.$ac_ext <<_ACEOF
3834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003839#include <string.h>
3840
3841_ACEOF
3842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003843 $EGREP "memchr" >/dev/null 2>&1; then
3844 :
John Criswell7a73b802003-06-30 21:59:07 +00003845else
3846 ac_cv_header_stdc=no
3847fi
3848rm -f conftest*
3849
3850fi
3851
3852if test $ac_cv_header_stdc = yes; then
3853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003854 cat >conftest.$ac_ext <<_ACEOF
3855/* confdefs.h. */
3856_ACEOF
3857cat confdefs.h >>conftest.$ac_ext
3858cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003860#include <stdlib.h>
3861
3862_ACEOF
3863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003864 $EGREP "free" >/dev/null 2>&1; then
3865 :
John Criswell7a73b802003-06-30 21:59:07 +00003866else
3867 ac_cv_header_stdc=no
3868fi
3869rm -f conftest*
3870
3871fi
3872
3873if test $ac_cv_header_stdc = yes; then
3874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003875 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003876 :
3877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003884#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003885#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003886#if ((' ' & 0x0FF) == 0x020)
3887# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3888# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3889#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003890# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003891 (('a' <= (c) && (c) <= 'i') \
3892 || ('j' <= (c) && (c) <= 'r') \
3893 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003894# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3895#endif
3896
3897#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3898int
3899main ()
3900{
3901 int i;
3902 for (i = 0; i < 256; i++)
3903 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003904 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003905 return 2;
3906 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003907}
3908_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003909rm -f conftest$ac_exeext
3910if { (ac_try="$ac_link"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_link") 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3920 { (case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
3924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_try") 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; }; then
3929 :
John Criswell7a73b802003-06-30 21:59:07 +00003930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003931 echo "$as_me: program exited with status $ac_status" >&5
3932echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935( exit $ac_status )
3936ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003938rm -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 +00003939fi
3940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003941
John Criswell7a73b802003-06-30 21:59:07 +00003942fi
3943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003944{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3945echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003946if test $ac_cv_header_stdc = yes; then
3947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003948cat >>confdefs.h <<\_ACEOF
3949#define STDC_HEADERS 1
3950_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003951
3952fi
3953
Reid Spencera773bd52006-08-04 18:18:08 +00003954# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003955
3956
3957
3958
3959
3960
3961
3962
3963
Reid Spencera773bd52006-08-04 18:18:08 +00003964for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3965 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966do
3967as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3968{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3970if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973 cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h. */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
3978/* end confdefs.h. */
3979$ac_includes_default
3980
3981#include <$ac_header>
3982_ACEOF
3983rm -f conftest.$ac_objext
3984if { (ac_try="$ac_compile"
3985case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988esac
3989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_compile") 2>conftest.er1
3991 ac_status=$?
3992 grep -v '^ *+' conftest.er1 >conftest.err
3993 rm -f conftest.er1
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } &&
3997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3998 { (case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
4002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_try") 2>&5
4004 ac_status=$?
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); }; } &&
4007 { ac_try='test -s conftest.$ac_objext'
4008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011esac
4012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 eval "$as_ac_Header=yes"
4018else
4019 echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 eval "$as_ac_Header=no"
4023fi
4024
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027ac_res=`eval echo '${'$as_ac_Header'}'`
4028 { echo "$as_me:$LINENO: result: $ac_res" >&5
4029echo "${ECHO_T}$ac_res" >&6; }
4030if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004031 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004033_ACEOF
4034
4035fi
4036
4037done
4038
4039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004040{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4041echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4042if test "${ac_cv_c_bigendian+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004044else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004045 # See if sys/param.h defines the BYTE_ORDER macro.
4046cat >conftest.$ac_ext <<_ACEOF
4047/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004048_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004051/* end confdefs.h. */
4052#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004053#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004054
4055int
4056main ()
4057{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004058#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4059 bogus endian macros
4060#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004061
4062 ;
4063 return 0;
4064}
4065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004066rm -f conftest.$ac_objext
4067if { (ac_try="$ac_compile"
4068case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071esac
4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_compile") 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } &&
4080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4081 { (case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084esac
4085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_try") 2>&5
4087 ac_status=$?
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }; } &&
4090 { ac_try='test -s conftest.$ac_objext'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4097 ac_status=$?
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004100 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004101cat >conftest.$ac_ext <<_ACEOF
4102/* confdefs.h. */
4103_ACEOF
4104cat confdefs.h >>conftest.$ac_ext
4105cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004106/* end confdefs.h. */
4107#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004108#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004109
4110int
4111main ()
4112{
4113#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114 not big endian
4115#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004116
4117 ;
4118 return 0;
4119}
4120_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004121rm -f conftest.$ac_objext
4122if { (ac_try="$ac_compile"
4123case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_compile") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; } &&
4145 { ac_try='test -s conftest.$ac_objext'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004155 ac_cv_c_bigendian=yes
4156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004157 echo "$as_me: failed program was:" >&5
4158sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004160 ac_cv_c_bigendian=no
4161fi
4162
4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164else
4165 echo "$as_me: failed program was:" >&5
4166sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 # It does not; compile a test program.
4169if test "$cross_compiling" = yes; then
4170 # try to guess the endianness by grepping values into an object file
4171 ac_cv_c_bigendian=unknown
4172 cat >conftest.$ac_ext <<_ACEOF
4173/* confdefs.h. */
4174_ACEOF
4175cat confdefs.h >>conftest.$ac_ext
4176cat >>conftest.$ac_ext <<_ACEOF
4177/* end confdefs.h. */
4178short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4179short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4180void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4181short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4182short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4183void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004184int
4185main ()
4186{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004187 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004188 ;
4189 return 0;
4190}
4191_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004192rm -f conftest.$ac_objext
4193if { (ac_try="$ac_compile"
4194case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_compile") 2>conftest.er1
4200 ac_status=$?
4201 grep -v '^ *+' conftest.er1 >conftest.err
4202 rm -f conftest.er1
4203 cat conftest.err >&5
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); } &&
4206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4207 { (case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_try") 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest.$ac_objext'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004227 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004228fi
4229if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4230 if test "$ac_cv_c_bigendian" = unknown; then
4231 ac_cv_c_bigendian=no
4232 else
4233 # finding both strings is unlikely to happen, but who knows?
4234 ac_cv_c_bigendian=unknown
4235 fi
4236fi
Reid Spencera773bd52006-08-04 18:18:08 +00004237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004238 echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004241
Torok Edwin871384f2010-01-26 08:50:50 +00004242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004243
Reid Spencera773bd52006-08-04 18:18:08 +00004244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246 cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h. */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004251/* end confdefs.h. */
4252$ac_includes_default
4253int
4254main ()
4255{
4256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004257 /* Are we little or big endian? From Harbison&Steele. */
4258 union
4259 {
4260 long int l;
4261 char c[sizeof (long int)];
4262 } u;
4263 u.l = 1;
4264 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004265
4266 ;
4267 return 0;
4268}
4269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004270rm -f conftest$ac_exeext
4271if { (ac_try="$ac_link"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_link") 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4281 { (case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284esac
4285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4286 (eval "$ac_try") 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004290 ac_cv_c_bigendian=no
4291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004292 echo "$as_me: program exited with status $ac_status" >&5
4293echo "$as_me: failed program was:" >&5
4294sed 's/^/| /' conftest.$ac_ext >&5
4295
4296( exit $ac_status )
4297ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004299rm -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 +00004300fi
4301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302
Reid Spencera773bd52006-08-04 18:18:08 +00004303fi
4304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306fi
4307{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4308echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4309case $ac_cv_c_bigendian in
4310 yes)
4311 ENDIAN=big
4312 ;;
4313 no)
4314 ENDIAN=little
4315 ;;
4316 *)
4317 { { echo "$as_me:$LINENO: error: unknown endianness
4318presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4319echo "$as_me: error: unknown endianness
4320presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4321 { (exit 1); exit 1; }; } ;;
4322esac
Reid Spencera773bd52006-08-04 18:18:08 +00004323
4324
4325if test "$cross_compiling" = yes; then
4326 LLVM_CROSS_COMPILING=1
4327
4328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004329{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4330echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4331if test "${ac_cv_build_exeext+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004333else
4334 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4335 ac_cv_build_exeext=.exe
4336else
4337 ac_build_prefix=${build_alias}-
4338
4339 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4340set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4343if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004345else
4346 if test -n "$BUILD_CC"; then
4347 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4348else
4349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH
4351do
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 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 +00004356 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004358 break 2
4359 fi
4360done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004361done
Reid Spencera773bd52006-08-04 18:18:08 +00004362IFS=$as_save_IFS
4363
4364fi
4365fi
4366BUILD_CC=$ac_cv_prog_BUILD_CC
4367if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004368 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4369echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004370else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004371 { echo "$as_me:$LINENO: result: no" >&5
4372echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004373fi
4374
4375
4376 if test -z "$BUILD_CC"; then
4377 # Extract the first word of "gcc", so it can be a program name with args.
4378set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004383else
4384 if test -n "$BUILD_CC"; then
4385 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 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 +00004394 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004396 break 2
4397 fi
4398done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399done
Reid Spencera773bd52006-08-04 18:18:08 +00004400IFS=$as_save_IFS
4401
4402fi
4403fi
4404BUILD_CC=$ac_cv_prog_BUILD_CC
4405if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4407echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004408else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004409 { echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004411fi
4412
4413
4414 if test -z "$BUILD_CC"; then
4415 # Extract the first word of "cc", so it can be a program name with args.
4416set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004421else
4422 if test -n "$BUILD_CC"; then
4423 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4424else
4425 ac_prog_rejected=no
4426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427for as_dir in $PATH
4428do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 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 +00004433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4434 ac_prog_rejected=yes
4435 continue
4436 fi
4437 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004439 break 2
4440 fi
4441done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004442done
Reid Spencera773bd52006-08-04 18:18:08 +00004443IFS=$as_save_IFS
4444
4445if test $ac_prog_rejected = yes; then
4446 # We found a bogon in the path, so make sure we never use it.
4447 set dummy $ac_cv_prog_BUILD_CC
4448 shift
4449 if test $# != 0; then
4450 # We chose a different compiler from the bogus one.
4451 # However, it has the same basename, so the bogon will be chosen
4452 # first if we set BUILD_CC to just the basename; use the full file name.
4453 shift
4454 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4455 fi
4456fi
4457fi
4458fi
4459BUILD_CC=$ac_cv_prog_BUILD_CC
4460if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4462echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004464 { echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004466fi
4467
4468
4469 fi
4470 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004471 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4472echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4473 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004474 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4475 rm -f conftest*
4476 echo 'int main () { return 0; }' > conftest.$ac_ext
4477 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004478 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004479 (eval $ac_build_link) 2>&5
4480 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004483 for file in conftest.*; do
4484 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004485 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004486 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4487 esac
4488 done
4489 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004490 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4491echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4492 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004493 fi
4494 rm -f conftest*
4495 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4496fi
4497fi
4498
4499BUILD_EXEEXT=""
4500test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004501{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4502echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004503ac_build_exeext=$BUILD_EXEEXT
4504
Jim Grosbach673612e2008-10-02 22:56:44 +00004505 ac_build_prefix=${build_alias}-
4506 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4507set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004512else
4513 if test -n "$BUILD_CXX"; then
4514 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 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 +00004523 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004525 break 2
4526 fi
4527done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004528done
Jim Grosbach673612e2008-10-02 22:56:44 +00004529IFS=$as_save_IFS
4530
4531fi
4532fi
4533BUILD_CXX=$ac_cv_prog_BUILD_CXX
4534if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4536echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004537else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004538 { echo "$as_me:$LINENO: result: no" >&5
4539echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004540fi
4541
4542
4543 if test -z "$BUILD_CXX"; then
4544 # Extract the first word of "g++", so it can be a program name with args.
4545set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4548if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004550else
4551 if test -n "$BUILD_CXX"; then
4552 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 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 +00004561 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004563 break 2
4564 fi
4565done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566done
Jim Grosbach673612e2008-10-02 22:56:44 +00004567IFS=$as_save_IFS
4568
4569fi
4570fi
4571BUILD_CXX=$ac_cv_prog_BUILD_CXX
4572if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4574echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004575else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004576 { echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004578fi
4579
4580
4581 if test -z "$BUILD_CXX"; then
4582 # Extract the first word of "c++", so it can be a program name with args.
4583set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004588else
4589 if test -n "$BUILD_CXX"; then
4590 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4591else
4592 ac_prog_rejected=no
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 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 +00004600 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4601 ac_prog_rejected=yes
4602 continue
4603 fi
4604 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004606 break 2
4607 fi
4608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004609done
Jim Grosbach673612e2008-10-02 22:56:44 +00004610IFS=$as_save_IFS
4611
4612if test $ac_prog_rejected = yes; then
4613 # We found a bogon in the path, so make sure we never use it.
4614 set dummy $ac_cv_prog_BUILD_CXX
4615 shift
4616 if test $# != 0; then
4617 # We chose a different compiler from the bogus one.
4618 # However, it has the same basename, so the bogon will be chosen
4619 # first if we set BUILD_CXX to just the basename; use the full file name.
4620 shift
4621 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4622 fi
4623fi
4624fi
4625fi
4626BUILD_CXX=$ac_cv_prog_BUILD_CXX
4627if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4629echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004631 { echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004633fi
4634
4635
4636 fi
4637 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004638else
4639 LLVM_CROSS_COMPILING=0
4640
4641fi
4642
Nick Lewycky5b28f862009-04-10 05:18:27 +00004643if 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 +00004644 cvsbuild="yes"
4645 optimize="no"
4646 CVSBUILD=CVSBUILD=1
4647
4648else
4649 cvsbuild="no"
4650 optimize="yes"
4651fi
4652
4653
4654# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004656 enableval=$enable_optimized;
4657else
4658 enableval=$optimize
4659fi
4660
4661if test ${enableval} = "no" ; then
4662 ENABLE_OPTIMIZED=
4663
4664else
4665 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4666
4667fi
4668
David Greene2a5a12c2009-04-17 14:50:39 +00004669# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004671 enableval=$enable_profiling;
4672else
4673 enableval="no"
4674fi
4675
4676if test ${enableval} = "no" ; then
4677 ENABLE_PROFILING=
4678
4679else
4680 ENABLE_PROFILING=ENABLE_PROFILING=1
4681
4682fi
4683
Reid Spencera773bd52006-08-04 18:18:08 +00004684# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004686 enableval=$enable_assertions;
4687else
4688 enableval="yes"
4689fi
4690
4691if test ${enableval} = "yes" ; then
4692 DISABLE_ASSERTIONS=
4693
4694else
4695 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4696
4697fi
4698
David Greenea696d242007-06-28 19:36:08 +00004699# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004701 enableval=$enable_expensive_checks;
4702else
4703 enableval="no"
4704fi
4705
4706if test ${enableval} = "yes" ; then
4707 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4708
4709 EXPENSIVE_CHECKS=yes
4710
4711else
4712 ENABLE_EXPENSIVE_CHECKS=
4713
4714 EXPENSIVE_CHECKS=no
4715
4716fi
4717
Reid Spencer8b2e1412006-11-17 03:32:33 +00004718# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004719if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004720 enableval=$enable_debug_runtime;
4721else
4722 enableval=no
4723fi
4724
4725if test ${enableval} = "no" ; then
4726 DEBUG_RUNTIME=
4727
4728else
4729 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4730
4731fi
4732
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004733# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004734if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004735 enableval=$enable_debug_symbols;
4736else
4737 enableval=no
4738fi
4739
4740if test ${enableval} = "no" ; then
4741 DEBUG_SYMBOLS=
4742
4743else
4744 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4745
4746fi
4747
Reid Spencera773bd52006-08-04 18:18:08 +00004748# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004750 enableval=$enable_jit;
4751else
4752 enableval=default
4753fi
4754
4755if test ${enableval} = "no"
4756then
4757 JIT=
4758
4759else
4760 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004761 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004762 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004763 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004764 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004765 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004766 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004767 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004768 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004769 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004770 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004771 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004772 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004773 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004774 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004775 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004776 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004777 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004778 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004779 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004780 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004781 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004782 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004783 Blackfin) TARGET_HAS_JIT=0
4784 ;;
4785 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004786 ;;
4787 esac
4788fi
4789
4790# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004791if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004792 enableval=$enable_doxygen;
4793else
4794 enableval=default
4795fi
4796
4797case "$enableval" in
4798 yes) ENABLE_DOXYGEN=1
4799 ;;
4800 no) ENABLE_DOXYGEN=0
4801 ;;
4802 default) ENABLE_DOXYGEN=0
4803 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004804 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4805echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4806 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004807esac
4808
4809# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004810if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004811 enableval=$enable_threads;
4812else
Reid Spencer65c5d752006-11-05 17:08:18 +00004813 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004814fi
4815
4816case "$enableval" in
4817 yes) ENABLE_THREADS=1
4818 ;;
4819 no) ENABLE_THREADS=0
4820 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004821 default) ENABLE_THREADS=1
4822 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004823 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4824echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4825 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004826esac
4827
Owen Andersona8603702009-05-19 22:18:56 +00004828cat >>confdefs.h <<_ACEOF
4829#define ENABLE_THREADS $ENABLE_THREADS
4830_ACEOF
4831
4832
Reid Spencer89b0d992006-12-16 22:07:52 +00004833# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004834if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004835 enableval=$enable_pic;
4836else
4837 enableval=default
4838fi
4839
4840case "$enableval" in
4841 yes) ENABLE_PIC=1
4842 ;;
4843 no) ENABLE_PIC=0
4844 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004845 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004846 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4848echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4849 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004850esac
4851
4852cat >>confdefs.h <<_ACEOF
4853#define ENABLE_PIC $ENABLE_PIC
4854_ACEOF
4855
4856
Reid Spencera773bd52006-08-04 18:18:08 +00004857TARGETS_TO_BUILD=""
4858# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004860 enableval=$enable_targets;
4861else
4862 enableval=all
4863fi
4864
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004865if test "$enableval" = host-only ; then
4866 enableval=host
4867fi
Reid Spencera773bd52006-08-04 18:18:08 +00004868case "$enableval" in
Jakob Stoklund Olesen73b7bb72009-08-02 17:32:37 +00004869 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 +00004870 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4871 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004872 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4873 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4874 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4875 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4876 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4877 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4878 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4879 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4880 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4881 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4882 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4883 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4884 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4885 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4886 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4887 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004888 host) case "$llvm_cv_target_arch" in
4889 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4890 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4891 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4892 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4893 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4894 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4895 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4896 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4897 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4898 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4899 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004900 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004901 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004902 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4903echo "$as_me: error: Can not set target to build" >&2;}
4904 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004905 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004906 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4907echo "$as_me: error: Unrecognized target $a_target" >&2;}
4908 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004909 esac
4910 done
4911 ;;
4912esac
Reid Spencera773bd52006-08-04 18:18:08 +00004913TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4914
4915
Douglas Gregor0711c302009-06-17 00:43:20 +00004916# Determine whether we are building LLVM support for the native architecture.
4917# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4918for a_target in $TARGETS_TO_BUILD; do
4919 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004920 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004921
4922cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004923#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004924_ACEOF
4925
4926 fi
4927done
4928
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004929# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4930# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004931LLVM_ENUM_TARGETS=""
4932LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004933LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004934LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004935for target_to_build in $TARGETS_TO_BUILD; do
4936 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4937 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4938 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4939 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004940 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4941 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4942 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004943 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4944 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4945 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004946done
4947
4948
4949
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004950
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004951
Reid Spencer65c5d752006-11-05 17:08:18 +00004952# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004953if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00004954 enableval=$enable_cbe_printf_a;
4955else
4956 enableval=default
4957fi
4958
4959case "$enableval" in
4960 yes) ENABLE_CBE_PRINTF_A=1
4961 ;;
4962 no) ENABLE_CBE_PRINTF_A=0
4963 ;;
4964 default) ENABLE_CBE_PRINTF_A=1
4965 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004966 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4967echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4968 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004969esac
4970
4971cat >>confdefs.h <<_ACEOF
4972#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4973_ACEOF
4974
4975
Reid Spencera773bd52006-08-04 18:18:08 +00004976
4977# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004978if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004979 withval=$with_llvmgccdir;
4980else
4981 withval=default
4982fi
4983
4984case "$withval" in
4985 default) WITH_LLVMGCCDIR=default ;;
4986 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004987 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4988echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4989 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004990esac
4991
4992
Devang Patel5d28b882007-12-04 22:54:47 +00004993# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004994if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00004995 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4996 WITH_LLVMGCCDIR=""
4997fi
4998
4999
5000
5001# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005002if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005003 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5004 WITH_LLVMGCCDIR=""
5005fi
5006
Douglas Gregor01746742009-05-11 18:05:52 +00005007
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005008if test -n "$LLVMGCC"; then
5009 LLVMGCCCOMMAND="$LLVMGCC"
5010fi
5011
5012if test -n "$LLVMGXX"; then
5013 LLVMGXXCOMMAND="$LLVMGXX"
5014fi
Devang Patel5d28b882007-12-04 22:54:47 +00005015
5016if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005017 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5018echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5019 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005020fi
5021
5022if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005023 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5024echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5025 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005026fi
5027
5028
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005029# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005030if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005031 withval=$with_optimize_option;
5032else
5033 withval=default
5034fi
5035
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005036{ echo "$as_me:$LINENO: checking optimization flags" >&5
5037echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005038case "$withval" in
5039 default)
5040 case "$llvm_cv_os_type" in
5041 MingW) optimize_option=-O3 ;;
5042 *) optimize_option=-O2 ;;
5043 esac ;;
5044 *) optimize_option="$withval" ;;
5045esac
5046OPTIMIZE_OPTION=$optimize_option
5047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005048{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5049echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005050
5051
Reid Spencera773bd52006-08-04 18:18:08 +00005052# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005053if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005054 withval=$with_extra_options;
5055else
5056 withval=default
5057fi
5058
5059case "$withval" in
5060 default) EXTRA_OPTIONS= ;;
5061 *) EXTRA_OPTIONS=$withval ;;
5062esac
5063EXTRA_OPTIONS=$EXTRA_OPTIONS
5064
5065
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005066# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005067if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005068 enableval=$enable_bindings;
5069else
5070 enableval=default
5071fi
5072
5073BINDINGS_TO_BUILD=""
5074case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005075 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005076 all ) BINDINGS_TO_BUILD="ocaml" ;;
5077 none | no) BINDINGS_TO_BUILD="" ;;
5078 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5079 case "$a_binding" in
5080 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005081 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5082echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5083 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005084 esac
5085 done
5086 ;;
5087esac
5088
Reid Spencera773bd52006-08-04 18:18:08 +00005089
Gordon Henriksenf0915682007-10-02 16:42:22 +00005090# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005091if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005092 withval=$with_ocaml_libdir;
5093else
5094 withval=auto
5095fi
5096
5097case "$withval" in
5098 auto) with_ocaml_libdir="$withval" ;;
5099 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005100 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5101echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5102 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005103esac
5104
5105
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005106# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005107if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005108 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005109else
5110 withval=""
5111fi
5112
5113
5114cat >>confdefs.h <<_ACEOF
5115#define C_INCLUDE_DIRS "$withval"
5116_ACEOF
5117
5118
5119
Rafael Espindola420d23c2009-11-16 19:46:55 +00005120# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005121if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005122 withval=$with_cxx_include_root;
5123else
5124 withval=""
5125fi
5126
5127
5128cat >>confdefs.h <<_ACEOF
5129#define CXX_INCLUDE_ROOT "$withval"
5130_ACEOF
5131
5132
5133
5134# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005135if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005136 withval=$with_cxx_include_arch;
5137else
5138 withval=""
5139fi
5140
5141
5142cat >>confdefs.h <<_ACEOF
5143#define CXX_INCLUDE_ARCH "$withval"
5144_ACEOF
5145
5146
5147
5148# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005149if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005150 withval=$with_cxx_include_32bit_dir;
5151else
5152 withval=""
5153fi
5154
5155
5156cat >>confdefs.h <<_ACEOF
5157#define CXX_INCLUDE_32BIT_DIR "$withval"
5158_ACEOF
5159
5160
5161
5162# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005163if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005164 withval=$with_cxx_include_64bit_dir;
5165else
5166 withval=""
5167fi
5168
5169
5170cat >>confdefs.h <<_ACEOF
5171#define CXX_INCLUDE_64BIT_DIR "$withval"
5172_ACEOF
5173
5174
5175
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005176# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005177if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005178 withval=$with_binutils_include;
5179else
5180 withval=default
5181fi
5182
5183case "$withval" in
5184 default) WITH_BINUTILS_INCDIR=default ;;
5185 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005186 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5187echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5188 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005189esac
5190if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5191 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5192
5193 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5194 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005195 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5196echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5197 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005198 fi
5199fi
5200
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005201# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005202if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005203 enableval=$enable_libffi; case "$enableval" in
5204 yes) llvm_cv_enable_libffi="yes" ;;
5205 no) llvm_cv_enable_libffi="no" ;;
5206 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005207echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5208 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005209 esac
5210else
5211 llvm_cv_enable_libffi=no
5212fi
5213
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005214
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005215if test "$llvm_cv_os_type" = "Win32" ; then
5216 llvmc_dynamic="yes"
5217else
5218 llvmc_dynamic="no"
5219fi
5220
5221# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005222if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005223 enableval=$enable_llvmc_dynamic;
5224else
5225 enableval=$llvmc_dynamic
5226fi
5227
5228if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5229 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5230
5231else
5232 ENABLE_LLVMC_DYNAMIC=
5233
5234fi
5235
5236# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005237if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005238 enableval=$enable_llvmc_dynamic_plugins;
5239else
5240 enableval=yes
5241fi
5242
5243if test ${enableval} = "yes" ; then
5244 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5245
5246else
5247 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5248
5249fi
5250
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005251
Reid Spencera773bd52006-08-04 18:18:08 +00005252ac_ext=c
5253ac_cpp='$CPP $CPPFLAGS'
5254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005257{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5258echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005259# On Suns, sometimes $CPP names a directory.
5260if test -n "$CPP" && test -d "$CPP"; then
5261 CPP=
5262fi
5263if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005264 if test "${ac_cv_prog_CPP+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005266else
5267 # Double quotes because CPP needs to be expanded
5268 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5269 do
5270 ac_preproc_ok=false
5271for ac_c_preproc_warn_flag in '' yes
5272do
5273 # Use a header file that comes with gcc, so configuring glibc
5274 # with a fresh cross-compiler works.
5275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5276 # <limits.h> exists even on freestanding compilers.
5277 # On the NeXT, cc -E runs the code through the compiler's parser,
5278 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005279 cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005284/* end confdefs.h. */
5285#ifdef __STDC__
5286# include <limits.h>
5287#else
5288# include <assert.h>
5289#endif
5290 Syntax error
5291_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005292if { (ac_try="$ac_cpp conftest.$ac_ext"
5293case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296esac
5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } >/dev/null; then
5305 if test -s conftest.err; then
5306 ac_cpp_err=$ac_c_preproc_warn_flag
5307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5308 else
5309 ac_cpp_err=
5310 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005312 ac_cpp_err=yes
5313fi
5314if test -z "$ac_cpp_err"; then
5315 :
5316else
5317 echo "$as_me: failed program was:" >&5
5318sed 's/^/| /' conftest.$ac_ext >&5
5319
Reid Spencera773bd52006-08-04 18:18:08 +00005320 # Broken: fails on valid input.
5321continue
5322fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005323
Reid Spencera773bd52006-08-04 18:18:08 +00005324rm -f conftest.err conftest.$ac_ext
5325
5326 # OK, works on sane cases. Now check whether nonexistent headers
5327 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005328 cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005333/* end confdefs.h. */
5334#include <ac_nonexistent.h>
5335_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005336if { (ac_try="$ac_cpp conftest.$ac_ext"
5337case "(($ac_try" in
5338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339 *) ac_try_echo=$ac_try;;
5340esac
5341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } >/dev/null; then
5349 if test -s conftest.err; then
5350 ac_cpp_err=$ac_c_preproc_warn_flag
5351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5352 else
5353 ac_cpp_err=
5354 fi
5355else
5356 ac_cpp_err=yes
5357fi
5358if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005359 # Broken: success on invalid input.
5360continue
5361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
Reid Spencera773bd52006-08-04 18:18:08 +00005365 # Passes both tests.
5366ac_preproc_ok=:
5367break
5368fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005369
Reid Spencera773bd52006-08-04 18:18:08 +00005370rm -f conftest.err conftest.$ac_ext
5371
5372done
5373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005375if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005376 break
5377fi
5378
5379 done
5380 ac_cv_prog_CPP=$CPP
5381
5382fi
5383 CPP=$ac_cv_prog_CPP
5384else
5385 ac_cv_prog_CPP=$CPP
5386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005387{ echo "$as_me:$LINENO: result: $CPP" >&5
5388echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005389ac_preproc_ok=false
5390for ac_c_preproc_warn_flag in '' yes
5391do
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005398 cat >conftest.$ac_ext <<_ACEOF
5399/* confdefs.h. */
5400_ACEOF
5401cat confdefs.h >>conftest.$ac_ext
5402cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005403/* end confdefs.h. */
5404#ifdef __STDC__
5405# include <limits.h>
5406#else
5407# include <assert.h>
5408#endif
5409 Syntax error
5410_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005411if { (ac_try="$ac_cpp conftest.$ac_ext"
5412case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415esac
5416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 else
5428 ac_cpp_err=
5429 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005431 ac_cpp_err=yes
5432fi
5433if test -z "$ac_cpp_err"; then
5434 :
5435else
5436 echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
Reid Spencera773bd52006-08-04 18:18:08 +00005439 # Broken: fails on valid input.
5440continue
5441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005442
Reid Spencera773bd52006-08-04 18:18:08 +00005443rm -f conftest.err conftest.$ac_ext
5444
5445 # OK, works on sane cases. Now check whether nonexistent headers
5446 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447 cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005452/* end confdefs.h. */
5453#include <ac_nonexistent.h>
5454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455if { (ac_try="$ac_cpp conftest.$ac_ext"
5456case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459esac
5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5471 else
5472 ac_cpp_err=
5473 fi
5474else
5475 ac_cpp_err=yes
5476fi
5477if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005478 # Broken: success on invalid input.
5479continue
5480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
Reid Spencera773bd52006-08-04 18:18:08 +00005484 # Passes both tests.
5485ac_preproc_ok=:
5486break
5487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005488
Reid Spencera773bd52006-08-04 18:18:08 +00005489rm -f conftest.err conftest.$ac_ext
5490
5491done
5492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005494if $ac_preproc_ok; then
5495 :
Reid Spencera773bd52006-08-04 18:18:08 +00005496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005497 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5498See \`config.log' for more details." >&5
5499echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5500See \`config.log' for more details." >&2;}
5501 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005502fi
5503
5504ac_ext=c
5505ac_cpp='$CPP $CPPFLAGS'
5506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
5510ac_ext=c
5511ac_cpp='$CPP $CPPFLAGS'
5512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515if test -n "$ac_tool_prefix"; then
5516 for ac_prog in gcc
5517 do
5518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5522if test "${ac_cv_prog_CC+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005524else
5525 if test -n "$CC"; then
5526 ac_cv_prog_CC="$CC" # Let the user override the test.
5527else
5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529for as_dir in $PATH
5530do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 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 +00005535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005537 break 2
5538 fi
5539done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005540done
Reid Spencera773bd52006-08-04 18:18:08 +00005541IFS=$as_save_IFS
5542
5543fi
5544fi
5545CC=$ac_cv_prog_CC
5546if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005547 { echo "$as_me:$LINENO: result: $CC" >&5
5548echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005549else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005550 { echo "$as_me:$LINENO: result: no" >&5
5551echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005552fi
5553
5554
5555 test -n "$CC" && break
5556 done
5557fi
5558if test -z "$CC"; then
5559 ac_ct_CC=$CC
5560 for ac_prog in gcc
5561do
5562 # Extract the first word of "$ac_prog", so it can be a program name with args.
5563set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5566if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005568else
5569 if test -n "$ac_ct_CC"; then
5570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5571else
5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573for as_dir in $PATH
5574do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 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 +00005579 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005581 break 2
5582 fi
5583done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005584done
Reid Spencera773bd52006-08-04 18:18:08 +00005585IFS=$as_save_IFS
5586
5587fi
5588fi
5589ac_ct_CC=$ac_cv_prog_ac_ct_CC
5590if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005591 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5592echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005594 { echo "$as_me:$LINENO: result: no" >&5
5595echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005596fi
5597
5598
5599 test -n "$ac_ct_CC" && break
5600done
5601
5602 if test "x$ac_ct_CC" = x; then
5603 CC=""
5604 else
5605 case $cross_compiling:$ac_tool_warned in
5606yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005607{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5608whose name does not start with the host triplet. If you think this
5609configuration is useful to you, please write to autoconf@gnu.org." >&5
5610echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005613ac_tool_warned=yes ;;
5614esac
5615 CC=$ac_ct_CC
5616 fi
5617fi
5618
5619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005620test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5621See \`config.log' for more details." >&5
5622echo "$as_me: error: no acceptable C compiler found in \$PATH
5623See \`config.log' for more details." >&2;}
5624 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005625
5626# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005627echo "$as_me:$LINENO: checking for C compiler version" >&5
5628ac_compiler=`set X $ac_compile; echo $2`
5629{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005630case "(($ac_try" in
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5633esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005636 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }
5639{ (ac_try="$ac_compiler -v >&5"
5640case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compiler -v >&5") 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }
5649{ (ac_try="$ac_compiler -V >&5"
5650case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653esac
5654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compiler -V >&5") 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005659
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5661echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5662if test "${ac_cv_c_compiler_gnu+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005664else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005665 cat >conftest.$ac_ext <<_ACEOF
5666/* confdefs.h. */
5667_ACEOF
5668cat confdefs.h >>conftest.$ac_ext
5669cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005670/* end confdefs.h. */
5671
5672int
5673main ()
5674{
5675#ifndef __GNUC__
5676 choke me
5677#endif
5678
5679 ;
5680 return 0;
5681}
5682_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005683rm -f conftest.$ac_objext
5684if { (ac_try="$ac_compile"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005717 ac_compiler_gnu=yes
5718else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005723fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724
Reid Spencera773bd52006-08-04 18:18:08 +00005725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726ac_cv_c_compiler_gnu=$ac_compiler_gnu
5727
5728fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005729{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5730echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5731GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005732ac_test_CFLAGS=${CFLAGS+set}
5733ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5735echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5736if test "${ac_cv_prog_cc_g+set}" = set; then
5737 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005738else
5739 ac_save_c_werror_flag=$ac_c_werror_flag
5740 ac_c_werror_flag=yes
5741 ac_cv_prog_cc_g=no
5742 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005743 cat >conftest.$ac_ext <<_ACEOF
5744/* confdefs.h. */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005748/* end confdefs.h. */
5749
5750int
5751main ()
5752{
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758rm -f conftest.$ac_objext
5759if { (ac_try="$ac_compile"
5760case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_compile") 2>conftest.er1
5766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); } &&
5772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_try") 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005792 ac_cv_prog_cc_g=yes
5793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
5797 CFLAGS=""
5798 cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h. */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005803/* end confdefs.h. */
5804
5805int
5806main ()
5807{
5808
5809 ;
5810 return 0;
5811}
5812_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005813rm -f conftest.$ac_objext
5814if { (ac_try="$ac_compile"
5815case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_compile") 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
5827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5828 { (case "(($ac_try" in
5829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5831esac
5832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_try") 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; } &&
5837 { ac_try='test -s conftest.$ac_objext'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 :
Torok Edwin871384f2010-01-26 08:50:50 +00005848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005849 echo "$as_me: failed program was:" >&5
5850sed 's/^/| /' conftest.$ac_ext >&5
5851
5852 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005853 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005854 cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h. */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005859/* end confdefs.h. */
5860
5861int
5862main ()
5863{
5864
5865 ;
5866 return 0;
5867}
5868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869rm -f conftest.$ac_objext
5870if { (ac_try="$ac_compile"
5871case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5884 { (case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_try") 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; } &&
5893 { ac_try='test -s conftest.$ac_objext'
5894 { (case "(($ac_try" in
5895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5896 *) ac_try_echo=$ac_try;;
5897esac
5898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_try") 2>&5
5900 ac_status=$?
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005903 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005904else
5905 echo "$as_me: failed program was:" >&5
5906sed 's/^/| /' conftest.$ac_ext >&5
5907
5908
Reid Spencera773bd52006-08-04 18:18:08 +00005909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910
Reid Spencera773bd52006-08-04 18:18:08 +00005911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912fi
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
5918 ac_c_werror_flag=$ac_save_c_werror_flag
5919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5921echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005922if test "$ac_test_CFLAGS" = set; then
5923 CFLAGS=$ac_save_CFLAGS
5924elif test $ac_cv_prog_cc_g = yes; then
5925 if test "$GCC" = yes; then
5926 CFLAGS="-g -O2"
5927 else
5928 CFLAGS="-g"
5929 fi
5930else
5931 if test "$GCC" = yes; then
5932 CFLAGS="-O2"
5933 else
5934 CFLAGS=
5935 fi
5936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5938echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5939if test "${ac_cv_prog_cc_c89+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005941else
5942 ac_cv_prog_cc_c89=no
5943ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944cat >conftest.$ac_ext <<_ACEOF
5945/* confdefs.h. */
5946_ACEOF
5947cat confdefs.h >>conftest.$ac_ext
5948cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005949/* end confdefs.h. */
5950#include <stdarg.h>
5951#include <stdio.h>
5952#include <sys/types.h>
5953#include <sys/stat.h>
5954/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5955struct buf { int x; };
5956FILE * (*rcsopen) (struct buf *, struct stat *, int);
5957static char *e (p, i)
5958 char **p;
5959 int i;
5960{
5961 return p[i];
5962}
5963static char *f (char * (*g) (char **, int), char **p, ...)
5964{
5965 char *s;
5966 va_list v;
5967 va_start (v,p);
5968 s = g (p, va_arg (v,int));
5969 va_end (v);
5970 return s;
5971}
5972
5973/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5974 function prototypes and stuff, but not '\xHH' hex character constants.
5975 These don't provoke an error unfortunately, instead are silently treated
5976 as 'x'. The following induces an error, until -std is added to get
5977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5978 array size at least. It's necessary to write '\x00'==0 to get something
5979 that's true only with -std. */
5980int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5981
5982/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5983 inside strings and character constants. */
5984#define FOO(x) 'x'
5985int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5986
5987int test (int i, double x);
5988struct s1 {int (*f) (int a);};
5989struct s2 {int (*f) (double a);};
5990int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5991int argc;
5992char **argv;
5993int
5994main ()
5995{
5996return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5997 ;
5998 return 0;
5999}
6000_ACEOF
6001for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6003do
6004 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006005 rm -f conftest.$ac_objext
6006if { (ac_try="$ac_compile"
6007case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
6013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6020 { (case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_try") 2>&5
6026 ac_status=$?
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; } &&
6029 { ac_try='test -s conftest.$ac_objext'
6030 { (case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_try") 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006039 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040else
6041 echo "$as_me: failed program was:" >&5
6042sed 's/^/| /' conftest.$ac_ext >&5
6043
6044
Reid Spencera773bd52006-08-04 18:18:08 +00006045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006046
Reid Spencera773bd52006-08-04 18:18:08 +00006047rm -f core conftest.err conftest.$ac_objext
6048 test "x$ac_cv_prog_cc_c89" != "xno" && break
6049done
6050rm -f conftest.$ac_ext
6051CC=$ac_save_CC
6052
6053fi
6054# AC_CACHE_VAL
6055case "x$ac_cv_prog_cc_c89" in
6056 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006057 { echo "$as_me:$LINENO: result: none needed" >&5
6058echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006059 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060 { echo "$as_me:$LINENO: result: unsupported" >&5
6061echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006062 *)
6063 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006064 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6065echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006066esac
6067
6068
6069ac_ext=c
6070ac_cpp='$CPP $CPPFLAGS'
6071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074
6075ac_ext=cpp
6076ac_cpp='$CXXCPP $CPPFLAGS'
6077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6080if test -z "$CXX"; then
6081 if test -n "$CCC"; then
6082 CXX=$CCC
6083 else
6084 if test -n "$ac_tool_prefix"; then
6085 for ac_prog in g++
6086 do
6087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091if test "${ac_cv_prog_CXX+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006093else
6094 if test -n "$CXX"; then
6095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 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 +00006104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006106 break 2
6107 fi
6108done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109done
Reid Spencera773bd52006-08-04 18:18:08 +00006110IFS=$as_save_IFS
6111
6112fi
6113fi
6114CXX=$ac_cv_prog_CXX
6115if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006116 { echo "$as_me:$LINENO: result: $CXX" >&5
6117echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006119 { echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006121fi
6122
6123
6124 test -n "$CXX" && break
6125 done
6126fi
6127if test -z "$CXX"; then
6128 ac_ct_CXX=$CXX
6129 for ac_prog in g++
6130do
6131 # Extract the first word of "$ac_prog", so it can be a program name with args.
6132set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6135if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006137else
6138 if test -n "$ac_ct_CXX"; then
6139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6140else
6141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142for as_dir in $PATH
6143do
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 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 +00006148 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006150 break 2
6151 fi
6152done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006153done
Reid Spencera773bd52006-08-04 18:18:08 +00006154IFS=$as_save_IFS
6155
6156fi
6157fi
6158ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6159if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006160 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6161echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006163 { echo "$as_me:$LINENO: result: no" >&5
6164echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006165fi
6166
6167
6168 test -n "$ac_ct_CXX" && break
6169done
6170
6171 if test "x$ac_ct_CXX" = x; then
6172 CXX="g++"
6173 else
6174 case $cross_compiling:$ac_tool_warned in
6175yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006176{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6177whose name does not start with the host triplet. If you think this
6178configuration is useful to you, please write to autoconf@gnu.org." >&5
6179echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006182ac_tool_warned=yes ;;
6183esac
6184 CXX=$ac_ct_CXX
6185 fi
6186fi
6187
6188 fi
6189fi
6190# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6192ac_compiler=`set X $ac_compile; echo $2`
6193{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006194case "(($ac_try" in
6195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6196 *) ac_try_echo=$ac_try;;
6197esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006200 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); }
6203{ (ac_try="$ac_compiler -v >&5"
6204case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207esac
6208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compiler -v >&5") 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }
6213{ (ac_try="$ac_compiler -V >&5"
6214case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217esac
6218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compiler -V >&5") 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006224{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6225echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6226if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006228else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h. */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006234/* end confdefs.h. */
6235
6236int
6237main ()
6238{
6239#ifndef __GNUC__
6240 choke me
6241#endif
6242
6243 ;
6244 return 0;
6245}
6246_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006247rm -f conftest.$ac_objext
6248if { (ac_try="$ac_compile"
6249case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6262 { (case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_try") 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest.$ac_objext'
6272 { (case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_try") 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006281 ac_compiler_gnu=yes
6282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006288
Reid Spencera773bd52006-08-04 18:18:08 +00006289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6291
6292fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6294echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6295GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006296ac_test_CXXFLAGS=${CXXFLAGS+set}
6297ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006298{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6299echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6300if test "${ac_cv_prog_cxx_g+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006302else
6303 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6304 ac_cxx_werror_flag=yes
6305 ac_cv_prog_cxx_g=no
6306 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 cat >conftest.$ac_ext <<_ACEOF
6308/* confdefs.h. */
6309_ACEOF
6310cat confdefs.h >>conftest.$ac_ext
6311cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006312/* end confdefs.h. */
6313
6314int
6315main ()
6316{
6317
6318 ;
6319 return 0;
6320}
6321_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322rm -f conftest.$ac_objext
6323if { (ac_try="$ac_compile"
6324case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest.$ac_objext'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006356 ac_cv_prog_cxx_g=yes
6357else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 CXXFLAGS=""
6362 cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006367/* end confdefs.h. */
6368
6369int
6370main ()
6371{
6372
6373 ;
6374 return 0;
6375}
6376_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006377rm -f conftest.$ac_objext
6378if { (ac_try="$ac_compile"
6379case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6385 ac_status=$?
6386 grep -v '^ *+' conftest.er1 >conftest.err
6387 rm -f conftest.er1
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6392 { (case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_try") 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }; } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; }; then
6411 :
Torok Edwin871384f2010-01-26 08:50:50 +00006412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006413 echo "$as_me: failed program was:" >&5
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006417 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006418 cat >conftest.$ac_ext <<_ACEOF
6419/* confdefs.h. */
6420_ACEOF
6421cat confdefs.h >>conftest.$ac_ext
6422cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006423/* end confdefs.h. */
6424
6425int
6426main ()
6427{
6428
6429 ;
6430 return 0;
6431}
6432_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433rm -f conftest.$ac_objext
6434if { (ac_try="$ac_compile"
6435case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438esac
6439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6448 { (case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451esac
6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_try") 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; } &&
6457 { ac_try='test -s conftest.$ac_objext'
6458 { (case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461esac
6462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463 (eval "$ac_try") 2>&5
6464 ac_status=$?
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006467 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006468else
6469 echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472
Reid Spencera773bd52006-08-04 18:18:08 +00006473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474
Reid Spencera773bd52006-08-04 18:18:08 +00006475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476fi
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
6482 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006484{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6485echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006486if test "$ac_test_CXXFLAGS" = set; then
6487 CXXFLAGS=$ac_save_CXXFLAGS
6488elif test $ac_cv_prog_cxx_g = yes; then
6489 if test "$GXX" = yes; then
6490 CXXFLAGS="-g -O2"
6491 else
6492 CXXFLAGS="-g"
6493 fi
6494else
6495 if test "$GXX" = yes; then
6496 CXXFLAGS="-O2"
6497 else
6498 CXXFLAGS=
6499 fi
6500fi
6501ac_ext=c
6502ac_cpp='$CPP $CPPFLAGS'
6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
Reid Spencera773bd52006-08-04 18:18:08 +00006507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6509echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6510if test "${lt_cv_path_NM+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006512else
6513 if test -n "$NM"; then
6514 # Let the user override the test.
6515 lt_cv_path_NM="$NM"
6516else
6517 lt_nm_to_check="${ac_tool_prefix}nm"
6518 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6519 lt_nm_to_check="$lt_nm_to_check nm"
6520 fi
6521 for lt_tmp_nm in $lt_nm_to_check; do
6522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6523 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6524 IFS="$lt_save_ifs"
6525 test -z "$ac_dir" && ac_dir=.
6526 tmp_nm="$ac_dir/$lt_tmp_nm"
6527 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6528 # Check to see if the nm accepts a BSD-compat flag.
6529 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6530 # nm: unknown option "B" ignored
6531 # Tru64's nm complains that /dev/null is an invalid object file
6532 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6533 */dev/null* | *'Invalid file or object type'*)
6534 lt_cv_path_NM="$tmp_nm -B"
6535 break
6536 ;;
6537 *)
6538 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6539 */dev/null*)
6540 lt_cv_path_NM="$tmp_nm -p"
6541 break
6542 ;;
6543 *)
6544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6545 continue # so that we can try to find one that supports BSD flags
6546 ;;
6547 esac
6548 ;;
6549 esac
6550 fi
6551 done
6552 IFS="$lt_save_ifs"
6553 done
6554 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6555fi
6556fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6558echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006559NM="$lt_cv_path_NM"
6560
6561
6562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006563{ echo "$as_me:$LINENO: checking for GNU make" >&5
6564echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6565if test "${llvm_cv_gnu_make_command+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006567else
6568 llvm_cv_gnu_make_command=''
6569 for a in "$MAKE" make gmake gnumake ; do
6570 if test -z "$a" ; then continue ; fi ;
6571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6572 then
6573 llvm_cv_gnu_make_command=$a ;
6574 break;
6575 fi
6576 done
6577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006578{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6579echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006580 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6581 ifGNUmake='' ;
6582 else
6583 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6585echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006586 fi
6587
6588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006589{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6590echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006591LN_S=$as_ln_s
6592if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006593 { echo "$as_me:$LINENO: result: yes" >&5
6594echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006595else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006596 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6597echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006598fi
6599
6600# Extract the first word of "cmp", so it can be a program name with args.
6601set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6604if test "${ac_cv_path_CMP+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006606else
6607 case $CMP in
6608 [\\/]* | ?:[\\/]*)
6609 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6610 ;;
6611 *)
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 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 +00006619 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006621 break 2
6622 fi
6623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624done
Reid Spencera773bd52006-08-04 18:18:08 +00006625IFS=$as_save_IFS
6626
6627 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6628 ;;
6629esac
6630fi
6631CMP=$ac_cv_path_CMP
6632if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006633 { echo "$as_me:$LINENO: result: $CMP" >&5
6634echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006636 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006638fi
6639
6640
6641# Extract the first word of "cp", so it can be a program name with args.
6642set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6645if test "${ac_cv_path_CP+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006647else
6648 case $CP in
6649 [\\/]* | ?:[\\/]*)
6650 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6651 ;;
6652 *)
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654for as_dir in $PATH
6655do
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 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 +00006660 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006662 break 2
6663 fi
6664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665done
Reid Spencera773bd52006-08-04 18:18:08 +00006666IFS=$as_save_IFS
6667
6668 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6669 ;;
6670esac
6671fi
6672CP=$ac_cv_path_CP
6673if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006674 { echo "$as_me:$LINENO: result: $CP" >&5
6675echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006677 { echo "$as_me:$LINENO: result: no" >&5
6678echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006679fi
6680
6681
6682# Extract the first word of "date", so it can be a program name with args.
6683set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6686if test "${ac_cv_path_DATE+set}" = set; then
6687 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006688else
6689 case $DATE in
6690 [\\/]* | ?:[\\/]*)
6691 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6692 ;;
6693 *)
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 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 +00006701 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006703 break 2
6704 fi
6705done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006706done
Reid Spencera773bd52006-08-04 18:18:08 +00006707IFS=$as_save_IFS
6708
6709 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6710 ;;
6711esac
6712fi
6713DATE=$ac_cv_path_DATE
6714if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715 { echo "$as_me:$LINENO: result: $DATE" >&5
6716echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 { echo "$as_me:$LINENO: result: no" >&5
6719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006720fi
6721
6722
6723# Extract the first word of "find", so it can be a program name with args.
6724set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6727if test "${ac_cv_path_FIND+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006729else
6730 case $FIND in
6731 [\\/]* | ?:[\\/]*)
6732 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6733 ;;
6734 *)
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736for as_dir in $PATH
6737do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 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 +00006742 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006744 break 2
6745 fi
6746done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747done
Reid Spencera773bd52006-08-04 18:18:08 +00006748IFS=$as_save_IFS
6749
6750 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6751 ;;
6752esac
6753fi
6754FIND=$ac_cv_path_FIND
6755if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006756 { echo "$as_me:$LINENO: result: $FIND" >&5
6757echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759 { echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006761fi
6762
6763
6764# Extract the first word of "grep", so it can be a program name with args.
6765set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768if test "${ac_cv_path_GREP+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006770else
6771 case $GREP in
6772 [\\/]* | ?:[\\/]*)
6773 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6774 ;;
6775 *)
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 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 +00006783 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006785 break 2
6786 fi
6787done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788done
Reid Spencera773bd52006-08-04 18:18:08 +00006789IFS=$as_save_IFS
6790
6791 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6792 ;;
6793esac
6794fi
6795GREP=$ac_cv_path_GREP
6796if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006797 { echo "$as_me:$LINENO: result: $GREP" >&5
6798echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006799else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 { echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006802fi
6803
6804
6805# Extract the first word of "mkdir", so it can be a program name with args.
6806set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6809if test "${ac_cv_path_MKDIR+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006811else
6812 case $MKDIR in
6813 [\\/]* | ?:[\\/]*)
6814 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6815 ;;
6816 *)
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818for as_dir in $PATH
6819do
6820 IFS=$as_save_IFS
6821 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 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 +00006824 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006826 break 2
6827 fi
6828done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829done
Reid Spencera773bd52006-08-04 18:18:08 +00006830IFS=$as_save_IFS
6831
6832 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6833 ;;
6834esac
6835fi
6836MKDIR=$ac_cv_path_MKDIR
6837if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006838 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6839echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006843fi
6844
6845
6846# Extract the first word of "mv", so it can be a program name with args.
6847set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850if test "${ac_cv_path_MV+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006852else
6853 case $MV in
6854 [\\/]* | ?:[\\/]*)
6855 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6856 ;;
6857 *)
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863 for ac_exec_ext in '' $ac_executable_extensions; do
6864 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 +00006865 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006867 break 2
6868 fi
6869done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870done
Reid Spencera773bd52006-08-04 18:18:08 +00006871IFS=$as_save_IFS
6872
6873 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6874 ;;
6875esac
6876fi
6877MV=$ac_cv_path_MV
6878if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006879 { echo "$as_me:$LINENO: result: $MV" >&5
6880echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006881else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882 { echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006884fi
6885
6886
6887if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_prog_RANLIB+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006894else
6895 if test -n "$RANLIB"; then
6896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 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 +00006905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006907 break 2
6908 fi
6909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006910done
Reid Spencera773bd52006-08-04 18:18:08 +00006911IFS=$as_save_IFS
6912
6913fi
6914fi
6915RANLIB=$ac_cv_prog_RANLIB
6916if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006917 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6918echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006920 { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006922fi
6923
6924
6925fi
6926if test -z "$ac_cv_prog_RANLIB"; then
6927 ac_ct_RANLIB=$RANLIB
6928 # Extract the first word of "ranlib", so it can be a program name with args.
6929set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006934else
6935 if test -n "$ac_ct_RANLIB"; then
6936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 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 +00006945 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006947 break 2
6948 fi
6949done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950done
Reid Spencera773bd52006-08-04 18:18:08 +00006951IFS=$as_save_IFS
6952
6953fi
6954fi
6955ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6956if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6958echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006962fi
6963
6964 if test "x$ac_ct_RANLIB" = x; then
6965 RANLIB=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6970whose name does not start with the host triplet. If you think this
6971configuration is useful to you, please write to autoconf@gnu.org." >&5
6972echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006975ac_tool_warned=yes ;;
6976esac
6977 RANLIB=$ac_ct_RANLIB
6978 fi
6979else
6980 RANLIB="$ac_cv_prog_RANLIB"
6981fi
6982
Torok Edwin871384f2010-01-26 08:50:50 +00006983if test -n "$ac_tool_prefix"; then
6984 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6985set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988if test "${ac_cv_prog_AR+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00006990else
6991 if test -n "$AR"; then
6992 ac_cv_prog_AR="$AR" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 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 +00007001 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007003 break 2
7004 fi
7005done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006done
Torok Edwin871384f2010-01-26 08:50:50 +00007007IFS=$as_save_IFS
7008
7009fi
7010fi
7011AR=$ac_cv_prog_AR
7012if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 { echo "$as_me:$LINENO: result: $AR" >&5
7014echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007015else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007016 { echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007018fi
7019
7020
7021fi
7022if test -z "$ac_cv_prog_AR"; then
7023 ac_ct_AR=$AR
7024 # Extract the first word of "ar", so it can be a program name with args.
7025set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7028if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007030else
7031 if test -n "$ac_ct_AR"; then
7032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039 for ac_exec_ext in '' $ac_executable_extensions; do
7040 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 +00007041 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007043 break 2
7044 fi
7045done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046done
Torok Edwin871384f2010-01-26 08:50:50 +00007047IFS=$as_save_IFS
7048
7049fi
7050fi
7051ac_ct_AR=$ac_cv_prog_ac_ct_AR
7052if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007053 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7054echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007056 { echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007058fi
7059
7060 if test "x$ac_ct_AR" = x; then
7061 AR="false"
7062 else
7063 case $cross_compiling:$ac_tool_warned in
7064yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007065{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7066whose name does not start with the host triplet. If you think this
7067configuration is useful to you, please write to autoconf@gnu.org." >&5
7068echo "$as_me: 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." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007071ac_tool_warned=yes ;;
7072esac
7073 AR=$ac_ct_AR
7074 fi
7075else
7076 AR="$ac_cv_prog_AR"
7077fi
7078
Reid Spencera773bd52006-08-04 18:18:08 +00007079# Extract the first word of "rm", so it can be a program name with args.
7080set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083if test "${ac_cv_path_RM+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007085else
7086 case $RM in
7087 [\\/]* | ?:[\\/]*)
7088 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7089 ;;
7090 *)
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007096 for ac_exec_ext in '' $ac_executable_extensions; do
7097 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 +00007098 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007100 break 2
7101 fi
7102done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103done
Reid Spencera773bd52006-08-04 18:18:08 +00007104IFS=$as_save_IFS
7105
7106 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7107 ;;
7108esac
7109fi
7110RM=$ac_cv_path_RM
7111if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007112 { echo "$as_me:$LINENO: result: $RM" >&5
7113echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007114else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007115 { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007117fi
7118
7119
7120# Extract the first word of "sed", so it can be a program name with args.
7121set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_SED+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007126else
7127 case $SED in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 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 +00007139 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007141 break 2
7142 fi
7143done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007144done
Reid Spencera773bd52006-08-04 18:18:08 +00007145IFS=$as_save_IFS
7146
7147 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7148 ;;
7149esac
7150fi
7151SED=$ac_cv_path_SED
7152if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 { echo "$as_me:$LINENO: result: $SED" >&5
7154echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007158fi
7159
7160
7161# Extract the first word of "tar", so it can be a program name with args.
7162set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165if test "${ac_cv_path_TAR+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007167else
7168 case $TAR in
7169 [\\/]* | ?:[\\/]*)
7170 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7171 ;;
7172 *)
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 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 +00007180 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007182 break 2
7183 fi
7184done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007185done
Reid Spencera773bd52006-08-04 18:18:08 +00007186IFS=$as_save_IFS
7187
7188 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7189 ;;
7190esac
7191fi
7192TAR=$ac_cv_path_TAR
7193if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007194 { echo "$as_me:$LINENO: result: $TAR" >&5
7195echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007199fi
7200
7201
7202# Extract the first word of "pwd", so it can be a program name with args.
7203set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_BINPWD+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007208else
7209 case $BINPWD in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 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 +00007221 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007223 break 2
7224 fi
7225done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226done
Reid Spencera773bd52006-08-04 18:18:08 +00007227IFS=$as_save_IFS
7228
7229 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7230 ;;
7231esac
7232fi
7233BINPWD=$ac_cv_path_BINPWD
7234if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007235 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7236echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007237else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007240fi
7241
7242
7243
7244# Extract the first word of "Graphviz", so it can be a program name with args.
7245set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007250else
7251 case $GRAPHVIZ in
7252 [\\/]* | ?:[\\/]*)
7253 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7254 ;;
7255 *)
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 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 +00007263 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007265 break 2
7266 fi
7267done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268done
Reid Spencera773bd52006-08-04 18:18:08 +00007269IFS=$as_save_IFS
7270
7271 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7272 ;;
7273esac
7274fi
7275GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7276if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7278echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007282fi
7283
7284
7285if test "$GRAPHVIZ" != "echo Graphviz" ; then
7286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287cat >>confdefs.h <<\_ACEOF
7288#define HAVE_GRAPHVIZ 1
7289_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007290
Jeff Cohen28783c32007-01-12 18:22:38 +00007291 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007292 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7293 fi
7294
7295cat >>confdefs.h <<_ACEOF
7296#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7297_ACEOF
7298
7299fi
7300# Extract the first word of "dot", so it can be a program name with args.
7301set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_path_DOT+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007306else
7307 case $DOT in
7308 [\\/]* | ?:[\\/]*)
7309 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7310 ;;
7311 *)
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007319 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007321 break 2
7322 fi
7323done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007324done
Reid Spencera773bd52006-08-04 18:18:08 +00007325IFS=$as_save_IFS
7326
7327 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7328 ;;
7329esac
7330fi
7331DOT=$ac_cv_path_DOT
7332if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007333 { echo "$as_me:$LINENO: result: $DOT" >&5
7334echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007338fi
7339
7340
7341if test "$DOT" != "echo dot" ; then
7342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343cat >>confdefs.h <<\_ACEOF
7344#define HAVE_DOT 1
7345_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007346
Jeff Cohen28783c32007-01-12 18:22:38 +00007347 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007348 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7349 fi
7350
7351cat >>confdefs.h <<_ACEOF
7352#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7353_ACEOF
7354
7355fi
David Greenef0b9eff2009-07-09 17:16:26 +00007356# Extract the first word of "fdp", so it can be a program name with args.
7357set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360if test "${ac_cv_path_FDP+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007362else
7363 case $FDP in
7364 [\\/]* | ?:[\\/]*)
7365 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7366 ;;
7367 *)
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007373 for ac_exec_ext in '' $ac_executable_extensions; do
7374 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 +00007375 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007377 break 2
7378 fi
7379done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007380done
David Greenef0b9eff2009-07-09 17:16:26 +00007381IFS=$as_save_IFS
7382
7383 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7384 ;;
7385esac
7386fi
7387FDP=$ac_cv_path_FDP
7388if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007389 { echo "$as_me:$LINENO: result: $FDP" >&5
7390echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007391else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392 { echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007394fi
7395
7396
7397if test "$FDP" != "echo fdp" ; then
7398
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399cat >>confdefs.h <<\_ACEOF
7400#define HAVE_FDP 1
7401_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007402
7403 if test "$llvm_cv_os_type" = "MingW" ; then
7404 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7405 fi
7406
7407cat >>confdefs.h <<_ACEOF
7408#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7409_ACEOF
7410
7411fi
7412# Extract the first word of "neato", so it can be a program name with args.
7413set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_path_NEATO+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007418else
7419 case $NEATO in
7420 [\\/]* | ?:[\\/]*)
7421 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7422 ;;
7423 *)
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 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 +00007431 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007433 break 2
7434 fi
7435done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007436done
David Greenef0b9eff2009-07-09 17:16:26 +00007437IFS=$as_save_IFS
7438
7439 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7440 ;;
7441esac
7442fi
7443NEATO=$ac_cv_path_NEATO
7444if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007445 { echo "$as_me:$LINENO: result: $NEATO" >&5
7446echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 { echo "$as_me:$LINENO: result: no" >&5
7449echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007450fi
7451
7452
7453if test "$NEATO" != "echo neato" ; then
7454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455cat >>confdefs.h <<\_ACEOF
7456#define HAVE_NEATO 1
7457_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007458
7459 if test "$llvm_cv_os_type" = "MingW" ; then
7460 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7461 fi
7462
7463cat >>confdefs.h <<_ACEOF
7464#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7465_ACEOF
7466
7467fi
7468# Extract the first word of "twopi", so it can be a program name with args.
7469set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7472if test "${ac_cv_path_TWOPI+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007474else
7475 case $TWOPI in
7476 [\\/]* | ?:[\\/]*)
7477 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7478 ;;
7479 *)
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481for as_dir in $PATH
7482do
7483 IFS=$as_save_IFS
7484 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 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 +00007487 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007489 break 2
7490 fi
7491done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007492done
David Greenef0b9eff2009-07-09 17:16:26 +00007493IFS=$as_save_IFS
7494
7495 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7496 ;;
7497esac
7498fi
7499TWOPI=$ac_cv_path_TWOPI
7500if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007501 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7502echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007503else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504 { echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007506fi
7507
7508
7509if test "$TWOPI" != "echo twopi" ; then
7510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511cat >>confdefs.h <<\_ACEOF
7512#define HAVE_TWOPI 1
7513_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007514
7515 if test "$llvm_cv_os_type" = "MingW" ; then
7516 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7517 fi
7518
7519cat >>confdefs.h <<_ACEOF
7520#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7521_ACEOF
7522
7523fi
7524# Extract the first word of "circo", so it can be a program name with args.
7525set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528if test "${ac_cv_path_CIRCO+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007530else
7531 case $CIRCO in
7532 [\\/]* | ?:[\\/]*)
7533 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7534 ;;
7535 *)
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539 IFS=$as_save_IFS
7540 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 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 +00007543 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007545 break 2
7546 fi
7547done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007548done
David Greenef0b9eff2009-07-09 17:16:26 +00007549IFS=$as_save_IFS
7550
7551 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7552 ;;
7553esac
7554fi
7555CIRCO=$ac_cv_path_CIRCO
7556if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007557 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7558echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007559else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 { echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007562fi
7563
7564
7565if test "$CIRCO" != "echo circo" ; then
7566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567cat >>confdefs.h <<\_ACEOF
7568#define HAVE_CIRCO 1
7569_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007570
7571 if test "$llvm_cv_os_type" = "MingW" ; then
7572 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7573 fi
7574
7575cat >>confdefs.h <<_ACEOF
7576#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7577_ACEOF
7578
7579fi
Reid Spencera773bd52006-08-04 18:18:08 +00007580for ac_prog in gv gsview32
7581do
7582 # Extract the first word of "$ac_prog", so it can be a program name with args.
7583set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007584{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7586if test "${ac_cv_path_GV+set}" = set; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007588else
7589 case $GV in
7590 [\\/]* | ?:[\\/]*)
7591 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7592 ;;
7593 *)
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597 IFS=$as_save_IFS
7598 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 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 +00007601 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007603 break 2
7604 fi
7605done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007606done
Reid Spencera773bd52006-08-04 18:18:08 +00007607IFS=$as_save_IFS
7608
7609 ;;
7610esac
7611fi
7612GV=$ac_cv_path_GV
7613if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007614 { echo "$as_me:$LINENO: result: $GV" >&5
7615echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007617 { echo "$as_me:$LINENO: result: no" >&5
7618echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007619fi
7620
7621
7622 test -n "$GV" && break
7623done
7624test -n "$GV" || GV="echo gv"
7625
7626if test "$GV" != "echo gv" ; then
7627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628cat >>confdefs.h <<\_ACEOF
7629#define HAVE_GV 1
7630_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007631
Jeff Cohen28783c32007-01-12 18:22:38 +00007632 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007633 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7634 fi
7635
7636cat >>confdefs.h <<_ACEOF
7637#define LLVM_PATH_GV "$GV${EXEEXT}"
7638_ACEOF
7639
7640fi
7641# Extract the first word of "dotty", so it can be a program name with args.
7642set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007643{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7645if test "${ac_cv_path_DOTTY+set}" = set; then
7646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007647else
7648 case $DOTTY in
7649 [\\/]* | ?:[\\/]*)
7650 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7651 ;;
7652 *)
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656 IFS=$as_save_IFS
7657 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 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 +00007660 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007662 break 2
7663 fi
7664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665done
Reid Spencera773bd52006-08-04 18:18:08 +00007666IFS=$as_save_IFS
7667
7668 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7669 ;;
7670esac
7671fi
7672DOTTY=$ac_cv_path_DOTTY
7673if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007674 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7675echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007677 { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007679fi
7680
7681
7682if test "$DOTTY" != "echo dotty" ; then
7683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684cat >>confdefs.h <<\_ACEOF
7685#define HAVE_DOTTY 1
7686_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007687
Jeff Cohen28783c32007-01-12 18:22:38 +00007688 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007689 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7690 fi
7691
7692cat >>confdefs.h <<_ACEOF
7693#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7694_ACEOF
7695
7696fi
7697
7698
7699# Extract the first word of "perl", so it can be a program name with args.
7700set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7703if test "${ac_cv_path_PERL+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007705else
7706 case $PERL in
7707 [\\/]* | ?:[\\/]*)
7708 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7709 ;;
7710 *)
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714 IFS=$as_save_IFS
7715 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 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 +00007718 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007720 break 2
7721 fi
7722done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723done
Reid Spencera773bd52006-08-04 18:18:08 +00007724IFS=$as_save_IFS
7725
7726 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7727 ;;
7728esac
7729fi
7730PERL=$ac_cv_path_PERL
7731if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732 { echo "$as_me:$LINENO: result: $PERL" >&5
7733echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007734else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007735 { echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007737fi
7738
7739
7740if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7742echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007743 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744 { echo "$as_me:$LINENO: result: yes" >&5
7745echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007746 else
7747 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 { echo "$as_me:$LINENO: result: not found" >&5
7749echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007750 fi
7751fi
7752
7753
7754if test x"$PERL" = xnone; then
7755 HAVE_PERL=0
7756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7758echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7759 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007760else
7761 HAVE_PERL=1
7762
7763fi
7764
7765# Find a good install program. We prefer a C program (faster),
7766# so one script is as good as another. But avoid the broken or
7767# incompatible versions:
7768# SysV /etc/install, /usr/sbin/install
7769# SunOS /usr/etc/install
7770# IRIX /sbin/install
7771# AIX /bin/install
7772# AmigaOS /C/install, which installs bootblocks on floppy discs
7773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7774# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7776# OS/2's system install, which has a completely different semantic
7777# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7779echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007780if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781if test "${ac_cv_path_install+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007783else
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789 # Account for people who put trailing slashes in PATH elements.
7790case $as_dir/ in
7791 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007792 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007794 /usr/ucb/* ) ;;
7795 *)
7796 # OSF1 and SCO ODT 3.0 have their own names for install.
7797 # Don't use installbsd from OSF since it installs stuff as root
7798 # by default.
7799 for ac_prog in ginstall scoinst install; do
7800 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 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 +00007802 if test $ac_prog = install &&
7803 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7804 # AIX install. It has an incompatible calling convention.
7805 :
7806 elif test $ac_prog = install &&
7807 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7808 # program-specific install script used by HP pwplus--don't use.
7809 :
7810 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007811 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7812 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007813 fi
7814 fi
7815 done
7816 done
7817 ;;
7818esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007819done
Reid Spencera773bd52006-08-04 18:18:08 +00007820IFS=$as_save_IFS
7821
7822
7823fi
7824 if test "${ac_cv_path_install+set}" = set; then
7825 INSTALL=$ac_cv_path_install
7826 else
7827 # As a last resort, use the slow shell script. Don't cache a
7828 # value for INSTALL within a source directory, because that will
7829 # break other packages using the cache if that directory is
7830 # removed, or if the value is a relative name.
7831 INSTALL=$ac_install_sh
7832 fi
7833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7835echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007836
7837# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7838# It thinks the first close brace ends the variable substitution.
7839test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7840
7841test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7842
7843test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7844
7845
7846# Extract the first word of "bzip2", so it can be a program name with args.
7847set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850if test "${ac_cv_path_BZIP2+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007852else
7853 case $BZIP2 in
7854 [\\/]* | ?:[\\/]*)
7855 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7856 ;;
7857 *)
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 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 +00007865 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007867 break 2
7868 fi
7869done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007870done
Reid Spencera773bd52006-08-04 18:18:08 +00007871IFS=$as_save_IFS
7872
Reid Spencera773bd52006-08-04 18:18:08 +00007873 ;;
7874esac
7875fi
7876BZIP2=$ac_cv_path_BZIP2
7877if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007878 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7879echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 { echo "$as_me:$LINENO: result: no" >&5
7882echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007883fi
7884
7885
7886# Extract the first word of "doxygen", so it can be a program name with args.
7887set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890if test "${ac_cv_path_DOXYGEN+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007892else
7893 case $DOXYGEN in
7894 [\\/]* | ?:[\\/]*)
7895 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7896 ;;
7897 *)
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 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 +00007905 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007907 break 2
7908 fi
7909done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007910done
Reid Spencera773bd52006-08-04 18:18:08 +00007911IFS=$as_save_IFS
7912
Reid Spencera773bd52006-08-04 18:18:08 +00007913 ;;
7914esac
7915fi
7916DOXYGEN=$ac_cv_path_DOXYGEN
7917if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7919echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007920else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921 { echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007923fi
7924
7925
Reid Spencera773bd52006-08-04 18:18:08 +00007926# Extract the first word of "groff", so it can be a program name with args.
7927set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930if test "${ac_cv_path_GROFF+set}" = set; then
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007932else
7933 case $GROFF in
7934 [\\/]* | ?:[\\/]*)
7935 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7936 ;;
7937 *)
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939for as_dir in $PATH
7940do
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 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 +00007945 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007947 break 2
7948 fi
7949done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007950done
Reid Spencera773bd52006-08-04 18:18:08 +00007951IFS=$as_save_IFS
7952
Reid Spencera773bd52006-08-04 18:18:08 +00007953 ;;
7954esac
7955fi
7956GROFF=$ac_cv_path_GROFF
7957if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958 { echo "$as_me:$LINENO: result: $GROFF" >&5
7959echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007961 { echo "$as_me:$LINENO: result: no" >&5
7962echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007963fi
7964
7965
7966# Extract the first word of "gzip", so it can be a program name with args.
7967set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970if test "${ac_cv_path_GZIP+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007972else
7973 case $GZIP in
7974 [\\/]* | ?:[\\/]*)
7975 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7976 ;;
7977 *)
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 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 +00007985 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007987 break 2
7988 fi
7989done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007990done
Reid Spencera773bd52006-08-04 18:18:08 +00007991IFS=$as_save_IFS
7992
Reid Spencera773bd52006-08-04 18:18:08 +00007993 ;;
7994esac
7995fi
7996GZIP=$ac_cv_path_GZIP
7997if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998 { echo "$as_me:$LINENO: result: $GZIP" >&5
7999echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008000else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001 { echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008003fi
8004
8005
8006# Extract the first word of "pod2html", so it can be a program name with args.
8007set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010if test "${ac_cv_path_POD2HTML+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008012else
8013 case $POD2HTML in
8014 [\\/]* | ?:[\\/]*)
8015 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8016 ;;
8017 *)
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 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 +00008025 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008027 break 2
8028 fi
8029done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008030done
Reid Spencera773bd52006-08-04 18:18:08 +00008031IFS=$as_save_IFS
8032
Reid Spencera773bd52006-08-04 18:18:08 +00008033 ;;
8034esac
8035fi
8036POD2HTML=$ac_cv_path_POD2HTML
8037if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008038 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8039echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008040else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041 { echo "$as_me:$LINENO: result: no" >&5
8042echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008043fi
8044
8045
8046# Extract the first word of "pod2man", so it can be a program name with args.
8047set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050if test "${ac_cv_path_POD2MAN+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008052else
8053 case $POD2MAN in
8054 [\\/]* | ?:[\\/]*)
8055 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8056 ;;
8057 *)
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008065 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008067 break 2
8068 fi
8069done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008070done
Reid Spencera773bd52006-08-04 18:18:08 +00008071IFS=$as_save_IFS
8072
Reid Spencera773bd52006-08-04 18:18:08 +00008073 ;;
8074esac
8075fi
8076POD2MAN=$ac_cv_path_POD2MAN
8077if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8079echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081 { echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008083fi
8084
8085
8086# Extract the first word of "runtest", so it can be a program name with args.
8087set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090if test "${ac_cv_path_RUNTEST+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008092else
8093 case $RUNTEST in
8094 [\\/]* | ?:[\\/]*)
8095 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8096 ;;
8097 *)
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008105 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008107 break 2
8108 fi
8109done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008110done
Reid Spencera773bd52006-08-04 18:18:08 +00008111IFS=$as_save_IFS
8112
Reid Spencera773bd52006-08-04 18:18:08 +00008113 ;;
8114esac
8115fi
8116RUNTEST=$ac_cv_path_RUNTEST
8117if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8119echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121 { echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008123fi
8124
8125
8126
8127no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008128{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8129echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008130
8131# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008132if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008133 withval=$with_tclinclude; with_tclinclude=${withval}
8134else
8135 with_tclinclude=''
8136fi
8137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008138if test "${ac_cv_path_tclsh+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008140else
8141
8142if test x"${with_tclinclude}" != x ; then
8143 if test -f ${with_tclinclude}/tclsh ; then
8144 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8145 elif test -f ${with_tclinclude}/src/tclsh ; then
8146 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8147 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008148 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8149echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8150 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008151 fi
8152fi
Torok Edwin871384f2010-01-26 08:50:50 +00008153fi
8154
Reid Spencera773bd52006-08-04 18:18:08 +00008155
8156if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 { echo "$as_me:$LINENO: result: none" >&5
8158echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008159 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
8160do
8161 # Extract the first word of "$ac_prog", so it can be a program name with args.
8162set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8165if test "${ac_cv_path_TCLSH+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008167else
8168 case $TCLSH in
8169 [\\/]* | ?:[\\/]*)
8170 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8171 ;;
8172 *)
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174for as_dir in $PATH
8175do
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 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 +00008180 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008182 break 2
8183 fi
8184done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185done
Reid Spencera773bd52006-08-04 18:18:08 +00008186IFS=$as_save_IFS
8187
8188 ;;
8189esac
8190fi
8191TCLSH=$ac_cv_path_TCLSH
8192if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008193 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8194echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008196 { echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008198fi
8199
8200
8201 test -n "$TCLSH" && break
8202done
8203
8204 if test x"${TCLSH}" = x ; then
8205 ac_cv_path_tclsh='';
8206 else
8207 ac_cv_path_tclsh="${TCLSH}";
8208 fi
8209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8211echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008212 TCLSH="${ac_cv_path_tclsh}"
8213
8214fi
8215
Reid Spencera773bd52006-08-04 18:18:08 +00008216# Extract the first word of "zip", so it can be a program name with args.
8217set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8220if test "${ac_cv_path_ZIP+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008222else
8223 case $ZIP in
8224 [\\/]* | ?:[\\/]*)
8225 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8226 ;;
8227 *)
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229for as_dir in $PATH
8230do
8231 IFS=$as_save_IFS
8232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 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 +00008235 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008237 break 2
8238 fi
8239done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008240done
Reid Spencera773bd52006-08-04 18:18:08 +00008241IFS=$as_save_IFS
8242
Reid Spencera773bd52006-08-04 18:18:08 +00008243 ;;
8244esac
8245fi
8246ZIP=$ac_cv_path_ZIP
8247if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008248 { echo "$as_me:$LINENO: result: $ZIP" >&5
8249echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008250else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008251 { echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008253fi
8254
8255
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008256for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008257do
8258 # Extract the first word of "$ac_prog", so it can be a program name with args.
8259set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8262if test "${ac_cv_path_OCAMLC+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008264else
8265 case $OCAMLC in
8266 [\\/]* | ?:[\\/]*)
8267 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8268 ;;
8269 *)
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 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 +00008277 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008279 break 2
8280 fi
8281done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008283IFS=$as_save_IFS
8284
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008285 ;;
8286esac
8287fi
8288OCAMLC=$ac_cv_path_OCAMLC
8289if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008290 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8291echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008292else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008293 { echo "$as_me:$LINENO: result: no" >&5
8294echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008295fi
8296
8297
Gordon Henriksene7072162008-03-07 18:20:01 +00008298 test -n "$OCAMLC" && break
8299done
8300
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008301for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008302do
8303 # Extract the first word of "$ac_prog", so it can be a program name with args.
8304set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8307if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008309else
8310 case $OCAMLOPT in
8311 [\\/]* | ?:[\\/]*)
8312 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8313 ;;
8314 *)
8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316for as_dir in $PATH
8317do
8318 IFS=$as_save_IFS
8319 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008320 for ac_exec_ext in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008322 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008324 break 2
8325 fi
8326done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008327done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008328IFS=$as_save_IFS
8329
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008330 ;;
8331esac
8332fi
8333OCAMLOPT=$ac_cv_path_OCAMLOPT
8334if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008335 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8336echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008337else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008338 { echo "$as_me:$LINENO: result: no" >&5
8339echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008340fi
8341
8342
Gordon Henriksene7072162008-03-07 18:20:01 +00008343 test -n "$OCAMLOPT" && break
8344done
8345
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008346for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008347do
8348 # Extract the first word of "$ac_prog", so it can be a program name with args.
8349set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008354else
8355 case $OCAMLDEP in
8356 [\\/]* | ?:[\\/]*)
8357 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8358 ;;
8359 *)
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361for as_dir in $PATH
8362do
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 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 +00008367 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008369 break 2
8370 fi
8371done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008373IFS=$as_save_IFS
8374
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008375 ;;
8376esac
8377fi
8378OCAMLDEP=$ac_cv_path_OCAMLDEP
8379if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008380 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8381echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008382else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383 { echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008385fi
8386
8387
Gordon Henriksene7072162008-03-07 18:20:01 +00008388 test -n "$OCAMLDEP" && break
8389done
8390
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008391for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008392do
8393 # Extract the first word of "$ac_prog", so it can be a program name with args.
8394set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8397if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008399else
8400 case $OCAMLDOC in
8401 [\\/]* | ?:[\\/]*)
8402 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8403 ;;
8404 *)
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 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 +00008412 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008414 break 2
8415 fi
8416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008418IFS=$as_save_IFS
8419
8420 ;;
8421esac
8422fi
8423OCAMLDOC=$ac_cv_path_OCAMLDOC
8424if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008425 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8426echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008427else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428 { echo "$as_me:$LINENO: result: no" >&5
8429echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008430fi
8431
8432
8433 test -n "$OCAMLDOC" && break
8434done
8435
Torok Edwincc499a42008-10-22 09:56:27 +00008436for ac_prog in gas as
8437do
8438 # Extract the first word of "$ac_prog", so it can be a program name with args.
8439set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8442if test "${ac_cv_path_GAS+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008444else
8445 case $GAS in
8446 [\\/]* | ?:[\\/]*)
8447 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8448 ;;
8449 *)
8450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451for as_dir in $PATH
8452do
8453 IFS=$as_save_IFS
8454 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008455 for ac_exec_ext in '' $ac_executable_extensions; do
8456 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 +00008457 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008459 break 2
8460 fi
8461done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008462done
Torok Edwincc499a42008-10-22 09:56:27 +00008463IFS=$as_save_IFS
8464
8465 ;;
8466esac
8467fi
8468GAS=$ac_cv_path_GAS
8469if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008470 { echo "$as_me:$LINENO: result: $GAS" >&5
8471echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473 { echo "$as_me:$LINENO: result: no" >&5
8474echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008475fi
8476
8477
8478 test -n "$GAS" && break
8479done
8480
Reid Spencera773bd52006-08-04 18:18:08 +00008481
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008482{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8483echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8484if test "${llvm_cv_link_use_r+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008486else
8487 ac_ext=c
8488ac_cpp='$CPP $CPPFLAGS'
8489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8491ac_compiler_gnu=$ac_cv_c_compiler_gnu
8492
8493 oldcflags="$CFLAGS"
8494 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008495 cat >conftest.$ac_ext <<_ACEOF
8496/* confdefs.h. */
8497_ACEOF
8498cat confdefs.h >>conftest.$ac_ext
8499cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008500/* end confdefs.h. */
8501
8502int
8503main ()
8504{
8505int main() { return 0; }
8506 ;
8507 return 0;
8508}
8509_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008510rm -f conftest.$ac_objext conftest$ac_exeext
8511if { (ac_try="$ac_link"
8512case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515esac
8516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } &&
8524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8525 { (case "(($ac_try" in
8526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8527 *) ac_try_echo=$ac_try;;
8528esac
8529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8530 (eval "$ac_try") 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; } &&
8534 { ac_try='test -s conftest$ac_exeext'
8535 { (case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538esac
8539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_try") 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008544 llvm_cv_link_use_r=yes
8545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546 echo "$as_me: failed program was:" >&5
8547sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008550fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551
Bill Wendlingebcceee2009-04-18 11:20:33 +00008552rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008553 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008554 CFLAGS="$oldcflags"
8555 ac_ext=c
8556ac_cpp='$CPP $CPPFLAGS'
8557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559ac_compiler_gnu=$ac_cv_c_compiler_gnu
8560
8561
8562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008563{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8564echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008565if test "$llvm_cv_link_use_r" = yes ; then
8566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008567cat >>confdefs.h <<\_ACEOF
8568#define HAVE_LINK_R 1
8569_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008570
8571 fi
8572
8573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8575echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8576if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008578else
8579 ac_ext=c
8580ac_cpp='$CPP $CPPFLAGS'
8581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8583ac_compiler_gnu=$ac_cv_c_compiler_gnu
8584
8585 oldcflags="$CFLAGS"
8586 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008587 cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008592/* end confdefs.h. */
8593
8594int
8595main ()
8596{
8597int main() { return 0; }
8598 ;
8599 return 0;
8600}
8601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008602rm -f conftest.$ac_objext conftest$ac_exeext
8603if { (ac_try="$ac_link"
8604case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607esac
8608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_link") 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620esac
8621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest$ac_exeext'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630esac
8631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_try") 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008636 llvm_cv_link_use_export_dynamic=yes
8637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008638 echo "$as_me: failed program was:" >&5
8639sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008643
Bill Wendlingebcceee2009-04-18 11:20:33 +00008644rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008645 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008646 CFLAGS="$oldcflags"
8647 ac_ext=c
8648ac_cpp='$CPP $CPPFLAGS'
8649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8651ac_compiler_gnu=$ac_cv_c_compiler_gnu
8652
8653
8654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008655{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8656echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008657if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008659cat >>confdefs.h <<\_ACEOF
8660#define HAVE_LINK_EXPORT_DYNAMIC 1
8661_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008662
8663 fi
8664
8665
Reid Spencera773bd52006-08-04 18:18:08 +00008666
8667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008668{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8669echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8670if test "${ac_cv_c_const+set}" = set; then
8671 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008672else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008673 cat >conftest.$ac_ext <<_ACEOF
8674/* confdefs.h. */
8675_ACEOF
8676cat confdefs.h >>conftest.$ac_ext
8677cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008678/* end confdefs.h. */
8679
8680int
8681main ()
8682{
8683/* FIXME: Include the comments suggested by Paul. */
8684#ifndef __cplusplus
8685 /* Ultrix mips cc rejects this. */
8686 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008687 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008688 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008689 char const *const *ccp;
8690 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008691 /* NEC SVR4.0.2 mips cc rejects this. */
8692 struct point {int x, y;};
8693 static struct point const zero = {0,0};
8694 /* AIX XL C 1.02.0.0 rejects this.
8695 It does not let you subtract one const X* pointer from another in
8696 an arm of an if-expression whose if-part is not a constant
8697 expression */
8698 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008699 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008700 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008701 ++ccp;
8702 p = (char**) ccp;
8703 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008704 { /* SCO 3.2v4 cc rejects this. */
8705 char *t;
8706 char const *s = 0 ? (char *) 0 : (char const *) 0;
8707
8708 *t++ = 0;
8709 if (s) return 0;
8710 }
8711 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8712 int x[] = {25, 17};
8713 const int *foo = &x[0];
8714 ++foo;
8715 }
8716 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8717 typedef const int *iptr;
8718 iptr p = 0;
8719 ++p;
8720 }
8721 { /* AIX XL C 1.02.0.0 rejects this saying
8722 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8723 struct s { int j; const int *ap[3]; };
8724 struct s *b; b->j = 5;
8725 }
8726 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8727 const int foo = 10;
8728 if (!foo) return 0;
8729 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008730 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008731#endif
8732
8733 ;
8734 return 0;
8735}
8736_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008737rm -f conftest.$ac_objext
8738if { (ac_try="$ac_compile"
8739case "(($ac_try" in
8740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8741 *) ac_try_echo=$ac_try;;
8742esac
8743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8744 (eval "$ac_compile") 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8752 { (case "(($ac_try" in
8753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754 *) ac_try_echo=$ac_try;;
8755esac
8756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757 (eval "$ac_try") 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765esac
8766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8767 (eval "$ac_try") 2>&5
8768 ac_status=$?
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008771 ac_cv_c_const=yes
8772else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008773 echo "$as_me: failed program was:" >&5
8774sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008778
Reid Spencera773bd52006-08-04 18:18:08 +00008779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008781{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8782echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008783if test $ac_cv_c_const = no; then
8784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008785cat >>confdefs.h <<\_ACEOF
8786#define const
8787_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008788
8789fi
8790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008791
8792
8793
8794
8795
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008796ac_header_dirent=no
8797for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008798 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8799{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8800echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008804 cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008809/* end confdefs.h. */
8810#include <sys/types.h>
8811#include <$ac_hdr>
8812
8813int
8814main ()
8815{
8816if ((DIR *) 0)
8817return 0;
8818 ;
8819 return 0;
8820}
8821_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008822rm -f conftest.$ac_objext
8823if { (ac_try="$ac_compile"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8837 { (case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840esac
8841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_try") 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; } &&
8846 { ac_try='test -s conftest.$ac_objext'
8847 { (case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_try") 2>&5
8853 ac_status=$?
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008856 eval "$as_ac_Header=yes"
8857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008858 echo "$as_me: failed program was:" >&5
8859sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008862fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008863
Reid Spencera773bd52006-08-04 18:18:08 +00008864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008866ac_res=`eval echo '${'$as_ac_Header'}'`
8867 { echo "$as_me:$LINENO: result: $ac_res" >&5
8868echo "${ECHO_T}$ac_res" >&6; }
8869if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008870 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008871#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008872_ACEOF
8873
8874ac_header_dirent=$ac_hdr; break
8875fi
8876
8877done
8878# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8879if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008880 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8881echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8882if test "${ac_cv_search_opendir+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008884else
8885 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008886cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h. */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008891/* end confdefs.h. */
8892
Reid Spencera773bd52006-08-04 18:18:08 +00008893/* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008896#ifdef __cplusplus
8897extern "C"
8898#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008899char opendir ();
8900int
8901main ()
8902{
Reid Spencera773bd52006-08-04 18:18:08 +00008903return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008904 ;
8905 return 0;
8906}
8907_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008908for ac_lib in '' dir; do
8909 if test -z "$ac_lib"; then
8910 ac_res="none required"
8911 else
8912 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008913 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008914 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008915 rm -f conftest.$ac_objext conftest$ac_exeext
8916if { (ac_try="$ac_link"
8917case "(($ac_try" in
8918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8919 *) ac_try_echo=$ac_try;;
8920esac
8921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8922 (eval "$ac_link") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8930 { (case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8933esac
8934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935 (eval "$ac_try") 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; } &&
8939 { ac_try='test -s conftest$ac_exeext'
8940 { (case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8943esac
8944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945 (eval "$ac_try") 2>&5
8946 ac_status=$?
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008949 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008950else
8951 echo "$as_me: failed program was:" >&5
8952sed 's/^/| /' conftest.$ac_ext >&5
8953
8954
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008956
Bill Wendlingebcceee2009-04-18 11:20:33 +00008957rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008958 conftest$ac_exeext
8959 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008960 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008961fi
John Criswell7a73b802003-06-30 21:59:07 +00008962done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008963if test "${ac_cv_search_opendir+set}" = set; then
8964 :
Reid Spencera773bd52006-08-04 18:18:08 +00008965else
8966 ac_cv_search_opendir=no
8967fi
8968rm conftest.$ac_ext
8969LIBS=$ac_func_search_save_LIBS
8970fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008971{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8972echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008973ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008974if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00008975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008976
Reid Spencera773bd52006-08-04 18:18:08 +00008977fi
8978
8979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008980 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8981echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8982if test "${ac_cv_search_opendir+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008984else
8985 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008986cat >conftest.$ac_ext <<_ACEOF
8987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008991/* end confdefs.h. */
8992
8993/* Override any GCC internal prototype to avoid an error.
8994 Use char because int might match the return type of a GCC
8995 builtin and then its argument prototype would still apply. */
8996#ifdef __cplusplus
8997extern "C"
8998#endif
8999char opendir ();
9000int
9001main ()
9002{
9003return opendir ();
9004 ;
9005 return 0;
9006}
9007_ACEOF
9008for ac_lib in '' x; do
9009 if test -z "$ac_lib"; then
9010 ac_res="none required"
9011 else
9012 ac_res=-l$ac_lib
9013 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9014 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009015 rm -f conftest.$ac_objext conftest$ac_exeext
9016if { (ac_try="$ac_link"
9017case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020esac
9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_link") 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9030 { (case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033esac
9034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9035 (eval "$ac_try") 2>&5
9036 ac_status=$?
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; } &&
9039 { ac_try='test -s conftest$ac_exeext'
9040 { (case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043esac
9044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_try") 2>&5
9046 ac_status=$?
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009049 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054
Reid Spencera773bd52006-08-04 18:18:08 +00009055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009056
Bill Wendlingebcceee2009-04-18 11:20:33 +00009057rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009058 conftest$ac_exeext
9059 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009060 break
9061fi
9062done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009063if test "${ac_cv_search_opendir+set}" = set; then
9064 :
Reid Spencera773bd52006-08-04 18:18:08 +00009065else
9066 ac_cv_search_opendir=no
9067fi
9068rm conftest.$ac_ext
9069LIBS=$ac_func_search_save_LIBS
9070fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009071{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9072echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009073ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009074if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9076
9077fi
9078
9079fi
John Criswell7a73b802003-06-30 21:59:07 +00009080
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081
John Criswell7a73b802003-06-30 21:59:07 +00009082for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009083do
9084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090fi
9091ac_res=`eval echo '${'$as_ac_Header'}'`
9092 { echo "$as_me:$LINENO: result: $ac_res" >&5
9093echo "${ECHO_T}$ac_res" >&6; }
9094else
9095 # Is the header compilable?
9096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9098cat >conftest.$ac_ext <<_ACEOF
9099/* confdefs.h. */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h. */
9104$ac_includes_default
9105#include <$ac_header>
9106_ACEOF
9107rm -f conftest.$ac_objext
9108if { (ac_try="$ac_compile"
9109case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112esac
9113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_compile") 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9135esac
9136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_header_compiler=yes
9142else
9143 echo "$as_me: failed program was:" >&5
9144sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 ac_header_compiler=no
9147fi
9148
9149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9151echo "${ECHO_T}$ac_header_compiler" >&6; }
9152
9153# Is the header present?
9154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9156cat >conftest.$ac_ext <<_ACEOF
9157/* confdefs.h. */
9158_ACEOF
9159cat confdefs.h >>conftest.$ac_ext
9160cat >>conftest.$ac_ext <<_ACEOF
9161/* end confdefs.h. */
9162#include <$ac_header>
9163_ACEOF
9164if { (ac_try="$ac_cpp conftest.$ac_ext"
9165case "(($ac_try" in
9166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167 *) ac_try_echo=$ac_try;;
9168esac
9169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9171 ac_status=$?
9172 grep -v '^ *+' conftest.er1 >conftest.err
9173 rm -f conftest.er1
9174 cat conftest.err >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } >/dev/null; then
9177 if test -s conftest.err; then
9178 ac_cpp_err=$ac_c_preproc_warn_flag
9179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9180 else
9181 ac_cpp_err=
9182 fi
9183else
9184 ac_cpp_err=yes
9185fi
9186if test -z "$ac_cpp_err"; then
9187 ac_header_preproc=yes
9188else
9189 echo "$as_me: failed program was:" >&5
9190sed 's/^/| /' conftest.$ac_ext >&5
9191
9192 ac_header_preproc=no
9193fi
9194
9195rm -f conftest.err conftest.$ac_ext
9196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9197echo "${ECHO_T}$ac_header_preproc" >&6; }
9198
9199# So? What about this header?
9200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9201 yes:no: )
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9206 ac_header_preproc=yes
9207 ;;
9208 no:yes:* )
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9221 ( cat <<\_ASBOX
9222## ----------------------------------- ##
9223## Report this to llvmbugs@cs.uiuc.edu ##
9224## ----------------------------------- ##
9225_ASBOX
9226 ) | sed "s/^/$as_me: WARNING: /" >&2
9227 ;;
9228esac
9229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233else
9234 eval "$as_ac_Header=\$ac_header_preproc"
9235fi
9236ac_res=`eval echo '${'$as_ac_Header'}'`
9237 { echo "$as_me:$LINENO: result: $ac_res" >&5
9238echo "${ECHO_T}$ac_res" >&6; }
9239
9240fi
9241if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009244_ACEOF
9245
9246fi
9247
9248done
9249
Reid Spencera773bd52006-08-04 18:18:08 +00009250# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009251if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009252 enableval=$enable_ltdl_install;
9253fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009256
9257
9258if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259 INSTALL_LTDL_TRUE=
9260 INSTALL_LTDL_FALSE='#'
9261else
9262 INSTALL_LTDL_TRUE='#'
9263 INSTALL_LTDL_FALSE=
9264fi
9265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009266
9267
9268if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009269 CONVENIENCE_LTDL_TRUE=
9270 CONVENIENCE_LTDL_FALSE='#'
9271else
9272 CONVENIENCE_LTDL_TRUE='#'
9273 CONVENIENCE_LTDL_FALSE=
9274fi
9275
9276
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9278echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279library_names_spec=
9280libname_spec='lib$name'
9281soname_spec=
9282shrext_cmds=".so"
9283postinstall_cmds=
9284postuninstall_cmds=
9285finish_cmds=
9286finish_eval=
9287shlibpath_var=
9288shlibpath_overrides_runpath=unknown
9289version_type=none
9290dynamic_linker="$host_os ld.so"
9291sys_lib_dlsearch_path_spec="/lib /usr/lib"
9292if test "$GCC" = yes; then
9293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9295 # if the path contains ";" then we assume it to be the separator
9296 # otherwise default to the standard path separator (i.e. ":") - it is
9297 # assumed that no part of a normal pathname contains ";" but that should
9298 # okay in the real world where ";" in dirpaths is itself problematic.
9299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9300 else
9301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9302 fi
9303else
9304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9305fi
9306need_lib_prefix=unknown
9307hardcode_into_libs=no
9308
9309# when you set need_version to no, make sure it does not cause -set_version
9310# flags to be left without arguments
9311need_version=unknown
9312
9313case $host_os in
9314aix3*)
9315 version_type=linux
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9317 shlibpath_var=LIBPATH
9318
9319 # AIX 3 has no versioning support, so we append a major version to the name.
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 ;;
9322
9323aix4* | aix5*)
9324 version_type=linux
9325 need_lib_prefix=no
9326 need_version=no
9327 hardcode_into_libs=yes
9328 if test "$host_cpu" = ia64; then
9329 # AIX 5 supports IA64
9330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 else
9333 # With GCC up to 2.95.x, collect2 would create an import file
9334 # for dependence libraries. The import file would start with
9335 # the line `#! .'. This would cause the generated library to
9336 # depend on `.', always an invalid library. This was fixed in
9337 # development snapshots of GCC prior to 3.0.
9338 case $host_os in
9339 aix4 | aix4.[01] | aix4.[01].*)
9340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9341 echo ' yes '
9342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9343 :
9344 else
9345 can_build_shared=no
9346 fi
9347 ;;
9348 esac
9349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9350 # soname into executable. Probably we can add versioning support to
9351 # collect2, so additional links can be useful in future.
9352 if test "$aix_use_runtimelinking" = yes; then
9353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9354 # instead of lib<name>.a to let people know that these are not
9355 # typical AIX shared libraries.
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 else
9358 # We preserve .a as extension for shared libraries through AIX4.2
9359 # and later when we are not doing run time linking.
9360 library_names_spec='${libname}${release}.a $libname.a'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 fi
9363 shlibpath_var=LIBPATH
9364 fi
9365 ;;
9366
9367amigaos*)
9368 library_names_spec='$libname.ixlibrary $libname.a'
9369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9370 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'
9371 ;;
9372
9373beos*)
9374 library_names_spec='${libname}${shared_ext}'
9375 dynamic_linker="$host_os ld.so"
9376 shlibpath_var=LIBRARY_PATH
9377 ;;
9378
9379bsdi[45]*)
9380 version_type=linux
9381 need_version=no
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383 soname_spec='${libname}${release}${shared_ext}$major'
9384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9388 # the default ld.so.conf also contains /usr/contrib/lib and
9389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9390 # libtool to hard-code these into programs
9391 ;;
9392
9393cygwin* | mingw* | pw32*)
9394 version_type=windows
9395 shrext_cmds=".dll"
9396 need_version=no
9397 need_lib_prefix=no
9398
9399 case $GCC,$host_os in
9400 yes,cygwin* | yes,mingw* | yes,pw32*)
9401 library_names_spec='$libname.dll.a'
9402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9403 postinstall_cmds='base_file=`basename \${file}`~
9404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9405 dldir=$destdir/`dirname \$dlpath`~
9406 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009407 $install_prog $dir/$dlname \$dldir/$dlname~
9408 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9410 dlpath=$dir/\$dldll~
9411 $rm \$dlpath'
9412 shlibpath_overrides_runpath=yes
9413
9414 case $host_os in
9415 cygwin*)
9416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9417 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9419 ;;
9420 mingw*)
9421 # MinGW DLLs use traditional 'lib' prefix
9422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9425 # It is most probably a Windows format PATH printed by
9426 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9427 # path with ; separators, and with drive letters. We can handle the
9428 # drive letters (cygwin fileutils understands them), so leave them,
9429 # especially as we might pass files found there to a mingw objdump,
9430 # which wouldn't understand a cygwinified path. Ahh.
9431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9432 else
9433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9434 fi
9435 ;;
9436 pw32*)
9437 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009438 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 +00009439 ;;
9440 esac
9441 ;;
9442
9443 *)
9444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9445 ;;
9446 esac
9447 dynamic_linker='Win32 ld.exe'
9448 # FIXME: first we should search . and the directory the executable is in
9449 shlibpath_var=PATH
9450 ;;
9451
9452darwin* | rhapsody*)
9453 dynamic_linker="$host_os dyld"
9454 version_type=darwin
9455 need_lib_prefix=no
9456 need_version=no
9457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9458 soname_spec='${libname}${release}${major}$shared_ext'
9459 shlibpath_overrides_runpath=yes
9460 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009461 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9463 if test "$GCC" = yes; then
9464 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"`
9465 else
9466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9467 fi
9468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9469 ;;
9470
9471dgux*)
9472 version_type=linux
9473 need_lib_prefix=no
9474 need_version=no
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9476 soname_spec='${libname}${release}${shared_ext}$major'
9477 shlibpath_var=LD_LIBRARY_PATH
9478 ;;
9479
9480freebsd1*)
9481 dynamic_linker=no
9482 ;;
9483
9484kfreebsd*-gnu)
9485 version_type=linux
9486 need_lib_prefix=no
9487 need_version=no
9488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9489 soname_spec='${libname}${release}${shared_ext}$major'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=no
9492 hardcode_into_libs=yes
9493 dynamic_linker='GNU ld.so'
9494 ;;
9495
Reid Spencera773bd52006-08-04 18:18:08 +00009496freebsd* | dragonfly*)
9497 # DragonFly does not have aout. When/if they implement a new
9498 # versioning mechanism, adjust this.
9499 if test -x /usr/bin/objformat; then
9500 objformat=`/usr/bin/objformat`
9501 else
9502 case $host_os in
9503 freebsd[123]*) objformat=aout ;;
9504 *) objformat=elf ;;
9505 esac
9506 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009507 version_type=freebsd-$objformat
9508 case $version_type in
9509 freebsd-elf*)
9510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9511 need_version=no
9512 need_lib_prefix=no
9513 ;;
9514 freebsd-*)
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9516 need_version=yes
9517 ;;
9518 esac
9519 shlibpath_var=LD_LIBRARY_PATH
9520 case $host_os in
9521 freebsd2*)
9522 shlibpath_overrides_runpath=yes
9523 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009524 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009525 shlibpath_overrides_runpath=yes
9526 hardcode_into_libs=yes
9527 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530 shlibpath_overrides_runpath=no
9531 hardcode_into_libs=yes
9532 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009533 freebsd*) # from 4.6 on
9534 shlibpath_overrides_runpath=yes
9535 hardcode_into_libs=yes
9536 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537 esac
9538 ;;
9539
9540gnu*)
9541 version_type=linux
9542 need_lib_prefix=no
9543 need_version=no
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 hardcode_into_libs=yes
9548 ;;
9549
9550hpux9* | hpux10* | hpux11*)
9551 # Give a soname corresponding to the major version so that dld.sl refuses to
9552 # link against other versions.
9553 version_type=sunos
9554 need_lib_prefix=no
9555 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009556 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009557 ia64*)
9558 shrext_cmds='.so'
9559 hardcode_into_libs=yes
9560 dynamic_linker="$host_os dld.so"
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564 soname_spec='${libname}${release}${shared_ext}$major'
9565 if test "X$HPUX_IA64_MODE" = X32; then
9566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9567 else
9568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9569 fi
9570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9571 ;;
9572 hppa*64*)
9573 shrext_cmds='.sl'
9574 hardcode_into_libs=yes
9575 dynamic_linker="$host_os dld.sl"
9576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579 soname_spec='${libname}${release}${shared_ext}$major'
9580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9582 ;;
9583 *)
9584 shrext_cmds='.sl'
9585 dynamic_linker="$host_os dld.sl"
9586 shlibpath_var=SHLIB_PATH
9587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 ;;
9591 esac
9592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9593 postinstall_cmds='chmod 555 $lib'
9594 ;;
9595
Reid Spencera773bd52006-08-04 18:18:08 +00009596interix3*)
9597 version_type=linux
9598 need_lib_prefix=no
9599 need_version=no
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=no
9605 hardcode_into_libs=yes
9606 ;;
9607
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608irix5* | irix6* | nonstopux*)
9609 case $host_os in
9610 nonstopux*) version_type=nonstopux ;;
9611 *)
9612 if test "$lt_cv_prog_gnu_ld" = yes; then
9613 version_type=linux
9614 else
9615 version_type=irix
9616 fi ;;
9617 esac
9618 need_lib_prefix=no
9619 need_version=no
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9622 case $host_os in
9623 irix5* | nonstopux*)
9624 libsuff= shlibsuff=
9625 ;;
9626 *)
9627 case $LD in # libtool.m4 will add one of these switches to LD
9628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9629 libsuff= shlibsuff= libmagic=32-bit;;
9630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9631 libsuff=32 shlibsuff=N32 libmagic=N32;;
9632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9634 *) libsuff= shlibsuff= libmagic=never-match;;
9635 esac
9636 ;;
9637 esac
9638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9639 shlibpath_overrides_runpath=no
9640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9642 hardcode_into_libs=yes
9643 ;;
9644
9645# No shared lib support for Linux oldld, aout, or coff.
9646linux*oldld* | linux*aout* | linux*coff*)
9647 dynamic_linker=no
9648 ;;
9649
9650# This must be Linux ELF.
9651linux*)
9652 version_type=linux
9653 need_lib_prefix=no
9654 need_version=no
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656 soname_spec='${libname}${release}${shared_ext}$major'
9657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 shlibpath_overrides_runpath=no
9660 # This implies no fast_install, which is unacceptable.
9661 # Some rework will be needed to allow for fast_install
9662 # before this can be enabled.
9663 hardcode_into_libs=yes
9664
9665 # Append ld.so.conf contents to the search path
9666 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009667 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 +00009668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9669 fi
9670
9671 # We used to test for /lib/ld.so.1 and disable shared libraries on
9672 # powerpc, because MkLinux only supported shared libraries with the
9673 # GNU dynamic linker. Since this was broken with cross compilers,
9674 # most powerpc-linux boxes support dynamic linking these days and
9675 # people can always --disable-shared, the test was removed, and we
9676 # assume the GNU/Linux dynamic linker is in use.
9677 dynamic_linker='GNU/Linux ld.so'
9678 ;;
9679
9680knetbsd*-gnu)
9681 version_type=linux
9682 need_lib_prefix=no
9683 need_version=no
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9685 soname_spec='${libname}${release}${shared_ext}$major'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 shlibpath_overrides_runpath=no
9688 hardcode_into_libs=yes
9689 dynamic_linker='GNU ld.so'
9690 ;;
9691
9692netbsd*)
9693 version_type=sunos
9694 need_lib_prefix=no
9695 need_version=no
9696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9699 dynamic_linker='NetBSD (a.out) ld.so'
9700 else
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 dynamic_linker='NetBSD ld.elf_so'
9704 fi
9705 shlibpath_var=LD_LIBRARY_PATH
9706 shlibpath_overrides_runpath=yes
9707 hardcode_into_libs=yes
9708 ;;
9709
9710newsos6)
9711 version_type=linux
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 shlibpath_overrides_runpath=yes
9715 ;;
9716
9717nto-qnx*)
9718 version_type=linux
9719 need_lib_prefix=no
9720 need_version=no
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=yes
9725 ;;
9726
9727openbsd*)
9728 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009729 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009730 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9732 case $host_os in
9733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9734 *) need_version=no ;;
9735 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9738 shlibpath_var=LD_LIBRARY_PATH
9739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9740 case $host_os in
9741 openbsd2.[89] | openbsd2.[89].*)
9742 shlibpath_overrides_runpath=no
9743 ;;
9744 *)
9745 shlibpath_overrides_runpath=yes
9746 ;;
9747 esac
9748 else
9749 shlibpath_overrides_runpath=yes
9750 fi
9751 ;;
9752
9753os2*)
9754 libname_spec='$name'
9755 shrext_cmds=".dll"
9756 need_lib_prefix=no
9757 library_names_spec='$libname${shared_ext} $libname.a'
9758 dynamic_linker='OS/2 ld.exe'
9759 shlibpath_var=LIBPATH
9760 ;;
9761
9762osf3* | osf4* | osf5*)
9763 version_type=osf
9764 need_lib_prefix=no
9765 need_version=no
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768 shlibpath_var=LD_LIBRARY_PATH
9769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9771 ;;
9772
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773solaris*)
9774 version_type=linux
9775 need_lib_prefix=no
9776 need_version=no
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 soname_spec='${libname}${release}${shared_ext}$major'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=yes
9781 hardcode_into_libs=yes
9782 # ldd complains unless libraries are executable
9783 postinstall_cmds='chmod +x $lib'
9784 ;;
9785
9786sunos4*)
9787 version_type=sunos
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=yes
9792 if test "$with_gnu_ld" = yes; then
9793 need_lib_prefix=no
9794 fi
9795 need_version=yes
9796 ;;
9797
Reid Spencera773bd52006-08-04 18:18:08 +00009798sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799 version_type=linux
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 case $host_vendor in
9804 sni)
9805 shlibpath_overrides_runpath=no
9806 need_lib_prefix=no
9807 export_dynamic_flag_spec='${wl}-Blargedynsym'
9808 runpath_var=LD_RUN_PATH
9809 ;;
9810 siemens)
9811 need_lib_prefix=no
9812 ;;
9813 motorola)
9814 need_lib_prefix=no
9815 need_version=no
9816 shlibpath_overrides_runpath=no
9817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9818 ;;
9819 esac
9820 ;;
9821
9822sysv4*MP*)
9823 if test -d /usr/nec ;then
9824 version_type=linux
9825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9826 soname_spec='$libname${shared_ext}.$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 fi
9829 ;;
9830
Reid Spencera773bd52006-08-04 18:18:08 +00009831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9832 version_type=freebsd-elf
9833 need_lib_prefix=no
9834 need_version=no
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9836 soname_spec='${libname}${release}${shared_ext}$major'
9837 shlibpath_var=LD_LIBRARY_PATH
9838 hardcode_into_libs=yes
9839 if test "$with_gnu_ld" = yes; then
9840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9841 shlibpath_overrides_runpath=no
9842 else
9843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9844 shlibpath_overrides_runpath=yes
9845 case $host_os in
9846 sco3.2v5*)
9847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9848 ;;
9849 esac
9850 fi
9851 sys_lib_dlsearch_path_spec='/usr/lib'
9852 ;;
9853
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854uts4*)
9855 version_type=linux
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9857 soname_spec='${libname}${release}${shared_ext}$major'
9858 shlibpath_var=LD_LIBRARY_PATH
9859 ;;
9860
9861*)
9862 dynamic_linker=no
9863 ;;
9864esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009865{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9866echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867test "$dynamic_linker" = no && can_build_shared=no
9868
Reid Spencera773bd52006-08-04 18:18:08 +00009869variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9870if test "$GCC" = yes; then
9871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9872fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873
Reid Spencera773bd52006-08-04 18:18:08 +00009874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009875{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9876echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9877if test "${libltdl_cv_shlibext+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879else
9880
9881module=yes
9882eval libltdl_cv_shlibext=$shrext_cmds
9883
9884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009885{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9886echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887if test -n "$libltdl_cv_shlibext"; then
9888
9889cat >>confdefs.h <<_ACEOF
9890#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9891_ACEOF
9892
9893fi
9894
9895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009896{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9897echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9898if test "${libltdl_cv_shlibpath_var+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900else
9901 libltdl_cv_shlibpath_var="$shlibpath_var"
9902fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009903{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9904echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905if test -n "$libltdl_cv_shlibpath_var"; then
9906
9907cat >>confdefs.h <<_ACEOF
9908#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9909_ACEOF
9910
9911fi
9912
9913
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009914{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9915echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9916if test "${libltdl_cv_sys_search_path+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918else
9919 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9920fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009921{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9922echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923if test -n "$libltdl_cv_sys_search_path"; then
9924 sys_search_path=
9925 for dir in $libltdl_cv_sys_search_path; do
9926 if test -z "$sys_search_path"; then
9927 sys_search_path="$dir"
9928 else
9929 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9930 fi
9931 done
9932
9933cat >>confdefs.h <<_ACEOF
9934#define LTDL_SYSSEARCHPATH "$sys_search_path"
9935_ACEOF
9936
9937fi
9938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009939{ echo "$as_me:$LINENO: checking for objdir" >&5
9940echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9941if test "${libltdl_cv_objdir+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943else
9944 libltdl_cv_objdir="$objdir"
9945 if test -n "$objdir"; then
9946 :
9947 else
9948 rm -f .libs 2>/dev/null
9949 mkdir .libs 2>/dev/null
9950 if test -d .libs; then
9951 libltdl_cv_objdir=.libs
9952 else
9953 # MS-DOS does not allow filenames that begin with a dot.
9954 libltdl_cv_objdir=_libs
9955 fi
9956 rmdir .libs 2>/dev/null
9957 fi
9958
9959fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009960{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9961echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009962
9963cat >>confdefs.h <<_ACEOF
9964#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9965_ACEOF
9966
9967
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968
9969
9970
9971
9972# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009973{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9974echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9975if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009977else
9978
9979# These are sane defaults that work on at least a few old systems.
9980# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9981
9982# Character class describing NM global symbol codes.
9983symcode='[BCDEGRST]'
9984
9985# Regexp to match symbols that can be accessed directly from C.
9986sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9987
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988# Transform an extracted symbol line into a proper C declaration
9989lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9990
9991# Transform an extracted symbol line into symbol name and symbol address
9992lt_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'"
9993
9994# Define system-specific variables.
9995case $host_os in
9996aix*)
9997 symcode='[BCDT]'
9998 ;;
9999cygwin* | mingw* | pw32*)
10000 symcode='[ABCDGISTW]'
10001 ;;
10002hpux*) # Its linker distinguishes data from code symbols
10003 if test "$host_cpu" = ia64; then
10004 symcode='[ABCDEGRST]'
10005 fi
10006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10007 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'"
10008 ;;
10009linux*)
10010 if test "$host_cpu" = ia64; then
10011 symcode='[ABCDGIRSTW]'
10012 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10013 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'"
10014 fi
10015 ;;
10016irix* | nonstopux*)
10017 symcode='[BCDEGRST]'
10018 ;;
10019osf*)
10020 symcode='[BCDEGQRST]'
10021 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010022solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023 symcode='[BDRT]'
10024 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010025sco3.2v5*)
10026 symcode='[DT]'
10027 ;;
10028sysv4.2uw2*)
10029 symcode='[DT]'
10030 ;;
10031sysv5* | sco5v6* | unixware* | OpenUNIX*)
10032 symcode='[ABDT]'
10033 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034sysv4)
10035 symcode='[DFNSTU]'
10036 ;;
10037esac
10038
10039# Handle CRLF in mingw tool chain
10040opt_cr=
10041case $build_os in
10042mingw*)
10043 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10044 ;;
10045esac
10046
10047# If we're using GNU nm, then use its standard symbol codes.
10048case `$NM -V 2>&1` in
10049*GNU* | *'with BFD'*)
10050 symcode='[ABCDGIRSTW]' ;;
10051esac
10052
10053# Try without a prefix undercore, then with it.
10054for ac_symprfx in "" "_"; do
10055
Reid Spencera773bd52006-08-04 18:18:08 +000010056 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10057 symxfrm="\\1 $ac_symprfx\\2 \\2"
10058
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010060 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 +000010061
10062 # Check to see that the pipe works correctly.
10063 pipe_works=no
10064
10065 rm -f conftest*
10066 cat > conftest.$ac_ext <<EOF
10067#ifdef __cplusplus
10068extern "C" {
10069#endif
10070char nm_test_var;
10071void nm_test_func(){}
10072#ifdef __cplusplus
10073}
10074#endif
10075int main(){nm_test_var='a';nm_test_func();return(0);}
10076EOF
10077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079 (eval $ac_compile) 2>&5
10080 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010083 # Now try to grab the symbols.
10084 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010085 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 +000010086 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10087 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090 # Try sorting and uniquifying the output.
10091 if sort "$nlist" | uniq > "$nlist"T; then
10092 mv -f "$nlist"T "$nlist"
10093 else
10094 rm -f "$nlist"T
10095 fi
10096
10097 # Make sure that we snagged all the symbols we need.
10098 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10099 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10100 cat <<EOF > conftest.$ac_ext
10101#ifdef __cplusplus
10102extern "C" {
10103#endif
10104
10105EOF
10106 # Now generate the symbol file.
10107 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10108
10109 cat <<EOF >> conftest.$ac_ext
10110#if defined (__STDC__) && __STDC__
10111# define lt_ptr_t void *
10112#else
10113# define lt_ptr_t char *
10114# define const
10115#endif
10116
10117/* The mapping between symbol names and symbols. */
10118const struct {
10119 const char *name;
10120 lt_ptr_t address;
10121}
10122lt_preloaded_symbols[] =
10123{
10124EOF
10125 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10126 cat <<\EOF >> conftest.$ac_ext
10127 {0, (lt_ptr_t) 0}
10128};
10129
10130#ifdef __cplusplus
10131}
10132#endif
10133EOF
10134 # Now try linking the two files.
10135 mv conftest.$ac_objext conftstm.$ac_objext
10136 lt_save_LIBS="$LIBS"
10137 lt_save_CFLAGS="$CFLAGS"
10138 LIBS="conftstm.$ac_objext"
10139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141 (eval $ac_link) 2>&5
10142 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145 pipe_works=yes
10146 fi
10147 LIBS="$lt_save_LIBS"
10148 CFLAGS="$lt_save_CFLAGS"
10149 else
10150 echo "cannot find nm_test_func in $nlist" >&5
10151 fi
10152 else
10153 echo "cannot find nm_test_var in $nlist" >&5
10154 fi
10155 else
10156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10157 fi
10158 else
10159 echo "$progname: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 fi
10162 rm -f conftest* conftst*
10163
10164 # Do not use the global_symbol_pipe unless it works.
10165 if test "$pipe_works" = yes; then
10166 break
10167 else
10168 lt_cv_sys_global_symbol_pipe=
10169 fi
10170done
10171
10172fi
10173
10174if test -z "$lt_cv_sys_global_symbol_pipe"; then
10175 lt_cv_sys_global_symbol_to_cdecl=
10176fi
10177if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010178 { echo "$as_me:$LINENO: result: failed" >&5
10179echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010181 { echo "$as_me:$LINENO: result: ok" >&5
10182echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183fi
10184
10185
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010186{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10187echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10188if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190else
10191 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10192 libltdl_cv_preloaded_symbols=yes
10193 else
10194 libltdl_cv_preloaded_symbols=no
10195 fi
10196
10197fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010198{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10199echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010202cat >>confdefs.h <<\_ACEOF
10203#define HAVE_PRELOADED_SYMBOLS 1
10204_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205
10206fi
10207
10208LIBADD_DL=
10209
10210ac_ext=c
10211ac_cpp='$CPP $CPPFLAGS'
10212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10214ac_compiler_gnu=$ac_cv_c_compiler_gnu
10215
10216
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010217{ echo "$as_me:$LINENO: checking for shl_load" >&5
10218echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10219if test "${ac_cv_func_shl_load+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 cat >conftest.$ac_ext <<_ACEOF
10223/* confdefs.h. */
10224_ACEOF
10225cat confdefs.h >>conftest.$ac_ext
10226cat >>conftest.$ac_ext <<_ACEOF
10227/* end confdefs.h. */
10228/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10230#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010232/* System header to define __stub macros and hopefully few prototypes,
10233 which can conflict with char shl_load (); below.
10234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10235 <limits.h> exists even on freestanding compilers. */
10236
10237#ifdef __STDC__
10238# include <limits.h>
10239#else
10240# include <assert.h>
10241#endif
10242
10243#undef shl_load
10244
10245/* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248#ifdef __cplusplus
10249extern "C"
10250#endif
10251char shl_load ();
10252/* The GNU C library defines this for functions which it implements
10253 to always fail with ENOSYS. Some functions are actually named
10254 something starting with __ and the normal name is an alias. */
10255#if defined __stub_shl_load || defined __stub___shl_load
10256choke me
10257#endif
10258
10259int
10260main ()
10261{
10262return shl_load ();
10263 ;
10264 return 0;
10265}
10266_ACEOF
10267rm -f conftest.$ac_objext conftest$ac_exeext
10268if { (ac_try="$ac_link"
10269case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272esac
10273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_link") 2>conftest.er1
10275 ac_status=$?
10276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
10301 ac_cv_func_shl_load=yes
10302else
10303 echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 ac_cv_func_shl_load=no
10307fi
10308
10309rm -f core conftest.err conftest.$ac_objext \
10310 conftest$ac_exeext conftest.$ac_ext
10311fi
10312{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10313echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10314if test $ac_cv_func_shl_load = yes; then
10315
10316cat >>confdefs.h <<\_ACEOF
10317#define HAVE_SHL_LOAD 1
10318_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010319
10320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010321 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10322echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10323if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325else
10326 ac_check_lib_save_LIBS=$LIBS
10327LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010328cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h. */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333/* end confdefs.h. */
10334
Reid Spencera773bd52006-08-04 18:18:08 +000010335/* Override any GCC internal prototype to avoid an error.
10336 Use char because int might match the return type of a GCC
10337 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338#ifdef __cplusplus
10339extern "C"
10340#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010341char shl_load ();
10342int
10343main ()
10344{
Reid Spencera773bd52006-08-04 18:18:08 +000010345return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 ;
10347 return 0;
10348}
10349_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010350rm -f conftest.$ac_objext conftest$ac_exeext
10351if { (ac_try="$ac_link"
10352case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10355esac
10356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_link") 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10368esac
10369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10371 ac_status=$?
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; } &&
10374 { ac_try='test -s conftest$ac_exeext'
10375 { (case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_try") 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384 ac_cv_lib_dld_shl_load=yes
10385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010386 echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010390fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010391
Bill Wendlingebcceee2009-04-18 11:20:33 +000010392rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010393 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010394LIBS=$ac_check_lib_save_LIBS
10395fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010396{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10397echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10398if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010400cat >>confdefs.h <<\_ACEOF
10401#define HAVE_SHL_LOAD 1
10402_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403
10404 LIBADD_DL="$LIBADD_DL -ldld"
10405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010406 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10407echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10408if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410else
10411 ac_check_lib_save_LIBS=$LIBS
10412LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010413cat >conftest.$ac_ext <<_ACEOF
10414/* confdefs.h. */
10415_ACEOF
10416cat confdefs.h >>conftest.$ac_ext
10417cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418/* end confdefs.h. */
10419
Reid Spencera773bd52006-08-04 18:18:08 +000010420/* Override any GCC internal prototype to avoid an error.
10421 Use char because int might match the return type of a GCC
10422 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423#ifdef __cplusplus
10424extern "C"
10425#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426char dlopen ();
10427int
10428main ()
10429{
Reid Spencera773bd52006-08-04 18:18:08 +000010430return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431 ;
10432 return 0;
10433}
10434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010435rm -f conftest.$ac_objext conftest$ac_exeext
10436if { (ac_try="$ac_link"
10437case "(($ac_try" in
10438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439 *) ac_try_echo=$ac_try;;
10440esac
10441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442 (eval "$ac_link") 2>conftest.er1
10443 ac_status=$?
10444 grep -v '^ *+' conftest.er1 >conftest.err
10445 rm -f conftest.er1
10446 cat conftest.err >&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10450 { (case "(($ac_try" in
10451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452 *) ac_try_echo=$ac_try;;
10453esac
10454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455 (eval "$ac_try") 2>&5
10456 ac_status=$?
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest$ac_exeext'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463esac
10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469 ac_cv_lib_dl_dlopen=yes
10470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010471 echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010476
Bill Wendlingebcceee2009-04-18 11:20:33 +000010477rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010478 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479LIBS=$ac_check_lib_save_LIBS
10480fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010481{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10482echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10483if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010485cat >>confdefs.h <<\_ACEOF
10486#define HAVE_LIBDL 1
10487_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488
10489 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010491 cat >conftest.$ac_ext <<_ACEOF
10492/* confdefs.h. */
10493_ACEOF
10494cat confdefs.h >>conftest.$ac_ext
10495cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496/* end confdefs.h. */
10497#if HAVE_DLFCN_H
10498# include <dlfcn.h>
10499#endif
10500
10501int
10502main ()
10503{
10504dlopen(0, 0);
10505 ;
10506 return 0;
10507}
10508_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010509rm -f conftest.$ac_objext conftest$ac_exeext
10510if { (ac_try="$ac_link"
10511case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_link") 2>conftest.er1
10517 ac_status=$?
10518 grep -v '^ *+' conftest.er1 >conftest.err
10519 rm -f conftest.er1
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
10530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (case "(($ac_try" in
10535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536 *) ac_try_echo=$ac_try;;
10537esac
10538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10539 (eval "$ac_try") 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010544cat >>confdefs.h <<\_ACEOF
10545#define HAVE_LIBDL 1
10546_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547 libltdl_cv_func_dlopen="yes"
10548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010549 echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10553echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10554if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556else
10557 ac_check_lib_save_LIBS=$LIBS
10558LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010559cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h. */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564/* end confdefs.h. */
10565
Reid Spencera773bd52006-08-04 18:18:08 +000010566/* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569#ifdef __cplusplus
10570extern "C"
10571#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572char dlopen ();
10573int
10574main ()
10575{
Reid Spencera773bd52006-08-04 18:18:08 +000010576return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577 ;
10578 return 0;
10579}
10580_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010581rm -f conftest.$ac_objext conftest$ac_exeext
10582if { (ac_try="$ac_link"
10583case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586esac
10587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_link") 2>conftest.er1
10589 ac_status=$?
10590 grep -v '^ *+' conftest.er1 >conftest.err
10591 rm -f conftest.er1
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } &&
10595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10596 { (case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10599esac
10600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_try") 2>&5
10602 ac_status=$?
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); }; } &&
10605 { ac_try='test -s conftest$ac_exeext'
10606 { (case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_try") 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615 ac_cv_lib_svld_dlopen=yes
10616else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010617 echo "$as_me: failed program was:" >&5
10618sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010622
Bill Wendlingebcceee2009-04-18 11:20:33 +000010623rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010624 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625LIBS=$ac_check_lib_save_LIBS
10626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010627{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10628echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10629if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010631cat >>confdefs.h <<\_ACEOF
10632#define HAVE_LIBDL 1
10633_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634
10635 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010637 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10638echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10639if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641else
10642 ac_check_lib_save_LIBS=$LIBS
10643LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010644cat >conftest.$ac_ext <<_ACEOF
10645/* confdefs.h. */
10646_ACEOF
10647cat confdefs.h >>conftest.$ac_ext
10648cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649/* end confdefs.h. */
10650
Reid Spencera773bd52006-08-04 18:18:08 +000010651/* Override any GCC internal prototype to avoid an error.
10652 Use char because int might match the return type of a GCC
10653 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010654#ifdef __cplusplus
10655extern "C"
10656#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657char dld_link ();
10658int
10659main ()
10660{
Reid Spencera773bd52006-08-04 18:18:08 +000010661return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010662 ;
10663 return 0;
10664}
10665_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010666rm -f conftest.$ac_objext conftest$ac_exeext
10667if { (ac_try="$ac_link"
10668case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10671esac
10672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_link") 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10681 { (case "(($ac_try" in
10682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683 *) ac_try_echo=$ac_try;;
10684esac
10685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686 (eval "$ac_try") 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; } &&
10690 { ac_try='test -s conftest$ac_exeext'
10691 { (case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694esac
10695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_try") 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700 ac_cv_lib_dld_dld_link=yes
10701else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010702 echo "$as_me: failed program was:" >&5
10703sed 's/^/| /' conftest.$ac_ext >&5
10704
10705 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010707
Bill Wendlingebcceee2009-04-18 11:20:33 +000010708rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010709 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710LIBS=$ac_check_lib_save_LIBS
10711fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010712{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10713echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10714if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010716cat >>confdefs.h <<\_ACEOF
10717#define HAVE_DLD 1
10718_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719
10720 LIBADD_DL="$LIBADD_DL -ldld"
10721else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010722 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10723echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10724if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726else
10727 cat >conftest.$ac_ext <<_ACEOF
10728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
10732/* end confdefs.h. */
10733/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10735#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737/* System header to define __stub macros and hopefully few prototypes,
10738 which can conflict with char _dyld_func_lookup (); below.
10739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10740 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010742#ifdef __STDC__
10743# include <limits.h>
10744#else
10745# include <assert.h>
10746#endif
10747
10748#undef _dyld_func_lookup
10749
10750/* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10753#ifdef __cplusplus
10754extern "C"
10755#endif
10756char _dyld_func_lookup ();
10757/* The GNU C library defines this for functions which it implements
10758 to always fail with ENOSYS. Some functions are actually named
10759 something starting with __ and the normal name is an alias. */
10760#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10761choke me
10762#endif
10763
10764int
10765main ()
10766{
10767return _dyld_func_lookup ();
10768 ;
10769 return 0;
10770}
10771_ACEOF
10772rm -f conftest.$ac_objext conftest$ac_exeext
10773if { (ac_try="$ac_link"
10774case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10777esac
10778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_link") 2>conftest.er1
10780 ac_status=$?
10781 grep -v '^ *+' conftest.er1 >conftest.err
10782 rm -f conftest.er1
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
10793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; } &&
10796 { ac_try='test -s conftest$ac_exeext'
10797 { (case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800esac
10801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10802 (eval "$ac_try") 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_func__dyld_func_lookup=yes
10807else
10808 echo "$as_me: failed program was:" >&5
10809sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812fi
Reid Spencera773bd52006-08-04 18:18:08 +000010813
Bill Wendlingebcceee2009-04-18 11:20:33 +000010814rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010815 conftest$ac_exeext conftest.$ac_ext
10816fi
10817{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10818echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10819if test $ac_cv_func__dyld_func_lookup = yes; then
10820
10821cat >>confdefs.h <<\_ACEOF
10822#define HAVE_DYLD 1
10823_ACEOF
10824
10825fi
10826
10827
10828fi
10829
10830
10831fi
10832
10833
10834fi
10835
10836rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838
10839fi
10840
10841
10842fi
10843
10844
10845fi
10846
10847
10848if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10849then
10850 lt_save_LIBS="$LIBS"
10851 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010852
10853for ac_func in dlerror
10854do
10855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10856{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10858if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860else
10861 cat >conftest.$ac_ext <<_ACEOF
10862/* confdefs.h. */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h. */
10867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10869#define $ac_func innocuous_$ac_func
10870
10871/* System header to define __stub macros and hopefully few prototypes,
10872 which can conflict with char $ac_func (); below.
10873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10874 <limits.h> exists even on freestanding compilers. */
10875
10876#ifdef __STDC__
10877# include <limits.h>
10878#else
10879# include <assert.h>
10880#endif
10881
10882#undef $ac_func
10883
10884/* Override any GCC internal prototype to avoid an error.
10885 Use char because int might match the return type of a GCC
10886 builtin and then its argument prototype would still apply. */
10887#ifdef __cplusplus
10888extern "C"
10889#endif
10890char $ac_func ();
10891/* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894#if defined __stub_$ac_func || defined __stub___$ac_func
10895choke me
10896#endif
10897
10898int
10899main ()
10900{
10901return $ac_func ();
10902 ;
10903 return 0;
10904}
10905_ACEOF
10906rm -f conftest.$ac_objext conftest$ac_exeext
10907if { (ac_try="$ac_link"
10908case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10911esac
10912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10921 { (case "(($ac_try" in
10922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923 *) ac_try_echo=$ac_try;;
10924esac
10925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926 (eval "$ac_try") 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest$ac_exeext'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10937 ac_status=$?
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 eval "$as_ac_var=yes"
10941else
10942 echo "$as_me: failed program was:" >&5
10943sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 eval "$as_ac_var=no"
10946fi
10947
10948rm -f core conftest.err conftest.$ac_objext \
10949 conftest$ac_exeext conftest.$ac_ext
10950fi
10951ac_res=`eval echo '${'$as_ac_var'}'`
10952 { echo "$as_me:$LINENO: result: $ac_res" >&5
10953echo "${ECHO_T}$ac_res" >&6; }
10954if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010955 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010956#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957_ACEOF
10958
10959fi
10960done
10961
10962 LIBS="$lt_save_LIBS"
10963fi
10964ac_ext=c
10965ac_cpp='$CPP $CPPFLAGS'
10966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10968ac_compiler_gnu=$ac_cv_c_compiler_gnu
10969
10970
10971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010972{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10973echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10974if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976else
10977 ac_cv_sys_symbol_underscore=no
10978 cat > conftest.$ac_ext <<EOF
10979void nm_test_func(){}
10980int main(){nm_test_func;return 0;}
10981EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983 (eval $ac_compile) 2>&5
10984 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987 # Now try to grab the symbols.
10988 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010989 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 +000010990 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10991 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994 # See whether the symbols have a leading underscore.
10995 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10996 ac_cv_sys_symbol_underscore=yes
10997 else
10998 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10999 :
11000 else
11001 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11002 fi
11003 fi
11004 else
11005 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11006 fi
11007 else
11008 echo "configure: failed program was:" >&5
11009 cat conftest.c >&5
11010 fi
11011 rm -rf conftest*
11012
11013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011014{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11015echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016
11017
11018if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11019 if test x"$libltdl_cv_func_dlopen" = xyes ||
11020 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011021 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11022echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11023if test "${libltdl_cv_need_uscore+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025else
11026 libltdl_cv_need_uscore=unknown
11027 save_LIBS="$LIBS"
11028 LIBS="$LIBS $LIBADD_DL"
11029 if test "$cross_compiling" = yes; then :
11030 libltdl_cv_need_uscore=cross
11031else
11032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11033 lt_status=$lt_dlunknown
11034 cat > conftest.$ac_ext <<EOF
Daniel Dunbare209c382010-02-23 07:56:34 +000011035#line 11035 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036#include "confdefs.h"
11037
11038#if HAVE_DLFCN_H
11039#include <dlfcn.h>
11040#endif
11041
11042#include <stdio.h>
11043
11044#ifdef RTLD_GLOBAL
11045# define LT_DLGLOBAL RTLD_GLOBAL
11046#else
11047# ifdef DL_GLOBAL
11048# define LT_DLGLOBAL DL_GLOBAL
11049# else
11050# define LT_DLGLOBAL 0
11051# endif
11052#endif
11053
11054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11055 find out it does not work in some platform. */
11056#ifndef LT_DLLAZY_OR_NOW
11057# ifdef RTLD_LAZY
11058# define LT_DLLAZY_OR_NOW RTLD_LAZY
11059# else
11060# ifdef DL_LAZY
11061# define LT_DLLAZY_OR_NOW DL_LAZY
11062# else
11063# ifdef RTLD_NOW
11064# define LT_DLLAZY_OR_NOW RTLD_NOW
11065# else
11066# ifdef DL_NOW
11067# define LT_DLLAZY_OR_NOW DL_NOW
11068# else
11069# define LT_DLLAZY_OR_NOW 0
11070# endif
11071# endif
11072# endif
11073# endif
11074#endif
11075
11076#ifdef __cplusplus
11077extern "C" void exit (int);
11078#endif
11079
11080void fnord() { int i=42;}
11081int main ()
11082{
11083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11084 int status = $lt_dlunknown;
11085
11086 if (self)
11087 {
11088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11090 /* dlclose (self); */
11091 }
Reid Spencera773bd52006-08-04 18:18:08 +000011092 else
11093 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094
11095 exit (status);
11096}
11097EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099 (eval $ac_link) 2>&5
11100 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011103 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104 lt_status=$?
11105 case x$lt_status in
11106 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11107 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011108 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109 esac
11110 else :
11111 # compilation failed
11112
11113 fi
11114fi
11115rm -fr conftest*
11116
11117 LIBS="$save_LIBS"
11118
11119fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011120{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11121echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011122 fi
11123fi
11124
11125if test x"$libltdl_cv_need_uscore" = xyes; then
11126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011127cat >>confdefs.h <<\_ACEOF
11128#define NEED_USCORE 1
11129_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130
11131fi
11132
11133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011134{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11135echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11136if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138else
11139 # PORTME does your system automatically load deplibs for dlopen?
11140 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11141 # For now, we just catch OSes we know something about -- in the
11142 # future, we'll try test this programmatically.
11143 libltdl_cv_sys_dlopen_deplibs=unknown
11144 case "$host_os" in
11145 aix3*|aix4.1.*|aix4.2.*)
11146 # Unknown whether this is true for these versions of AIX, but
11147 # we want this `case' here to explicitly catch those versions.
11148 libltdl_cv_sys_dlopen_deplibs=unknown
11149 ;;
11150 aix[45]*)
11151 libltdl_cv_sys_dlopen_deplibs=yes
11152 ;;
11153 darwin*)
11154 # Assuming the user has installed a libdl from somewhere, this is true
11155 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11156 libltdl_cv_sys_dlopen_deplibs=yes
11157 ;;
11158 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11159 # GNU and its variants, using gnu ld.so (Glibc)
11160 libltdl_cv_sys_dlopen_deplibs=yes
11161 ;;
11162 hpux10*|hpux11*)
11163 libltdl_cv_sys_dlopen_deplibs=yes
11164 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011165 interix*)
11166 libltdl_cv_sys_dlopen_deplibs=yes
11167 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011168 irix[12345]*|irix6.[01]*)
11169 # Catch all versions of IRIX before 6.2, and indicate that we don't
11170 # know how it worked for any of those versions.
11171 libltdl_cv_sys_dlopen_deplibs=unknown
11172 ;;
11173 irix*)
11174 # The case above catches anything before 6.2, and it's known that
11175 # at 6.2 and later dlopen does load deplibs.
11176 libltdl_cv_sys_dlopen_deplibs=yes
11177 ;;
11178 netbsd*)
11179 libltdl_cv_sys_dlopen_deplibs=yes
11180 ;;
11181 openbsd*)
11182 libltdl_cv_sys_dlopen_deplibs=yes
11183 ;;
11184 osf[1234]*)
11185 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11186 # it did *not* use an RPATH in a shared library to find objects the
11187 # library depends on, so we explictly say `no'.
11188 libltdl_cv_sys_dlopen_deplibs=no
11189 ;;
11190 osf5.0|osf5.0a|osf5.1)
11191 # dlopen *does* load deplibs and with the right loader patch applied
11192 # it even uses RPATH in a shared library to search for shared objects
11193 # that the library depends on, but there's no easy way to know if that
11194 # patch is installed. Since this is the case, all we can really
11195 # say is unknown -- it depends on the patch being installed. If
11196 # it is, this changes to `yes'. Without it, it would be `no'.
11197 libltdl_cv_sys_dlopen_deplibs=unknown
11198 ;;
11199 osf*)
11200 # the two cases above should catch all versions of osf <= 5.1. Read
11201 # the comments above for what we know about them.
11202 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11203 # is used to find them so we can finally say `yes'.
11204 libltdl_cv_sys_dlopen_deplibs=yes
11205 ;;
11206 solaris*)
11207 libltdl_cv_sys_dlopen_deplibs=yes
11208 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11210 libltdl_cv_sys_dlopen_deplibs=yes
11211 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212 esac
11213
11214fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011215{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11216echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011219cat >>confdefs.h <<\_ACEOF
11220#define LTDL_DLOPEN_DEPLIBS 1
11221_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222
11223fi
11224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011225
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011227do
11228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11232if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234fi
11235ac_res=`eval echo '${'$as_ac_Header'}'`
11236 { echo "$as_me:$LINENO: result: $ac_res" >&5
11237echo "${ECHO_T}$ac_res" >&6; }
11238else
11239 # Is the header compilable?
11240{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11242cat >conftest.$ac_ext <<_ACEOF
11243/* confdefs.h. */
11244_ACEOF
11245cat confdefs.h >>conftest.$ac_ext
11246cat >>conftest.$ac_ext <<_ACEOF
11247/* end confdefs.h. */
11248$ac_includes_default
11249#include <$ac_header>
11250_ACEOF
11251rm -f conftest.$ac_objext
11252if { (ac_try="$ac_compile"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
11285 ac_header_compiler=yes
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290 ac_header_compiler=no
11291fi
11292
11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11295echo "${ECHO_T}$ac_header_compiler" >&6; }
11296
11297# Is the header present?
11298{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11299echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11300cat >conftest.$ac_ext <<_ACEOF
11301/* confdefs.h. */
11302_ACEOF
11303cat confdefs.h >>conftest.$ac_ext
11304cat >>conftest.$ac_ext <<_ACEOF
11305/* end confdefs.h. */
11306#include <$ac_header>
11307_ACEOF
11308if { (ac_try="$ac_cpp conftest.$ac_ext"
11309case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11312esac
11313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11315 ac_status=$?
11316 grep -v '^ *+' conftest.er1 >conftest.err
11317 rm -f conftest.er1
11318 cat conftest.err >&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } >/dev/null; then
11321 if test -s conftest.err; then
11322 ac_cpp_err=$ac_c_preproc_warn_flag
11323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11324 else
11325 ac_cpp_err=
11326 fi
11327else
11328 ac_cpp_err=yes
11329fi
11330if test -z "$ac_cpp_err"; then
11331 ac_header_preproc=yes
11332else
11333 echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
11336 ac_header_preproc=no
11337fi
11338
11339rm -f conftest.err conftest.$ac_ext
11340{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341echo "${ECHO_T}$ac_header_preproc" >&6; }
11342
11343# So? What about this header?
11344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 yes:no: )
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350 ac_header_preproc=yes
11351 ;;
11352 no:yes:* )
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11356echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11360echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11365 ( cat <<\_ASBOX
11366## ----------------------------------- ##
11367## Report this to llvmbugs@cs.uiuc.edu ##
11368## ----------------------------------- ##
11369_ASBOX
11370 ) | sed "s/^/$as_me: WARNING: /" >&2
11371 ;;
11372esac
11373{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11375if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 eval "$as_ac_Header=\$ac_header_preproc"
11379fi
11380ac_res=`eval echo '${'$as_ac_Header'}'`
11381 { echo "$as_me:$LINENO: result: $ac_res" >&5
11382echo "${ECHO_T}$ac_res" >&6; }
11383
11384fi
11385if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011386 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011388_ACEOF
11389
11390fi
11391
11392done
11393
11394
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011395{ echo "$as_me:$LINENO: checking for error_t" >&5
11396echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11397if test "${ac_cv_type_error_t+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11399else
11400 cat >conftest.$ac_ext <<_ACEOF
11401/* confdefs.h. */
11402_ACEOF
11403cat confdefs.h >>conftest.$ac_ext
11404cat >>conftest.$ac_ext <<_ACEOF
11405/* end confdefs.h. */
11406#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407# include <argz.h>
11408#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011409
11410typedef error_t ac__type_new_;
11411int
11412main ()
11413{
11414if ((ac__type_new_ *) 0)
11415 return 0;
11416if (sizeof (ac__type_new_))
11417 return 0;
11418 ;
11419 return 0;
11420}
11421_ACEOF
11422rm -f conftest.$ac_objext
11423if { (ac_try="$ac_compile"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_compile") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } &&
11436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 ac_cv_type_error_t=yes
11457else
11458 echo "$as_me: failed program was:" >&5
11459sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 ac_cv_type_error_t=no
11462fi
11463
11464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11465fi
11466{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11467echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11468if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469
11470cat >>confdefs.h <<_ACEOF
11471#define HAVE_ERROR_T 1
11472_ACEOF
11473
11474
11475else
11476
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011477cat >>confdefs.h <<\_ACEOF
11478#define error_t int
11479_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480
11481fi
11482
11483
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011484
11485
11486
11487
11488
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011490do
11491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496else
11497 cat >conftest.$ac_ext <<_ACEOF
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505#define $ac_func innocuous_$ac_func
11506
11507/* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11511
11512#ifdef __STDC__
11513# include <limits.h>
11514#else
11515# include <assert.h>
11516#endif
11517
11518#undef $ac_func
11519
11520/* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523#ifdef __cplusplus
11524extern "C"
11525#endif
11526char $ac_func ();
11527/* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530#if defined __stub_$ac_func || defined __stub___$ac_func
11531choke me
11532#endif
11533
11534int
11535main ()
11536{
11537return $ac_func ();
11538 ;
11539 return 0;
11540}
11541_ACEOF
11542rm -f conftest.$ac_objext conftest$ac_exeext
11543if { (ac_try="$ac_link"
11544case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547esac
11548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_link") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; } &&
11566 { ac_try='test -s conftest$ac_exeext'
11567 { (case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570esac
11571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_try") 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; }; then
11576 eval "$as_ac_var=yes"
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
11581 eval "$as_ac_var=no"
11582fi
11583
11584rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11586fi
11587ac_res=`eval echo '${'$as_ac_var'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589echo "${ECHO_T}$ac_res" >&6; }
11590if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011592#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593_ACEOF
11594
11595fi
11596done
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011617
11618
11619
11620
11621
11622
11623
11624
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011625for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11626 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011627do
11628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11632if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634fi
11635ac_res=`eval echo '${'$as_ac_Header'}'`
11636 { echo "$as_me:$LINENO: result: $ac_res" >&5
11637echo "${ECHO_T}$ac_res" >&6; }
11638else
11639 # Is the header compilable?
11640{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11642cat >conftest.$ac_ext <<_ACEOF
11643/* confdefs.h. */
11644_ACEOF
11645cat confdefs.h >>conftest.$ac_ext
11646cat >>conftest.$ac_ext <<_ACEOF
11647/* end confdefs.h. */
11648$ac_includes_default
11649#include <$ac_header>
11650_ACEOF
11651rm -f conftest.$ac_objext
11652if { (ac_try="$ac_compile"
11653case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656esac
11657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_compile") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11666 { (case "(($ac_try" in
11667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668 *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_try") 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11679esac
11680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11682 ac_status=$?
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 ac_header_compiler=yes
11686else
11687 echo "$as_me: failed program was:" >&5
11688sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 ac_header_compiler=no
11691fi
11692
11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11695echo "${ECHO_T}$ac_header_compiler" >&6; }
11696
11697# Is the header present?
11698{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11700cat >conftest.$ac_ext <<_ACEOF
11701/* confdefs.h. */
11702_ACEOF
11703cat confdefs.h >>conftest.$ac_ext
11704cat >>conftest.$ac_ext <<_ACEOF
11705/* end confdefs.h. */
11706#include <$ac_header>
11707_ACEOF
11708if { (ac_try="$ac_cpp conftest.$ac_ext"
11709case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712esac
11713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11715 ac_status=$?
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } >/dev/null; then
11721 if test -s conftest.err; then
11722 ac_cpp_err=$ac_c_preproc_warn_flag
11723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11724 else
11725 ac_cpp_err=
11726 fi
11727else
11728 ac_cpp_err=yes
11729fi
11730if test -z "$ac_cpp_err"; then
11731 ac_header_preproc=yes
11732else
11733 echo "$as_me: failed program was:" >&5
11734sed 's/^/| /' conftest.$ac_ext >&5
11735
11736 ac_header_preproc=no
11737fi
11738
11739rm -f conftest.err conftest.$ac_ext
11740{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11741echo "${ECHO_T}$ac_header_preproc" >&6; }
11742
11743# So? What about this header?
11744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11745 yes:no: )
11746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11747echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11749echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11750 ac_header_preproc=yes
11751 ;;
11752 no:yes:* )
11753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11754echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11756echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11758echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11760echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11764echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11765 ( cat <<\_ASBOX
11766## ----------------------------------- ##
11767## Report this to llvmbugs@cs.uiuc.edu ##
11768## ----------------------------------- ##
11769_ASBOX
11770 ) | sed "s/^/$as_me: WARNING: /" >&2
11771 ;;
11772esac
11773{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777else
11778 eval "$as_ac_Header=\$ac_header_preproc"
11779fi
11780ac_res=`eval echo '${'$as_ac_Header'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782echo "${ECHO_T}$ac_res" >&6; }
11783
11784fi
11785if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788_ACEOF
11789
11790fi
11791
11792done
11793
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011794
11795
11796
11797
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011798for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011799do
11800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806fi
11807ac_res=`eval echo '${'$as_ac_Header'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809echo "${ECHO_T}$ac_res" >&6; }
11810else
11811 # Is the header compilable?
11812{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11814cat >conftest.$ac_ext <<_ACEOF
11815/* confdefs.h. */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h. */
11820$ac_includes_default
11821#include <$ac_header>
11822_ACEOF
11823rm -f conftest.$ac_objext
11824if { (ac_try="$ac_compile"
11825case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838 { (case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_try") 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_header_compiler=yes
11858else
11859 echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
11862 ac_header_compiler=no
11863fi
11864
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867echo "${ECHO_T}$ac_header_compiler" >&6; }
11868
11869# Is the header present?
11870{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11872cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878#include <$ac_header>
11879_ACEOF
11880if { (ac_try="$ac_cpp conftest.$ac_ext"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null; then
11893 if test -s conftest.err; then
11894 ac_cpp_err=$ac_c_preproc_warn_flag
11895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11896 else
11897 ac_cpp_err=
11898 fi
11899else
11900 ac_cpp_err=yes
11901fi
11902if test -z "$ac_cpp_err"; then
11903 ac_header_preproc=yes
11904else
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908 ac_header_preproc=no
11909fi
11910
11911rm -f conftest.err conftest.$ac_ext
11912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913echo "${ECHO_T}$ac_header_preproc" >&6; }
11914
11915# So? What about this header?
11916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917 yes:no: )
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922 ac_header_preproc=yes
11923 ;;
11924 no:yes:* )
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11937 ( cat <<\_ASBOX
11938## ----------------------------------- ##
11939## Report this to llvmbugs@cs.uiuc.edu ##
11940## ----------------------------------- ##
11941_ASBOX
11942 ) | sed "s/^/$as_me: WARNING: /" >&2
11943 ;;
11944esac
11945{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 eval "$as_ac_Header=\$ac_header_preproc"
11951fi
11952ac_res=`eval echo '${'$as_ac_Header'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954echo "${ECHO_T}$ac_res" >&6; }
11955
11956fi
11957if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960_ACEOF
11961
11962fi
11963
11964done
11965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011966
11967
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011969do
11970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976fi
11977ac_res=`eval echo '${'$as_ac_Header'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979echo "${ECHO_T}$ac_res" >&6; }
11980else
11981 # Is the header compilable?
11982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11984cat >conftest.$ac_ext <<_ACEOF
11985/* confdefs.h. */
11986_ACEOF
11987cat confdefs.h >>conftest.$ac_ext
11988cat >>conftest.$ac_ext <<_ACEOF
11989/* end confdefs.h. */
11990$ac_includes_default
11991#include <$ac_header>
11992_ACEOF
11993rm -f conftest.$ac_objext
11994if { (ac_try="$ac_compile"
11995case "(($ac_try" in
11996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 *) ac_try_echo=$ac_try;;
11998esac
11999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_compile") 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_try") 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest.$ac_objext'
12018 { (case "(($ac_try" in
12019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12021esac
12022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_try") 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
12027 ac_header_compiler=yes
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_header_compiler=no
12033fi
12034
12035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12037echo "${ECHO_T}$ac_header_compiler" >&6; }
12038
12039# Is the header present?
12040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12042cat >conftest.$ac_ext <<_ACEOF
12043/* confdefs.h. */
12044_ACEOF
12045cat confdefs.h >>conftest.$ac_ext
12046cat >>conftest.$ac_ext <<_ACEOF
12047/* end confdefs.h. */
12048#include <$ac_header>
12049_ACEOF
12050if { (ac_try="$ac_cpp conftest.$ac_ext"
12051case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } >/dev/null; then
12063 if test -s conftest.err; then
12064 ac_cpp_err=$ac_c_preproc_warn_flag
12065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12066 else
12067 ac_cpp_err=
12068 fi
12069else
12070 ac_cpp_err=yes
12071fi
12072if test -z "$ac_cpp_err"; then
12073 ac_header_preproc=yes
12074else
12075 echo "$as_me: failed program was:" >&5
12076sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_header_preproc=no
12079fi
12080
12081rm -f conftest.err conftest.$ac_ext
12082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12083echo "${ECHO_T}$ac_header_preproc" >&6; }
12084
12085# So? What about this header?
12086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12087 yes:no: )
12088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12092 ac_header_preproc=yes
12093 ;;
12094 no:yes:* )
12095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12107 ( cat <<\_ASBOX
12108## ----------------------------------- ##
12109## Report this to llvmbugs@cs.uiuc.edu ##
12110## ----------------------------------- ##
12111_ASBOX
12112 ) | sed "s/^/$as_me: WARNING: /" >&2
12113 ;;
12114esac
12115{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12119else
12120 eval "$as_ac_Header=\$ac_header_preproc"
12121fi
12122ac_res=`eval echo '${'$as_ac_Header'}'`
12123 { echo "$as_me:$LINENO: result: $ac_res" >&5
12124echo "${ECHO_T}$ac_res" >&6; }
12125
12126fi
12127if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130_ACEOF
12131 break
12132fi
12133
12134done
12135
12136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012137
12138
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012140do
12141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12142{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12144if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146else
12147 cat >conftest.$ac_ext <<_ACEOF
12148/* confdefs.h. */
12149_ACEOF
12150cat confdefs.h >>conftest.$ac_ext
12151cat >>conftest.$ac_ext <<_ACEOF
12152/* end confdefs.h. */
12153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12155#define $ac_func innocuous_$ac_func
12156
12157/* System header to define __stub macros and hopefully few prototypes,
12158 which can conflict with char $ac_func (); below.
12159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12160 <limits.h> exists even on freestanding compilers. */
12161
12162#ifdef __STDC__
12163# include <limits.h>
12164#else
12165# include <assert.h>
12166#endif
12167
12168#undef $ac_func
12169
12170/* Override any GCC internal prototype to avoid an error.
12171 Use char because int might match the return type of a GCC
12172 builtin and then its argument prototype would still apply. */
12173#ifdef __cplusplus
12174extern "C"
12175#endif
12176char $ac_func ();
12177/* The GNU C library defines this for functions which it implements
12178 to always fail with ENOSYS. Some functions are actually named
12179 something starting with __ and the normal name is an alias. */
12180#if defined __stub_$ac_func || defined __stub___$ac_func
12181choke me
12182#endif
12183
12184int
12185main ()
12186{
12187return $ac_func ();
12188 ;
12189 return 0;
12190}
12191_ACEOF
12192rm -f conftest.$ac_objext conftest$ac_exeext
12193if { (ac_try="$ac_link"
12194case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_link") 2>conftest.er1
12200 ac_status=$?
12201 grep -v '^ *+' conftest.er1 >conftest.err
12202 rm -f conftest.er1
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207 { (case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210esac
12211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_try") 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest$ac_exeext'
12217 { (case "(($ac_try" in
12218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219 *) ac_try_echo=$ac_try;;
12220esac
12221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222 (eval "$ac_try") 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 eval "$as_ac_var=yes"
12227else
12228 echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 eval "$as_ac_var=no"
12232fi
12233
12234rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
12236fi
12237ac_res=`eval echo '${'$as_ac_var'}'`
12238 { echo "$as_me:$LINENO: result: $ac_res" >&5
12239echo "${ECHO_T}$ac_res" >&6; }
12240if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012241 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243_ACEOF
12244 break
12245fi
12246done
12247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012248
12249
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012250for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012251do
12252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12253{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12255if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257else
12258 cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12266#define $ac_func innocuous_$ac_func
12267
12268/* System header to define __stub macros and hopefully few prototypes,
12269 which can conflict with char $ac_func (); below.
12270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12271 <limits.h> exists even on freestanding compilers. */
12272
12273#ifdef __STDC__
12274# include <limits.h>
12275#else
12276# include <assert.h>
12277#endif
12278
12279#undef $ac_func
12280
12281/* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284#ifdef __cplusplus
12285extern "C"
12286#endif
12287char $ac_func ();
12288/* The GNU C library defines this for functions which it implements
12289 to always fail with ENOSYS. Some functions are actually named
12290 something starting with __ and the normal name is an alias. */
12291#if defined __stub_$ac_func || defined __stub___$ac_func
12292choke me
12293#endif
12294
12295int
12296main ()
12297{
12298return $ac_func ();
12299 ;
12300 return 0;
12301}
12302_ACEOF
12303rm -f conftest.$ac_objext conftest$ac_exeext
12304if { (ac_try="$ac_link"
12305case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12308esac
12309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_link") 2>conftest.er1
12311 ac_status=$?
12312 grep -v '^ *+' conftest.er1 >conftest.err
12313 rm -f conftest.er1
12314 cat conftest.err >&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } &&
12317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest$ac_exeext'
12328 { (case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12331esac
12332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12333 (eval "$ac_try") 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 eval "$as_ac_var=yes"
12338else
12339 echo "$as_me: failed program was:" >&5
12340sed 's/^/| /' conftest.$ac_ext >&5
12341
12342 eval "$as_ac_var=no"
12343fi
12344
12345rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347fi
12348ac_res=`eval echo '${'$as_ac_var'}'`
12349 { echo "$as_me:$LINENO: result: $ac_res" >&5
12350echo "${ECHO_T}$ac_res" >&6; }
12351if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012352 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354_ACEOF
12355 break
12356fi
12357done
12358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012359
12360
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012361for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012362do
12363as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12364{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12365echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12366if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368else
12369 cat >conftest.$ac_ext <<_ACEOF
12370/* confdefs.h. */
12371_ACEOF
12372cat confdefs.h >>conftest.$ac_ext
12373cat >>conftest.$ac_ext <<_ACEOF
12374/* end confdefs.h. */
12375/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12377#define $ac_func innocuous_$ac_func
12378
12379/* System header to define __stub macros and hopefully few prototypes,
12380 which can conflict with char $ac_func (); below.
12381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12382 <limits.h> exists even on freestanding compilers. */
12383
12384#ifdef __STDC__
12385# include <limits.h>
12386#else
12387# include <assert.h>
12388#endif
12389
12390#undef $ac_func
12391
12392/* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12395#ifdef __cplusplus
12396extern "C"
12397#endif
12398char $ac_func ();
12399/* The GNU C library defines this for functions which it implements
12400 to always fail with ENOSYS. Some functions are actually named
12401 something starting with __ and the normal name is an alias. */
12402#if defined __stub_$ac_func || defined __stub___$ac_func
12403choke me
12404#endif
12405
12406int
12407main ()
12408{
12409return $ac_func ();
12410 ;
12411 return 0;
12412}
12413_ACEOF
12414rm -f conftest.$ac_objext conftest$ac_exeext
12415if { (ac_try="$ac_link"
12416case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12419esac
12420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_link") 2>conftest.er1
12422 ac_status=$?
12423 grep -v '^ *+' conftest.er1 >conftest.err
12424 rm -f conftest.er1
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
12428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest$ac_exeext'
12439 { (case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_try") 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); }; }; then
12448 eval "$as_ac_var=yes"
12449else
12450 echo "$as_me: failed program was:" >&5
12451sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 eval "$as_ac_var=no"
12454fi
12455
12456rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458fi
12459ac_res=`eval echo '${'$as_ac_var'}'`
12460 { echo "$as_me:$LINENO: result: $ac_res" >&5
12461echo "${ECHO_T}$ac_res" >&6; }
12462if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012463 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012464#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465_ACEOF
12466 break
12467fi
12468done
12469
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012470
12471
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012472for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012473do
12474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12475{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480 cat >conftest.$ac_ext <<_ACEOF
12481/* confdefs.h. */
12482_ACEOF
12483cat confdefs.h >>conftest.$ac_ext
12484cat >>conftest.$ac_ext <<_ACEOF
12485/* end confdefs.h. */
12486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12488#define $ac_func innocuous_$ac_func
12489
12490/* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char $ac_func (); below.
12492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12493 <limits.h> exists even on freestanding compilers. */
12494
12495#ifdef __STDC__
12496# include <limits.h>
12497#else
12498# include <assert.h>
12499#endif
12500
12501#undef $ac_func
12502
12503/* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12506#ifdef __cplusplus
12507extern "C"
12508#endif
12509char $ac_func ();
12510/* The GNU C library defines this for functions which it implements
12511 to always fail with ENOSYS. Some functions are actually named
12512 something starting with __ and the normal name is an alias. */
12513#if defined __stub_$ac_func || defined __stub___$ac_func
12514choke me
12515#endif
12516
12517int
12518main ()
12519{
12520return $ac_func ();
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext conftest$ac_exeext
12526if { (ac_try="$ac_link"
12527case "(($ac_try" in
12528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529 *) ac_try_echo=$ac_try;;
12530esac
12531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532 (eval "$ac_link") 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12540 { (case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543esac
12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_try") 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; } &&
12549 { ac_try='test -s conftest$ac_exeext'
12550 { (case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553esac
12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_try") 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 eval "$as_ac_var=yes"
12560else
12561 echo "$as_me: failed program was:" >&5
12562sed 's/^/| /' conftest.$ac_ext >&5
12563
12564 eval "$as_ac_var=no"
12565fi
12566
12567rm -f core conftest.err conftest.$ac_objext \
12568 conftest$ac_exeext conftest.$ac_ext
12569fi
12570ac_res=`eval echo '${'$as_ac_var'}'`
12571 { echo "$as_me:$LINENO: result: $ac_res" >&5
12572echo "${ECHO_T}$ac_res" >&6; }
12573if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012574 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012576_ACEOF
12577
12578fi
12579done
12580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012581
12582
12583
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012584for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012585do
12586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12587{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12589if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12591else
12592 cat >conftest.$ac_ext <<_ACEOF
12593/* confdefs.h. */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
12597/* end confdefs.h. */
12598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12600#define $ac_func innocuous_$ac_func
12601
12602/* System header to define __stub macros and hopefully few prototypes,
12603 which can conflict with char $ac_func (); below.
12604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12605 <limits.h> exists even on freestanding compilers. */
12606
12607#ifdef __STDC__
12608# include <limits.h>
12609#else
12610# include <assert.h>
12611#endif
12612
12613#undef $ac_func
12614
12615/* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12618#ifdef __cplusplus
12619extern "C"
12620#endif
12621char $ac_func ();
12622/* The GNU C library defines this for functions which it implements
12623 to always fail with ENOSYS. Some functions are actually named
12624 something starting with __ and the normal name is an alias. */
12625#if defined __stub_$ac_func || defined __stub___$ac_func
12626choke me
12627#endif
12628
12629int
12630main ()
12631{
12632return $ac_func ();
12633 ;
12634 return 0;
12635}
12636_ACEOF
12637rm -f conftest.$ac_objext conftest$ac_exeext
12638if { (ac_try="$ac_link"
12639case "(($ac_try" in
12640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641 *) ac_try_echo=$ac_try;;
12642esac
12643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644 (eval "$ac_link") 2>conftest.er1
12645 ac_status=$?
12646 grep -v '^ *+' conftest.er1 >conftest.err
12647 rm -f conftest.er1
12648 cat conftest.err >&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12655esac
12656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (case "(($ac_try" in
12663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12664 *) ac_try_echo=$ac_try;;
12665esac
12666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_try") 2>&5
12668 ac_status=$?
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); }; }; then
12671 eval "$as_ac_var=yes"
12672else
12673 echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
12676 eval "$as_ac_var=no"
12677fi
12678
12679rm -f core conftest.err conftest.$ac_objext \
12680 conftest$ac_exeext conftest.$ac_ext
12681fi
12682ac_res=`eval echo '${'$as_ac_var'}'`
12683 { echo "$as_me:$LINENO: result: $ac_res" >&5
12684echo "${ECHO_T}$ac_res" >&6; }
12685if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012686 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688_ACEOF
12689
12690fi
12691done
12692
12693
Douglas Gregor01746742009-05-11 18:05:52 +000012694
Reid Spencer7931a782004-12-27 06:15:02 +000012695if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012696 LLVMGCC="llvm-gcc${EXEEXT}"
12697 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012698 LLVMGCCCOMMAND="$LLVMGCC"
12699 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012700 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12701
12702 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12703
Reid Spencerc84492c2005-06-02 22:34:49 +000012704 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12705set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12708if test "${ac_cv_path_LLVMGCC+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012710else
12711 case $LLVMGCC in
12712 [\\/]* | ?:[\\/]*)
12713 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12714 ;;
12715 *)
12716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12717for as_dir in $PATH
12718do
12719 IFS=$as_save_IFS
12720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012721 for ac_exec_ext in '' $ac_executable_extensions; do
12722 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 +000012723 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012725 break 2
12726 fi
12727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012728done
Reid Spencera773bd52006-08-04 18:18:08 +000012729IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012730
Reid Spencer59473af2004-12-25 07:31:29 +000012731 ;;
12732esac
12733fi
12734LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012735if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012736 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12737echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012739 { echo "$as_me:$LINENO: result: no" >&5
12740echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012741fi
12742
Reid Spencera773bd52006-08-04 18:18:08 +000012743
Reid Spencerc84492c2005-06-02 22:34:49 +000012744 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12745set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12748if test "${ac_cv_path_LLVMGXX+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012750else
12751 case $LLVMGXX in
12752 [\\/]* | ?:[\\/]*)
12753 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12754 ;;
12755 *)
12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757for as_dir in $PATH
12758do
12759 IFS=$as_save_IFS
12760 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012761 for ac_exec_ext in '' $ac_executable_extensions; do
12762 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 +000012763 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012765 break 2
12766 fi
12767done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012768done
Reid Spencera773bd52006-08-04 18:18:08 +000012769IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012770
Reid Spencer59473af2004-12-25 07:31:29 +000012771 ;;
12772esac
12773fi
12774LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012775if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012776 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12777echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012779 { echo "$as_me:$LINENO: result: no" >&5
12780echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012781fi
12782
Reid Spencera773bd52006-08-04 18:18:08 +000012783
Reid Spencer59473af2004-12-25 07:31:29 +000012784else
Devang Patel5d28b882007-12-04 22:54:47 +000012785 if test -z "$LLVMGCC"; then
12786 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012787 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012788 fi
12789 if test -z "$LLVMGXX"; then
12790 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012791 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012792 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012793
Reid Spencer59473af2004-12-25 07:31:29 +000012794 LLVMGCC=$LLVMGCC
12795
12796 LLVMGXX=$LLVMGXX
12797
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012798 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12799
12800 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12801
Reid Spencer59473af2004-12-25 07:31:29 +000012802fi
12803
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012805{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12806echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012807
Reid Spencer86901802004-12-08 23:07:27 +000012808ICC=no
12809IXX=no
12810case $CC in
12811 icc*|icpc*)
12812 ICC=yes
12813 IXX=yes
12814 ;;
12815 *)
12816 ;;
12817esac
12818
Duraid Madina937c60a2006-02-15 07:57:42 +000012819if test "$GCC" != "yes" && test "$ICC" != "yes"
12820then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012821 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12822echo "$as_me: error: gcc|icc required but not found" >&2;}
12823 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012824fi
12825
12826if test "$GXX" != "yes" && test "$IXX" != "yes"
12827then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12829echo "$as_me: error: g++|icc required but not found" >&2;}
12830 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012831fi
12832
Reid Spencer86901802004-12-08 23:07:27 +000012833if test "$GCC" = "yes"
12834then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012835 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012836#if !defined(__GNUC__) || __GNUC__ < 3
12837#error Unsupported GCC version
12838#endif
12839
12840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012841rm -f conftest.$ac_objext
12842if { (ac_try="$ac_compile"
12843case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_compile") 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } &&
12855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12856 { (case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859esac
12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_try") 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (case "(($ac_try" in
12867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868 *) ac_try_echo=$ac_try;;
12869esac
12870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871 (eval "$ac_try") 2>&5
12872 ac_status=$?
12873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874 (exit $ac_status); }; }; then
12875 :
Chris Lattner399c7c72008-02-05 19:43:53 +000012876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012877 echo "$as_me: failed program was:" >&5
12878sed 's/^/| /' conftest.$ac_ext >&5
12879
12880 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12881echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12882 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000012883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012884
Chris Lattner399c7c72008-02-05 19:43:53 +000012885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012886fi
12887
12888if test -z "$llvm_cv_gnu_make_command"
12889then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012890 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12891echo "$as_me: error: GNU Make required but not found" >&2;}
12892 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012893fi
12894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012895{ echo "$as_me:$LINENO: result: ok" >&5
12896echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012898{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
12899echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012900NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12901
12902NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12903
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012904{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12905echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000012906
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000012907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012908
12909{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
12910echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12911if test "${ac_cv_lib_m_sin+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000012913else
12914 ac_check_lib_save_LIBS=$LIBS
12915LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012916cat >conftest.$ac_ext <<_ACEOF
12917/* confdefs.h. */
12918_ACEOF
12919cat confdefs.h >>conftest.$ac_ext
12920cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000012921/* end confdefs.h. */
12922
Reid Spencera773bd52006-08-04 18:18:08 +000012923/* Override any GCC internal prototype to avoid an error.
12924 Use char because int might match the return type of a GCC
12925 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000012926#ifdef __cplusplus
12927extern "C"
12928#endif
Reid Spencer3484a992006-01-19 08:31:08 +000012929char sin ();
12930int
12931main ()
12932{
Reid Spencera773bd52006-08-04 18:18:08 +000012933return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000012934 ;
12935 return 0;
12936}
12937_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012938rm -f conftest.$ac_objext conftest$ac_exeext
12939if { (ac_try="$ac_link"
12940case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943esac
12944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_link") 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } &&
12952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12953 { (case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_try") 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; } &&
12962 { ac_try='test -s conftest$ac_exeext'
12963 { (case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12966esac
12967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_try") 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000012972 ac_cv_lib_m_sin=yes
12973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012974 echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000012978fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012979
Bill Wendlingebcceee2009-04-18 11:20:33 +000012980rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012981 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000012982LIBS=$ac_check_lib_save_LIBS
12983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012984{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12985echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12986if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000012987 cat >>confdefs.h <<_ACEOF
12988#define HAVE_LIBM 1
12989_ACEOF
12990
12991 LIBS="-lm $LIBS"
12992
12993fi
12994
Jeff Cohen28783c32007-01-12 18:22:38 +000012995if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012996
12997{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12998echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12999if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013001else
13002 ac_check_lib_save_LIBS=$LIBS
13003LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013004cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013009/* end confdefs.h. */
13010
Reid Spencer48fdf912006-06-01 19:03:21 +000013011
Reid Spencer484fc8e2006-06-01 16:55:59 +000013012int
13013main ()
13014{
Reid Spencera773bd52006-08-04 18:18:08 +000013015return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013016 ;
13017 return 0;
13018}
13019_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013020rm -f conftest.$ac_objext conftest$ac_exeext
13021if { (ac_try="$ac_link"
13022case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025esac
13026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13027 (eval "$ac_link") 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13035 { (case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_try") 2>&5
13041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }; } &&
13044 { ac_try='test -s conftest$ac_exeext'
13045 { (case "(($ac_try" in
13046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047 *) ac_try_echo=$ac_try;;
13048esac
13049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13050 (eval "$ac_try") 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013054 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013055else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013061
Bill Wendlingebcceee2009-04-18 11:20:33 +000013062rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013063 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013064LIBS=$ac_check_lib_save_LIBS
13065fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013066{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13067echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13068if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013069 cat >>confdefs.h <<_ACEOF
13070#define HAVE_LIBIMAGEHLP 1
13071_ACEOF
13072
13073 LIBS="-limagehlp $LIBS"
13074
13075fi
13076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013077
13078{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13079echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13080if test "${ac_cv_lib_psapi_main+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013082else
13083 ac_check_lib_save_LIBS=$LIBS
13084LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085cat >conftest.$ac_ext <<_ACEOF
13086/* confdefs.h. */
13087_ACEOF
13088cat confdefs.h >>conftest.$ac_ext
13089cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013090/* end confdefs.h. */
13091
Reid Spencer48fdf912006-06-01 19:03:21 +000013092
Reid Spencer484fc8e2006-06-01 16:55:59 +000013093int
13094main ()
13095{
Reid Spencera773bd52006-08-04 18:18:08 +000013096return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013097 ;
13098 return 0;
13099}
13100_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013101rm -f conftest.$ac_objext conftest$ac_exeext
13102if { (ac_try="$ac_link"
13103case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106esac
13107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_link") 2>conftest.er1
13109 ac_status=$?
13110 grep -v '^ *+' conftest.er1 >conftest.err
13111 rm -f conftest.er1
13112 cat conftest.err >&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } &&
13115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13116 { (case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119esac
13120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; } &&
13125 { ac_try='test -s conftest$ac_exeext'
13126 { (case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13129esac
13130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_try") 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013135 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013136else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013137 echo "$as_me: failed program was:" >&5
13138sed 's/^/| /' conftest.$ac_ext >&5
13139
13140 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013142
Bill Wendlingebcceee2009-04-18 11:20:33 +000013143rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013144 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013145LIBS=$ac_check_lib_save_LIBS
13146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013147{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13148echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13149if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013150 cat >>confdefs.h <<_ACEOF
13151#define HAVE_LIBPSAPI 1
13152_ACEOF
13153
13154 LIBS="-lpsapi $LIBS"
13155
13156fi
13157
13158fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013160{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13161echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13162if test "${ac_cv_search_dlopen+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013164else
13165 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013166cat >conftest.$ac_ext <<_ACEOF
13167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013171/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013172
Reid Spencera773bd52006-08-04 18:18:08 +000013173/* Override any GCC internal prototype to avoid an error.
13174 Use char because int might match the return type of a GCC
13175 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013176#ifdef __cplusplus
13177extern "C"
13178#endif
John Criswell7a73b802003-06-30 21:59:07 +000013179char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013180int
13181main ()
13182{
Reid Spencera773bd52006-08-04 18:18:08 +000013183return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013184 ;
13185 return 0;
13186}
13187_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013188for ac_lib in '' dl; do
13189 if test -z "$ac_lib"; then
13190 ac_res="none required"
13191 else
13192 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013194 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195 rm -f conftest.$ac_objext conftest$ac_exeext
13196if { (ac_try="$ac_link"
13197case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
13203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213esac
13214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_try") 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013229 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230else
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
13234
John Criswell7a73b802003-06-30 21:59:07 +000013235fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013236
Bill Wendlingebcceee2009-04-18 11:20:33 +000013237rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013238 conftest$ac_exeext
13239 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013240 break
John Criswell7a73b802003-06-30 21:59:07 +000013241fi
Reid Spencera773bd52006-08-04 18:18:08 +000013242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013243if test "${ac_cv_search_dlopen+set}" = set; then
13244 :
Reid Spencera773bd52006-08-04 18:18:08 +000013245else
13246 ac_cv_search_dlopen=no
13247fi
13248rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013249LIBS=$ac_func_search_save_LIBS
13250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013251{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13252echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013253ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013254if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013257cat >>confdefs.h <<\_ACEOF
13258#define HAVE_DLOPEN 1
13259_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013260
13261else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13263echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013264fi
13265
13266
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013267if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13269echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13270if test "${ac_cv_search_ffi_call+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013272else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013273 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274cat >conftest.$ac_ext <<_ACEOF
13275/* confdefs.h. */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013279/* end confdefs.h. */
13280
13281/* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13284#ifdef __cplusplus
13285extern "C"
13286#endif
13287char ffi_call ();
13288int
13289main ()
13290{
13291return ffi_call ();
13292 ;
13293 return 0;
13294}
13295_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013296for ac_lib in '' ffi; do
13297 if test -z "$ac_lib"; then
13298 ac_res="none required"
13299 else
13300 ac_res=-l$ac_lib
13301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13302 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303 rm -f conftest.$ac_objext conftest$ac_exeext
13304if { (ac_try="$ac_link"
13305case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_link") 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321esac
13322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13324 ac_status=$?
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; } &&
13327 { ac_try='test -s conftest$ac_exeext'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13334 ac_status=$?
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013337 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013338else
13339 echo "$as_me: failed program was:" >&5
13340sed 's/^/| /' conftest.$ac_ext >&5
13341
13342
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013344
Bill Wendlingebcceee2009-04-18 11:20:33 +000013345rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013346 conftest$ac_exeext
13347 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013348 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013349fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013350done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013351if test "${ac_cv_search_ffi_call+set}" = set; then
13352 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013353else
13354 ac_cv_search_ffi_call=no
13355fi
13356rm conftest.$ac_ext
13357LIBS=$ac_func_search_save_LIBS
13358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013359{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13360echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013361ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013362if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013365cat >>confdefs.h <<\_ACEOF
13366#define HAVE_FFI_CALL 1
13367_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013368
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013369else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013370 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13371echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13372 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013373fi
13374
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013375fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013377{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13378echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13379if test "${ac_cv_search_mallinfo+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013381else
13382 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013383cat >conftest.$ac_ext <<_ACEOF
13384/* confdefs.h. */
13385_ACEOF
13386cat confdefs.h >>conftest.$ac_ext
13387cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013389
Reid Spencera773bd52006-08-04 18:18:08 +000013390/* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013393#ifdef __cplusplus
13394extern "C"
13395#endif
John Criswell7a73b802003-06-30 21:59:07 +000013396char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013397int
13398main ()
13399{
Reid Spencera773bd52006-08-04 18:18:08 +000013400return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013401 ;
13402 return 0;
13403}
13404_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013405for ac_lib in '' malloc; do
13406 if test -z "$ac_lib"; then
13407 ac_res="none required"
13408 else
13409 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013411 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412 rm -f conftest.$ac_objext conftest$ac_exeext
13413if { (ac_try="$ac_link"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013446 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013447else
13448 echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
13450
13451
John Criswell7a73b802003-06-30 21:59:07 +000013452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453
Bill Wendlingebcceee2009-04-18 11:20:33 +000013454rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013455 conftest$ac_exeext
13456 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013457 break
John Criswell7a73b802003-06-30 21:59:07 +000013458fi
Reid Spencera773bd52006-08-04 18:18:08 +000013459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013460if test "${ac_cv_search_mallinfo+set}" = set; then
13461 :
Reid Spencera773bd52006-08-04 18:18:08 +000013462else
13463 ac_cv_search_mallinfo=no
13464fi
13465rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013466LIBS=$ac_func_search_save_LIBS
13467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013468{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13469echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013470ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013471if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013474cat >>confdefs.h <<\_ACEOF
13475#define HAVE_MALLINFO 1
13476_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013477
13478fi
13479
13480
Reid Spencer0a262ba2005-08-24 10:07:20 +000013481if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013482
13483{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13484echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13485if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13486 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013487else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013488 ac_check_lib_save_LIBS=$LIBS
13489LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013490cat >conftest.$ac_ext <<_ACEOF
13491/* confdefs.h. */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013495/* end confdefs.h. */
13496
Reid Spencera773bd52006-08-04 18:18:08 +000013497/* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013500#ifdef __cplusplus
13501extern "C"
13502#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013503char pthread_mutex_init ();
13504int
13505main ()
13506{
Reid Spencera773bd52006-08-04 18:18:08 +000013507return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013508 ;
13509 return 0;
13510}
13511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013512rm -f conftest.$ac_objext conftest$ac_exeext
13513if { (ac_try="$ac_link"
13514case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517esac
13518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13519 (eval "$ac_link") 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13527 { (case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530esac
13531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_try") 2>&5
13533 ac_status=$?
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); }; } &&
13536 { ac_try='test -s conftest$ac_exeext'
13537 { (case "(($ac_try" in
13538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539 *) ac_try_echo=$ac_try;;
13540esac
13541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542 (eval "$ac_try") 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013546 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013548 echo "$as_me: failed program was:" >&5
13549sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013552fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013553
Bill Wendlingebcceee2009-04-18 11:20:33 +000013554rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013556LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013558{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13559echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13560if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013561 cat >>confdefs.h <<_ACEOF
13562#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013563_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013564
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013565 LIBS="-lpthread $LIBS"
13566
Reid Spencer22177fe2005-07-12 15:24:20 +000013567fi
13568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013569 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13570echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13571if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13572 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013573else
13574 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013575cat >conftest.$ac_ext <<_ACEOF
13576/* confdefs.h. */
13577_ACEOF
13578cat confdefs.h >>conftest.$ac_ext
13579cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013580/* end confdefs.h. */
13581
Reid Spencera773bd52006-08-04 18:18:08 +000013582/* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013585#ifdef __cplusplus
13586extern "C"
13587#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013588char pthread_mutex_lock ();
13589int
13590main ()
13591{
Reid Spencera773bd52006-08-04 18:18:08 +000013592return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013593 ;
13594 return 0;
13595}
13596_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013597for ac_lib in '' pthread; do
13598 if test -z "$ac_lib"; then
13599 ac_res="none required"
13600 else
13601 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013603 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013604 rm -f conftest.$ac_objext conftest$ac_exeext
13605if { (ac_try="$ac_link"
13606case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609esac
13610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_link") 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } &&
13618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13619 { (case "(($ac_try" in
13620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13621 *) ac_try_echo=$ac_try;;
13622esac
13623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13624 (eval "$ac_try") 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); }; } &&
13628 { ac_try='test -s conftest$ac_exeext'
13629 { (case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13632esac
13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_try") 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013638 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013639else
13640 echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
13643
Brian Gaeke5f268f72003-12-05 19:29:01 +000013644fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013645
Bill Wendlingebcceee2009-04-18 11:20:33 +000013646rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013647 conftest$ac_exeext
13648 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013649 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013650fi
Reid Spencera773bd52006-08-04 18:18:08 +000013651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013652if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13653 :
Reid Spencera773bd52006-08-04 18:18:08 +000013654else
13655 ac_cv_search_pthread_mutex_lock=no
13656fi
13657rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013658LIBS=$ac_func_search_save_LIBS
13659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013660{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13661echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013662ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013663if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666cat >>confdefs.h <<\_ACEOF
13667#define HAVE_PTHREAD_MUTEX_LOCK 1
13668_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013669
13670fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013672 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13673echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13674if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013676else
13677 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013678cat >conftest.$ac_ext <<_ACEOF
13679/* confdefs.h. */
13680_ACEOF
13681cat confdefs.h >>conftest.$ac_ext
13682cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013683/* end confdefs.h. */
13684
13685/* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13688#ifdef __cplusplus
13689extern "C"
13690#endif
13691char pthread_rwlock_init ();
13692int
13693main ()
13694{
13695return pthread_rwlock_init ();
13696 ;
13697 return 0;
13698}
13699_ACEOF
13700for ac_lib in '' pthread; do
13701 if test -z "$ac_lib"; then
13702 ac_res="none required"
13703 else
13704 ac_res=-l$ac_lib
13705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13706 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013707 rm -f conftest.$ac_objext conftest$ac_exeext
13708if { (ac_try="$ac_link"
13709case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_link") 2>conftest.er1
13715 ac_status=$?
13716 grep -v '^ *+' conftest.er1 >conftest.err
13717 rm -f conftest.er1
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13722 { (case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13725esac
13726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_try") 2>&5
13728 ac_status=$?
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest$ac_exeext'
13732 { (case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735esac
13736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_try") 2>&5
13738 ac_status=$?
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013741 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013742else
13743 echo "$as_me: failed program was:" >&5
13744sed 's/^/| /' conftest.$ac_ext >&5
13745
13746
Owen Andersonde8aed22009-06-16 18:20:20 +000013747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013748
Owen Andersonde8aed22009-06-16 18:20:20 +000013749rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013750 conftest$ac_exeext
13751 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013752 break
13753fi
13754done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013755if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13756 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013757else
13758 ac_cv_search_pthread_rwlock_init=no
13759fi
13760rm conftest.$ac_ext
13761LIBS=$ac_func_search_save_LIBS
13762fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013763{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13764echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013765ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013766if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013769cat >>confdefs.h <<\_ACEOF
13770#define HAVE_PTHREAD_RWLOCK_INIT 1
13771_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013772
13773fi
13774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013775 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13776echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13777if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013779else
13780 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013781cat >conftest.$ac_ext <<_ACEOF
13782/* confdefs.h. */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013786/* end confdefs.h. */
13787
13788/* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13791#ifdef __cplusplus
13792extern "C"
13793#endif
13794char pthread_getspecific ();
13795int
13796main ()
13797{
13798return pthread_getspecific ();
13799 ;
13800 return 0;
13801}
13802_ACEOF
13803for ac_lib in '' pthread; do
13804 if test -z "$ac_lib"; then
13805 ac_res="none required"
13806 else
13807 ac_res=-l$ac_lib
13808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13809 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013810 rm -f conftest.$ac_objext conftest$ac_exeext
13811if { (ac_try="$ac_link"
13812case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815esac
13816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_link") 2>conftest.er1
13818 ac_status=$?
13819 grep -v '^ *+' conftest.er1 >conftest.err
13820 rm -f conftest.er1
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828esac
13829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest$ac_exeext'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13838esac
13839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013844 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013845else
13846 echo "$as_me: failed program was:" >&5
13847sed 's/^/| /' conftest.$ac_ext >&5
13848
13849
Owen Anderson27fcfe12009-06-25 23:10:26 +000013850fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013851
Owen Anderson27fcfe12009-06-25 23:10:26 +000013852rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013853 conftest$ac_exeext
13854 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013855 break
13856fi
13857done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13859 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013860else
13861 ac_cv_search_pthread_getspecific=no
13862fi
13863rm conftest.$ac_ext
13864LIBS=$ac_func_search_save_LIBS
13865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13867echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013868ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013869if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013872cat >>confdefs.h <<\_ACEOF
13873#define HAVE_PTHREAD_GETSPECIFIC 1
13874_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013875
13876fi
13877
Reid Spencer0a262ba2005-08-24 10:07:20 +000013878fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000013879
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013880
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013881# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013883 withval=$with_udis86;
13884 USE_UDIS86=1
13885
13886 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000013887 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013888 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13889 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013890
13891{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13892echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13893if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013895else
13896 ac_check_lib_save_LIBS=$LIBS
13897LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013898cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013903/* end confdefs.h. */
13904
13905/* Override any GCC internal prototype to avoid an error.
13906 Use char because int might match the return type of a GCC
13907 builtin and then its argument prototype would still apply. */
13908#ifdef __cplusplus
13909extern "C"
13910#endif
13911char ud_init ();
13912int
13913main ()
13914{
13915return ud_init ();
13916 ;
13917 return 0;
13918}
13919_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013920rm -f conftest.$ac_objext conftest$ac_exeext
13921if { (ac_try="$ac_link"
13922case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13925esac
13926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13927 (eval "$ac_link") 2>conftest.er1
13928 ac_status=$?
13929 grep -v '^ *+' conftest.er1 >conftest.err
13930 rm -f conftest.er1
13931 cat conftest.err >&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13935 { (case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938esac
13939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_try") 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; } &&
13944 { ac_try='test -s conftest$ac_exeext'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13948esac
13949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013954 ac_cv_lib_udis86_ud_init=yes
13955else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013956 echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
13959 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013961
Bill Wendlingebcceee2009-04-18 11:20:33 +000013962rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013963 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013964LIBS=$ac_check_lib_save_LIBS
13965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013966{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13967echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13968if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000013969 cat >>confdefs.h <<_ACEOF
13970#define HAVE_LIBUDIS86 1
13971_ACEOF
13972
13973 LIBS="-ludis86 $LIBS"
13974
13975else
13976
13977 echo "Error! You need to have libudis86 around."
13978 exit -1
13979
13980fi
13981
13982
13983else
13984 USE_UDIS86=0
13985
13986fi
13987
13988
13989cat >>confdefs.h <<_ACEOF
13990#define USE_UDIS86 $USE_UDIS86
13991_ACEOF
13992
13993
13994
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013995# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013996if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000013997 withval=$with_oprofile;
13998 USE_OPROFILE=1
13999
14000 case "$withval" in
14001 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014002 no) llvm_cv_oppath=
14003 USE_OPROFILE=0
14004 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014005 *) llvm_cv_oppath="${withval}/lib/oprofile"
14006 CPPFLAGS="-I${withval}/include";;
14007 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014008 if test -n "$llvm_cv_oppath" ; then
14009 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014010 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14011echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14012if test "${ac_cv_search_bfd_init+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014014else
14015 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016cat >conftest.$ac_ext <<_ACEOF
14017/* confdefs.h. */
14018_ACEOF
14019cat confdefs.h >>conftest.$ac_ext
14020cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014021/* end confdefs.h. */
14022
14023/* Override any GCC internal prototype to avoid an error.
14024 Use char because int might match the return type of a GCC
14025 builtin and then its argument prototype would still apply. */
14026#ifdef __cplusplus
14027extern "C"
14028#endif
14029char bfd_init ();
14030int
14031main ()
14032{
14033return bfd_init ();
14034 ;
14035 return 0;
14036}
14037_ACEOF
14038for ac_lib in '' bfd; do
14039 if test -z "$ac_lib"; then
14040 ac_res="none required"
14041 else
14042 ac_res=-l$ac_lib
14043 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14044 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014045 rm -f conftest.$ac_objext conftest$ac_exeext
14046if { (ac_try="$ac_link"
14047case "(($ac_try" in
14048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14049 *) ac_try_echo=$ac_try;;
14050esac
14051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14052 (eval "$ac_link") 2>conftest.er1
14053 ac_status=$?
14054 grep -v '^ *+' conftest.er1 >conftest.err
14055 rm -f conftest.er1
14056 cat conftest.err >&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); } &&
14059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14060 { (case "(($ac_try" in
14061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062 *) ac_try_echo=$ac_try;;
14063esac
14064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_try") 2>&5
14066 ac_status=$?
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); }; } &&
14069 { ac_try='test -s conftest$ac_exeext'
14070 { (case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073esac
14074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_try") 2>&5
14076 ac_status=$?
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014079 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014080else
14081 echo "$as_me: failed program was:" >&5
14082sed 's/^/| /' conftest.$ac_ext >&5
14083
14084
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014085fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014086
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014087rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014088 conftest$ac_exeext
14089 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014090 break
14091fi
14092done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014093if test "${ac_cv_search_bfd_init+set}" = set; then
14094 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014095else
14096 ac_cv_search_bfd_init=no
14097fi
14098rm conftest.$ac_ext
14099LIBS=$ac_func_search_save_LIBS
14100fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014101{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14102echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014103ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014104if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14106
14107fi
14108
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014109 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14110echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14111if test "${ac_cv_search_op_open_agent+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014113else
14114 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014115cat >conftest.$ac_ext <<_ACEOF
14116/* confdefs.h. */
14117_ACEOF
14118cat confdefs.h >>conftest.$ac_ext
14119cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014120/* end confdefs.h. */
14121
14122/* Override any GCC internal prototype to avoid an error.
14123 Use char because int might match the return type of a GCC
14124 builtin and then its argument prototype would still apply. */
14125#ifdef __cplusplus
14126extern "C"
14127#endif
14128char op_open_agent ();
14129int
14130main ()
14131{
14132return op_open_agent ();
14133 ;
14134 return 0;
14135}
14136_ACEOF
14137for ac_lib in '' opagent; do
14138 if test -z "$ac_lib"; then
14139 ac_res="none required"
14140 else
14141 ac_res=-l$ac_lib
14142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14143 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144 rm -f conftest.$ac_objext conftest$ac_exeext
14145if { (ac_try="$ac_link"
14146case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14149esac
14150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_link") 2>conftest.er1
14152 ac_status=$?
14153 grep -v '^ *+' conftest.er1 >conftest.err
14154 rm -f conftest.er1
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } &&
14158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162esac
14163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest$ac_exeext'
14169 { (case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14172esac
14173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_try") 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014178 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179else
14180 echo "$as_me: failed program was:" >&5
14181sed 's/^/| /' conftest.$ac_ext >&5
14182
14183
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014185
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014186rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014187 conftest$ac_exeext
14188 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014189 break
14190fi
14191done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014192if test "${ac_cv_search_op_open_agent+set}" = set; then
14193 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014194else
14195 ac_cv_search_op_open_agent=no
14196fi
14197rm conftest.$ac_ext
14198LIBS=$ac_func_search_save_LIBS
14199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014200{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14201echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014202ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014203if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014204 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14205
14206else
14207
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014208 echo "Error! You need to have libopagent around."
14209 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014210
14211fi
14212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014213 if test "${ac_cv_header_opagent_h+set}" = set; then
14214 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14215echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14216if test "${ac_cv_header_opagent_h+set}" = set; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14218fi
14219{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14220echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14221else
14222 # Is the header compilable?
14223{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14224echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14225cat >conftest.$ac_ext <<_ACEOF
14226/* confdefs.h. */
14227_ACEOF
14228cat confdefs.h >>conftest.$ac_ext
14229cat >>conftest.$ac_ext <<_ACEOF
14230/* end confdefs.h. */
14231$ac_includes_default
14232#include <opagent.h>
14233_ACEOF
14234rm -f conftest.$ac_objext
14235if { (ac_try="$ac_compile"
14236case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_compile") 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14249 { (case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252esac
14253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_try") 2>&5
14255 ac_status=$?
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); }; } &&
14258 { ac_try='test -s conftest.$ac_objext'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262esac
14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_header_compiler=yes
14269else
14270 echo "$as_me: failed program was:" >&5
14271sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014272
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014273 ac_header_compiler=no
14274fi
14275
14276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14278echo "${ECHO_T}$ac_header_compiler" >&6; }
14279
14280# Is the header present?
14281{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14282echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14283cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h. */
14289#include <opagent.h>
14290_ACEOF
14291if { (ac_try="$ac_cpp conftest.$ac_ext"
14292case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14295esac
14296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } >/dev/null; then
14304 if test -s conftest.err; then
14305 ac_cpp_err=$ac_c_preproc_warn_flag
14306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14307 else
14308 ac_cpp_err=
14309 fi
14310else
14311 ac_cpp_err=yes
14312fi
14313if test -z "$ac_cpp_err"; then
14314 ac_header_preproc=yes
14315else
14316 echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
14318
14319 ac_header_preproc=no
14320fi
14321
14322rm -f conftest.err conftest.$ac_ext
14323{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14324echo "${ECHO_T}$ac_header_preproc" >&6; }
14325
14326# So? What about this header?
14327case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14328 yes:no: )
14329 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14330echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14332echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14333 ac_header_preproc=yes
14334 ;;
14335 no:yes:* )
14336 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14337echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14338 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14339echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14340 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14341echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14342 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14343echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14344 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14345echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14346 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14347echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14348 ( cat <<\_ASBOX
14349## ----------------------------------- ##
14350## Report this to llvmbugs@cs.uiuc.edu ##
14351## ----------------------------------- ##
14352_ASBOX
14353 ) | sed "s/^/$as_me: WARNING: /" >&2
14354 ;;
14355esac
14356{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14357echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14358if test "${ac_cv_header_opagent_h+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
14361 ac_cv_header_opagent_h=$ac_header_preproc
14362fi
14363{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14364echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14365
14366fi
14367if test $ac_cv_header_opagent_h = yes; then
14368 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014369else
14370
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014371 echo "Error! You need to have opagent.h around."
14372 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014373
14374fi
14375
14376
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014377 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014378
14379else
14380
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014381 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014382
14383
14384fi
14385
14386
14387cat >>confdefs.h <<_ACEOF
14388#define USE_OPROFILE $USE_OPROFILE
14389_ACEOF
14390
14391
14392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014393
14394
14395
14396
14397
Reid Spencer59473af2004-12-25 07:31:29 +000014398ac_header_dirent=no
14399for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014400 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14401{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14402echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014405else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014406 cat >conftest.$ac_ext <<_ACEOF
14407/* confdefs.h. */
14408_ACEOF
14409cat confdefs.h >>conftest.$ac_ext
14410cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014411/* end confdefs.h. */
14412#include <sys/types.h>
14413#include <$ac_hdr>
14414
14415int
14416main ()
14417{
14418if ((DIR *) 0)
14419return 0;
14420 ;
14421 return 0;
14422}
14423_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014424rm -f conftest.$ac_objext
14425if { (ac_try="$ac_compile"
14426case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14429esac
14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_compile") 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
14438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14439 { (case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14442esac
14443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_try") 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452esac
14453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14454 (eval "$ac_try") 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014458 eval "$as_ac_Header=yes"
14459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014460 echo "$as_me: failed program was:" >&5
14461sed 's/^/| /' conftest.$ac_ext >&5
14462
14463 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465
Reid Spencera773bd52006-08-04 18:18:08 +000014466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014468ac_res=`eval echo '${'$as_ac_Header'}'`
14469 { echo "$as_me:$LINENO: result: $ac_res" >&5
14470echo "${ECHO_T}$ac_res" >&6; }
14471if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014472 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014473#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014474_ACEOF
14475
14476ac_header_dirent=$ac_hdr; break
14477fi
14478
14479done
14480# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14481if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014482 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14483echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14484if test "${ac_cv_search_opendir+set}" = set; then
14485 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014486else
14487 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014488cat >conftest.$ac_ext <<_ACEOF
14489/* confdefs.h. */
14490_ACEOF
14491cat confdefs.h >>conftest.$ac_ext
14492cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014493/* end confdefs.h. */
14494
Reid Spencera773bd52006-08-04 18:18:08 +000014495/* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014498#ifdef __cplusplus
14499extern "C"
14500#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014501char opendir ();
14502int
14503main ()
14504{
Reid Spencera773bd52006-08-04 18:18:08 +000014505return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014506 ;
14507 return 0;
14508}
14509_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014510for ac_lib in '' dir; do
14511 if test -z "$ac_lib"; then
14512 ac_res="none required"
14513 else
14514 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014516 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014517 rm -f conftest.$ac_objext conftest$ac_exeext
14518if { (ac_try="$ac_link"
14519case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522esac
14523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_link") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } &&
14531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14532 { (case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14535esac
14536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_try") 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); }; } &&
14541 { ac_try='test -s conftest$ac_exeext'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14545esac
14546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014551 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014552else
14553 echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556
Reid Spencer59473af2004-12-25 07:31:29 +000014557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558
Bill Wendlingebcceee2009-04-18 11:20:33 +000014559rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014560 conftest$ac_exeext
14561 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014562 break
Reid Spencer59473af2004-12-25 07:31:29 +000014563fi
Reid Spencera773bd52006-08-04 18:18:08 +000014564done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014565if test "${ac_cv_search_opendir+set}" = set; then
14566 :
Reid Spencera773bd52006-08-04 18:18:08 +000014567else
14568 ac_cv_search_opendir=no
14569fi
14570rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014571LIBS=$ac_func_search_save_LIBS
14572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014573{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14574echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014575ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014578
14579fi
14580
14581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014582 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14583echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14584if test "${ac_cv_search_opendir+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014586else
14587 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014588cat >conftest.$ac_ext <<_ACEOF
14589/* confdefs.h. */
14590_ACEOF
14591cat confdefs.h >>conftest.$ac_ext
14592cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014593/* end confdefs.h. */
14594
Reid Spencera773bd52006-08-04 18:18:08 +000014595/* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014598#ifdef __cplusplus
14599extern "C"
14600#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014601char opendir ();
14602int
14603main ()
14604{
Reid Spencera773bd52006-08-04 18:18:08 +000014605return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014606 ;
14607 return 0;
14608}
14609_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014610for ac_lib in '' x; do
14611 if test -z "$ac_lib"; then
14612 ac_res="none required"
14613 else
14614 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014616 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014617 rm -f conftest.$ac_objext conftest$ac_exeext
14618if { (ac_try="$ac_link"
14619case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622esac
14623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_link") 2>conftest.er1
14625 ac_status=$?
14626 grep -v '^ *+' conftest.er1 >conftest.err
14627 rm -f conftest.er1
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14632 { (case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635esac
14636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_try") 2>&5
14638 ac_status=$?
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; } &&
14641 { ac_try='test -s conftest$ac_exeext'
14642 { (case "(($ac_try" in
14643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14645esac
14646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_try") 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014651 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014652else
14653 echo "$as_me: failed program was:" >&5
14654sed 's/^/| /' conftest.$ac_ext >&5
14655
14656
Reid Spencer59473af2004-12-25 07:31:29 +000014657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014658
Bill Wendlingebcceee2009-04-18 11:20:33 +000014659rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014660 conftest$ac_exeext
14661 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014662 break
Reid Spencer59473af2004-12-25 07:31:29 +000014663fi
Reid Spencera773bd52006-08-04 18:18:08 +000014664done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014665if test "${ac_cv_search_opendir+set}" = set; then
14666 :
Reid Spencera773bd52006-08-04 18:18:08 +000014667else
14668 ac_cv_search_opendir=no
14669fi
14670rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014671LIBS=$ac_func_search_save_LIBS
14672fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014673{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14674echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014675ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014676if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014678
14679fi
14680
14681fi
14682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014683{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14684echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14685if test "${ac_cv_header_mmap_anon+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014687else
14688 ac_ext=c
14689ac_cpp='$CPP $CPPFLAGS'
14690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14692ac_compiler_gnu=$ac_cv_c_compiler_gnu
14693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014694 cat >conftest.$ac_ext <<_ACEOF
14695/* confdefs.h. */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014699/* end confdefs.h. */
14700#include <sys/mman.h>
14701#include <unistd.h>
14702#include <fcntl.h>
14703int
14704main ()
14705{
14706mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14707 ;
14708 return 0;
14709}
14710_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014711rm -f conftest.$ac_objext
14712if { (ac_try="$ac_compile"
14713case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716esac
14717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_compile") 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729esac
14730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739esac
14740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_try") 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014745 ac_cv_header_mmap_anon=yes
14746else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014747 echo "$as_me: failed program was:" >&5
14748sed 's/^/| /' conftest.$ac_ext >&5
14749
14750 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014751fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014752
Reid Spencera773bd52006-08-04 18:18:08 +000014753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014754 ac_ext=c
14755ac_cpp='$CPP $CPPFLAGS'
14756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14758ac_compiler_gnu=$ac_cv_c_compiler_gnu
14759
14760
14761fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014762{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14763echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014764if test "$ac_cv_header_mmap_anon" = yes; then
14765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014766cat >>confdefs.h <<\_ACEOF
14767#define HAVE_MMAP_ANONYMOUS 1
14768_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014769
14770fi
14771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014772{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14773echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14774if test "${ac_cv_header_stat_broken+set}" = set; then
14775 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014777 cat >conftest.$ac_ext <<_ACEOF
14778/* confdefs.h. */
14779_ACEOF
14780cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014782/* end confdefs.h. */
14783#include <sys/types.h>
14784#include <sys/stat.h>
14785
Reid Spencera773bd52006-08-04 18:18:08 +000014786#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014787# if S_ISBLK (S_IFDIR)
14788You lose.
14789# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014790#endif
14791
Reid Spencera773bd52006-08-04 18:18:08 +000014792#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014793# if S_ISBLK (S_IFCHR)
14794You lose.
14795# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014796#endif
14797
Reid Spencera773bd52006-08-04 18:18:08 +000014798#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014799# if S_ISLNK (S_IFREG)
14800You lose.
14801# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014802#endif
14803
Reid Spencera773bd52006-08-04 18:18:08 +000014804#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014805# if S_ISSOCK (S_IFREG)
14806You lose.
14807# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014808#endif
14809
14810_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14812 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014813 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014814else
14815 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014816fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014817rm -f conftest*
14818
Reid Spencer59473af2004-12-25 07:31:29 +000014819fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014820{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14821echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014822if test $ac_cv_header_stat_broken = yes; then
14823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014824cat >>confdefs.h <<\_ACEOF
14825#define STAT_MACROS_BROKEN 1
14826_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014827
14828fi
14829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014830{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14831echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14832if test "${ac_cv_header_stdc+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014834else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014835 cat >conftest.$ac_ext <<_ACEOF
14836/* confdefs.h. */
14837_ACEOF
14838cat confdefs.h >>conftest.$ac_ext
14839cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014841#include <stdlib.h>
14842#include <stdarg.h>
14843#include <string.h>
14844#include <float.h>
14845
John Criswell0c38eaf2003-09-10 15:17:25 +000014846int
14847main ()
14848{
14849
14850 ;
14851 return 0;
14852}
John Criswell7a73b802003-06-30 21:59:07 +000014853_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014854rm -f conftest.$ac_objext
14855if { (ac_try="$ac_compile"
14856case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859esac
14860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_compile") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872esac
14873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14882esac
14883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014888 ac_cv_header_stdc=yes
14889else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014890 echo "$as_me: failed program was:" >&5
14891sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000014894fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014895
Reid Spencera773bd52006-08-04 18:18:08 +000014896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014897
14898if test $ac_cv_header_stdc = yes; then
14899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014900 cat >conftest.$ac_ext <<_ACEOF
14901/* confdefs.h. */
14902_ACEOF
14903cat confdefs.h >>conftest.$ac_ext
14904cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014906#include <string.h>
14907
14908_ACEOF
14909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014910 $EGREP "memchr" >/dev/null 2>&1; then
14911 :
John Criswell7a73b802003-06-30 21:59:07 +000014912else
14913 ac_cv_header_stdc=no
14914fi
14915rm -f conftest*
14916
14917fi
14918
14919if test $ac_cv_header_stdc = yes; then
14920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014921 cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014927#include <stdlib.h>
14928
14929_ACEOF
14930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014931 $EGREP "free" >/dev/null 2>&1; then
14932 :
John Criswell7a73b802003-06-30 21:59:07 +000014933else
14934 ac_cv_header_stdc=no
14935fi
14936rm -f conftest*
14937
14938fi
14939
14940if test $ac_cv_header_stdc = yes; then
14941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014942 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000014943 :
14944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945 cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014951#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000014952#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000014953#if ((' ' & 0x0FF) == 0x020)
14954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14956#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014957# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000014958 (('a' <= (c) && (c) <= 'i') \
14959 || ('j' <= (c) && (c) <= 'r') \
14960 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000014961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14962#endif
14963
14964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14965int
14966main ()
14967{
14968 int i;
14969 for (i = 0; i < 256; i++)
14970 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000014971 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000014972 return 2;
14973 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000014974}
14975_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014976rm -f conftest$ac_exeext
14977if { (ac_try="$ac_link"
14978case "(($ac_try" in
14979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980 *) ac_try_echo=$ac_try;;
14981esac
14982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>&5
14984 ac_status=$?
14985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 :
John Criswell7a73b802003-06-30 21:59:07 +000014997else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014998 echo "$as_me: program exited with status $ac_status" >&5
14999echo "$as_me: failed program was:" >&5
15000sed 's/^/| /' conftest.$ac_ext >&5
15001
15002( exit $ac_status )
15003ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015005rm -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 +000015006fi
15007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015008
John Criswell7a73b802003-06-30 21:59:07 +000015009fi
15010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015011{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15012echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015013if test $ac_cv_header_stdc = yes; then
15014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015015cat >>confdefs.h <<\_ACEOF
15016#define STDC_HEADERS 1
15017_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015018
15019fi
15020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015021{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15022echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15023if test "${ac_cv_header_sys_wait_h+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015025else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015026 cat >conftest.$ac_ext <<_ACEOF
15027/* confdefs.h. */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015032#include <sys/types.h>
15033#include <sys/wait.h>
15034#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015035# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015036#endif
15037#ifndef WIFEXITED
15038# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15039#endif
15040
John Criswell7a73b802003-06-30 21:59:07 +000015041int
15042main ()
15043{
15044 int s;
15045 wait (&s);
15046 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15047 ;
15048 return 0;
15049}
15050_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051rm -f conftest.$ac_objext
15052if { (ac_try="$ac_compile"
15053case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15056esac
15057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15066 { (case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15069esac
15070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_try") 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079esac
15080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015085 ac_cv_header_sys_wait_h=yes
15086else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015087 echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015092
Reid Spencera773bd52006-08-04 18:18:08 +000015093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015095{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15096echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015097if test $ac_cv_header_sys_wait_h = yes; then
15098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015099cat >>confdefs.h <<\_ACEOF
15100#define HAVE_SYS_WAIT_H 1
15101_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015102
15103fi
15104
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015105{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15106echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15107if test "${ac_cv_header_time+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015109else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015110 cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015115/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015116#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015117#include <sys/time.h>
15118#include <time.h>
15119
15120int
15121main ()
15122{
15123if ((struct tm *) 0)
15124return 0;
15125 ;
15126 return 0;
15127}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015128_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015129rm -f conftest.$ac_objext
15130if { (ac_try="$ac_compile"
15131case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_compile") 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15144 { (case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147esac
15148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149 (eval "$ac_try") 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157esac
15158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_try") 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015163 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015164else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015165 echo "$as_me: failed program was:" >&5
15166sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015170
Reid Spencera773bd52006-08-04 18:18:08 +000015171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015172fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015173{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15174echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015175if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015177cat >>confdefs.h <<\_ACEOF
15178#define TIME_WITH_SYS_TIME 1
15179_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015180
15181fi
15182
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015183
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015184
15185
15186
15187
15188
15189
Reid Spencer59473af2004-12-25 07:31:29 +000015190for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015191do
15192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15198fi
15199ac_res=`eval echo '${'$as_ac_Header'}'`
15200 { echo "$as_me:$LINENO: result: $ac_res" >&5
15201echo "${ECHO_T}$ac_res" >&6; }
15202else
15203 # Is the header compilable?
15204{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15206cat >conftest.$ac_ext <<_ACEOF
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212$ac_includes_default
15213#include <$ac_header>
15214_ACEOF
15215rm -f conftest.$ac_objext
15216if { (ac_try="$ac_compile"
15217case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220esac
15221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233esac
15234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15243esac
15244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_try") 2>&5
15246 ac_status=$?
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 ac_header_compiler=yes
15250else
15251 echo "$as_me: failed program was:" >&5
15252sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 ac_header_compiler=no
15255fi
15256
15257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15258{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15259echo "${ECHO_T}$ac_header_compiler" >&6; }
15260
15261# Is the header present?
15262{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15263echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15264cat >conftest.$ac_ext <<_ACEOF
15265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
15270#include <$ac_header>
15271_ACEOF
15272if { (ac_try="$ac_cpp conftest.$ac_ext"
15273case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15279 ac_status=$?
15280 grep -v '^ *+' conftest.er1 >conftest.err
15281 rm -f conftest.er1
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); } >/dev/null; then
15285 if test -s conftest.err; then
15286 ac_cpp_err=$ac_c_preproc_warn_flag
15287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15288 else
15289 ac_cpp_err=
15290 fi
15291else
15292 ac_cpp_err=yes
15293fi
15294if test -z "$ac_cpp_err"; then
15295 ac_header_preproc=yes
15296else
15297 echo "$as_me: failed program was:" >&5
15298sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 ac_header_preproc=no
15301fi
15302
15303rm -f conftest.err conftest.$ac_ext
15304{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15305echo "${ECHO_T}$ac_header_preproc" >&6; }
15306
15307# So? What about this header?
15308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15309 yes:no: )
15310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15311echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15313echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15314 ac_header_preproc=yes
15315 ;;
15316 no:yes:* )
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15318echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15320echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15322echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15324echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15326echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15328echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15329 ( cat <<\_ASBOX
15330## ----------------------------------- ##
15331## Report this to llvmbugs@cs.uiuc.edu ##
15332## ----------------------------------- ##
15333_ASBOX
15334 ) | sed "s/^/$as_me: WARNING: /" >&2
15335 ;;
15336esac
15337{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15340 echo $ECHO_N "(cached) $ECHO_C" >&6
15341else
15342 eval "$as_ac_Header=\$ac_header_preproc"
15343fi
15344ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result: $ac_res" >&5
15346echo "${ECHO_T}$ac_res" >&6; }
15347
15348fi
15349if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015350 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015352_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015353
15354fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015355
Reid Spencer59473af2004-12-25 07:31:29 +000015356done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015357
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015358
15359
15360
15361
15362
15363
Douglas Gregor071d73d2009-05-18 17:21:34 +000015364for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015365do
15366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372fi
15373ac_res=`eval echo '${'$as_ac_Header'}'`
15374 { echo "$as_me:$LINENO: result: $ac_res" >&5
15375echo "${ECHO_T}$ac_res" >&6; }
15376else
15377 # Is the header compilable?
15378{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15380cat >conftest.$ac_ext <<_ACEOF
15381/* confdefs.h. */
15382_ACEOF
15383cat confdefs.h >>conftest.$ac_ext
15384cat >>conftest.$ac_ext <<_ACEOF
15385/* end confdefs.h. */
15386$ac_includes_default
15387#include <$ac_header>
15388_ACEOF
15389rm -f conftest.$ac_objext
15390if { (ac_try="$ac_compile"
15391case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394esac
15395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_compile") 2>conftest.er1
15397 ac_status=$?
15398 grep -v '^ *+' conftest.er1 >conftest.err
15399 rm -f conftest.er1
15400 cat conftest.err >&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } &&
15403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15404 { (case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15407esac
15408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_try") 2>&5
15410 ac_status=$?
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); }; } &&
15413 { ac_try='test -s conftest.$ac_objext'
15414 { (case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417esac
15418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_try") 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 ac_header_compiler=yes
15424else
15425 echo "$as_me: failed program was:" >&5
15426sed 's/^/| /' conftest.$ac_ext >&5
15427
15428 ac_header_compiler=no
15429fi
15430
15431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15432{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15433echo "${ECHO_T}$ac_header_compiler" >&6; }
15434
15435# Is the header present?
15436{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15438cat >conftest.$ac_ext <<_ACEOF
15439/* confdefs.h. */
15440_ACEOF
15441cat confdefs.h >>conftest.$ac_ext
15442cat >>conftest.$ac_ext <<_ACEOF
15443/* end confdefs.h. */
15444#include <$ac_header>
15445_ACEOF
15446if { (ac_try="$ac_cpp conftest.$ac_ext"
15447case "(($ac_try" in
15448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15449 *) ac_try_echo=$ac_try;;
15450esac
15451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15453 ac_status=$?
15454 grep -v '^ *+' conftest.er1 >conftest.err
15455 rm -f conftest.er1
15456 cat conftest.err >&5
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } >/dev/null; then
15459 if test -s conftest.err; then
15460 ac_cpp_err=$ac_c_preproc_warn_flag
15461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15462 else
15463 ac_cpp_err=
15464 fi
15465else
15466 ac_cpp_err=yes
15467fi
15468if test -z "$ac_cpp_err"; then
15469 ac_header_preproc=yes
15470else
15471 echo "$as_me: failed program was:" >&5
15472sed 's/^/| /' conftest.$ac_ext >&5
15473
15474 ac_header_preproc=no
15475fi
15476
15477rm -f conftest.err conftest.$ac_ext
15478{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15479echo "${ECHO_T}$ac_header_preproc" >&6; }
15480
15481# So? What about this header?
15482case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15483 yes:no: )
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15485echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15487echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15488 ac_header_preproc=yes
15489 ;;
15490 no:yes:* )
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15492echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15494echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15496echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15498echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15500echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15502echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15503 ( cat <<\_ASBOX
15504## ----------------------------------- ##
15505## Report this to llvmbugs@cs.uiuc.edu ##
15506## ----------------------------------- ##
15507_ASBOX
15508 ) | sed "s/^/$as_me: WARNING: /" >&2
15509 ;;
15510esac
15511{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15515else
15516 eval "$as_ac_Header=\$ac_header_preproc"
15517fi
15518ac_res=`eval echo '${'$as_ac_Header'}'`
15519 { echo "$as_me:$LINENO: result: $ac_res" >&5
15520echo "${ECHO_T}$ac_res" >&6; }
15521
15522fi
15523if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015524 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015526_ACEOF
15527
15528fi
15529
15530done
15531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015532
15533
Douglas Gregor071d73d2009-05-18 17:21:34 +000015534for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015535do
15536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15542fi
15543ac_res=`eval echo '${'$as_ac_Header'}'`
15544 { echo "$as_me:$LINENO: result: $ac_res" >&5
15545echo "${ECHO_T}$ac_res" >&6; }
15546else
15547 # Is the header compilable?
15548{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15549echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15550cat >conftest.$ac_ext <<_ACEOF
15551/* confdefs.h. */
15552_ACEOF
15553cat confdefs.h >>conftest.$ac_ext
15554cat >>conftest.$ac_ext <<_ACEOF
15555/* end confdefs.h. */
15556$ac_includes_default
15557#include <$ac_header>
15558_ACEOF
15559rm -f conftest.$ac_objext
15560if { (ac_try="$ac_compile"
15561case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564esac
15565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_compile") 2>conftest.er1
15567 ac_status=$?
15568 grep -v '^ *+' conftest.er1 >conftest.err
15569 rm -f conftest.er1
15570 cat conftest.err >&5
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); } &&
15573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15574 { (case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15577esac
15578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_try") 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest.$ac_objext'
15584 { (case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15587esac
15588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_try") 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_header_compiler=yes
15594else
15595 echo "$as_me: failed program was:" >&5
15596sed 's/^/| /' conftest.$ac_ext >&5
15597
15598 ac_header_compiler=no
15599fi
15600
15601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15603echo "${ECHO_T}$ac_header_compiler" >&6; }
15604
15605# Is the header present?
15606{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15608cat >conftest.$ac_ext <<_ACEOF
15609/* confdefs.h. */
15610_ACEOF
15611cat confdefs.h >>conftest.$ac_ext
15612cat >>conftest.$ac_ext <<_ACEOF
15613/* end confdefs.h. */
15614#include <$ac_header>
15615_ACEOF
15616if { (ac_try="$ac_cpp conftest.$ac_ext"
15617case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15620esac
15621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15623 ac_status=$?
15624 grep -v '^ *+' conftest.er1 >conftest.err
15625 rm -f conftest.er1
15626 cat conftest.err >&5
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); } >/dev/null; then
15629 if test -s conftest.err; then
15630 ac_cpp_err=$ac_c_preproc_warn_flag
15631 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15632 else
15633 ac_cpp_err=
15634 fi
15635else
15636 ac_cpp_err=yes
15637fi
15638if test -z "$ac_cpp_err"; then
15639 ac_header_preproc=yes
15640else
15641 echo "$as_me: failed program was:" >&5
15642sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 ac_header_preproc=no
15645fi
15646
15647rm -f conftest.err conftest.$ac_ext
15648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15649echo "${ECHO_T}$ac_header_preproc" >&6; }
15650
15651# So? What about this header?
15652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15653 yes:no: )
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15658 ac_header_preproc=yes
15659 ;;
15660 no:yes:* )
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15673 ( cat <<\_ASBOX
15674## ----------------------------------- ##
15675## Report this to llvmbugs@cs.uiuc.edu ##
15676## ----------------------------------- ##
15677_ASBOX
15678 ) | sed "s/^/$as_me: WARNING: /" >&2
15679 ;;
15680esac
15681{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685else
15686 eval "$as_ac_Header=\$ac_header_preproc"
15687fi
15688ac_res=`eval echo '${'$as_ac_Header'}'`
15689 { echo "$as_me:$LINENO: result: $ac_res" >&5
15690echo "${ECHO_T}$ac_res" >&6; }
15691
15692fi
15693if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015694 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015696_ACEOF
15697
15698fi
15699
15700done
Reid Spencer59473af2004-12-25 07:31:29 +000015701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015702
15703
15704
15705
Reid Spencerbe3e4192007-08-17 05:45:26 +000015706for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015707do
15708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15714fi
15715ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717echo "${ECHO_T}$ac_res" >&6; }
15718else
15719 # Is the header compilable?
15720{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722cat >conftest.$ac_ext <<_ACEOF
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
15728$ac_includes_default
15729#include <$ac_header>
15730_ACEOF
15731rm -f conftest.$ac_objext
15732if { (ac_try="$ac_compile"
15733case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15736esac
15737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15739 ac_status=$?
15740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746 { (case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15749esac
15750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_try") 2>&5
15752 ac_status=$?
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } &&
15755 { ac_try='test -s conftest.$ac_objext'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759esac
15760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_header_compiler=yes
15766else
15767 echo "$as_me: failed program was:" >&5
15768sed 's/^/| /' conftest.$ac_ext >&5
15769
15770 ac_header_compiler=no
15771fi
15772
15773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775echo "${ECHO_T}$ac_header_compiler" >&6; }
15776
15777# Is the header present?
15778{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15780cat >conftest.$ac_ext <<_ACEOF
15781/* confdefs.h. */
15782_ACEOF
15783cat confdefs.h >>conftest.$ac_ext
15784cat >>conftest.$ac_ext <<_ACEOF
15785/* end confdefs.h. */
15786#include <$ac_header>
15787_ACEOF
15788if { (ac_try="$ac_cpp conftest.$ac_ext"
15789case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null; then
15801 if test -s conftest.err; then
15802 ac_cpp_err=$ac_c_preproc_warn_flag
15803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15804 else
15805 ac_cpp_err=
15806 fi
15807else
15808 ac_cpp_err=yes
15809fi
15810if test -z "$ac_cpp_err"; then
15811 ac_header_preproc=yes
15812else
15813 echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ac_header_preproc=no
15817fi
15818
15819rm -f conftest.err conftest.$ac_ext
15820{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821echo "${ECHO_T}$ac_header_preproc" >&6; }
15822
15823# So? What about this header?
15824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15825 yes:no: )
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15830 ac_header_preproc=yes
15831 ;;
15832 no:yes:* )
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15845 ( cat <<\_ASBOX
15846## ----------------------------------- ##
15847## Report this to llvmbugs@cs.uiuc.edu ##
15848## ----------------------------------- ##
15849_ASBOX
15850 ) | sed "s/^/$as_me: WARNING: /" >&2
15851 ;;
15852esac
15853{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15857else
15858 eval "$as_ac_Header=\$ac_header_preproc"
15859fi
15860ac_res=`eval echo '${'$as_ac_Header'}'`
15861 { echo "$as_me:$LINENO: result: $ac_res" >&5
15862echo "${ECHO_T}$ac_res" >&6; }
15863
15864fi
15865if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015866 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015867#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015868_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000015869
15870fi
John Criswell7ed43ad2004-07-19 16:12:29 +000015871
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015872done
15873
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015874
15875
15876
15877
Douglas Gregor01746742009-05-11 18:05:52 +000015878for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015879do
15880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15883echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15884if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15886fi
15887ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result: $ac_res" >&5
15889echo "${ECHO_T}$ac_res" >&6; }
15890else
15891 # Is the header compilable?
15892{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15894cat >conftest.$ac_ext <<_ACEOF
15895/* confdefs.h. */
15896_ACEOF
15897cat confdefs.h >>conftest.$ac_ext
15898cat >>conftest.$ac_ext <<_ACEOF
15899/* end confdefs.h. */
15900$ac_includes_default
15901#include <$ac_header>
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (ac_try="$ac_compile"
15905case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15908esac
15909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_compile") 2>conftest.er1
15911 ac_status=$?
15912 grep -v '^ *+' conftest.er1 >conftest.err
15913 rm -f conftest.er1
15914 cat conftest.err >&5
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15918 { (case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921esac
15922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15923 (eval "$ac_try") 2>&5
15924 ac_status=$?
15925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926 (exit $ac_status); }; } &&
15927 { ac_try='test -s conftest.$ac_objext'
15928 { (case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15931esac
15932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_try") 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; }; then
15937 ac_header_compiler=yes
15938else
15939 echo "$as_me: failed program was:" >&5
15940sed 's/^/| /' conftest.$ac_ext >&5
15941
15942 ac_header_compiler=no
15943fi
15944
15945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15947echo "${ECHO_T}$ac_header_compiler" >&6; }
15948
15949# Is the header present?
15950{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15951echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15952cat >conftest.$ac_ext <<_ACEOF
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958#include <$ac_header>
15959_ACEOF
15960if { (ac_try="$ac_cpp conftest.$ac_ext"
15961case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15964esac
15965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } >/dev/null; then
15973 if test -s conftest.err; then
15974 ac_cpp_err=$ac_c_preproc_warn_flag
15975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15976 else
15977 ac_cpp_err=
15978 fi
15979else
15980 ac_cpp_err=yes
15981fi
15982if test -z "$ac_cpp_err"; then
15983 ac_header_preproc=yes
15984else
15985 echo "$as_me: failed program was:" >&5
15986sed 's/^/| /' conftest.$ac_ext >&5
15987
15988 ac_header_preproc=no
15989fi
15990
15991rm -f conftest.err conftest.$ac_ext
15992{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15993echo "${ECHO_T}$ac_header_preproc" >&6; }
15994
15995# So? What about this header?
15996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15997 yes:no: )
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16002 ac_header_preproc=yes
16003 ;;
16004 no:yes:* )
16005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16017 ( cat <<\_ASBOX
16018## ----------------------------------- ##
16019## Report this to llvmbugs@cs.uiuc.edu ##
16020## ----------------------------------- ##
16021_ASBOX
16022 ) | sed "s/^/$as_me: WARNING: /" >&2
16023 ;;
16024esac
16025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16029else
16030 eval "$as_ac_Header=\$ac_header_preproc"
16031fi
16032ac_res=`eval echo '${'$as_ac_Header'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034echo "${ECHO_T}$ac_res" >&6; }
16035
16036fi
16037if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016038 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016039#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016040_ACEOF
16041
16042fi
16043
16044done
16045
Reid Spencer0a262ba2005-08-24 10:07:20 +000016046if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016047
16048for ac_header in pthread.h
16049do
16050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056fi
16057ac_res=`eval echo '${'$as_ac_Header'}'`
16058 { echo "$as_me:$LINENO: result: $ac_res" >&5
16059echo "${ECHO_T}$ac_res" >&6; }
16060else
16061 # Is the header compilable?
16062{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16064cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071#include <$ac_header>
16072_ACEOF
16073rm -f conftest.$ac_objext
16074if { (ac_try="$ac_compile"
16075case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16078esac
16079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_compile") 2>conftest.er1
16081 ac_status=$?
16082 grep -v '^ *+' conftest.er1 >conftest.err
16083 rm -f conftest.er1
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16088 { (case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
16092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16093 (eval "$ac_try") 2>&5
16094 ac_status=$?
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); }; } &&
16097 { ac_try='test -s conftest.$ac_objext'
16098 { (case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16101esac
16102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_try") 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 ac_header_compiler=yes
16108else
16109 echo "$as_me: failed program was:" >&5
16110sed 's/^/| /' conftest.$ac_ext >&5
16111
16112 ac_header_compiler=no
16113fi
16114
16115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16116{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16117echo "${ECHO_T}$ac_header_compiler" >&6; }
16118
16119# Is the header present?
16120{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16122cat >conftest.$ac_ext <<_ACEOF
16123/* confdefs.h. */
16124_ACEOF
16125cat confdefs.h >>conftest.$ac_ext
16126cat >>conftest.$ac_ext <<_ACEOF
16127/* end confdefs.h. */
16128#include <$ac_header>
16129_ACEOF
16130if { (ac_try="$ac_cpp conftest.$ac_ext"
16131case "(($ac_try" in
16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16134esac
16135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } >/dev/null; then
16143 if test -s conftest.err; then
16144 ac_cpp_err=$ac_c_preproc_warn_flag
16145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16146 else
16147 ac_cpp_err=
16148 fi
16149else
16150 ac_cpp_err=yes
16151fi
16152if test -z "$ac_cpp_err"; then
16153 ac_header_preproc=yes
16154else
16155 echo "$as_me: failed program was:" >&5
16156sed 's/^/| /' conftest.$ac_ext >&5
16157
16158 ac_header_preproc=no
16159fi
16160
16161rm -f conftest.err conftest.$ac_ext
16162{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16163echo "${ECHO_T}$ac_header_preproc" >&6; }
16164
16165# So? What about this header?
16166case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16167 yes:no: )
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16169echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16171echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16172 ac_header_preproc=yes
16173 ;;
16174 no:yes:* )
16175 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16176echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16178echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16180echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16182echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16186echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16187 ( cat <<\_ASBOX
16188## ----------------------------------- ##
16189## Report this to llvmbugs@cs.uiuc.edu ##
16190## ----------------------------------- ##
16191_ASBOX
16192 ) | sed "s/^/$as_me: WARNING: /" >&2
16193 ;;
16194esac
16195{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200 eval "$as_ac_Header=\$ac_header_preproc"
16201fi
16202ac_res=`eval echo '${'$as_ac_Header'}'`
16203 { echo "$as_me:$LINENO: result: $ac_res" >&5
16204echo "${ECHO_T}$ac_res" >&6; }
16205
16206fi
16207if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016208 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016210_ACEOF
16211 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016212
16213else
16214 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016215
16216fi
16217
Reid Spencerbe3e4192007-08-17 05:45:26 +000016218done
Reid Spencer1000b732006-12-01 00:37:14 +000016219
16220else
16221 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016222
16223fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016224
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016225if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016226
16227
16228for ac_header in ffi.h ffi/ffi.h
16229do
16230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236fi
16237ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result: $ac_res" >&5
16239echo "${ECHO_T}$ac_res" >&6; }
16240else
16241 # Is the header compilable?
16242{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16244cat >conftest.$ac_ext <<_ACEOF
16245/* confdefs.h. */
16246_ACEOF
16247cat confdefs.h >>conftest.$ac_ext
16248cat >>conftest.$ac_ext <<_ACEOF
16249/* end confdefs.h. */
16250$ac_includes_default
16251#include <$ac_header>
16252_ACEOF
16253rm -f conftest.$ac_objext
16254if { (ac_try="$ac_compile"
16255case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258esac
16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16268 { (case "(($ac_try" in
16269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270 *) ac_try_echo=$ac_try;;
16271esac
16272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273 (eval "$ac_try") 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (case "(($ac_try" in
16279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16280 *) ac_try_echo=$ac_try;;
16281esac
16282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16283 (eval "$ac_try") 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_header_compiler=yes
16288else
16289 echo "$as_me: failed program was:" >&5
16290sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 ac_header_compiler=no
16293fi
16294
16295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16296{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16297echo "${ECHO_T}$ac_header_compiler" >&6; }
16298
16299# Is the header present?
16300{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16301echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16302cat >conftest.$ac_ext <<_ACEOF
16303/* confdefs.h. */
16304_ACEOF
16305cat confdefs.h >>conftest.$ac_ext
16306cat >>conftest.$ac_ext <<_ACEOF
16307/* end confdefs.h. */
16308#include <$ac_header>
16309_ACEOF
16310if { (ac_try="$ac_cpp conftest.$ac_ext"
16311case "(($ac_try" in
16312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313 *) ac_try_echo=$ac_try;;
16314esac
16315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16317 ac_status=$?
16318 grep -v '^ *+' conftest.er1 >conftest.err
16319 rm -f conftest.er1
16320 cat conftest.err >&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } >/dev/null; then
16323 if test -s conftest.err; then
16324 ac_cpp_err=$ac_c_preproc_warn_flag
16325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16326 else
16327 ac_cpp_err=
16328 fi
16329else
16330 ac_cpp_err=yes
16331fi
16332if test -z "$ac_cpp_err"; then
16333 ac_header_preproc=yes
16334else
16335 echo "$as_me: failed program was:" >&5
16336sed 's/^/| /' conftest.$ac_ext >&5
16337
16338 ac_header_preproc=no
16339fi
16340
16341rm -f conftest.err conftest.$ac_ext
16342{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16343echo "${ECHO_T}$ac_header_preproc" >&6; }
16344
16345# So? What about this header?
16346case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16347 yes:no: )
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16349echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16351echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16352 ac_header_preproc=yes
16353 ;;
16354 no:yes:* )
16355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16360echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16362echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16366echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16367 ( cat <<\_ASBOX
16368## ----------------------------------- ##
16369## Report this to llvmbugs@cs.uiuc.edu ##
16370## ----------------------------------- ##
16371_ASBOX
16372 ) | sed "s/^/$as_me: WARNING: /" >&2
16373 ;;
16374esac
16375{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379else
16380 eval "$as_ac_Header=\$ac_header_preproc"
16381fi
16382ac_res=`eval echo '${'$as_ac_Header'}'`
16383 { echo "$as_me:$LINENO: result: $ac_res" >&5
16384echo "${ECHO_T}$ac_res" >&6; }
16385
16386fi
16387if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016388 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016390_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016391
16392fi
16393
16394done
16395
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016396fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016397
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016398
Reid Spencer8085cff2005-01-16 02:58:39 +000016399
Torok Edwin871384f2010-01-26 08:50:50 +000016400
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016401 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16402echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16403if test "${ac_cv_huge_val_sanity+set}" = set; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016405else
16406
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016407 ac_ext=cpp
16408ac_cpp='$CXXCPP $CPPFLAGS'
16409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016412
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016413 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016414 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016415 ac_cv_huge_val_sanity=yes
16416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016417 cat >conftest.$ac_ext <<_ACEOF
16418/* confdefs.h. */
16419_ACEOF
16420cat confdefs.h >>conftest.$ac_ext
16421cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016422/* end confdefs.h. */
16423#include <math.h>
16424int
16425main ()
16426{
16427double x = HUGE_VAL; return x != x;
16428 ;
16429 return 0;
16430}
16431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016432rm -f conftest$ac_exeext
16433if { (ac_try="$ac_link"
16434case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_link") 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16443 { (case "(($ac_try" in
16444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445 *) ac_try_echo=$ac_try;;
16446esac
16447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448 (eval "$ac_try") 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016452 ac_cv_huge_val_sanity=yes
16453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016454 echo "$as_me: program exited with status $ac_status" >&5
16455echo "$as_me: failed program was:" >&5
16456sed 's/^/| /' conftest.$ac_ext >&5
16457
16458( exit $ac_status )
16459ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016461rm -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 +000016462fi
16463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016464
Reid Spencerb2ed05262006-11-03 18:04:08 +000016465 ac_ext=c
16466ac_cpp='$CPP $CPPFLAGS'
16467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16469ac_compiler_gnu=$ac_cv_c_compiler_gnu
16470
16471
16472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016473{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16474echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016475 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16476
16477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016478{ echo "$as_me:$LINENO: checking for pid_t" >&5
16479echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16480if test "${ac_cv_type_pid_t+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483 cat >conftest.$ac_ext <<_ACEOF
16484/* confdefs.h. */
16485_ACEOF
16486cat confdefs.h >>conftest.$ac_ext
16487cat >>conftest.$ac_ext <<_ACEOF
16488/* end confdefs.h. */
16489$ac_includes_default
16490typedef pid_t ac__type_new_;
16491int
16492main ()
16493{
16494if ((ac__type_new_ *) 0)
16495 return 0;
16496if (sizeof (ac__type_new_))
16497 return 0;
16498 ;
16499 return 0;
16500}
16501_ACEOF
16502rm -f conftest.$ac_objext
16503if { (ac_try="$ac_compile"
16504case "(($ac_try" in
16505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506 *) ac_try_echo=$ac_try;;
16507esac
16508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509 (eval "$ac_compile") 2>conftest.er1
16510 ac_status=$?
16511 grep -v '^ *+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest.$ac_objext'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530esac
16531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_type_pid_t=yes
16537else
16538 echo "$as_me: failed program was:" >&5
16539sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016541 ac_cv_type_pid_t=no
16542fi
16543
16544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16545fi
16546{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16547echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16548if test $ac_cv_type_pid_t = yes; then
16549 :
John Criswell7a73b802003-06-30 21:59:07 +000016550else
16551
16552cat >>confdefs.h <<_ACEOF
16553#define pid_t int
16554_ACEOF
16555
16556fi
16557
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016558{ echo "$as_me:$LINENO: checking for size_t" >&5
16559echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16560if test "${ac_cv_type_size_t+set}" = set; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562else
16563 cat >conftest.$ac_ext <<_ACEOF
16564/* confdefs.h. */
16565_ACEOF
16566cat confdefs.h >>conftest.$ac_ext
16567cat >>conftest.$ac_ext <<_ACEOF
16568/* end confdefs.h. */
16569$ac_includes_default
16570typedef size_t ac__type_new_;
16571int
16572main ()
16573{
16574if ((ac__type_new_ *) 0)
16575 return 0;
16576if (sizeof (ac__type_new_))
16577 return 0;
16578 ;
16579 return 0;
16580}
16581_ACEOF
16582rm -f conftest.$ac_objext
16583if { (ac_try="$ac_compile"
16584case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16587esac
16588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_compile") 2>conftest.er1
16590 ac_status=$?
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16597 { (case "(($ac_try" in
16598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599 *) ac_try_echo=$ac_try;;
16600esac
16601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602 (eval "$ac_try") 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_try") 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 ac_cv_type_size_t=yes
16617else
16618 echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016621 ac_cv_type_size_t=no
16622fi
16623
16624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16625fi
16626{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16627echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16628if test $ac_cv_type_size_t = yes; then
16629 :
John Criswell7a73b802003-06-30 21:59:07 +000016630else
16631
16632cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016633#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016634_ACEOF
16635
16636fi
16637
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016638
16639cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016640#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016641_ACEOF
16642
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016643{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16644echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16645if test "${ac_cv_struct_tm+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016647else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016648 cat >conftest.$ac_ext <<_ACEOF
16649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016653/* end confdefs.h. */
16654#include <sys/types.h>
16655#include <time.h>
16656
16657int
16658main ()
16659{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016660struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016661 ;
16662 return 0;
16663}
16664_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016665rm -f conftest.$ac_objext
16666if { (ac_try="$ac_compile"
16667case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670esac
16671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_compile") 2>conftest.er1
16673 ac_status=$?
16674 grep -v '^ *+' conftest.er1 >conftest.err
16675 rm -f conftest.er1
16676 cat conftest.err >&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683esac
16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (case "(($ac_try" in
16691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16692 *) ac_try_echo=$ac_try;;
16693esac
16694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16695 (eval "$ac_try") 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016699 ac_cv_struct_tm=time.h
16700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016701 echo "$as_me: failed program was:" >&5
16702sed 's/^/| /' conftest.$ac_ext >&5
16703
16704 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016705fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016706
Reid Spencera773bd52006-08-04 18:18:08 +000016707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016709{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16710echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016711if test $ac_cv_struct_tm = sys/time.h; then
16712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016713cat >>confdefs.h <<\_ACEOF
16714#define TM_IN_SYS_TIME 1
16715_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016716
16717fi
16718
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016719{ echo "$as_me:$LINENO: checking for int64_t" >&5
16720echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16721if test "${ac_cv_type_int64_t+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723else
16724 cat >conftest.$ac_ext <<_ACEOF
16725/* confdefs.h. */
16726_ACEOF
16727cat confdefs.h >>conftest.$ac_ext
16728cat >>conftest.$ac_ext <<_ACEOF
16729/* end confdefs.h. */
16730$ac_includes_default
16731typedef int64_t ac__type_new_;
16732int
16733main ()
16734{
16735if ((ac__type_new_ *) 0)
16736 return 0;
16737if (sizeof (ac__type_new_))
16738 return 0;
16739 ;
16740 return 0;
16741}
16742_ACEOF
16743rm -f conftest.$ac_objext
16744if { (ac_try="$ac_compile"
16745case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16748esac
16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_compile") 2>conftest.er1
16751 ac_status=$?
16752 grep -v '^ *+' conftest.er1 >conftest.err
16753 rm -f conftest.er1
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761esac
16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest.$ac_objext'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16771esac
16772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_type_int64_t=yes
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782 ac_cv_type_int64_t=no
16783fi
16784
16785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786fi
16787{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16788echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16789if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016790
16791cat >>confdefs.h <<_ACEOF
16792#define HAVE_INT64_T 1
16793_ACEOF
16794
16795
16796else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016797 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16798echo "$as_me: error: Type int64_t required but not found" >&2;}
16799 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016800fi
16801
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016802{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16803echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16804if test "${ac_cv_type_uint64_t+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16806else
16807 cat >conftest.$ac_ext <<_ACEOF
16808/* confdefs.h. */
16809_ACEOF
16810cat confdefs.h >>conftest.$ac_ext
16811cat >>conftest.$ac_ext <<_ACEOF
16812/* end confdefs.h. */
16813$ac_includes_default
16814typedef uint64_t ac__type_new_;
16815int
16816main ()
16817{
16818if ((ac__type_new_ *) 0)
16819 return 0;
16820if (sizeof (ac__type_new_))
16821 return 0;
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest.$ac_objext
16827if { (ac_try="$ac_compile"
16828case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831esac
16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844esac
16845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854esac
16855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_type_uint64_t=yes
16861else
16862 echo "$as_me: failed program was:" >&5
16863sed 's/^/| /' conftest.$ac_ext >&5
16864
16865 ac_cv_type_uint64_t=no
16866fi
16867
16868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16869fi
16870{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16871echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16872if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016873
16874cat >>confdefs.h <<_ACEOF
16875#define HAVE_UINT64_T 1
16876_ACEOF
16877
16878
16879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016880 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16881echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16882if test "${ac_cv_type_u_int64_t+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16884else
16885 cat >conftest.$ac_ext <<_ACEOF
16886/* confdefs.h. */
16887_ACEOF
16888cat confdefs.h >>conftest.$ac_ext
16889cat >>conftest.$ac_ext <<_ACEOF
16890/* end confdefs.h. */
16891$ac_includes_default
16892typedef u_int64_t ac__type_new_;
16893int
16894main ()
16895{
16896if ((ac__type_new_ *) 0)
16897 return 0;
16898if (sizeof (ac__type_new_))
16899 return 0;
16900 ;
16901 return 0;
16902}
16903_ACEOF
16904rm -f conftest.$ac_objext
16905if { (ac_try="$ac_compile"
16906case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909esac
16910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_compile") 2>conftest.er1
16912 ac_status=$?
16913 grep -v '^ *+' conftest.er1 >conftest.err
16914 rm -f conftest.er1
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922esac
16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; }; then
16938 ac_cv_type_u_int64_t=yes
16939else
16940 echo "$as_me: failed program was:" >&5
16941sed 's/^/| /' conftest.$ac_ext >&5
16942
16943 ac_cv_type_u_int64_t=no
16944fi
16945
16946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16947fi
16948{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16949echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16950if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000016951
16952cat >>confdefs.h <<_ACEOF
16953#define HAVE_U_INT64_T 1
16954_ACEOF
16955
16956
Misha Brukmanceca9042004-09-02 23:02:30 +000016957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016958 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16959echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16960 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000016961fi
16962
John Criswell679ff312004-09-02 18:44:44 +000016963fi
16964
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016965
16966
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016967
16968
16969
16970
16971
16972
16973
Reid Spencerdf3be822006-01-23 08:15:53 +000016974for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016975do
16976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16977{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 cat >conftest.$ac_ext <<_ACEOF
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16990#define $ac_func innocuous_$ac_func
16991
16992/* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char $ac_func (); below.
16994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995 <limits.h> exists even on freestanding compilers. */
16996
16997#ifdef __STDC__
16998# include <limits.h>
16999#else
17000# include <assert.h>
17001#endif
17002
17003#undef $ac_func
17004
17005/* Override any GCC internal prototype to avoid an error.
17006 Use char because int might match the return type of a GCC
17007 builtin and then its argument prototype would still apply. */
17008#ifdef __cplusplus
17009extern "C"
17010#endif
17011char $ac_func ();
17012/* The GNU C library defines this for functions which it implements
17013 to always fail with ENOSYS. Some functions are actually named
17014 something starting with __ and the normal name is an alias. */
17015#if defined __stub_$ac_func || defined __stub___$ac_func
17016choke me
17017#endif
17018
17019int
17020main ()
17021{
17022return $ac_func ();
17023 ;
17024 return 0;
17025}
17026_ACEOF
17027rm -f conftest.$ac_objext conftest$ac_exeext
17028if { (ac_try="$ac_link"
17029case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_link") 2>conftest.er1
17035 ac_status=$?
17036 grep -v '^ *+' conftest.er1 >conftest.err
17037 rm -f conftest.er1
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); } &&
17041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17042 { (case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045esac
17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_try") 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest$ac_exeext'
17052 { (case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055esac
17056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17057 (eval "$ac_try") 2>&5
17058 ac_status=$?
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); }; }; then
17061 eval "$as_ac_var=yes"
17062else
17063 echo "$as_me: failed program was:" >&5
17064sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 eval "$as_ac_var=no"
17067fi
17068
17069rm -f core conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17071fi
17072ac_res=`eval echo '${'$as_ac_var'}'`
17073 { echo "$as_me:$LINENO: result: $ac_res" >&5
17074echo "${ECHO_T}$ac_res" >&6; }
17075if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017078_ACEOF
17079
17080fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017081done
John Criswell7a73b802003-06-30 21:59:07 +000017082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017083
17084
17085
17086
Reid Spencer96cf5872007-07-13 10:05:30 +000017087for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017088do
17089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17090{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17092if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094else
17095 cat >conftest.$ac_ext <<_ACEOF
17096/* confdefs.h. */
17097_ACEOF
17098cat confdefs.h >>conftest.$ac_ext
17099cat >>conftest.$ac_ext <<_ACEOF
17100/* end confdefs.h. */
17101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17103#define $ac_func innocuous_$ac_func
17104
17105/* System header to define __stub macros and hopefully few prototypes,
17106 which can conflict with char $ac_func (); below.
17107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17108 <limits.h> exists even on freestanding compilers. */
17109
17110#ifdef __STDC__
17111# include <limits.h>
17112#else
17113# include <assert.h>
17114#endif
17115
17116#undef $ac_func
17117
17118/* Override any GCC internal prototype to avoid an error.
17119 Use char because int might match the return type of a GCC
17120 builtin and then its argument prototype would still apply. */
17121#ifdef __cplusplus
17122extern "C"
17123#endif
17124char $ac_func ();
17125/* The GNU C library defines this for functions which it implements
17126 to always fail with ENOSYS. Some functions are actually named
17127 something starting with __ and the normal name is an alias. */
17128#if defined __stub_$ac_func || defined __stub___$ac_func
17129choke me
17130#endif
17131
17132int
17133main ()
17134{
17135return $ac_func ();
17136 ;
17137 return 0;
17138}
17139_ACEOF
17140rm -f conftest.$ac_objext conftest$ac_exeext
17141if { (ac_try="$ac_link"
17142case "(($ac_try" in
17143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17144 *) ac_try_echo=$ac_try;;
17145esac
17146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17147 (eval "$ac_link") 2>conftest.er1
17148 ac_status=$?
17149 grep -v '^ *+' conftest.er1 >conftest.err
17150 rm -f conftest.er1
17151 cat conftest.err >&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); } &&
17154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17158esac
17159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; } &&
17164 { ac_try='test -s conftest$ac_exeext'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
17174 eval "$as_ac_var=yes"
17175else
17176 echo "$as_me: failed program was:" >&5
17177sed 's/^/| /' conftest.$ac_ext >&5
17178
17179 eval "$as_ac_var=no"
17180fi
17181
17182rm -f core conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
17184fi
17185ac_res=`eval echo '${'$as_ac_var'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187echo "${ECHO_T}$ac_res" >&6; }
17188if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017189 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017191_ACEOF
17192
17193fi
17194done
17195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017196
17197
17198
17199
17200
Reid Spencerb90645c2007-02-16 19:17:20 +000017201for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017202do
17203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17204{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208else
17209 cat >conftest.$ac_ext <<_ACEOF
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
17215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217#define $ac_func innocuous_$ac_func
17218
17219/* System header to define __stub macros and hopefully few prototypes,
17220 which can conflict with char $ac_func (); below.
17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222 <limits.h> exists even on freestanding compilers. */
17223
17224#ifdef __STDC__
17225# include <limits.h>
17226#else
17227# include <assert.h>
17228#endif
17229
17230#undef $ac_func
17231
17232/* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
17235#ifdef __cplusplus
17236extern "C"
17237#endif
17238char $ac_func ();
17239/* The GNU C library defines this for functions which it implements
17240 to always fail with ENOSYS. Some functions are actually named
17241 something starting with __ and the normal name is an alias. */
17242#if defined __stub_$ac_func || defined __stub___$ac_func
17243choke me
17244#endif
17245
17246int
17247main ()
17248{
17249return $ac_func ();
17250 ;
17251 return 0;
17252}
17253_ACEOF
17254rm -f conftest.$ac_objext conftest$ac_exeext
17255if { (ac_try="$ac_link"
17256case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259esac
17260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17262 ac_status=$?
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
17268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17269 { (case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17272esac
17273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_try") 2>&5
17275 ac_status=$?
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; } &&
17278 { ac_try='test -s conftest$ac_exeext'
17279 { (case "(($ac_try" in
17280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281 *) ac_try_echo=$ac_try;;
17282esac
17283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284 (eval "$ac_try") 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; }; then
17288 eval "$as_ac_var=yes"
17289else
17290 echo "$as_me: failed program was:" >&5
17291sed 's/^/| /' conftest.$ac_ext >&5
17292
17293 eval "$as_ac_var=no"
17294fi
17295
17296rm -f core conftest.err conftest.$ac_objext \
17297 conftest$ac_exeext conftest.$ac_ext
17298fi
17299ac_res=`eval echo '${'$as_ac_var'}'`
17300 { echo "$as_me:$LINENO: result: $ac_res" >&5
17301echo "${ECHO_T}$ac_res" >&6; }
17302if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017303 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017305_ACEOF
17306
17307fi
17308done
17309
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017310
17311
17312
Reid Spencerb90645c2007-02-16 19:17:20 +000017313for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017314do
17315as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17316{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17317echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17318if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17319 echo $ECHO_N "(cached) $ECHO_C" >&6
17320else
17321 cat >conftest.$ac_ext <<_ACEOF
17322/* confdefs.h. */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h. */
17327/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17329#define $ac_func innocuous_$ac_func
17330
17331/* System header to define __stub macros and hopefully few prototypes,
17332 which can conflict with char $ac_func (); below.
17333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17334 <limits.h> exists even on freestanding compilers. */
17335
17336#ifdef __STDC__
17337# include <limits.h>
17338#else
17339# include <assert.h>
17340#endif
17341
17342#undef $ac_func
17343
17344/* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17347#ifdef __cplusplus
17348extern "C"
17349#endif
17350char $ac_func ();
17351/* The GNU C library defines this for functions which it implements
17352 to always fail with ENOSYS. Some functions are actually named
17353 something starting with __ and the normal name is an alias. */
17354#if defined __stub_$ac_func || defined __stub___$ac_func
17355choke me
17356#endif
17357
17358int
17359main ()
17360{
17361return $ac_func ();
17362 ;
17363 return 0;
17364}
17365_ACEOF
17366rm -f conftest.$ac_objext conftest$ac_exeext
17367if { (ac_try="$ac_link"
17368case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17371esac
17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_link") 2>conftest.er1
17374 ac_status=$?
17375 grep -v '^ *+' conftest.er1 >conftest.err
17376 rm -f conftest.er1
17377 cat conftest.err >&5
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17381 { (case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17384esac
17385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_try") 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394esac
17395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_try") 2>&5
17397 ac_status=$?
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; }; then
17400 eval "$as_ac_var=yes"
17401else
17402 echo "$as_me: failed program was:" >&5
17403sed 's/^/| /' conftest.$ac_ext >&5
17404
17405 eval "$as_ac_var=no"
17406fi
17407
17408rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410fi
17411ac_res=`eval echo '${'$as_ac_var'}'`
17412 { echo "$as_me:$LINENO: result: $ac_res" >&5
17413echo "${ECHO_T}$ac_res" >&6; }
17414if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017415 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017417_ACEOF
17418
17419fi
17420done
17421
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017422
17423
17424
17425
17426
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017427for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017428do
17429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17430{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17432if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17433 echo $ECHO_N "(cached) $ECHO_C" >&6
17434else
17435 cat >conftest.$ac_ext <<_ACEOF
17436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
17441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17443#define $ac_func innocuous_$ac_func
17444
17445/* System header to define __stub macros and hopefully few prototypes,
17446 which can conflict with char $ac_func (); below.
17447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448 <limits.h> exists even on freestanding compilers. */
17449
17450#ifdef __STDC__
17451# include <limits.h>
17452#else
17453# include <assert.h>
17454#endif
17455
17456#undef $ac_func
17457
17458/* Override any GCC internal prototype to avoid an error.
17459 Use char because int might match the return type of a GCC
17460 builtin and then its argument prototype would still apply. */
17461#ifdef __cplusplus
17462extern "C"
17463#endif
17464char $ac_func ();
17465/* The GNU C library defines this for functions which it implements
17466 to always fail with ENOSYS. Some functions are actually named
17467 something starting with __ and the normal name is an alias. */
17468#if defined __stub_$ac_func || defined __stub___$ac_func
17469choke me
17470#endif
17471
17472int
17473main ()
17474{
17475return $ac_func ();
17476 ;
17477 return 0;
17478}
17479_ACEOF
17480rm -f conftest.$ac_objext conftest$ac_exeext
17481if { (ac_try="$ac_link"
17482case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
17486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17498esac
17499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 eval "$as_ac_var=yes"
17515else
17516 echo "$as_me: failed program was:" >&5
17517sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 eval "$as_ac_var=no"
17520fi
17521
17522rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17524fi
17525ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result: $ac_res" >&5
17527echo "${ECHO_T}$ac_res" >&6; }
17528if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017529 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017531_ACEOF
17532
17533fi
17534done
Reid Spencerdf3be822006-01-23 08:15:53 +000017535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017536
17537
17538
17539
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017540for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017541do
17542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17543{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17545if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17547else
17548 cat >conftest.$ac_ext <<_ACEOF
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
17553/* end confdefs.h. */
17554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17556#define $ac_func innocuous_$ac_func
17557
17558/* System header to define __stub macros and hopefully few prototypes,
17559 which can conflict with char $ac_func (); below.
17560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17561 <limits.h> exists even on freestanding compilers. */
17562
17563#ifdef __STDC__
17564# include <limits.h>
17565#else
17566# include <assert.h>
17567#endif
17568
17569#undef $ac_func
17570
17571/* Override any GCC internal prototype to avoid an error.
17572 Use char because int might match the return type of a GCC
17573 builtin and then its argument prototype would still apply. */
17574#ifdef __cplusplus
17575extern "C"
17576#endif
17577char $ac_func ();
17578/* The GNU C library defines this for functions which it implements
17579 to always fail with ENOSYS. Some functions are actually named
17580 something starting with __ and the normal name is an alias. */
17581#if defined __stub_$ac_func || defined __stub___$ac_func
17582choke me
17583#endif
17584
17585int
17586main ()
17587{
17588return $ac_func ();
17589 ;
17590 return 0;
17591}
17592_ACEOF
17593rm -f conftest.$ac_objext conftest$ac_exeext
17594if { (ac_try="$ac_link"
17595case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598esac
17599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_link") 2>conftest.er1
17601 ac_status=$?
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } &&
17607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17608 { (case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17611esac
17612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_try") 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; } &&
17617 { ac_try='test -s conftest$ac_exeext'
17618 { (case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621esac
17622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_try") 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; }; then
17627 eval "$as_ac_var=yes"
17628else
17629 echo "$as_me: failed program was:" >&5
17630sed 's/^/| /' conftest.$ac_ext >&5
17631
17632 eval "$as_ac_var=no"
17633fi
17634
17635rm -f core conftest.err conftest.$ac_objext \
17636 conftest$ac_exeext conftest.$ac_ext
17637fi
17638ac_res=`eval echo '${'$as_ac_var'}'`
17639 { echo "$as_me:$LINENO: result: $ac_res" >&5
17640echo "${ECHO_T}$ac_res" >&6; }
17641if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017642 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017644_ACEOF
17645
17646fi
17647done
17648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017649
17650
17651
17652
Chris Lattner511f11d2005-11-14 07:25:50 +000017653for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017654do
17655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17656{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17658if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17660else
17661 cat >conftest.$ac_ext <<_ACEOF
17662/* confdefs.h. */
17663_ACEOF
17664cat confdefs.h >>conftest.$ac_ext
17665cat >>conftest.$ac_ext <<_ACEOF
17666/* end confdefs.h. */
17667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17669#define $ac_func innocuous_$ac_func
17670
17671/* System header to define __stub macros and hopefully few prototypes,
17672 which can conflict with char $ac_func (); below.
17673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17674 <limits.h> exists even on freestanding compilers. */
17675
17676#ifdef __STDC__
17677# include <limits.h>
17678#else
17679# include <assert.h>
17680#endif
17681
17682#undef $ac_func
17683
17684/* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17687#ifdef __cplusplus
17688extern "C"
17689#endif
17690char $ac_func ();
17691/* The GNU C library defines this for functions which it implements
17692 to always fail with ENOSYS. Some functions are actually named
17693 something starting with __ and the normal name is an alias. */
17694#if defined __stub_$ac_func || defined __stub___$ac_func
17695choke me
17696#endif
17697
17698int
17699main ()
17700{
17701return $ac_func ();
17702 ;
17703 return 0;
17704}
17705_ACEOF
17706rm -f conftest.$ac_objext conftest$ac_exeext
17707if { (ac_try="$ac_link"
17708case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17711esac
17712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_link") 2>conftest.er1
17714 ac_status=$?
17715 grep -v '^ *+' conftest.er1 >conftest.err
17716 rm -f conftest.er1
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17721 { (case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17724esac
17725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_try") 2>&5
17727 ac_status=$?
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; } &&
17730 { ac_try='test -s conftest$ac_exeext'
17731 { (case "(($ac_try" in
17732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733 *) ac_try_echo=$ac_try;;
17734esac
17735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17736 (eval "$ac_try") 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 eval "$as_ac_var=yes"
17741else
17742 echo "$as_me: failed program was:" >&5
17743sed 's/^/| /' conftest.$ac_ext >&5
17744
17745 eval "$as_ac_var=no"
17746fi
17747
17748rm -f core conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
17750fi
17751ac_res=`eval echo '${'$as_ac_var'}'`
17752 { echo "$as_me:$LINENO: result: $ac_res" >&5
17753echo "${ECHO_T}$ac_res" >&6; }
17754if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017755 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017757_ACEOF
17758
17759fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017760done
John Criswell7a73b802003-06-30 21:59:07 +000017761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017762
17763
17764
17765
Reid Spencerafa22e22006-12-10 23:29:19 +000017766for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017767do
17768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17769{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773else
17774 cat >conftest.$ac_ext <<_ACEOF
17775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
17780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17782#define $ac_func innocuous_$ac_func
17783
17784/* System header to define __stub macros and hopefully few prototypes,
17785 which can conflict with char $ac_func (); below.
17786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17787 <limits.h> exists even on freestanding compilers. */
17788
17789#ifdef __STDC__
17790# include <limits.h>
17791#else
17792# include <assert.h>
17793#endif
17794
17795#undef $ac_func
17796
17797/* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
17800#ifdef __cplusplus
17801extern "C"
17802#endif
17803char $ac_func ();
17804/* The GNU C library defines this for functions which it implements
17805 to always fail with ENOSYS. Some functions are actually named
17806 something starting with __ and the normal name is an alias. */
17807#if defined __stub_$ac_func || defined __stub___$ac_func
17808choke me
17809#endif
17810
17811int
17812main ()
17813{
17814return $ac_func ();
17815 ;
17816 return 0;
17817}
17818_ACEOF
17819rm -f conftest.$ac_objext conftest$ac_exeext
17820if { (ac_try="$ac_link"
17821case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824esac
17825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_link") 2>conftest.er1
17827 ac_status=$?
17828 grep -v '^ *+' conftest.er1 >conftest.err
17829 rm -f conftest.er1
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17837esac
17838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest$ac_exeext'
17844 { (case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17847esac
17848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_try") 2>&5
17850 ac_status=$?
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 eval "$as_ac_var=yes"
17854else
17855 echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 eval "$as_ac_var=no"
17859fi
17860
17861rm -f core conftest.err conftest.$ac_objext \
17862 conftest$ac_exeext conftest.$ac_ext
17863fi
17864ac_res=`eval echo '${'$as_ac_var'}'`
17865 { echo "$as_me:$LINENO: result: $ac_res" >&5
17866echo "${ECHO_T}$ac_res" >&6; }
17867if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017868 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017869#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000017870_ACEOF
17871
17872fi
17873done
17874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017875{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17876echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17877if test "${llvm_cv_c_printf_a+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017879else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017880 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017881ac_cpp='$CPP $CPPFLAGS'
17882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884ac_compiler_gnu=$ac_cv_c_compiler_gnu
17885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017886 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017887 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017889 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000017890
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017891 /* confdefs.h. */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000017896
John Criswella0137d32003-10-13 16:22:01 +000017897#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000017898#include <stdlib.h>
17899
John Criswella0137d32003-10-13 16:22:01 +000017900int
17901main ()
17902{
17903
Reid Spencer2706f8c2004-09-19 23:53:36 +000017904volatile double A, B;
17905char Buffer[100];
17906A = 1;
17907A /= 10.0;
17908sprintf(Buffer, "%a", A);
17909B = atof(Buffer);
17910if (A != B)
17911 return (1);
17912if (A != 0x1.999999999999ap-4)
17913 return (1);
17914return (0);
John Criswella0137d32003-10-13 16:22:01 +000017915 ;
17916 return 0;
17917}
17918_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017919rm -f conftest$ac_exeext
17920if { (ac_try="$ac_link"
17921case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924esac
17925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>&5
17927 ac_status=$?
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17930 { (case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933esac
17934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17935 (eval "$ac_try") 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000017939 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000017940else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017941 echo "$as_me: program exited with status $ac_status" >&5
17942echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945( exit $ac_status )
17946llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000017947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017948rm -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 +000017949fi
Reid Spencera773bd52006-08-04 18:18:08 +000017950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017951
Reid Spencer2706f8c2004-09-19 23:53:36 +000017952 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000017953ac_cpp='$CPP $CPPFLAGS'
17954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17956ac_compiler_gnu=$ac_cv_c_compiler_gnu
17957
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017959{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17960echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000017961 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000017962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017963cat >>confdefs.h <<\_ACEOF
17964#define HAVE_PRINTF_A 1
17965_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000017966
Reid Spencer2706f8c2004-09-19 23:53:36 +000017967 fi
John Criswella0137d32003-10-13 16:22:01 +000017968
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017969
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017970{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17971echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17972if test "${ac_cv_func_rand48+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017974else
Reid Spencera773bd52006-08-04 18:18:08 +000017975 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017976ac_cpp='$CXXCPP $CPPFLAGS'
17977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017981 cat >conftest.$ac_ext <<_ACEOF
17982/* confdefs.h. */
17983_ACEOF
17984cat confdefs.h >>conftest.$ac_ext
17985cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017986/* end confdefs.h. */
17987#include <stdlib.h>
17988int
17989main ()
17990{
17991srand48(0);lrand48();drand48();
17992 ;
17993 return 0;
17994}
17995_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017996rm -f conftest.$ac_objext
17997if { (ac_try="$ac_compile"
17998case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_compile") 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest.$ac_objext'
18021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018030 ac_cv_func_rand48=yes
18031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018032 echo "$as_me: failed program was:" >&5
18033sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018037
Reid Spencera773bd52006-08-04 18:18:08 +000018038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018039 ac_ext=c
18040ac_cpp='$CPP $CPPFLAGS'
18041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18043ac_compiler_gnu=$ac_cv_c_compiler_gnu
18044
18045fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018046{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18047echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018048
18049if test "$ac_cv_func_rand48" = "yes" ; then
18050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018051cat >>confdefs.h <<\_ACEOF
18052#define HAVE_RAND48 1
18053_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018054
18055fi
John Criswell0021c312004-02-13 21:57:29 +000018056
18057
Torok Edwin871384f2010-01-26 08:50:50 +000018058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018059{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18060echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18061if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018063else
Reid Spencera773bd52006-08-04 18:18:08 +000018064 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018065ac_cpp='$CXXCPP $CPPFLAGS'
18066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018070 cat >conftest.$ac_ext <<_ACEOF
18071/* confdefs.h. */
18072_ACEOF
18073cat confdefs.h >>conftest.$ac_ext
18074cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018075/* end confdefs.h. */
18076#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018077int
18078main ()
18079{
18080float f; isnan(f);
18081 ;
18082 return 0;
18083}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018084_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018085rm -f conftest.$ac_objext
18086if { (ac_try="$ac_compile"
18087case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18090esac
18091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_compile") 2>conftest.er1
18093 ac_status=$?
18094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
18099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18100 { (case "(($ac_try" in
18101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102 *) ac_try_echo=$ac_try;;
18103esac
18104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105 (eval "$ac_try") 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest.$ac_objext'
18110 { (case "(($ac_try" in
18111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112 *) ac_try_echo=$ac_try;;
18113esac
18114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115 (eval "$ac_try") 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018119 ac_cv_func_isnan_in_math_h=yes
18120else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018121 echo "$as_me: failed program was:" >&5
18122sed 's/^/| /' conftest.$ac_ext >&5
18123
18124 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018125fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018126
Reid Spencera773bd52006-08-04 18:18:08 +000018127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018128 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018129ac_cpp='$CPP $CPPFLAGS'
18130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132ac_compiler_gnu=$ac_cv_c_compiler_gnu
18133
18134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018135{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18136echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018137
18138
18139if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018140
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018141cat >>confdefs.h <<\_ACEOF
18142#define HAVE_ISNAN_IN_MATH_H 1
18143_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018144
Reid Spencerabec8f92004-10-27 23:03:44 +000018145fi
18146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018147{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18148echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18149if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018151else
Reid Spencera773bd52006-08-04 18:18:08 +000018152 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018153ac_cpp='$CXXCPP $CPPFLAGS'
18154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018158 cat >conftest.$ac_ext <<_ACEOF
18159/* confdefs.h. */
18160_ACEOF
18161cat confdefs.h >>conftest.$ac_ext
18162cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018163/* end confdefs.h. */
18164#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018165int
18166main ()
18167{
18168float f; isnan(f);
18169 ;
18170 return 0;
18171}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018172_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018173rm -f conftest.$ac_objext
18174if { (ac_try="$ac_compile"
18175case "(($ac_try" in
18176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177 *) ac_try_echo=$ac_try;;
18178esac
18179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180 (eval "$ac_compile") 2>conftest.er1
18181 ac_status=$?
18182 grep -v '^ *+' conftest.er1 >conftest.err
18183 rm -f conftest.er1
18184 cat conftest.err >&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); } &&
18187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188 { (case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191esac
18192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_try") 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; } &&
18197 { ac_try='test -s conftest.$ac_objext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18201esac
18202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018207 ac_cv_func_isnan_in_cmath=yes
18208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018209 echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018213fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018214
Reid Spencera773bd52006-08-04 18:18:08 +000018215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018216 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018217ac_cpp='$CPP $CPPFLAGS'
18218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220ac_compiler_gnu=$ac_cv_c_compiler_gnu
18221
18222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018223{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18224echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018225
18226if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018228cat >>confdefs.h <<\_ACEOF
18229#define HAVE_ISNAN_IN_CMATH 1
18230_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018231
Reid Spencerabec8f92004-10-27 23:03:44 +000018232fi
18233
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018234{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18235echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18236if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018238else
Reid Spencera773bd52006-08-04 18:18:08 +000018239 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018240ac_cpp='$CXXCPP $CPPFLAGS'
18241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018245 cat >conftest.$ac_ext <<_ACEOF
18246/* confdefs.h. */
18247_ACEOF
18248cat confdefs.h >>conftest.$ac_ext
18249cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018250/* end confdefs.h. */
18251#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018252int
18253main ()
18254{
18255float f; std::isnan(f);
18256 ;
18257 return 0;
18258}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018259_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018260rm -f conftest.$ac_objext
18261if { (ac_try="$ac_compile"
18262case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_compile") 2>conftest.er1
18268 ac_status=$?
18269 grep -v '^ *+' conftest.er1 >conftest.err
18270 rm -f conftest.er1
18271 cat conftest.err >&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } &&
18274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18278esac
18279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18288esac
18289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_try") 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018294 ac_cv_func_std_isnan_in_cmath=yes
18295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018296 echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018301
Reid Spencera773bd52006-08-04 18:18:08 +000018302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018303 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018304ac_cpp='$CPP $CPPFLAGS'
18305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307ac_compiler_gnu=$ac_cv_c_compiler_gnu
18308
18309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018310{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18311echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018312
18313if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018315cat >>confdefs.h <<\_ACEOF
18316#define HAVE_STD_ISNAN_IN_CMATH 1
18317_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018318
Reid Spencerabec8f92004-10-27 23:03:44 +000018319fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018320
18321
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018322{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18323echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18324if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18325 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018326else
Reid Spencera773bd52006-08-04 18:18:08 +000018327 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018328ac_cpp='$CXXCPP $CPPFLAGS'
18329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018333 cat >conftest.$ac_ext <<_ACEOF
18334/* confdefs.h. */
18335_ACEOF
18336cat confdefs.h >>conftest.$ac_ext
18337cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018338/* end confdefs.h. */
18339#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018340int
18341main ()
18342{
18343float f; isinf(f);
18344 ;
18345 return 0;
18346}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018347_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018348rm -f conftest.$ac_objext
18349if { (ac_try="$ac_compile"
18350case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18353esac
18354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_compile") 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18363 { (case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366esac
18367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_try") 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; } &&
18372 { ac_try='test -s conftest.$ac_objext'
18373 { (case "(($ac_try" in
18374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18375 *) ac_try_echo=$ac_try;;
18376esac
18377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18378 (eval "$ac_try") 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018382 ac_cv_func_isinf_in_math_h=yes
18383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018384 echo "$as_me: failed program was:" >&5
18385sed 's/^/| /' conftest.$ac_ext >&5
18386
18387 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018389
Reid Spencera773bd52006-08-04 18:18:08 +000018390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018391 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018392ac_cpp='$CPP $CPPFLAGS'
18393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18395ac_compiler_gnu=$ac_cv_c_compiler_gnu
18396
18397fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018398{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18399echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018400
18401if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018403cat >>confdefs.h <<\_ACEOF
18404#define HAVE_ISINF_IN_MATH_H 1
18405_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018406
Reid Spencerabec8f92004-10-27 23:03:44 +000018407fi
18408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018409{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18410echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18411if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018413else
Reid Spencera773bd52006-08-04 18:18:08 +000018414 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018415ac_cpp='$CXXCPP $CPPFLAGS'
18416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018420 cat >conftest.$ac_ext <<_ACEOF
18421/* confdefs.h. */
18422_ACEOF
18423cat confdefs.h >>conftest.$ac_ext
18424cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018425/* end confdefs.h. */
18426#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018427int
18428main ()
18429{
18430float f; isinf(f);
18431 ;
18432 return 0;
18433}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018435rm -f conftest.$ac_objext
18436if { (ac_try="$ac_compile"
18437case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440esac
18441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_compile") 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452 *) ac_try_echo=$ac_try;;
18453esac
18454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463esac
18464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018469 ac_cv_func_isinf_in_cmath=yes
18470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018471 echo "$as_me: failed program was:" >&5
18472sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018475fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018476
Reid Spencera773bd52006-08-04 18:18:08 +000018477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018478 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018479ac_cpp='$CPP $CPPFLAGS'
18480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18482ac_compiler_gnu=$ac_cv_c_compiler_gnu
18483
18484fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018485{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18486echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018487
18488if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018490cat >>confdefs.h <<\_ACEOF
18491#define HAVE_ISINF_IN_CMATH 1
18492_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018493
Reid Spencerabec8f92004-10-27 23:03:44 +000018494fi
18495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018496{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18497echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18498if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018500else
Reid Spencera773bd52006-08-04 18:18:08 +000018501 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018502ac_cpp='$CXXCPP $CPPFLAGS'
18503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018512/* end confdefs.h. */
18513#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018514int
18515main ()
18516{
18517float f; std::isinf(f)}
18518 ;
18519 return 0;
18520}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018521_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018522rm -f conftest.$ac_objext
18523if { (ac_try="$ac_compile"
18524case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527esac
18528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_compile") 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } &&
18536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18540esac
18541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; } &&
18546 { ac_try='test -s conftest.$ac_objext'
18547 { (case "(($ac_try" in
18548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549 *) ac_try_echo=$ac_try;;
18550esac
18551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552 (eval "$ac_try") 2>&5
18553 ac_status=$?
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018556 ac_cv_func_std_isinf_in_cmath=yes
18557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018558 echo "$as_me: failed program was:" >&5
18559sed 's/^/| /' conftest.$ac_ext >&5
18560
18561 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018562fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018563
Reid Spencera773bd52006-08-04 18:18:08 +000018564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018565 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018566ac_cpp='$CPP $CPPFLAGS'
18567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18569ac_compiler_gnu=$ac_cv_c_compiler_gnu
18570
18571fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018572{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18573echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018574
18575if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018576
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018577cat >>confdefs.h <<\_ACEOF
18578#define HAVE_STD_ISINF_IN_CMATH 1
18579_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018580
Reid Spencerabec8f92004-10-27 23:03:44 +000018581fi
18582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018583{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18584echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18585if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018587else
Reid Spencera773bd52006-08-04 18:18:08 +000018588 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018589ac_cpp='$CXXCPP $CPPFLAGS'
18590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018594 cat >conftest.$ac_ext <<_ACEOF
18595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018599/* end confdefs.h. */
18600#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018601int
18602main ()
18603{
18604float f; finite(f);
18605 ;
18606 return 0;
18607}
Brian Gaeked59a6472004-07-21 03:33:58 +000018608_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018609rm -f conftest.$ac_objext
18610if { (ac_try="$ac_compile"
18611case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614esac
18615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18627esac
18628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637esac
18638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18640 ac_status=$?
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018643 ac_cv_func_finite_in_ieeefp_h=yes
18644else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018645 echo "$as_me: failed program was:" >&5
18646sed 's/^/| /' conftest.$ac_ext >&5
18647
18648 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018649fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018650
Reid Spencera773bd52006-08-04 18:18:08 +000018651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018652 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018653ac_cpp='$CPP $CPPFLAGS'
18654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18656ac_compiler_gnu=$ac_cv_c_compiler_gnu
18657
18658fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018659{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18660echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018661
Brian Gaeke6802b552004-10-28 05:06:45 +000018662if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018664cat >>confdefs.h <<\_ACEOF
18665#define HAVE_FINITE_IN_IEEEFP_H 1
18666_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018667
Reid Spencerabec8f92004-10-27 23:03:44 +000018668fi
18669
18670
18671
Reid Spencer30fe5262007-01-20 07:48:49 +000018672if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018673
18674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018675for ac_header in stdlib.h unistd.h
18676do
18677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683fi
18684ac_res=`eval echo '${'$as_ac_Header'}'`
18685 { echo "$as_me:$LINENO: result: $ac_res" >&5
18686echo "${ECHO_T}$ac_res" >&6; }
18687else
18688 # Is the header compilable?
18689{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18691cat >conftest.$ac_ext <<_ACEOF
18692/* confdefs.h. */
18693_ACEOF
18694cat confdefs.h >>conftest.$ac_ext
18695cat >>conftest.$ac_ext <<_ACEOF
18696/* end confdefs.h. */
18697$ac_includes_default
18698#include <$ac_header>
18699_ACEOF
18700rm -f conftest.$ac_objext
18701if { (ac_try="$ac_compile"
18702case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18705esac
18706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18707 (eval "$ac_compile") 2>conftest.er1
18708 ac_status=$?
18709 grep -v '^ *+' conftest.er1 >conftest.err
18710 rm -f conftest.er1
18711 cat conftest.err >&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); } &&
18714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18715 { (case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_try") 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } &&
18724 { ac_try='test -s conftest.$ac_objext'
18725 { (case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728esac
18729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18730 (eval "$ac_try") 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_header_compiler=yes
18735else
18736 echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018739 ac_header_compiler=no
18740fi
18741
18742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18744echo "${ECHO_T}$ac_header_compiler" >&6; }
18745
18746# Is the header present?
18747{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18749cat >conftest.$ac_ext <<_ACEOF
18750/* confdefs.h. */
18751_ACEOF
18752cat confdefs.h >>conftest.$ac_ext
18753cat >>conftest.$ac_ext <<_ACEOF
18754/* end confdefs.h. */
18755#include <$ac_header>
18756_ACEOF
18757if { (ac_try="$ac_cpp conftest.$ac_ext"
18758case "(($ac_try" in
18759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18760 *) ac_try_echo=$ac_try;;
18761esac
18762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18764 ac_status=$?
18765 grep -v '^ *+' conftest.er1 >conftest.err
18766 rm -f conftest.er1
18767 cat conftest.err >&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } >/dev/null; then
18770 if test -s conftest.err; then
18771 ac_cpp_err=$ac_c_preproc_warn_flag
18772 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18773 else
18774 ac_cpp_err=
18775 fi
18776else
18777 ac_cpp_err=yes
18778fi
18779if test -z "$ac_cpp_err"; then
18780 ac_header_preproc=yes
18781else
18782 echo "$as_me: failed program was:" >&5
18783sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 ac_header_preproc=no
18786fi
18787
18788rm -f conftest.err conftest.$ac_ext
18789{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18790echo "${ECHO_T}$ac_header_preproc" >&6; }
18791
18792# So? What about this header?
18793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18794 yes:no: )
18795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18799 ac_header_preproc=yes
18800 ;;
18801 no:yes:* )
18802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18805echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18809echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18814 ( cat <<\_ASBOX
18815## ----------------------------------- ##
18816## Report this to llvmbugs@cs.uiuc.edu ##
18817## ----------------------------------- ##
18818_ASBOX
18819 ) | sed "s/^/$as_me: WARNING: /" >&2
18820 ;;
18821esac
18822{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18825 echo $ECHO_N "(cached) $ECHO_C" >&6
18826else
18827 eval "$as_ac_Header=\$ac_header_preproc"
18828fi
18829ac_res=`eval echo '${'$as_ac_Header'}'`
18830 { echo "$as_me:$LINENO: result: $ac_res" >&5
18831echo "${ECHO_T}$ac_res" >&6; }
18832
18833fi
18834if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018835 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018837_ACEOF
18838
18839fi
18840
18841done
18842
18843
18844for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018845do
18846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18847{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18849if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18850 echo $ECHO_N "(cached) $ECHO_C" >&6
18851else
18852 cat >conftest.$ac_ext <<_ACEOF
18853/* confdefs.h. */
18854_ACEOF
18855cat confdefs.h >>conftest.$ac_ext
18856cat >>conftest.$ac_ext <<_ACEOF
18857/* end confdefs.h. */
18858/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18860#define $ac_func innocuous_$ac_func
18861
18862/* System header to define __stub macros and hopefully few prototypes,
18863 which can conflict with char $ac_func (); below.
18864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18865 <limits.h> exists even on freestanding compilers. */
18866
18867#ifdef __STDC__
18868# include <limits.h>
18869#else
18870# include <assert.h>
18871#endif
18872
18873#undef $ac_func
18874
18875/* Override any GCC internal prototype to avoid an error.
18876 Use char because int might match the return type of a GCC
18877 builtin and then its argument prototype would still apply. */
18878#ifdef __cplusplus
18879extern "C"
18880#endif
18881char $ac_func ();
18882/* The GNU C library defines this for functions which it implements
18883 to always fail with ENOSYS. Some functions are actually named
18884 something starting with __ and the normal name is an alias. */
18885#if defined __stub_$ac_func || defined __stub___$ac_func
18886choke me
18887#endif
18888
18889int
18890main ()
18891{
18892return $ac_func ();
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext conftest$ac_exeext
18898if { (ac_try="$ac_link"
18899case "(($ac_try" in
18900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18901 *) ac_try_echo=$ac_try;;
18902esac
18903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18904 (eval "$ac_link") 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
18911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18912 { (case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18915esac
18916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18917 (eval "$ac_try") 2>&5
18918 ac_status=$?
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); }; } &&
18921 { ac_try='test -s conftest$ac_exeext'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 eval "$as_ac_var=yes"
18932else
18933 echo "$as_me: failed program was:" >&5
18934sed 's/^/| /' conftest.$ac_ext >&5
18935
18936 eval "$as_ac_var=no"
18937fi
18938
18939rm -f core conftest.err conftest.$ac_objext \
18940 conftest$ac_exeext conftest.$ac_ext
18941fi
18942ac_res=`eval echo '${'$as_ac_var'}'`
18943 { echo "$as_me:$LINENO: result: $ac_res" >&5
18944echo "${ECHO_T}$ac_res" >&6; }
18945if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018946 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018947#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018948_ACEOF
18949
18950fi
18951done
18952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018953{ echo "$as_me:$LINENO: checking for working mmap" >&5
18954echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18955if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018958 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018959 ac_cv_func_mmap_fixed_mapped=no
18960else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018961 cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h. */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018967$ac_includes_default
18968/* malloc might have been renamed as rpl_malloc. */
18969#undef malloc
18970
18971/* Thanks to Mike Haertel and Jim Avera for this test.
18972 Here is a matrix of mmap possibilities:
18973 mmap private not fixed
18974 mmap private fixed at somewhere currently unmapped
18975 mmap private fixed at somewhere already mapped
18976 mmap shared not fixed
18977 mmap shared fixed at somewhere currently unmapped
18978 mmap shared fixed at somewhere already mapped
18979 For private mappings, we should verify that changes cannot be read()
18980 back from the file, nor mmap's back from the file at a different
18981 address. (There have been systems where private was not correctly
18982 implemented like the infamous i386 svr4.0, and systems where the
18983 VM page cache was not coherent with the file system buffer cache
18984 like early versions of FreeBSD and possibly contemporary NetBSD.)
18985 For shared mappings, we should conversely verify that changes get
18986 propagated back to all the places they're supposed to be.
18987
18988 Grep wants private fixed already mapped.
18989 The main things grep needs to know about mmap are:
18990 * does it exist and is it safe to write into the mmap'd area
18991 * how to use it (BSD variants) */
18992
18993#include <fcntl.h>
18994#include <sys/mman.h>
18995
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018996#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000018997char *malloc ();
18998#endif
18999
19000/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019001#if !HAVE_GETPAGESIZE
19002/* Assume that all systems that can run configure have sys/param.h. */
19003# if !HAVE_SYS_PARAM_H
19004# define HAVE_SYS_PARAM_H 1
19005# endif
19006
John Criswell7a73b802003-06-30 21:59:07 +000019007# ifdef _SC_PAGESIZE
19008# define getpagesize() sysconf(_SC_PAGESIZE)
19009# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019010# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019011# include <sys/param.h>
19012# ifdef EXEC_PAGESIZE
19013# define getpagesize() EXEC_PAGESIZE
19014# else /* no EXEC_PAGESIZE */
19015# ifdef NBPG
19016# define getpagesize() NBPG * CLSIZE
19017# ifndef CLSIZE
19018# define CLSIZE 1
19019# endif /* no CLSIZE */
19020# else /* no NBPG */
19021# ifdef NBPC
19022# define getpagesize() NBPC
19023# else /* no NBPC */
19024# ifdef PAGESIZE
19025# define getpagesize() PAGESIZE
19026# endif /* PAGESIZE */
19027# endif /* no NBPC */
19028# endif /* no NBPG */
19029# endif /* no EXEC_PAGESIZE */
19030# else /* no HAVE_SYS_PARAM_H */
19031# define getpagesize() 8192 /* punt totally */
19032# endif /* no HAVE_SYS_PARAM_H */
19033# endif /* no _SC_PAGESIZE */
19034
19035#endif /* no HAVE_GETPAGESIZE */
19036
19037int
19038main ()
19039{
19040 char *data, *data2, *data3;
19041 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019042 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019043
19044 pagesize = getpagesize ();
19045
19046 /* First, make a file with some known garbage in it. */
19047 data = (char *) malloc (pagesize);
19048 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019049 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019050 for (i = 0; i < pagesize; ++i)
19051 *(data + i) = rand ();
19052 umask (0);
19053 fd = creat ("conftest.mmap", 0600);
19054 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019055 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019056 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019057 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019058 close (fd);
19059
19060 /* Next, try to mmap the file at a fixed address which already has
19061 something else allocated at it. If we can, also make sure that
19062 we see the same garbage. */
19063 fd = open ("conftest.mmap", O_RDWR);
19064 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019065 return 1;
19066 data2 = (char *) malloc (2 * pagesize);
19067 if (!data2)
19068 return 1;
19069 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019070 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019071 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019072 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019073 for (i = 0; i < pagesize; ++i)
19074 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019075 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019076
19077 /* Finally, make sure that changes to the mapped area do not
19078 percolate back to the file as seen by read(). (This is a bug on
19079 some variants of i386 svr4.0.) */
19080 for (i = 0; i < pagesize; ++i)
19081 *(data2 + i) = *(data2 + i) + 1;
19082 data3 = (char *) malloc (pagesize);
19083 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019084 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019085 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019086 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019087 for (i = 0; i < pagesize; ++i)
19088 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019089 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019090 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019091 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019092}
19093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019094rm -f conftest$ac_exeext
19095if { (ac_try="$ac_link"
19096case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19099esac
19100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>&5
19102 ac_status=$?
19103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19105 { (case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19108esac
19109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_try") 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019114 ac_cv_func_mmap_fixed_mapped=yes
19115else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116 echo "$as_me: program exited with status $ac_status" >&5
19117echo "$as_me: failed program was:" >&5
19118sed 's/^/| /' conftest.$ac_ext >&5
19119
19120( exit $ac_status )
19121ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019123rm -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 +000019124fi
Reid Spencera773bd52006-08-04 18:18:08 +000019125
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019126
John Criswell7a73b802003-06-30 21:59:07 +000019127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019128{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19129echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019130if test $ac_cv_func_mmap_fixed_mapped = yes; then
19131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019132cat >>confdefs.h <<\_ACEOF
19133#define HAVE_MMAP 1
19134_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019135
19136fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019137rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019139 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19140echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19141if test "${ac_cv_func_mmap_file+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019143else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019144 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019145ac_cpp='$CPP $CPPFLAGS'
19146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19148ac_compiler_gnu=$ac_cv_c_compiler_gnu
19149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019150 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019151 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019153 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019155 /* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
19159/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019160
John Criswell7a73b802003-06-30 21:59:07 +000019161#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019162#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019163#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019164
19165int
19166main ()
19167{
John Criswell7a73b802003-06-30 21:59:07 +000019168
19169 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019170 fd = creat ("foo",0777);
19171 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19172 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019173 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019174 ;
19175 return 0;
19176}
John Criswell7a73b802003-06-30 21:59:07 +000019177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019178rm -f conftest$ac_exeext
19179if { (ac_try="$ac_link"
19180case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19183esac
19184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_link") 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19192esac
19193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19195 ac_status=$?
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019198 ac_cv_func_mmap_file=yes
19199else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019200 echo "$as_me: program exited with status $ac_status" >&5
19201echo "$as_me: failed program was:" >&5
19202sed 's/^/| /' conftest.$ac_ext >&5
19203
19204( exit $ac_status )
19205ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019206fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019207rm -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 +000019208fi
Reid Spencera773bd52006-08-04 18:18:08 +000019209
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019210
John Criswell7a73b802003-06-30 21:59:07 +000019211 ac_ext=c
19212ac_cpp='$CPP $CPPFLAGS'
19213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19215ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216
19217
19218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019219{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19220echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019221if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019222
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019223cat >>confdefs.h <<\_ACEOF
19224#define HAVE_MMAP_FILE
19225_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019226
19227 MMAP_FILE=yes
19228
19229fi
19230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019231 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19232echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19233if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019235else
Reid Spencer582a23c2004-12-29 07:07:57 +000019236 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019237 ac_cv_need_dev_zero_for_mmap=yes
19238 else
19239 ac_cv_need_dev_zero_for_mmap=no
19240 fi
19241
19242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019243{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19244echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019245if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019247cat >>confdefs.h <<\_ACEOF
19248#define NEED_DEV_ZERO_FOR_MMAP 1
19249_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019250
19251fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019252
Reid Spencer30fe5262007-01-20 07:48:49 +000019253 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19254 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019255 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19256echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019257 fi
19258 if test "$ac_cv_func_mmap_file" = "no"
19259 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019260 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19261echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019262 fi
John Criswellb13092b2003-07-22 21:00:24 +000019263fi
John Criswell7a73b802003-06-30 21:59:07 +000019264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019265{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19266echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19267cat >conftest.$ac_ext <<_ACEOF
19268/* confdefs.h. */
19269_ACEOF
19270cat confdefs.h >>conftest.$ac_ext
19271cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019272/* end confdefs.h. */
19273int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019274 volatile unsigned long val = 1;
19275 __sync_synchronize();
19276 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019277 __sync_add_and_fetch(&val, 1);
19278 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019279 return 0;
19280 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019281
19282_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019283rm -f conftest.$ac_objext conftest$ac_exeext
19284if { (ac_try="$ac_link"
19285case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_link") 2>conftest.er1
19291 ac_status=$?
19292 grep -v '^ *+' conftest.er1 >conftest.err
19293 rm -f conftest.er1
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
19297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19298 { (case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19301esac
19302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_try") 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; } &&
19307 { ac_try='test -s conftest$ac_exeext'
19308 { (case "(($ac_try" in
19309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19310 *) ac_try_echo=$ac_try;;
19311esac
19312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19313 (eval "$ac_try") 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 { echo "$as_me:$LINENO: result: yes" >&5
19318echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019320cat >>confdefs.h <<\_ACEOF
19321#define LLVM_MULTITHREADED 1
19322_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019323
Owen Andersond4b272b2009-05-18 23:58:51 +000019324else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019325 echo "$as_me: failed program was:" >&5
19326sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019328 { echo "$as_me:$LINENO: result: no" >&5
19329echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019330
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019331cat >>confdefs.h <<\_ACEOF
19332#define LLVM_MULTITHREADED 0
19333_ACEOF
19334
19335 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19336echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019338
Owen Andersond4b272b2009-05-18 23:58:51 +000019339rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019340 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019341
19342
John Criswell7a73b802003-06-30 21:59:07 +000019343
Nick Lewycky4372e692009-09-29 06:18:23 +000019344if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019345 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19346echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19347if test "${llvm_cv_linux_mixed+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019349else
19350 ac_ext=c
19351ac_cpp='$CPP $CPPFLAGS'
19352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354ac_compiler_gnu=$ac_cv_c_compiler_gnu
19355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019356 cat >conftest.$ac_ext <<_ACEOF
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019361/* end confdefs.h. */
19362#ifndef __x86_64__
19363 error: Not x86-64 even if uname says so!
19364 #endif
19365
19366int
19367main ()
19368{
19369
19370 ;
19371 return 0;
19372}
19373_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019374rm -f conftest.$ac_objext
19375if { (ac_try="$ac_compile"
19376case "(($ac_try" in
19377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19378 *) ac_try_echo=$ac_try;;
19379esac
19380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19381 (eval "$ac_compile") 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392esac
19393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest.$ac_objext'
19399 { (case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19402esac
19403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19404 (eval "$ac_try") 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019408 llvm_cv_linux_mixed=no
19409else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019410 echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019414fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019415
Nick Lewycky4372e692009-09-29 06:18:23 +000019416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 ac_ext=c
19418ac_cpp='$CPP $CPPFLAGS'
19419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19421ac_compiler_gnu=$ac_cv_c_compiler_gnu
19422
19423
19424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019425{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19426echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019427
19428 if test "$llvm_cv_linux_mixed" = "yes"; then
19429 llvm_cv_target_arch="x86"
19430 ARCH="x86"
19431 fi
19432fi
19433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019434
Reid Spencer9372f152007-07-30 20:13:24 +000019435for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019436do
19437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19438{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19440if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443 cat >conftest.$ac_ext <<_ACEOF
19444/* confdefs.h. */
19445_ACEOF
19446cat confdefs.h >>conftest.$ac_ext
19447cat >>conftest.$ac_ext <<_ACEOF
19448/* end confdefs.h. */
19449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19451#define $ac_func innocuous_$ac_func
19452
19453/* System header to define __stub macros and hopefully few prototypes,
19454 which can conflict with char $ac_func (); below.
19455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19456 <limits.h> exists even on freestanding compilers. */
19457
19458#ifdef __STDC__
19459# include <limits.h>
19460#else
19461# include <assert.h>
19462#endif
19463
19464#undef $ac_func
19465
19466/* Override any GCC internal prototype to avoid an error.
19467 Use char because int might match the return type of a GCC
19468 builtin and then its argument prototype would still apply. */
19469#ifdef __cplusplus
19470extern "C"
19471#endif
19472char $ac_func ();
19473/* The GNU C library defines this for functions which it implements
19474 to always fail with ENOSYS. Some functions are actually named
19475 something starting with __ and the normal name is an alias. */
19476#if defined __stub_$ac_func || defined __stub___$ac_func
19477choke me
19478#endif
19479
19480int
19481main ()
19482{
19483return $ac_func ();
19484 ;
19485 return 0;
19486}
19487_ACEOF
19488rm -f conftest.$ac_objext conftest$ac_exeext
19489if { (ac_try="$ac_link"
19490case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19493esac
19494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
19502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506esac
19507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
19509 ac_status=$?
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); }; } &&
19512 { ac_try='test -s conftest$ac_exeext'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515 *) ac_try_echo=$ac_try;;
19516esac
19517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 eval "$as_ac_var=yes"
19523else
19524 echo "$as_me: failed program was:" >&5
19525sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 eval "$as_ac_var=no"
19528fi
19529
19530rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19532fi
19533ac_res=`eval echo '${'$as_ac_var'}'`
19534 { echo "$as_me:$LINENO: result: $ac_res" >&5
19535echo "${ECHO_T}$ac_res" >&6; }
19536if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019537 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019538#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019539_ACEOF
19540
19541fi
19542done
19543
19544
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019545{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19546echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19547if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019549else
19550 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019551if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019552 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019553 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19554 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019555 if test $? -eq 0 ; then
19556 llvm_cv_llvmgcc_sanity="yes"
19557 fi
19558 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019559fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019561{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19562echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019563
19564if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19566echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019567 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019568 LLVMCC1=$llvmcc1path
19569
Reid Spencer502935f2004-12-22 05:56:56 +000019570 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019571 LLVMCC1PLUS=$llvmcc1pluspath
19572
Reid Spencer502935f2004-12-22 05:56:56 +000019573 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19574 LLVMGCCDIR=$llvmgccdir
19575
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019576 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019577 LLVMGCC_LANGS=$llvmgcclangs
19578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019579 { echo "$as_me:$LINENO: result: ok" >&5
19580echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019581fi
19582
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019583SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019584
19585
Reid Spencere9de0912004-08-20 09:03:57 +000019586# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019587# information into substitutions that will end up in Makefile.config.in
19588# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019589if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019590 prefix="/usr/local"
19591fi
Reid Spencere9de0912004-08-20 09:03:57 +000019592eval LLVM_PREFIX="${prefix}";
19593eval LLVM_BINDIR="${prefix}/bin";
19594eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019595eval LLVM_DATADIR="${prefix}/share/llvm";
19596eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19597eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019598eval LLVM_INCLUDEDIR="${prefix}/include";
19599eval LLVM_INFODIR="${prefix}/info";
19600eval LLVM_MANDIR="${prefix}/man";
19601LLVM_CONFIGTIME=`date`
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019613# Place the various directores into the config.h file as #defines so that we
19614# can know about the installation paths within LLVM.
19615
Reid Spencere9de0912004-08-20 09:03:57 +000019616cat >>confdefs.h <<_ACEOF
19617#define LLVM_PREFIX "$LLVM_PREFIX"
19618_ACEOF
19619
19620
19621cat >>confdefs.h <<_ACEOF
19622#define LLVM_BINDIR "$LLVM_BINDIR"
19623_ACEOF
19624
19625
19626cat >>confdefs.h <<_ACEOF
19627#define LLVM_LIBDIR "$LLVM_LIBDIR"
19628_ACEOF
19629
19630
19631cat >>confdefs.h <<_ACEOF
19632#define LLVM_DATADIR "$LLVM_DATADIR"
19633_ACEOF
19634
19635
19636cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019637#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019638_ACEOF
19639
19640
19641cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019642#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019643_ACEOF
19644
19645
19646cat >>confdefs.h <<_ACEOF
19647#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19648_ACEOF
19649
19650
19651cat >>confdefs.h <<_ACEOF
19652#define LLVM_INFODIR "$LLVM_INFODIR"
19653_ACEOF
19654
19655
19656cat >>confdefs.h <<_ACEOF
19657#define LLVM_MANDIR "$LLVM_MANDIR"
19658_ACEOF
19659
19660
19661cat >>confdefs.h <<_ACEOF
19662#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19663_ACEOF
19664
19665
Eric Christopher790e11c2007-12-01 00:34:39 +000019666cat >>confdefs.h <<_ACEOF
19667#define LLVM_HOSTTRIPLE "$host"
19668_ACEOF
19669
19670
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019671# Determine which bindings to build.
19672if test "$BINDINGS_TO_BUILD" = auto ; then
19673 BINDINGS_TO_BUILD=""
19674 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19675 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19676 fi
19677fi
19678BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19679
19680
19681# This isn't really configurey, but it avoids having to repeat the list in
19682# other files.
19683ALL_BINDINGS=ocaml
19684
19685
Gordon Henriksenf0915682007-10-02 16:42:22 +000019686# Do any work necessary to ensure that bindings have what they need.
19687binding_prereqs_failed=0
19688for a_binding in $BINDINGS_TO_BUILD ; do
19689 case "$a_binding" in
19690 ocaml)
19691 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019692 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19693echo "$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 +000019694 binding_prereqs_failed=1
19695 fi
19696 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019697 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19698echo "$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 +000019699 binding_prereqs_failed=1
19700 fi
19701 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019702 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19703echo "$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 +000019704 fi
19705 if test "x$with_ocaml_libdir" != xauto ; then
19706 OCAML_LIBDIR=$with_ocaml_libdir
19707
19708 else
19709 ocaml_stdlib="`"$OCAMLC" -where`"
19710 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19711 then
19712 # ocaml stdlib is beneath our prefix; use stdlib
19713 OCAML_LIBDIR=$ocaml_stdlib
19714
19715 else
19716 # ocaml stdlib is outside our prefix; use libdir/ocaml
19717 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19718
19719 fi
19720 fi
19721 ;;
19722 esac
19723done
19724if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019725 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19726echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19727 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000019728fi
19729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19731echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19732if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19733 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019734else
19735 ac_ext=cpp
19736ac_cpp='$CXXCPP $CPPFLAGS'
19737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19740
19741 oldcxxflags="$CXXFLAGS"
19742 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019743 cat >conftest.$ac_ext <<_ACEOF
19744/* confdefs.h. */
19745_ACEOF
19746cat confdefs.h >>conftest.$ac_ext
19747cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019748/* end confdefs.h. */
19749
19750int
19751main ()
19752{
19753
19754 ;
19755 return 0;
19756}
19757_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758rm -f conftest.$ac_objext
19759if { (ac_try="$ac_compile"
19760case "(($ac_try" in
19761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19762 *) ac_try_echo=$ac_try;;
19763esac
19764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19776esac
19777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
19783 { (case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786esac
19787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_try") 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019792 llvm_cv_cxx_visibility_inlines_hidden=yes
19793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019794 echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019798fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019799
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801 CXXFLAGS="$oldcxxflags"
19802 ac_ext=c
19803ac_cpp='$CPP $CPPFLAGS'
19804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19806ac_compiler_gnu=$ac_cv_c_compiler_gnu
19807
19808
19809fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019810{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19811echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019812if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19813 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19814
19815else
19816 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19817
19818fi
19819
Gordon Henriksenf0915682007-10-02 16:42:22 +000019820
Nick Lewycky731c6ab2009-03-05 08:20:44 +000019821if test "$llvm_cv_link_use_r" = "yes" ; then
19822 RPATH="-Wl,-R"
19823else
19824 RPATH="-Wl,-rpath"
19825fi
19826
19827
19828if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19829 RDYNAMIC="-Wl,-export-dynamic"
19830else
19831 RDYNAMIC=""
19832fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019833
19834
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019835
Reid Spencera773bd52006-08-04 18:18:08 +000019836ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019837
Douglas Gregor1555a232009-06-16 20:12:29 +000019838ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19839
19840ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19841
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000019842ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19843
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000019844ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19845
Chandler Carruth8b67f772009-10-26 01:35:46 +000019846ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019847
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019848
Reid Spencera773bd52006-08-04 18:18:08 +000019849ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019850
19851
Reid Spencerea949cf2006-08-16 00:45:38 +000019852ac_config_files="$ac_config_files llvm.spec"
19853
19854
Reid Spencera773bd52006-08-04 18:18:08 +000019855ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000019856
19857
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000019858ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19859
19860
Reid Spencera773bd52006-08-04 18:18:08 +000019861ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000019862
19863
Reid Spencera773bd52006-08-04 18:18:08 +000019864ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000019865
Reid Spencera773bd52006-08-04 18:18:08 +000019866ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019867
19868
Reid Spencera773bd52006-08-04 18:18:08 +000019869ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019870
19871
Reid Spencera773bd52006-08-04 18:18:08 +000019872ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019873
19874
Reid Spencera773bd52006-08-04 18:18:08 +000019875ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019876
19877
Reid Spencer8b2e1412006-11-17 03:32:33 +000019878ac_config_commands="$ac_config_commands runtime/Makefile"
19879
19880
Reid Spencera773bd52006-08-04 18:18:08 +000019881ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019882
19883
Reid Spencera773bd52006-08-04 18:18:08 +000019884ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019885
19886
Bill Wendlingf24eb392009-01-04 23:12:30 +000019887ac_config_commands="$ac_config_commands unittests/Makefile"
19888
19889
Reid Spencera773bd52006-08-04 18:18:08 +000019890ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019891
19892
Reid Spencera773bd52006-08-04 18:18:08 +000019893ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019894
19895
Reid Spencera773bd52006-08-04 18:18:08 +000019896ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019897
19898
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000019899ac_config_commands="$ac_config_commands bindings/Makefile"
19900
19901
19902ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19903
19904
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019905
John Criswell7a73b802003-06-30 21:59:07 +000019906cat >confcache <<\_ACEOF
19907# This file is a shell script that caches the results of configure
19908# tests run on this system so they can be shared between configure
19909# scripts and configure runs, see configure's option --config-cache.
19910# It is not useful on other systems. If it contains results you don't
19911# want to keep, you may remove or edit it.
19912#
19913# config.status only pays attention to the cache file if you give it
19914# the --recheck option to rerun configure.
19915#
John Criswell0c38eaf2003-09-10 15:17:25 +000019916# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000019917# loading this file, other *unset* `ac_cv_foo' will be assigned the
19918# following values.
19919
19920_ACEOF
19921
19922# The following way of writing the cache mishandles newlines in values,
19923# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000019924# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000019925# Ultrix sh set writes to stderr and can't be redirected directly,
19926# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000019927(
19928 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19929 eval ac_val=\$$ac_var
19930 case $ac_val in #(
19931 *${as_nl}*)
19932 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019933 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19934echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019935 esac
19936 case $ac_var in #(
19937 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019938 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019939 esac ;;
19940 esac
19941 done
19942
John Criswell7a73b802003-06-30 21:59:07 +000019943 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000019944 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19945 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019946 # `set' does not quote correctly, so add quotes (double-quote
19947 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000019948 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019949 "s/'/'\\\\''/g;
19950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000019951 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000019952 *)
19953 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000019954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000019955 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019956 esac |
19957 sort
19958) |
John Criswell7a73b802003-06-30 21:59:07 +000019959 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000019960 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000019961 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000019962 :clear
John Criswell7a73b802003-06-30 21:59:07 +000019963 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19964 t end
Reid Spencera773bd52006-08-04 18:18:08 +000019965 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19966 :end' >>confcache
19967if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19968 if test -w "$cache_file"; then
19969 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019970 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19971echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000019972 cat confcache >$cache_file
19973 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019974 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19975echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000019976 fi
19977fi
19978rm -f confcache
19979
19980test "x$prefix" = xNONE && prefix=$ac_default_prefix
19981# Let make expand exec_prefix.
19982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19983
John Criswell7a73b802003-06-30 21:59:07 +000019984DEFS=-DHAVE_CONFIG_H
19985
John Criswell0c38eaf2003-09-10 15:17:25 +000019986ac_libobjs=
19987ac_ltlibobjs=
19988for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19989 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000019990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019991 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000019992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19993 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019994 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19995 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000019996done
19997LIBOBJS=$ac_libobjs
19998
19999LTLIBOBJS=$ac_ltlibobjs
20000
20001
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020002if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020003 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20004Usually this means the macro was only invoked conditionally." >&5
20005echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20006Usually this means the macro was only invoked conditionally." >&2;}
20007 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020008fi
20009if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020010 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20011Usually this means the macro was only invoked conditionally." >&5
20012echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20013Usually this means the macro was only invoked conditionally." >&2;}
20014 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020015fi
John Criswell7a73b802003-06-30 21:59:07 +000020016
20017: ${CONFIG_STATUS=./config.status}
20018ac_clean_files_save=$ac_clean_files
20019ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020020{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20021echo "$as_me: creating $CONFIG_STATUS" >&6;}
20022cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020023#! $SHELL
20024# Generated by $as_me.
20025# Run this file to recreate the current configuration.
20026# Compiler output produced by configure, useful for debugging
20027# configure, is in config.log if it exists.
20028
20029debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020030ac_cs_recheck=false
20031ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020032SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020035cat >>$CONFIG_STATUS <<\_ACEOF
20036## --------------------- ##
20037## M4sh Initialization. ##
20038## --------------------- ##
20039
20040# Be Bourne compatible
20041if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020042 emulate sh
20043 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020044 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020045 # is contrary to our usage. Disable this feature.
20046 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020047 setopt NO_GLOB_SUBST
20048else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020049 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020051BIN_SH=xpg4; export BIN_SH # for Tru64
20052DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020053
John Criswell7a73b802003-06-30 21:59:07 +000020054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020055# PATH needs CR
20056# Avoid depending upon Character Ranges.
20057as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20058as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20059as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20060as_cr_digits='0123456789'
20061as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020062
20063# The user is always right.
20064if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020065 echo "#! /bin/sh" >conf$$.sh
20066 echo "exit 0" >>conf$$.sh
20067 chmod +x conf$$.sh
20068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20069 PATH_SEPARATOR=';'
20070 else
20071 PATH_SEPARATOR=:
20072 fi
20073 rm -f conf$$.sh
20074fi
20075
20076# Support unset when possible.
20077if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20078 as_unset=unset
20079else
20080 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020081fi
John Criswell7a73b802003-06-30 21:59:07 +000020082
Reid Spencera773bd52006-08-04 18:18:08 +000020083
20084# IFS
20085# We need space, tab and new line, in precisely that order. Quoting is
20086# there to prevent editors from complaining about space-tab.
20087# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20088# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020089as_nl='
20090'
Reid Spencera773bd52006-08-04 18:18:08 +000020091IFS=" "" $as_nl"
20092
20093# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020095 *[\\/]* ) as_myself=$0 ;;
20096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020097for as_dir in $PATH
20098do
20099 IFS=$as_save_IFS
20100 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20102done
Reid Spencera773bd52006-08-04 18:18:08 +000020103IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020104
Reid Spencera773bd52006-08-04 18:18:08 +000020105 ;;
20106esac
20107# We did not find ourselves, most probably we were run as `sh COMMAND'
20108# in which case we are not to be found in the path.
20109if test "x$as_myself" = x; then
20110 as_myself=$0
20111fi
20112if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020113 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20114 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020115fi
20116
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020117# Work around bugs in pre-3.0 UWIN ksh.
20118for as_var in ENV MAIL MAILPATH
20119do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020120done
20121PS1='$ '
20122PS2='> '
20123PS4='+ '
20124
20125# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020126for as_var in \
20127 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20128 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20129 LC_TELEPHONE LC_TIME
20130do
20131 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20132 eval $as_var=C; export $as_var
20133 else
20134 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020135 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020136done
Torok Edwin871384f2010-01-26 08:50:50 +000020137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020139if expr a : '\(a\)' >/dev/null 2>&1 &&
20140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20141 as_expr=expr
20142else
20143 as_expr=false
20144fi
20145
20146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20147 as_basename=basename
20148else
20149 as_basename=false
20150fi
20151
20152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020153# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020154as_me=`$as_basename -- "$0" ||
20155$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20156 X"$0" : 'X\(//\)$' \| \
20157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020158echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020159 sed '/^.*\/\([^/][^/]*\)\/*$/{
20160 s//\1/
20161 q
20162 }
20163 /^X\/\(\/\/\)$/{
20164 s//\1/
20165 q
20166 }
20167 /^X\/\(\/\).*/{
20168 s//\1/
20169 q
20170 }
20171 s/.*/./; q'`
20172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020173# CDPATH.
20174$as_unset CDPATH
20175
20176
20177
20178 as_lineno_1=$LINENO
20179 as_lineno_2=$LINENO
20180 test "x$as_lineno_1" != "x$as_lineno_2" &&
20181 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20182
20183 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20184 # uniformly replaced by the line number. The first 'sed' inserts a
20185 # line-number line after each line using $LINENO; the second 'sed'
20186 # does the real work. The second script uses 'N' to pair each
20187 # line-number line with the line containing $LINENO, and appends
20188 # trailing '-' during substitution so that $LINENO is not a special
20189 # case at line end.
20190 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20191 # scripts with optimization help from Paolo Bonzini. Blame Lee
20192 # E. McMahon (1931-1989) for sed's syntax. :-)
20193 sed -n '
20194 p
20195 /[$]LINENO/=
20196 ' <$as_myself |
20197 sed '
20198 s/[$]LINENO.*/&-/
20199 t lineno
20200 b
20201 :lineno
20202 N
20203 :loop
20204 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20205 t loop
20206 s/-\n.*//
20207 ' >$as_me.lineno &&
20208 chmod +x "$as_me.lineno" ||
20209 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20210 { (exit 1); exit 1; }; }
20211
20212 # Don't try to exec as it changes $[0], causing all sort of problems
20213 # (the dirname of $[0] is not the place where we might find the
20214 # original and so on. Autoconf is especially sensitive to this).
20215 . "./$as_me.lineno"
20216 # Exit status is that of the last command.
20217 exit
20218}
20219
20220
20221if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20222 as_dirname=dirname
20223else
20224 as_dirname=false
20225fi
Reid Spencera773bd52006-08-04 18:18:08 +000020226
20227ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020228case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020229-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020230 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020231 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020232 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020233 esac;;
20234*)
20235 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020236esac
20237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020238if expr a : '\(a\)' >/dev/null 2>&1 &&
20239 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20240 as_expr=expr
20241else
20242 as_expr=false
20243fi
20244
John Criswell7a73b802003-06-30 21:59:07 +000020245rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020246if test -d conf$$.dir; then
20247 rm -f conf$$.dir/conf$$.file
20248else
20249 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020250 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020251fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020252echo >conf$$.file
20253if ln -s conf$$.file conf$$ 2>/dev/null; then
20254 as_ln_s='ln -s'
20255 # ... but there are two gotchas:
20256 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20257 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20258 # In both cases, we have to default to `cp -p'.
20259 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020260 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020261elif ln conf$$.file conf$$ 2>/dev/null; then
20262 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020263else
20264 as_ln_s='cp -p'
20265fi
Reid Spencera773bd52006-08-04 18:18:08 +000020266rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20267rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020268
John Criswell0c38eaf2003-09-10 15:17:25 +000020269if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020271else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020272 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020273 as_mkdir_p=false
20274fi
20275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020276# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20277# systems may use methods other than mode bits to determine executability.
20278cat >conf$$.file <<_ASEOF
20279#! /bin/sh
20280exit 0
20281_ASEOF
20282chmod +x conf$$.file
20283if test -x conf$$.file >/dev/null 2>&1; then
20284 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020285else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020286 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020288rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020289
20290# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020291as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020292
20293# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020294as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020295
20296
John Criswell7a73b802003-06-30 21:59:07 +000020297exec 6>&1
20298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020299# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020300# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020301# values after options handling.
20302ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000020303This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020304generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020305
20306 CONFIG_FILES = $CONFIG_FILES
20307 CONFIG_HEADERS = $CONFIG_HEADERS
20308 CONFIG_LINKS = $CONFIG_LINKS
20309 CONFIG_COMMANDS = $CONFIG_COMMANDS
20310 $ $0 $@
20311
Reid Spencera773bd52006-08-04 18:18:08 +000020312on `(hostname || uname -n) 2>/dev/null | sed 1q`
20313"
20314
John Criswell7a73b802003-06-30 21:59:07 +000020315_ACEOF
20316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020317cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020318# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020319config_files="$ac_config_files"
20320config_headers="$ac_config_headers"
20321config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020322
Reid Spencera773bd52006-08-04 18:18:08 +000020323_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020325cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020326ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020327\`$as_me' instantiates files from templates according to the
20328current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020329
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020331
20332 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020333 -V, --version print version number, then exit
20334 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020335 -d, --debug don't remove temporary files
20336 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020337 --file=FILE[:TEMPLATE]
20338 instantiate the configuration file FILE
20339 --header=FILE[:TEMPLATE]
20340 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020341
20342Configuration files:
20343$config_files
20344
20345Configuration headers:
20346$config_headers
20347
John Criswellc764fbc2003-09-06 15:17:13 +000020348Configuration commands:
20349$config_commands
20350
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020351Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020352
Reid Spencera773bd52006-08-04 18:18:08 +000020353_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020354cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020355ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000020356llvm config.status 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357configured by $0, generated by GNU Autoconf 2.60,
20358 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020361This config.status script is free software; the Free Software Foundation
20362gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020363
20364ac_pwd='$ac_pwd'
20365srcdir='$srcdir'
20366INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020367_ACEOF
20368
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369cat >>$CONFIG_STATUS <<\_ACEOF
20370# If no file are specified by the user, then we need to provide default
20371# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020372ac_need_defaults=:
20373while test $# != 0
20374do
20375 case $1 in
20376 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020377 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20378 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020379 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020380 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020381 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020382 ac_option=$1
20383 ac_optarg=$2
20384 ac_shift=shift
20385 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020386 esac
20387
John Criswell0c38eaf2003-09-10 15:17:25 +000020388 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020389 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020390 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20391 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020392 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020393 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020394 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020395 debug=: ;;
20396 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020397 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020398 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020399 ac_need_defaults=false;;
20400 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020401 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020403 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020404 --he | --h)
20405 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020406 { echo "$as_me: error: ambiguous option: $1
20407Try \`$0 --help' for more information." >&2
20408 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020409 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20413 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020414
20415 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020416 -*) { echo "$as_me: error: unrecognized option: $1
20417Try \`$0 --help' for more information." >&2
20418 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020419
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020420 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020421 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020422
20423 esac
20424 shift
20425done
20426
John Criswell0c38eaf2003-09-10 15:17:25 +000020427ac_configure_extra_args=
20428
20429if $ac_cs_silent; then
20430 exec 6>/dev/null
20431 ac_configure_extra_args="$ac_configure_extra_args --silent"
20432fi
20433
20434_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020435cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020436if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020437 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20438 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020439 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020440 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020441fi
20442
John Criswell7a73b802003-06-30 21:59:07 +000020443_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020445exec 5>>config.log
20446{
20447 echo
20448 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20449## Running $as_me. ##
20450_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020451 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020452} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020453
Reid Spencera773bd52006-08-04 18:18:08 +000020454_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020455cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020456#
Reid Spencera773bd52006-08-04 18:18:08 +000020457# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020458#
Reid Spencerc0682832005-02-24 19:05:19 +000020459llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020460
20461_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020463cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020464
20465# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020466for ac_config_target in $ac_config_targets
20467do
Reid Spencera773bd52006-08-04 18:18:08 +000020468 case $ac_config_target in
20469 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020470 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20471 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020472 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020473 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020474 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020475 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020476 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020477 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020478 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020479 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20480 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20481 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20482 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20483 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20484 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020485 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020486 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20487 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020488 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020489 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20490 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20491 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020492 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20493 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020494
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020495 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20496echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20497 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020498 esac
20499done
20500
Reid Spencera773bd52006-08-04 18:18:08 +000020501
John Criswell7a73b802003-06-30 21:59:07 +000020502# If the user did not use the arguments to specify the items to instantiate,
20503# then the envvar interface is used. Set only those that are not.
20504# We use the long form for the default assignment because of an extremely
20505# bizarre bug on SunOS 4.1.3.
20506if $ac_need_defaults; then
20507 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20508 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020509 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020510fi
20511
John Criswell0c38eaf2003-09-10 15:17:25 +000020512# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020513# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020514# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020515# Hook for its removal unless debugging.
20516# Note that there is a small window in which the directory will not be cleaned:
20517# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020518$debug ||
20519{
Reid Spencera773bd52006-08-04 18:18:08 +000020520 tmp=
20521 trap 'exit_status=$?
20522 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20523' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020524 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020525}
John Criswell7a73b802003-06-30 21:59:07 +000020526# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020527
John Criswell7a73b802003-06-30 21:59:07 +000020528{
Reid Spencera773bd52006-08-04 18:18:08 +000020529 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020530 test -n "$tmp" && test -d "$tmp"
20531} ||
20532{
Reid Spencera773bd52006-08-04 18:18:08 +000020533 tmp=./conf$$-$RANDOM
20534 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020535} ||
20536{
20537 echo "$me: cannot create a temporary directory in ." >&2
20538 { (exit 1); exit 1; }
20539}
John Criswell7a73b802003-06-30 21:59:07 +000020540
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020541#
20542# Set up the sed scripts for CONFIG_FILES section.
20543#
20544
20545# No need to generate the scripts if there are no CONFIG_FILES.
20546# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020547if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020548
20549_ACEOF
20550
Reid Spencera773bd52006-08-04 18:18:08 +000020551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020552
Reid Spencera773bd52006-08-04 18:18:08 +000020553ac_delim='%!_!# '
20554for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020555 cat >conf$$subs.sed <<_ACEOF
20556SHELL!$SHELL$ac_delim
20557PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20558PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20559PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20560PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20561PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20562PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20563exec_prefix!$exec_prefix$ac_delim
20564prefix!$prefix$ac_delim
20565program_transform_name!$program_transform_name$ac_delim
20566bindir!$bindir$ac_delim
20567sbindir!$sbindir$ac_delim
20568libexecdir!$libexecdir$ac_delim
20569datarootdir!$datarootdir$ac_delim
20570datadir!$datadir$ac_delim
20571sysconfdir!$sysconfdir$ac_delim
20572sharedstatedir!$sharedstatedir$ac_delim
20573localstatedir!$localstatedir$ac_delim
20574includedir!$includedir$ac_delim
20575oldincludedir!$oldincludedir$ac_delim
20576docdir!$docdir$ac_delim
20577infodir!$infodir$ac_delim
20578htmldir!$htmldir$ac_delim
20579dvidir!$dvidir$ac_delim
20580pdfdir!$pdfdir$ac_delim
20581psdir!$psdir$ac_delim
20582libdir!$libdir$ac_delim
20583localedir!$localedir$ac_delim
20584mandir!$mandir$ac_delim
20585DEFS!$DEFS$ac_delim
20586ECHO_C!$ECHO_C$ac_delim
20587ECHO_N!$ECHO_N$ac_delim
20588ECHO_T!$ECHO_T$ac_delim
20589LIBS!$LIBS$ac_delim
20590build_alias!$build_alias$ac_delim
20591host_alias!$host_alias$ac_delim
20592target_alias!$target_alias$ac_delim
20593LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20594subdirs!$subdirs$ac_delim
20595build!$build$ac_delim
20596build_cpu!$build_cpu$ac_delim
20597build_vendor!$build_vendor$ac_delim
20598build_os!$build_os$ac_delim
20599host!$host$ac_delim
20600host_cpu!$host_cpu$ac_delim
20601host_vendor!$host_vendor$ac_delim
20602host_os!$host_os$ac_delim
20603target!$target$ac_delim
20604target_cpu!$target_cpu$ac_delim
20605target_vendor!$target_vendor$ac_delim
20606target_os!$target_os$ac_delim
20607OS!$OS$ac_delim
20608HOST_OS!$HOST_OS$ac_delim
20609TARGET_OS!$TARGET_OS$ac_delim
20610LINKALL!$LINKALL$ac_delim
20611NOLINKALL!$NOLINKALL$ac_delim
20612LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20613LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20614ARCH!$ARCH$ac_delim
20615ENDIAN!$ENDIAN$ac_delim
20616CC!$CC$ac_delim
20617CFLAGS!$CFLAGS$ac_delim
20618LDFLAGS!$LDFLAGS$ac_delim
20619CPPFLAGS!$CPPFLAGS$ac_delim
20620ac_ct_CC!$ac_ct_CC$ac_delim
20621EXEEXT!$EXEEXT$ac_delim
20622OBJEXT!$OBJEXT$ac_delim
20623CPP!$CPP$ac_delim
20624GREP!$GREP$ac_delim
20625EGREP!$EGREP$ac_delim
20626LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20627BUILD_CC!$BUILD_CC$ac_delim
20628BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20629BUILD_CXX!$BUILD_CXX$ac_delim
20630CVSBUILD!$CVSBUILD$ac_delim
20631ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20632ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20633DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20634ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20635EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20636DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20637DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20638JIT!$JIT$ac_delim
20639TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20640ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20641ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20642ENABLE_PIC!$ENABLE_PIC$ac_delim
20643TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20644LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20645LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20646LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20647LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20648ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20649OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20650EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20651BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin2155d452010-02-18 04:43:02 +000020652ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020656 break
20657 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20659echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20660 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020661 else
20662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020663 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020664done
20665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20667if test -n "$ac_eof"; then
20668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20669 ac_eof=`expr $ac_eof + 1`
20670fi
20671
20672cat >>$CONFIG_STATUS <<_ACEOF
20673cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20674/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020675_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020676sed '
20677s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20678s/^/s,@/; s/!/@,|#_!!_#|/
20679:n
20680t n
20681s/'"$ac_delim"'$/,g/; t
20682s/$/\\/; p
20683N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20684' >>$CONFIG_STATUS <conf$$subs.sed
20685rm -f conf$$subs.sed
20686cat >>$CONFIG_STATUS <<_ACEOF
20687CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000020688_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020689
20690
20691ac_delim='%!_!# '
20692for ac_last_try in false false false false false :; do
20693 cat >conf$$subs.sed <<_ACEOF
20694ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20695CXX!$CXX$ac_delim
20696CXXFLAGS!$CXXFLAGS$ac_delim
20697ac_ct_CXX!$ac_ct_CXX$ac_delim
20698NM!$NM$ac_delim
20699ifGNUmake!$ifGNUmake$ac_delim
20700LN_S!$LN_S$ac_delim
20701CMP!$CMP$ac_delim
20702CP!$CP$ac_delim
20703DATE!$DATE$ac_delim
20704FIND!$FIND$ac_delim
20705MKDIR!$MKDIR$ac_delim
20706MV!$MV$ac_delim
20707RANLIB!$RANLIB$ac_delim
20708AR!$AR$ac_delim
20709RM!$RM$ac_delim
20710SED!$SED$ac_delim
20711TAR!$TAR$ac_delim
20712BINPWD!$BINPWD$ac_delim
20713GRAPHVIZ!$GRAPHVIZ$ac_delim
20714DOT!$DOT$ac_delim
20715FDP!$FDP$ac_delim
20716NEATO!$NEATO$ac_delim
20717TWOPI!$TWOPI$ac_delim
20718CIRCO!$CIRCO$ac_delim
20719GV!$GV$ac_delim
20720DOTTY!$DOTTY$ac_delim
20721PERL!$PERL$ac_delim
20722HAVE_PERL!$HAVE_PERL$ac_delim
20723INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20724INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20725INSTALL_DATA!$INSTALL_DATA$ac_delim
20726BZIP2!$BZIP2$ac_delim
20727DOXYGEN!$DOXYGEN$ac_delim
20728GROFF!$GROFF$ac_delim
20729GZIP!$GZIP$ac_delim
20730POD2HTML!$POD2HTML$ac_delim
20731POD2MAN!$POD2MAN$ac_delim
20732RUNTEST!$RUNTEST$ac_delim
20733TCLSH!$TCLSH$ac_delim
20734ZIP!$ZIP$ac_delim
20735OCAMLC!$OCAMLC$ac_delim
20736OCAMLOPT!$OCAMLOPT$ac_delim
20737OCAMLDEP!$OCAMLDEP$ac_delim
20738OCAMLDOC!$OCAMLDOC$ac_delim
20739GAS!$GAS$ac_delim
20740INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20741INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20742CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20743CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20744LIBADD_DL!$LIBADD_DL$ac_delim
20745LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20746LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20747LLVMGCC!$LLVMGCC$ac_delim
20748LLVMGXX!$LLVMGXX$ac_delim
20749NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20750NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20751USE_UDIS86!$USE_UDIS86$ac_delim
20752USE_OPROFILE!$USE_OPROFILE$ac_delim
20753HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20754HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20755MMAP_FILE!$MMAP_FILE$ac_delim
20756LLVMCC1!$LLVMCC1$ac_delim
20757LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20758LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20760SHLIBEXT!$SHLIBEXT$ac_delim
20761LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20762LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20763LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20764LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20765LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20766LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20767LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20768LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20769LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20770LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20771BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20772ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20773OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20774ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20775RPATH!$RPATH$ac_delim
20776RDYNAMIC!$RDYNAMIC$ac_delim
20777LIBOBJS!$LIBOBJS$ac_delim
20778LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000020779_ACEOF
20780
Daniel Dunbare209c382010-02-23 07:56:34 +000020781 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020782 break
20783 elif $ac_last_try; then
20784 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20785echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20786 { (exit 1); exit 1; }; }
20787 else
20788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20789 fi
20790done
20791
20792ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20793if test -n "$ac_eof"; then
20794 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20795 ac_eof=`expr $ac_eof + 1`
20796fi
20797
20798cat >>$CONFIG_STATUS <<_ACEOF
20799cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20801_ACEOF
20802sed '
20803s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20804s/^/s,@/; s/!/@,|#_!!_#|/
20805:n
20806t n
20807s/'"$ac_delim"'$/,g/; t
20808s/$/\\/; p
20809N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20810' >>$CONFIG_STATUS <conf$$subs.sed
20811rm -f conf$$subs.sed
20812cat >>$CONFIG_STATUS <<_ACEOF
20813:end
20814s/|#_!!_#|//g
20815CEOF$ac_eof
20816_ACEOF
20817
20818
Reid Spencera773bd52006-08-04 18:18:08 +000020819# VPATH may cause trouble with some makes, so we remove $(srcdir),
20820# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20821# trailing colons and then remove the whole line if VPATH becomes empty
20822# (actually we leave an empty line to preserve line numbers).
20823if test "x$srcdir" = x.; then
20824 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20825s/:*\$(srcdir):*/:/
20826s/:*\${srcdir}:*/:/
20827s/:*@srcdir@:*/:/
20828s/^\([^=]*=[ ]*\):*/\1/
20829s/:*$//
20830s/^[^=]*=[ ]*$//
20831}'
20832fi
20833
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020834cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020835fi # test -n "$CONFIG_FILES"
20836
Reid Spencera773bd52006-08-04 18:18:08 +000020837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020838for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000020839do
20840 case $ac_tag in
20841 :[FHLC]) ac_mode=$ac_tag; continue;;
20842 esac
20843 case $ac_mode$ac_tag in
20844 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020845 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20846echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20847 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020848 :[FH]-) ac_tag=-:-;;
20849 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20850 esac
20851 ac_save_IFS=$IFS
20852 IFS=:
20853 set x $ac_tag
20854 IFS=$ac_save_IFS
20855 shift
20856 ac_file=$1
20857 shift
20858
20859 case $ac_mode in
20860 :L) ac_source=$1;;
20861 :[FH])
20862 ac_file_inputs=
20863 for ac_f
20864 do
20865 case $ac_f in
20866 -) ac_f="$tmp/stdin";;
20867 *) # Look for the file first in the build tree, then in the source tree
20868 # (if the path is not absolute). The absolute path cannot be DOS-style,
20869 # because $ac_f cannot contain `:'.
20870 test -f "$ac_f" ||
20871 case $ac_f in
20872 [\\/$]*) false;;
20873 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20874 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020875 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20876echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20877 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020878 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020879 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000020880 done
20881
20882 # Let's still pretend it is `configure' which instantiates (i.e., don't
20883 # use $as_me), people would be surprised to read:
20884 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020885 configure_input="Generated from "`IFS=:
20886 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000020887 if test x"$ac_file" != x-; then
20888 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020889 { echo "$as_me:$LINENO: creating $ac_file" >&5
20890echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000020891 fi
20892
20893 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020894 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000020895 esac
20896 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020897 esac
20898
Reid Spencera773bd52006-08-04 18:18:08 +000020899 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000020900$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020901 X"$ac_file" : 'X\(//\)[^/]' \| \
20902 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000020903 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020904echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000020905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20906 s//\1/
20907 q
20908 }
20909 /^X\(\/\/\)[^/].*/{
20910 s//\1/
20911 q
20912 }
20913 /^X\(\/\/\)$/{
20914 s//\1/
20915 q
20916 }
20917 /^X\(\/\).*/{
20918 s//\1/
20919 q
20920 }
20921 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020922 { as_dir="$ac_dir"
20923 case $as_dir in #(
20924 -*) as_dir=./$as_dir;;
20925 esac
20926 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20927 as_dirs=
20928 while :; do
20929 case $as_dir in #(
20930 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20931 *) as_qdir=$as_dir;;
20932 esac
20933 as_dirs="'$as_qdir' $as_dirs"
20934 as_dir=`$as_dirname -- "$as_dir" ||
20935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20936 X"$as_dir" : 'X\(//\)[^/]' \| \
20937 X"$as_dir" : 'X\(//\)$' \| \
20938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20939echo X"$as_dir" |
20940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20941 s//\1/
20942 q
20943 }
20944 /^X\(\/\/\)[^/].*/{
20945 s//\1/
20946 q
20947 }
20948 /^X\(\/\/\)$/{
20949 s//\1/
20950 q
20951 }
20952 /^X\(\/\).*/{
20953 s//\1/
20954 q
20955 }
20956 s/.*/./; q'`
20957 test -d "$as_dir" && break
20958 done
20959 test -z "$as_dirs" || eval "mkdir $as_dirs"
20960 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20961echo "$as_me: error: cannot create directory $as_dir" >&2;}
20962 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000020963 ac_builddir=.
20964
Reid Spencera773bd52006-08-04 18:18:08 +000020965case "$ac_dir" in
20966.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20967*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020968 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000020969 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020970 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000020971 case $ac_top_builddir_sub in
20972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20974 esac ;;
20975esac
20976ac_abs_top_builddir=$ac_pwd
20977ac_abs_builddir=$ac_pwd$ac_dir_suffix
20978# for backward compatibility:
20979ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000020980
20981case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000020982 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000020983 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000020984 ac_top_srcdir=$ac_top_builddir_sub
20985 ac_abs_top_srcdir=$ac_pwd ;;
20986 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000020987 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000020988 ac_top_srcdir=$srcdir
20989 ac_abs_top_srcdir=$srcdir ;;
20990 *) # Relative name.
20991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20992 ac_top_srcdir=$ac_top_build_prefix$srcdir
20993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000020994esac
Reid Spencera773bd52006-08-04 18:18:08 +000020995ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000020996
John Criswell7a73b802003-06-30 21:59:07 +000020997
Reid Spencera773bd52006-08-04 18:18:08 +000020998 case $ac_mode in
20999 :F)
21000 #
21001 # CONFIG_FILE
21002 #
John Criswell7a73b802003-06-30 21:59:07 +000021003
21004 case $INSTALL in
21005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021006 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021007 esac
John Criswell7a73b802003-06-30 21:59:07 +000021008_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021011# If the template does not know about datarootdir, expand it.
21012# FIXME: This hack should be removed a few years after 2.60.
21013ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021014
21015case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021016 p
21017 q
21018}
21019/@datadir@/p
21020/@docdir@/p
21021/@infodir@/p
21022/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021023/@mandir@/p
21024' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021025*datarootdir*) ac_datarootdir_seen=yes;;
21026*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021027 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21028echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021029_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021030cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021031 ac_datarootdir_hack='
21032 s&@datadir@&$datadir&g
21033 s&@docdir@&$docdir&g
21034 s&@infodir@&$infodir&g
21035 s&@localedir@&$localedir&g
21036 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021037 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021038esac
21039_ACEOF
21040
21041# Neutralize VPATH when `$srcdir' = `.'.
21042# Shell code in configure.ac might set extrasub.
21043# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021044cat >>$CONFIG_STATUS <<_ACEOF
21045 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021046$extrasub
21047_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021048cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021049:t
21050/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021051s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021052s&@top_builddir@&$ac_top_builddir_sub&;t t
21053s&@srcdir@&$ac_srcdir&;t t
21054s&@abs_srcdir@&$ac_abs_srcdir&;t t
21055s&@top_srcdir@&$ac_top_srcdir&;t t
21056s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21057s&@builddir@&$ac_builddir&;t t
21058s&@abs_builddir@&$ac_abs_builddir&;t t
21059s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21060s&@INSTALL@&$ac_INSTALL&;t t
21061$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021062" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021063
Reid Spencera773bd52006-08-04 18:18:08 +000021064test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021068which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021069echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021070which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021071
Reid Spencera773bd52006-08-04 18:18:08 +000021072 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021073 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021074 -) cat "$tmp/out"; rm -f "$tmp/out";;
21075 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21076 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021077 ;;
21078 :H)
21079 #
21080 # CONFIG_HEADER
21081 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021082_ACEOF
21083
21084# Transform confdefs.h into a sed script `conftest.defines', that
21085# substitutes the proper values into config.h.in to produce config.h.
21086rm -f conftest.defines conftest.tail
21087# First, append a space to every undef/define line, to ease matching.
21088echo 's/$/ /' >conftest.defines
21089# Then, protect against being on the right side of a sed subst, or in
21090# an unquoted here document, in config.status. If some macros were
21091# called several times there might be several #defines for the same
21092# symbol, which is useless. But do not sort them, since the last
21093# AC_DEFINE must be honored.
21094ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21095# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21096# NAME is the cpp macro being defined, VALUE is the value it is being given.
21097# PARAMS is the parameter list in the macro definition--in most cases, it's
21098# just an empty string.
21099ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21100ac_dB='\\)[ (].*,\\1define\\2'
21101ac_dC=' '
21102ac_dD=' ,'
21103
21104uniq confdefs.h |
21105 sed -n '
21106 t rset
21107 :rset
21108 s/^[ ]*#[ ]*define[ ][ ]*//
21109 t ok
21110 d
21111 :ok
21112 s/[\\&,]/\\&/g
21113 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21114 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21115 ' >>conftest.defines
21116
21117# Remove the space that was appended to ease matching.
21118# Then replace #undef with comments. This is necessary, for
21119# example, in the case of _POSIX_SOURCE, which is predefined and required
21120# on some systems where configure will not decide to define it.
21121# (The regexp can be short, since the line contains either #define or #undef.)
21122echo 's/ $//
21123s,^[ #]*u.*,/* & */,' >>conftest.defines
21124
21125# Break up conftest.defines:
21126ac_max_sed_lines=50
21127
21128# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21129# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21130# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21131# et cetera.
21132ac_in='$ac_file_inputs'
21133ac_out='"$tmp/out1"'
21134ac_nxt='"$tmp/out2"'
21135
21136while :
21137do
21138 # Write a here document:
21139 cat >>$CONFIG_STATUS <<_ACEOF
21140 # First, check the format of the line:
21141 cat >"\$tmp/defines.sed" <<\\CEOF
21142/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21143/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21144b
21145:def
21146_ACEOF
21147 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21148 echo 'CEOF
21149 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21150 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21151 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21152 grep . conftest.tail >/dev/null || break
21153 rm -f conftest.defines
21154 mv conftest.tail conftest.defines
21155done
21156rm -f conftest.defines conftest.tail
21157
21158echo "ac_result=$ac_in" >>$CONFIG_STATUS
21159cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021160 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021161 echo "/* $configure_input */" >"$tmp/config.h"
21162 cat "$ac_result" >>"$tmp/config.h"
21163 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21164 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21165echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021166 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021167 rm -f $ac_file
21168 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021169 fi
21170 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021171 echo "/* $configure_input */"
21172 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021173 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021175 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021176
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021177 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21178echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021179 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021180 esac
John Criswell7a73b802003-06-30 21:59:07 +000021181
Reid Spencera773bd52006-08-04 18:18:08 +000021182
21183 case $ac_file$ac_mode in
21184 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021186 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021188 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021190 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021192 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021194 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021196 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021198 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021200 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021201 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021202 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021203 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021204 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021205 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021206 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021207 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021208 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021209 ${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 +000021210
21211 esac
21212done # for ac_tag
21213
John Criswell7a73b802003-06-30 21:59:07 +000021214
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021215{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021216_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021218ac_clean_files=$ac_clean_files_save
21219
21220
21221# configure is writing to config.log, and then calls config.status.
21222# config.status does its own redirection, appending to config.log.
21223# Unfortunately, on DOS this fails, as config.log is still kept open
21224# by configure, so config.status won't be able to write to it; its
21225# output is simply discarded. So we exec the FD to /dev/null,
21226# effectively closing config.log, so it can be properly (re)opened and
21227# appended to by config.status. When coming back to configure, we
21228# need to make the FD available again.
21229if test "$no_create" != yes; then
21230 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021231 ac_config_status_args=
21232 test "$silent" = yes &&
21233 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021234 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021235 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021236 exec 5>>config.log
21237 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21238 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021239 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021240fi
21241
John Criswell12399a12003-09-30 15:55:44 +000021242#
21243# CONFIG_SUBDIRS section.
21244#
21245if test "$no_recursion" != yes; then
21246
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021247 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021248 ac_sub_configure_args=
21249 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021250 eval "set x $ac_configure_args"
21251 shift
21252 for ac_arg
21253 do
John Criswell12399a12003-09-30 15:55:44 +000021254 if test -n "$ac_prev"; then
21255 ac_prev=
21256 continue
21257 fi
21258 case $ac_arg in
21259 -cache-file | --cache-file | --cache-fil | --cache-fi \
21260 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21261 ac_prev=cache_file ;;
21262 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21263 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21264 | --c=*)
21265 ;;
21266 --config-cache | -C)
21267 ;;
21268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21269 ac_prev=srcdir ;;
21270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21271 ;;
21272 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21273 ac_prev=prefix ;;
21274 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21275 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021276 *)
21277 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021278 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021279 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021280 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021281 esac
21282 done
21283
21284 # Always prepend --prefix to ensure using the same prefix
21285 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021286 ac_arg="--prefix=$prefix"
21287 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021289 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021290 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021291
21292 ac_popdir=`pwd`
21293 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21294
21295 # Do not complain, so a configure script can configure whichever
21296 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021297 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021298
Reid Spencera773bd52006-08-04 18:18:08 +000021299 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021300 echo "$as_me:$LINENO: $ac_msg" >&5
21301 echo "$ac_msg" >&6
21302 { as_dir="$ac_dir"
21303 case $as_dir in #(
21304 -*) as_dir=./$as_dir;;
21305 esac
21306 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21307 as_dirs=
21308 while :; do
21309 case $as_dir in #(
21310 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21311 *) as_qdir=$as_dir;;
21312 esac
21313 as_dirs="'$as_qdir' $as_dirs"
21314 as_dir=`$as_dirname -- "$as_dir" ||
21315$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21316 X"$as_dir" : 'X\(//\)[^/]' \| \
21317 X"$as_dir" : 'X\(//\)$' \| \
21318 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21319echo X"$as_dir" |
21320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21321 s//\1/
21322 q
21323 }
21324 /^X\(\/\/\)[^/].*/{
21325 s//\1/
21326 q
21327 }
21328 /^X\(\/\/\)$/{
21329 s//\1/
21330 q
21331 }
21332 /^X\(\/\).*/{
21333 s//\1/
21334 q
21335 }
21336 s/.*/./; q'`
21337 test -d "$as_dir" && break
21338 done
21339 test -z "$as_dirs" || eval "mkdir $as_dirs"
21340 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21341echo "$as_me: error: cannot create directory $as_dir" >&2;}
21342 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021343 ac_builddir=.
21344
Reid Spencera773bd52006-08-04 18:18:08 +000021345case "$ac_dir" in
21346.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21347*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021348 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021349 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021350 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021351 case $ac_top_builddir_sub in
21352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21354 esac ;;
21355esac
21356ac_abs_top_builddir=$ac_pwd
21357ac_abs_builddir=$ac_pwd$ac_dir_suffix
21358# for backward compatibility:
21359ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021360
21361case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021362 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021363 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021364 ac_top_srcdir=$ac_top_builddir_sub
21365 ac_abs_top_srcdir=$ac_pwd ;;
21366 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021367 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021368 ac_top_srcdir=$srcdir
21369 ac_abs_top_srcdir=$srcdir ;;
21370 *) # Relative name.
21371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21372 ac_top_srcdir=$ac_top_build_prefix$srcdir
21373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021374esac
Reid Spencera773bd52006-08-04 18:18:08 +000021375ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021376
21377
Reid Spencera773bd52006-08-04 18:18:08 +000021378 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021379
21380 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021381 if test -f "$ac_srcdir/configure.gnu"; then
21382 ac_sub_configure=$ac_srcdir/configure.gnu
21383 elif test -f "$ac_srcdir/configure"; then
21384 ac_sub_configure=$ac_srcdir/configure
21385 elif test -f "$ac_srcdir/configure.in"; then
21386 # This should be Cygnus configure.
21387 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021388 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021389 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21390echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021391 ac_sub_configure=
21392 fi
21393
21394 # The recursion is here.
21395 if test -n "$ac_sub_configure"; then
21396 # Make the cache file name correct relative to the subdirectory.
21397 case $cache_file in
21398 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021399 *) # Relative name.
21400 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021401 esac
21402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21404echo "$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 +000021405 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021406 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21407 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21409echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21410 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021411 fi
21412
Reid Spencera773bd52006-08-04 18:18:08 +000021413 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021414 done
21415fi
21416