blob: 75f1c2b04b26fccd8afce13102b9084fe237cd0e [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Tanya Lattnerdc29dff2010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000693TARGETS_TO_BUILD
694LLVM_ENUM_TARGETS
695LLVM_ENUM_ASM_PRINTERS
696LLVM_ENUM_ASM_PARSERS
697LLVM_ENUM_DISASSEMBLERS
698ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000699CLANGPATH
700CLANGXXPATH
701ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000702OPTIMIZE_OPTION
703EXTRA_OPTIONS
704BINUTILS_INCDIR
705ENABLE_LLVMC_DYNAMIC
706ENABLE_LLVMC_DYNAMIC_PLUGINS
707CXX
708CXXFLAGS
709ac_ct_CXX
710NM
711ifGNUmake
712LN_S
713CMP
714CP
715DATE
716FIND
717MKDIR
718MV
719RANLIB
720AR
721RM
722SED
723TAR
724BINPWD
725GRAPHVIZ
726DOT
727FDP
728NEATO
729TWOPI
730CIRCO
731GV
732DOTTY
733PERL
734HAVE_PERL
735INSTALL_PROGRAM
736INSTALL_SCRIPT
737INSTALL_DATA
738BZIP2
739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
744RUNTEST
745TCLSH
746ZIP
747OCAMLC
748OCAMLOPT
749OCAMLDEP
750OCAMLDOC
751GAS
752INSTALL_LTDL_TRUE
753INSTALL_LTDL_FALSE
754CONVENIENCE_LTDL_TRUE
755CONVENIENCE_LTDL_FALSE
756LIBADD_DL
757LLVMGCCCOMMAND
758LLVMGXXCOMMAND
759LLVMGCC
760LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000761LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000762NO_VARIADIC_MACROS
763NO_MISSING_FIELD_INITIALIZERS
764USE_UDIS86
765USE_OPROFILE
766HAVE_PTHREAD
767HUGE_VAL_SANITY
768MMAP_FILE
769LLVMCC1
770LLVMCC1PLUS
771LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000772LLVMGCC_LANGS
773SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000774SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVM_PREFIX
776LLVM_BINDIR
777LLVM_LIBDIR
778LLVM_DATADIR
779LLVM_DOCSDIR
780LLVM_ETCDIR
781LLVM_INCLUDEDIR
782LLVM_INFODIR
783LLVM_MANDIR
784LLVM_CONFIGTIME
785BINDINGS_TO_BUILD
786ALL_BINDINGS
787OCAML_LIBDIR
788ENABLE_VISIBILITY_INLINES_HIDDEN
789RPATH
790RDYNAMIC
791LIBOBJS
792LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000793ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000794 ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800CPPFLAGS
801CPP
802CXX
803CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000804CCC'
John Criswell0157f502010-03-19 21:31:39 +0000805ac_subdirs_all='projects/llvm-gcc
806projects/test-suite
807projects/llvm-test
808projects/poolalloc
809projects/llvm-poolalloc
810projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000811projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000812projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000814projects/llvm-java
815projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000816projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000817projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000818
819# Initialize some variables set by options.
820ac_init_help=
821ac_init_version=false
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000844# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000853includedir='${prefix}/include'
854oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000864
865ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000866ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000867for ac_option
868do
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000871 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000872 ac_prev=
873 continue
874 fi
875
Reid Spencera773bd52006-08-04 18:18:08 +0000876 case $ac_option in
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 *) ac_optarg=yes ;;
879 esac
John Criswell7a73b802003-06-30 21:59:07 +0000880
881 # Accept the important Cygnus configure options, so we can diagnose typos.
882
Reid Spencera773bd52006-08-04 18:18:08 +0000883 case $ac_dashdash$ac_option in
884 --)
885 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000886
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
891
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
896
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
903
904 --config-cache | -C)
905 cache_file=config.cache ;;
906
Reid Spencera773bd52006-08-04 18:18:08 +0000907 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000908 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000910 datadir=$ac_optarg ;;
911
Reid Spencera773bd52006-08-04 18:18:08 +0000912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
918
John Criswell7a73b802003-06-30 21:59:07 +0000919 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000921 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000937
938 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000940 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
Reid Spencera773bd52006-08-04 18:18:08 +0000972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
John Criswell7a73b802003-06-30 21:59:07 +0000978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
Reid Spencera773bd52006-08-04 18:18:08 +00001002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
John Criswell7a73b802003-06-30 21:59:07 +00001007 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001008 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
Reid Spencera773bd52006-08-04 18:18:08 +00001076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
John Criswell7a73b802003-06-30 21:59:07 +00001086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001137 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001143
1144 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001174 ;;
1175
1176 *=*)
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001182 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 ;;
1192
1193 esac
1194done
1195
1196if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001200fi
1201
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001202# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001203for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001207do
Reid Spencera773bd52006-08-04 18:18:08 +00001208 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001209 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001212 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001215done
1216
1217# There might be people who depend on the old broken behavior: `$host'
1218# used to hold the argument of --host etc.
1219# FIXME: To remove some day.
1220build=$build_alias
1221host=$host_alias
1222target=$target_alias
1223
1224# FIXME: To remove some day.
1225if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1231 cross_compiling=yes
1232 fi
1233fi
1234
1235ac_tool_prefix=
1236test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237
1238test "$silent" = yes && exec 6>/dev/null
1239
1240
Reid Spencera773bd52006-08-04 18:18:08 +00001241ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242ac_ls_di=`ls -di .` &&
1243ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001246test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001249
1250
John Criswell7a73b802003-06-30 21:59:07 +00001251# Find the source files, if location was not specified.
1252if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001254 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001255 ac_confdir=`$as_dirname -- "$0" ||
1256$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1260echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1262 s//\1/
1263 q
1264 }
1265 /^X\(\/\/\)[^/].*/{
1266 s//\1/
1267 q
1268 }
1269 /^X\(\/\/\)$/{
1270 s//\1/
1271 q
1272 }
1273 /^X\(\/\).*/{
1274 s//\1/
1275 q
1276 }
1277 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001278 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001279 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=..
1281 fi
1282else
1283 ac_srcdir_defaulted=no
1284fi
Reid Spencera773bd52006-08-04 18:18:08 +00001285if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001289fi
Reid Spencera773bd52006-08-04 18:18:08 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001294 pwd)`
1295# When building in place, set srcdir=.
1296if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 srcdir=.
1298fi
1299# Remove unnecessary trailing slashes from srcdir.
1300# Double slashes in file names in object file debugging info
1301# mess up M-x gdb in Emacs.
1302case $srcdir in
1303*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1304esac
1305for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310done
John Criswell7a73b802003-06-30 21:59:07 +00001311
1312#
1313# Report the --help message.
1314#
1315if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1318 cat <<_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001319\`configure' configures llvm 2.8svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321Usage: $0 [OPTION]... [VAR=VALUE]...
1322
1323To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324VAR=VALUE. See below for descriptions of some of the useful variables.
1325
1326Defaults for the options are specified in brackets.
1327
1328Configuration:
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338
John Criswell7a73b802003-06-30 21:59:07 +00001339Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001341 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001344
1345By default, \`make install' will install all the files in
1346\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348for instance \`--prefix=\$HOME'.
1349
1350For better control, use the options below.
1351
1352Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001372_ACEOF
1373
1374 cat <<\_ACEOF
1375
1376System types:
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1380_ACEOF
1381fi
1382
1383if test -n "$ac_init_help"; then
1384 case $ac_init_help in
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001385 short | recursive ) echo "Configuration of llvm 2.8svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001386 esac
1387 cat <<\_ACEOF
1388
1389Optional Features:
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1395 YES)
David Greenea696d242007-06-28 19:36:08 +00001396 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001397 Compile with expensive debug checks enabled (default
1398 is NO)
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1400 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001403 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001404 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001405 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001406 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001407 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001408 --enable-shared Build a shared library and link tools against it
1409 (default is NO)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001410 --enable-targets Build specific host targets: all or
1411 target1,target2,... Valid targets are: host, x86,
1412 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001415 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1416 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001417 --enable-bindings Build specific language bindings:
1418 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001419 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001420 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1421 Win32)
1422 --enable-llvmc-dynamic-plugins
1423 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001424 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001441 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001454 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001468 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001536llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
John Criswell5a129712010-03-19 21:04:16 +00001544Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001552It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$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 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
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_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
John Criswell5a129712010-03-19 21:04:16 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
John Criswell0157f502010-03-19 21:31:39 +00001954
1955
1956if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1958
1959fi
1960
1961if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1963
1964fi
1965
1966if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1968
1969fi
1970
1971if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1978
1979fi
1980
John Criswell33a911a2003-11-25 20:36:46 +00001981for i in `ls ${srcdir}/projects`
1982do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001985 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001986 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001988 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001989 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001991 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001993;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001994 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001995 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001997 ;;
John Criswell7def2932010-02-25 22:57:19 +00001998 safecode) subdirs="$subdirs projects/safecode"
1999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002001 ;;
John Criswell52c02862010-03-25 13:59:09 +00002002 llvm-gcc) ;;
2003 test-suite) ;;
2004 llvm-test) ;;
2005 poolalloc) ;;
2006 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002007 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002010 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002011 esac
John Criswell33a911a2003-11-25 20:36:46 +00002012 fi
2013done
John Criswell559a6c12003-09-30 16:31:48 +00002014
John Criswell7a73b802003-06-30 21:59:07 +00002015
2016# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002017$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002022{ echo "$as_me:$LINENO: checking build system type" >&5
2023echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002026else
Reid Spencera773bd52006-08-04 18:18:08 +00002027 ac_build_alias=$build_alias
2028test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002038
2039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002040{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002042case $ac_cv_build in
2043*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002044*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002047esac
John Criswell7a73b802003-06-30 21:59:07 +00002048build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002049ac_save_IFS=$IFS; IFS='-'
2050set x $ac_cv_build
2051shift
2052build_cpu=$1
2053build_vendor=$2
2054shift; shift
2055# Remember, the first character of IFS is used to create $*,
2056# except with old shells:
2057build_os=$*
2058IFS=$ac_save_IFS
2059case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002060
2061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002062{ echo "$as_me:$LINENO: checking host system type" >&5
2063echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002066else
Reid Spencera773bd52006-08-04 18:18:08 +00002067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2069else
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002074fi
John Criswell7a73b802003-06-30 21:59:07 +00002075
2076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079case $ac_cv_host in
2080*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002084esac
John Criswell7a73b802003-06-30 21:59:07 +00002085host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_host
2088shift
2089host_cpu=$1
2090host_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094host_os=$*
2095IFS=$ac_save_IFS
2096case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002097
2098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002099{ echo "$as_me:$LINENO: checking target system type" >&5
2100echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002103else
Reid Spencera773bd52006-08-04 18:18:08 +00002104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2106else
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111fi
John Criswell7a73b802003-06-30 21:59:07 +00002112
2113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002116case $ac_cv_target in
2117*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002121esac
John Criswell7a73b802003-06-30 21:59:07 +00002122target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_target
2125shift
2126target_cpu=$1
2127target_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131target_os=$*
2132IFS=$ac_save_IFS
2133case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002134
2135
2136# The aliases save the names the user supplied, while $host etc.
2137# will get canonicalized.
2138test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2140 NONENONEs,x,x, &&
2141 program_prefix=${target_alias}-
2142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002143{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002147else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002148 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002149 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002154 *-*-irix*)
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002159 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2164 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002165 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002166 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002169 *-*-minix*)
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002174 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002179 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002182 llvm_cv_os_type="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002184 *-*-netbsd*)
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002189 *-*-dragonfly*)
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002194 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002197 llvm_cv_os_type="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002199 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2204 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2209 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002214 *-*-auroraux*)
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002219 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2224 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002229 *-*-haiku*)
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002234 *-unknown-eabi*)
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-unknown-elf*)
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002249esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002251{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002254{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002258else
2259 case $target in
2260 *-*-aix*)
2261 llvm_cv_target_os_type="AIX" ;;
2262 *-*-irix*)
2263 llvm_cv_target_os_type="IRIX" ;;
2264 *-*-cygwin*)
2265 llvm_cv_target_os_type="Cygwin" ;;
2266 *-*-darwin*)
2267 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002268 *-*-minix*)
2269 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002270 *-*-freebsd*)
2271 llvm_cv_target_os_type="FreeBSD" ;;
2272 *-*-openbsd*)
2273 llvm_cv_target_os_type="OpenBSD" ;;
2274 *-*-netbsd*)
2275 llvm_cv_target_os_type="NetBSD" ;;
2276 *-*-dragonfly*)
2277 llvm_cv_target_os_type="DragonFly" ;;
2278 *-*-hpux*)
2279 llvm_cv_target_os_type="HP-UX" ;;
2280 *-*-interix*)
2281 llvm_cv_target_os_type="Interix" ;;
2282 *-*-linux*)
2283 llvm_cv_target_os_type="Linux" ;;
2284 *-*-solaris*)
2285 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002286 *-*-auroraux*)
2287 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002288 *-*-win32*)
2289 llvm_cv_target_os_type="Win32" ;;
2290 *-*-mingw*)
2291 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002292 *-*-haiku*)
2293 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002294 *-unknown-eabi*)
2295 llvm_cv_target_os_type="Freestanding" ;;
2296 *)
2297 llvm_cv_target_os_type="Unknown" ;;
2298esac
2299fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002300{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002302
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002307fi
2308
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002310
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002311HOST_OS=$llvm_cv_os_type
2312
2313TARGET_OS=$llvm_cv_target_os_type
2314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002315
Reid Spencera773bd52006-08-04 18:18:08 +00002316LINKALL=$llvm_cv_link_all_option
2317
2318NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321case $llvm_cv_platform_type in
2322 Unix)
2323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002324cat >>confdefs.h <<\_ACEOF
2325#define LLVM_ON_UNIX 1
2326_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002328 LLVM_ON_UNIX=1
2329
2330 LLVM_ON_WIN32=0
2331
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 ;;
2333 Win32)
2334
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002335cat >>confdefs.h <<\_ACEOF
2336#define LLVM_ON_WIN32 1
2337_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002339 LLVM_ON_UNIX=0
2340
2341 LLVM_ON_WIN32=1
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343 ;;
2344esac
2345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002346{ echo "$as_me:$LINENO: checking target architecture" >&5
2347echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002350else
2351 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002352 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002357 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002358 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002359 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002360 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002361 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002365 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002366esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002370
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374fi
John Criswell76595452003-07-01 22:07:39 +00002375
Nick Lewycky83fc4472009-09-29 05:48:51 +00002376# Determine the LLVM native architecture for the target
2377case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381esac
2382
2383ARCH=$llvm_cv_target_arch
2384
2385
2386ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002391if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411 break 2
2412 fi
2413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414done
Reid Spencera773bd52006-08-04 18:18:08 +00002415IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416
2417fi
2418fi
2419CC=$ac_cv_prog_CC
2420if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421 { echo "$as_me:$LINENO: result: $CC" >&5
2422echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 { echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426fi
2427
Reid Spencera773bd52006-08-04 18:18:08 +00002428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429fi
2430if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451 break 2
2452 fi
2453done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002454done
Reid Spencera773bd52006-08-04 18:18:08 +00002455IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456
2457fi
2458fi
2459ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464 { echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466fi
2467
Reid Spencera773bd52006-08-04 18:18:08 +00002468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474whose name does not start with the host triplet. If you think this
2475configuration is useful to you, please write to autoconf@gnu.org." >&5
2476echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477whose name does not start with the host triplet. If you think this
2478configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002479ac_tool_warned=yes ;;
2480esac
2481 CC=$ac_ct_CC
2482 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483else
2484 CC="$ac_cv_prog_CC"
2485fi
2486
2487if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508 break 2
2509 fi
2510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511done
Reid Spencera773bd52006-08-04 18:18:08 +00002512IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513
2514fi
2515fi
2516CC=$ac_cv_prog_CC
2517if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002518 { echo "$as_me:$LINENO: result: $CC" >&5
2519echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521 { echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523fi
2524
Reid Spencera773bd52006-08-04 18:18:08 +00002525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527fi
2528if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539 ac_prog_rejected=no
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2549 continue
2550 fi
2551 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553 break 2
2554 fi
2555done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002556done
Reid Spencera773bd52006-08-04 18:18:08 +00002557IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558
2559if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2562 shift
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2567 shift
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569 fi
2570fi
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575 { echo "$as_me:$LINENO: result: $CC" >&5
2576echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580fi
2581
Reid Spencera773bd52006-08-04 18:18:08 +00002582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583fi
2584if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002587 do
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002594else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002607 break 2
2608 fi
2609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610done
Reid Spencera773bd52006-08-04 18:18:08 +00002611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002612
2613fi
2614fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002622fi
2623
Reid Spencera773bd52006-08-04 18:18:08 +00002624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002626 done
2627fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628if test -z "$CC"; then
2629 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002630 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002631do
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 break 2
2652 fi
2653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654done
Reid Spencera773bd52006-08-04 18:18:08 +00002655IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002656
2657fi
2658fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666fi
2667
Reid Spencera773bd52006-08-04 18:18:08 +00002668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002670done
John Criswell7a73b802003-06-30 21:59:07 +00002671
Reid Spencera773bd52006-08-04 18:18:08 +00002672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002677{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678whose name does not start with the host triplet. If you think this
2679configuration is useful to you, please write to autoconf@gnu.org." >&5
2680echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681whose name does not start with the host triplet. If you think this
2682configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002683ac_tool_warned=yes ;;
2684esac
2685 CC=$ac_ct_CC
2686 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687fi
2688
John Criswell7a73b802003-06-30 21:59:07 +00002689fi
2690
2691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: no acceptable C compiler found in \$PATH
2695See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697
John Criswell7a73b802003-06-30 21:59:07 +00002698# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002699echo "$as_me:$LINENO: checking for C compiler version" >&5
2700ac_compiler=`set X $ac_compile; echo $2`
2701{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002708 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711{ (ac_try="$ac_compiler -v >&5"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721{ (ac_try="$ac_compiler -V >&5"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002732cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002738
John Criswell7a73b802003-06-30 21:59:07 +00002739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002749# Try to create an executable without -o first, disregard a.out.
2750# It will help us diagnose broken compilers, and finding out an intuition
2751# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755#
2756# List of possible output files, starting from the most likely.
2757# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758# only as a last resort. b.out is created by i960 compilers.
2759ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760#
2761# The IRIX 6 linker writes into existing files which may not be
2762# executable, retaining their permissions. Remove them first so a
2763# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002764ac_rmfiles=
2765for ac_file in $ac_files
2766do
2767 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 esac
2771done
2772rm -f $ac_rmfiles
2773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002774if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002780 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002781 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786# in a Makefile. We should not override ac_cv_exeext if it was cached,
2787# so that the user can short-circuit this test for compilers unknown to
2788# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002789for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002790do
2791 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002792 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002794 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002795 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002799 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 fi
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002809 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002810 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002811 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002812 esac
2813done
Reid Spencera773bd52006-08-04 18:18:08 +00002814test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
John Criswell7a73b802003-06-30 21:59:07 +00002816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821See \`config.log' for more details." >&5
2822echo "$as_me: error: C compiler cannot create executables
2823See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002825fi
John Criswell7a73b802003-06-30 21:59:07 +00002826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002827ac_exeext=$ac_cv_exeext
2828{ echo "$as_me:$LINENO: result: $ac_file" >&5
2829echo "${ECHO_T}$ac_file" >&6; }
2830
2831# Check that the compiler produces executables we can run. If not, either
2832# the compiler is broken, or we cross compile.
2833{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836# If not cross compiling, check that we can run a simple program.
2837if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854If you meant to cross compile, use \`--host'.
2855See \`config.log' for more details." >&5
2856echo "$as_me: error: cannot run C compiled programs.
2857If you meant to cross compile, use \`--host'.
2858See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2860 fi
2861 fi
2862fi
2863{ echo "$as_me:$LINENO: result: yes" >&5
2864echo "${ECHO_T}yes" >&6; }
2865
2866rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002867ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868# Check that the compiler produces executables we can run. If not, either
2869# the compiler is broken, or we cross compile.
2870{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002883 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002884 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889# work properly (i.e., refer to `conftest.exe'), while it won't with
2890# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002891for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002893 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002896 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002897 * ) break;;
2898 esac
2899done
2900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902See \`config.log' for more details." >&5
2903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907
2908rm -f conftest$ac_cv_exeext
2909{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002911
2912rm -f conftest.$ac_ext
2913EXEEXT=$ac_cv_exeext
2914ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002915{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002926
John Criswell7a73b802003-06-30 21:59:07 +00002927int
2928main ()
2929{
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002936if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002942 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002943 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002948 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953done
2954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002956sed 's/^/| /' conftest.$ac_ext >&5
2957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002958{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964
John Criswell7a73b802003-06-30 21:59:07 +00002965rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002967{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002969OBJEXT=$ac_cv_objext
2970ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002971{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002981/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002982
John Criswell7a73b802003-06-30 21:59:07 +00002983int
2984main ()
2985{
2986#ifndef __GNUC__
2987 choke me
2988#endif
2989
2990 ;
2991 return 0;
2992}
2993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002994rm -f conftest.$ac_objext
2995if { (ac_try="$ac_compile"
2996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003028 ac_compiler_gnu=yes
3029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003030 echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003035
Reid Spencera773bd52006-08-04 18:18:08 +00003036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003037ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003038
3039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003040{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043ac_test_CFLAGS=${CFLAGS+set}
3044ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003045{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003049else
Reid Spencera773bd52006-08-04 18:18:08 +00003050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3052 ac_cv_prog_cc_g=no
3053 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003060
John Criswell7a73b802003-06-30 21:59:07 +00003061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003103 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 :
Torok Edwin871384f2010-01-26 08:50:50 +00003159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003164 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003214 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
John Criswell7a73b802003-06-30 21:59:07 +00003220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221
Reid Spencera773bd52006-08-04 18:18:08 +00003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224
Reid Spencera773bd52006-08-04 18:18:08 +00003225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227
Reid Spencera773bd52006-08-04 18:18:08 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003231{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003238 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003240 fi
3241else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003244 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003246 fi
3247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003248{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252else
Reid Spencera773bd52006-08-04 18:18:08 +00003253 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255cat >conftest.$ac_ext <<_ACEOF
3256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260/* end confdefs.h. */
3261#include <stdarg.h>
3262#include <stdio.h>
3263#include <sys/types.h>
3264#include <sys/stat.h>
3265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266struct buf { int x; };
3267FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268static char *e (p, i)
3269 char **p;
3270 int i;
3271{
3272 return p[i];
3273}
3274static char *f (char * (*g) (char **, int), char **p, ...)
3275{
3276 char *s;
3277 va_list v;
3278 va_start (v,p);
3279 s = g (p, va_arg (v,int));
3280 va_end (v);
3281 return s;
3282}
3283
3284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003287 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003290 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292
Reid Spencera773bd52006-08-04 18:18:08 +00003293/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3295#define FOO(x) 'x'
3296int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298int test (int i, double x);
3299struct s1 {int (*f) (int a);};
3300struct s2 {int (*f) (double a);};
3301int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302int argc;
3303char **argv;
3304int
3305main ()
3306{
3307return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 ;
3309 return 0;
3310}
3311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003312for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314do
3315 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003316 rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003350 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357
Reid Spencera773bd52006-08-04 18:18:08 +00003358rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360done
Reid Spencera773bd52006-08-04 18:18:08 +00003361rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362CC=$ac_save_CC
3363
3364fi
Reid Spencera773bd52006-08-04 18:18:08 +00003365# AC_CACHE_VAL
3366case "x$ac_cv_prog_cc_c89" in
3367 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003368 { echo "$as_me:$LINENO: result: none needed" >&5
3369echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003370 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003374 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377esac
3378
John Criswell0c38eaf2003-09-10 15:17:25 +00003379
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394# On Suns, sometimes $CPP names a directory.
3395if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3397fi
3398if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 do
3405 ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419/* end confdefs.h. */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
3425 Syntax error
3426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427if { (ac_try="$ac_cpp conftest.$ac_ext"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3445 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
3450 :
3451else
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 # Broken: fails on valid input.
3456continue
3457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003458
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459rm -f conftest.err conftest.$ac_ext
3460
Reid Spencera773bd52006-08-04 18:18:08 +00003461 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003468/* end confdefs.h. */
3469#include <ac_nonexistent.h>
3470_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494 # Broken: success on invalid input.
3495continue
3496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500 # Passes both tests.
3501ac_preproc_ok=:
3502break
3503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511 break
3512fi
3513
3514 done
3515 ac_cv_prog_CPP=$CPP
3516
3517fi
3518 CPP=$ac_cv_prog_CPP
3519else
3520 ac_cv_prog_CPP=$CPP
3521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003522{ echo "$as_me:$LINENO: result: $CPP" >&5
3523echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524ac_preproc_ok=false
3525for ac_c_preproc_warn_flag in '' yes
3526do
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003533 cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538/* end confdefs.h. */
3539#ifdef __STDC__
3540# include <limits.h>
3541#else
3542# include <assert.h>
3543#endif
3544 Syntax error
3545_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003546if { (ac_try="$ac_cpp conftest.$ac_ext"
3547case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 :
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 # Broken: fails on valid input.
3575continue
3576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003577
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003578rm -f conftest.err conftest.$ac_ext
3579
Reid Spencera773bd52006-08-04 18:18:08 +00003580 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003582 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h. */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003587/* end confdefs.h. */
3588#include <ac_nonexistent.h>
3589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003590if { (ac_try="$ac_cpp conftest.$ac_ext"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3608 fi
3609else
3610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003613 # Broken: success on invalid input.
3614continue
3615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619 # Passes both tests.
3620ac_preproc_ok=:
3621break
3622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624rm -f conftest.err conftest.$ac_ext
3625
3626done
3627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003629if $ac_preproc_ok; then
3630 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633See \`config.log' for more details." >&5
3634echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637fi
3638
John Criswell7a73b802003-06-30 21:59:07 +00003639ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
John Criswell7a73b802003-06-30 21:59:07 +00003645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003646{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003651 # Extract the first word of "grep ggrep" to use in msg output
3652if test -z "$GREP"; then
3653set dummy grep ggrep; ac_prog_name=$2
3654if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
Reid Spencera773bd52006-08-04 18:18:08 +00003657 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003658# Loop through the user's path and test for each of PROGNAME-LIST
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003669 # Check for GNU $ac_path_GREP
3670case `"$ac_path_GREP" --version 2>&1` in
3671*GNU*)
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673*)
3674 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003676 while :
3677 do
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003681 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694esac
3695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003696
3697 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003698 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699done
3700
3701done
Reid Spencera773bd52006-08-04 18:18:08 +00003702IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003703
3704
3705fi
3706
3707GREP="$ac_cv_path_GREP"
3708if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3712fi
3713
Reid Spencera773bd52006-08-04 18:18:08 +00003714else
3715 ac_cv_path_GREP=$GREP
3716fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718
Reid Spencera773bd52006-08-04 18:18:08 +00003719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003720{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003722 GREP="$ac_cv_path_GREP"
3723
3724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725{ echo "$as_me:$LINENO: checking for egrep" >&5
3726echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003729else
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3732 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733 # Extract the first word of "egrep" to use in msg output
3734if test -z "$EGREP"; then
3735set dummy egrep; ac_prog_name=$2
3736if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
Reid Spencera773bd52006-08-04 18:18:08 +00003739 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740# Loop through the user's path and test for each of PROGNAME-LIST
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003751 # Check for GNU $ac_path_EGREP
3752case `"$ac_path_EGREP" --version 2>&1` in
3753*GNU*)
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755*)
3756 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003758 while :
3759 do
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003763 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3771 fi
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3774 done
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776esac
3777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003778
3779 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003780 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781done
3782
3783done
Reid Spencera773bd52006-08-04 18:18:08 +00003784IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003785
3786
3787fi
3788
3789EGREP="$ac_cv_path_EGREP"
3790if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
Reid Spencera773bd52006-08-04 18:18:08 +00003796else
3797 ac_cv_path_EGREP=$EGREP
3798fi
3799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003800
Reid Spencera773bd52006-08-04 18:18:08 +00003801 fi
3802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003803{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003805 EGREP="$ac_cv_path_EGREP"
3806
3807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003808{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003819#include <stdlib.h>
3820#include <stdarg.h>
3821#include <string.h>
3822#include <float.h>
3823
John Criswell0c38eaf2003-09-10 15:17:25 +00003824int
3825main ()
3826{
3827
3828 ;
3829 return 0;
3830}
John Criswell7a73b802003-06-30 21:59:07 +00003831_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003832rm -f conftest.$ac_objext
3833if { (ac_try="$ac_compile"
3834case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837esac
3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003866 ac_cv_header_stdc=yes
3867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003873
Reid Spencera773bd52006-08-04 18:18:08 +00003874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003875
3876if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003884#include <string.h>
3885
3886_ACEOF
3887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003888 $EGREP "memchr" >/dev/null 2>&1; then
3889 :
John Criswell7a73b802003-06-30 21:59:07 +00003890else
3891 ac_cv_header_stdc=no
3892fi
3893rm -f conftest*
3894
3895fi
3896
3897if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003905#include <stdlib.h>
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003909 $EGREP "free" >/dev/null 2>&1; then
3910 :
John Criswell7a73b802003-06-30 21:59:07 +00003911else
3912 ac_cv_header_stdc=no
3913fi
3914rm -f conftest*
3915
3916fi
3917
3918if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003921 :
3922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923 cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003929#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003930#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003931#if ((' ' & 0x0FF) == 0x020)
3932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003935# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940#endif
3941
3942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943int
3944main ()
3945{
3946 int i;
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003949 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003950 return 2;
3951 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003952}
3953_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954rm -f conftest$ac_exeext
3955if { (ac_try="$ac_link"
3956case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959esac
3960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968esac
3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 :
John Criswell7a73b802003-06-30 21:59:07 +00003975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003976 echo "$as_me: program exited with status $ac_status" >&5
3977echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980( exit $ac_status )
3981ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00003984fi
3985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986
John Criswell7a73b802003-06-30 21:59:07 +00003987fi
3988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003991if test $ac_cv_header_stdc = yes; then
3992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993cat >>confdefs.h <<\_ACEOF
3994#define STDC_HEADERS 1
3995_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003996
3997fi
3998
Reid Spencera773bd52006-08-04 18:18:08 +00003999# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000
4001
4002
4003
4004
4005
4006
4007
4008
Reid Spencera773bd52006-08-04 18:18:08 +00004009for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011do
4012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024$ac_includes_default
4025
4026#include <$ac_header>
4027_ACEOF
4028rm -f conftest.$ac_objext
4029if { (ac_try="$ac_compile"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046esac
4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 eval "$as_ac_Header=no"
4068fi
4069
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071fi
4072ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074echo "${ECHO_T}$ac_res" >&6; }
4075if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004078_ACEOF
4079
4080fi
4081
4082done
4083
4084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090 # See if sys/param.h defines the BYTE_ORDER macro.
4091cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004096/* end confdefs.h. */
4097#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004098#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004099
4100int
4101main ()
4102{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004103#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104 bogus endian macros
4105#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004106
4107 ;
4108 return 0;
4109}
4110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111rm -f conftest.$ac_objext
4112if { (ac_try="$ac_compile"
4113case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004145 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004151/* end confdefs.h. */
4152#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004154
4155int
4156main ()
4157{
4158#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 not big endian
4160#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004161
4162 ;
4163 return 0;
4164}
4165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004200 ac_cv_c_bigendian=yes
4201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 ac_cv_c_bigendian=no
4206fi
4207
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 # It does not; compile a test program.
4214if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004229int
4230main ()
4231{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004232 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004233 ;
4234 return 0;
4235}
4236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004237rm -f conftest.$ac_objext
4238if { (ac_try="$ac_compile"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004272 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273fi
4274if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4277 else
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4280 fi
4281fi
Reid Spencera773bd52006-08-04 18:18:08 +00004282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286
Torok Edwin871384f2010-01-26 08:50:50 +00004287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288
Reid Spencera773bd52006-08-04 18:18:08 +00004289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291 cat >conftest.$ac_ext <<_ACEOF
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004296/* end confdefs.h. */
4297$ac_includes_default
4298int
4299main ()
4300{
4301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302 /* Are we little or big endian? From Harbison&Steele. */
4303 union
4304 {
4305 long int l;
4306 char c[sizeof (long int)];
4307 } u;
4308 u.l = 1;
4309 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004310
4311 ;
4312 return 0;
4313}
4314_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004315rm -f conftest$ac_exeext
4316if { (ac_try="$ac_link"
4317case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004335 ac_cv_c_bigendian=no
4336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004337 echo "$as_me: program exited with status $ac_status" >&5
4338echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341( exit $ac_status )
4342ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004345fi
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347
Reid Spencera773bd52006-08-04 18:18:08 +00004348fi
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351fi
4352{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354case $ac_cv_c_bigendian in
4355 yes)
4356 ENDIAN=big
4357 ;;
4358 no)
4359 ENDIAN=little
4360 ;;
4361 *)
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364echo "$as_me: error: unknown endianness
4365presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367esac
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369
4370if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4372
4373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004378else
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4381else
4382 ac_build_prefix=${build_alias}-
4383
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004390else
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004403 break 2
4404 fi
4405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406done
Reid Spencera773bd52006-08-04 18:18:08 +00004407IFS=$as_save_IFS
4408
4409fi
4410fi
4411BUILD_CC=$ac_cv_prog_BUILD_CC
4412if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004418fi
4419
4420
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004428else
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004439 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004441 break 2
4442 fi
4443done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004444done
Reid Spencera773bd52006-08-04 18:18:08 +00004445IFS=$as_save_IFS
4446
4447fi
4448fi
4449BUILD_CC=$ac_cv_prog_BUILD_CC
4450if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004456fi
4457
4458
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004466else
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469else
4470 ac_prog_rejected=no
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4481 fi
4482 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004484 break 2
4485 fi
4486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487done
Reid Spencera773bd52006-08-04 18:18:08 +00004488IFS=$as_save_IFS
4489
4490if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4500 fi
4501fi
4502fi
4503fi
4504BUILD_CC=$ac_cv_prog_BUILD_CC
4505if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 { echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004511fi
4512
4513
4514 fi
4515 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 rm -f conftest*
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004524 (eval $ac_build_link) 2>&5
4525 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004528 for file in conftest.*; do
4529 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004530 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532 esac
4533 done
4534 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004538 fi
4539 rm -f conftest*
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4541fi
4542fi
4543
4544BUILD_EXEEXT=""
4545test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004548ac_build_exeext=$BUILD_EXEEXT
4549
Jim Grosbach673612e2008-10-02 22:56:44 +00004550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004557else
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004570 break 2
4571 fi
4572done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573done
Jim Grosbach673612e2008-10-02 22:56:44 +00004574IFS=$as_save_IFS
4575
4576fi
4577fi
4578BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004585fi
4586
4587
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004595else
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004606 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004608 break 2
4609 fi
4610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611done
Jim Grosbach673612e2008-10-02 22:56:44 +00004612IFS=$as_save_IFS
4613
4614fi
4615fi
4616BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621 { echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004623fi
4624
4625
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004633else
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636else
4637 ac_prog_rejected=no
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4647 continue
4648 fi
4649 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004651 break 2
4652 fi
4653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004654done
Jim Grosbach673612e2008-10-02 22:56:44 +00004655IFS=$as_save_IFS
4656
4657if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4667 fi
4668fi
4669fi
4670fi
4671BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004678fi
4679
4680
4681 fi
4682 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004683else
4684 LLVM_CROSS_COMPILING=0
4685
4686fi
4687
Nick Lewycky5b28f862009-04-10 05:18:27 +00004688if 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 +00004689 cvsbuild="yes"
4690 optimize="no"
4691 CVSBUILD=CVSBUILD=1
4692
4693else
4694 cvsbuild="no"
4695 optimize="yes"
4696fi
4697
4698
4699# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004701 enableval=$enable_optimized;
4702else
4703 enableval=$optimize
4704fi
4705
4706if test ${enableval} = "no" ; then
4707 ENABLE_OPTIMIZED=
4708
4709else
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4711
4712fi
4713
David Greene2a5a12c2009-04-17 14:50:39 +00004714# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004716 enableval=$enable_profiling;
4717else
4718 enableval="no"
4719fi
4720
4721if test ${enableval} = "no" ; then
4722 ENABLE_PROFILING=
4723
4724else
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4726
4727fi
4728
Reid Spencera773bd52006-08-04 18:18:08 +00004729# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004731 enableval=$enable_assertions;
4732else
4733 enableval="yes"
4734fi
4735
4736if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=
4738
4739else
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741
4742fi
4743
David Greenea696d242007-06-28 19:36:08 +00004744# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004746 enableval=$enable_expensive_checks;
4747else
4748 enableval="no"
4749fi
4750
4751if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753
4754 EXPENSIVE_CHECKS=yes
4755
4756else
4757 ENABLE_EXPENSIVE_CHECKS=
4758
4759 EXPENSIVE_CHECKS=no
4760
4761fi
4762
Reid Spencer8b2e1412006-11-17 03:32:33 +00004763# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004765 enableval=$enable_debug_runtime;
4766else
4767 enableval=no
4768fi
4769
4770if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=
4772
4773else
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775
4776fi
4777
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004778# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004779if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004780 enableval=$enable_debug_symbols;
4781else
4782 enableval=no
4783fi
4784
4785if test ${enableval} = "no" ; then
4786 DEBUG_SYMBOLS=
4787
4788else
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4790
4791fi
4792
Reid Spencera773bd52006-08-04 18:18:08 +00004793# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004795 enableval=$enable_jit;
4796else
4797 enableval=default
4798fi
4799
4800if test ${enableval} = "no"
4801then
4802 JIT=
4803
4804else
4805 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004806 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004807 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004808 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004809 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004810 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004811 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004812 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004813 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004814 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004815 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004816 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004817 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004818 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004819 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004820 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004821 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004822 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004823 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004824 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004825 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004826 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004827 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004828 Blackfin) TARGET_HAS_JIT=0
4829 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004830 MBlaze) TARGET_HAS_JIT=0
4831 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004832 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004833 ;;
4834 esac
4835fi
4836
4837# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004838if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004839 enableval=$enable_doxygen;
4840else
4841 enableval=default
4842fi
4843
4844case "$enableval" in
4845 yes) ENABLE_DOXYGEN=1
4846 ;;
4847 no) ENABLE_DOXYGEN=0
4848 ;;
4849 default) ENABLE_DOXYGEN=0
4850 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004854esac
4855
4856# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004857if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004858 enableval=$enable_threads;
4859else
Reid Spencer65c5d752006-11-05 17:08:18 +00004860 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004861fi
4862
4863case "$enableval" in
4864 yes) ENABLE_THREADS=1
4865 ;;
4866 no) ENABLE_THREADS=0
4867 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004868 default) ENABLE_THREADS=1
4869 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004873esac
4874
Owen Andersona8603702009-05-19 22:18:56 +00004875cat >>confdefs.h <<_ACEOF
4876#define ENABLE_THREADS $ENABLE_THREADS
4877_ACEOF
4878
4879
Reid Spencer89b0d992006-12-16 22:07:52 +00004880# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004881if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004882 enableval=$enable_pic;
4883else
4884 enableval=default
4885fi
4886
4887case "$enableval" in
4888 yes) ENABLE_PIC=1
4889 ;;
4890 no) ENABLE_PIC=0
4891 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004892 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004893 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004897esac
4898
4899cat >>confdefs.h <<_ACEOF
4900#define ENABLE_PIC $ENABLE_PIC
4901_ACEOF
4902
4903
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004904# Check whether --enable-shared was given.
4905if test "${enable_shared+set}" = set; then
4906 enableval=$enable_shared;
4907else
4908 enableval=default
4909fi
4910
4911case "$enableval" in
4912 yes) ENABLE_SHARED=1
4913 ;;
4914 no) ENABLE_SHARED=0
4915 ;;
4916 default) ENABLE_SHARED=0
4917 ;;
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4921esac
4922
Reid Spencera773bd52006-08-04 18:18:08 +00004923TARGETS_TO_BUILD=""
4924# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004925if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004926 enableval=$enable_targets;
4927else
4928 enableval=all
4929fi
4930
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004931if test "$enableval" = host-only ; then
4932 enableval=host
4933fi
Reid Spencera773bd52006-08-04 18:18:08 +00004934case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004935 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004936 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4937 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004938 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4939 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4941 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4942 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4943 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4944 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4945 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4946 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4947 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4948 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4949 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4950 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4951 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4952 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4953 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004954 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004955 host) case "$llvm_cv_target_arch" in
4956 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4957 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4959 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4960 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4961 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4962 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004963 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004964 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4965 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4966 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4967 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004968 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004969 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004970 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4971echo "$as_me: error: Can not set target to build" >&2;}
4972 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004973 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004977 esac
4978 done
4979 ;;
4980esac
Reid Spencera773bd52006-08-04 18:18:08 +00004981TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4982
4983
Douglas Gregor0711c302009-06-17 00:43:20 +00004984# Determine whether we are building LLVM support for the native architecture.
4985# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004989
4990cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004991#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004992_ACEOF
4993
4994 fi
4995done
4996
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004997# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4998# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004999LLVM_ENUM_TARGETS=""
5000LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005001LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005002LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005003for target_to_build in $TARGETS_TO_BUILD; do
5004 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5005 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5006 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5007 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5009 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5010 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005011 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5012 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5013 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005014done
5015
5016
5017
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005018
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005019
Reid Spencer65c5d752006-11-05 17:08:18 +00005020# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005021if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005022 enableval=$enable_cbe_printf_a;
5023else
5024 enableval=default
5025fi
5026
5027case "$enableval" in
5028 yes) ENABLE_CBE_PRINTF_A=1
5029 ;;
5030 no) ENABLE_CBE_PRINTF_A=0
5031 ;;
5032 default) ENABLE_CBE_PRINTF_A=1
5033 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5035echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5036 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005037esac
5038
5039cat >>confdefs.h <<_ACEOF
5040#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5041_ACEOF
5042
5043
Reid Spencera773bd52006-08-04 18:18:08 +00005044
5045# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005046if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005047 withval=$with_llvmgccdir;
5048else
5049 withval=default
5050fi
5051
5052case "$withval" in
5053 default) WITH_LLVMGCCDIR=default ;;
5054 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5056echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5057 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005058esac
5059
5060
Devang Patel5d28b882007-12-04 22:54:47 +00005061# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005062if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005063 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5064 WITH_LLVMGCCDIR=""
5065fi
5066
5067
5068
5069# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005070if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005071 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5072 WITH_LLVMGCCDIR=""
5073fi
5074
Douglas Gregor01746742009-05-11 18:05:52 +00005075
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005076if test -n "$LLVMGCC"; then
5077 LLVMGCCCOMMAND="$LLVMGCC"
5078fi
5079
5080if test -n "$LLVMGXX"; then
5081 LLVMGXXCOMMAND="$LLVMGXX"
5082fi
Devang Patel5d28b882007-12-04 22:54:47 +00005083
5084if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005085 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5086echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5087 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005088fi
5089
5090if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005091 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5092echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5093 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005094fi
5095
5096
Daniel Dunbar98515672010-02-23 10:00:49 +00005097# Check whether --with-clang was given.
5098if test "${with_clang+set}" = set; then
5099 withval=$with_clang;
5100else
5101 with_clang=default
5102fi
5103
5104
5105
5106# Check whether --with-built-clang was given.
5107if test "${with_built_clang+set}" = set; then
5108 withval=$with_built_clang;
5109else
5110 with_built_clang=check
5111fi
5112
5113
5114{ echo "$as_me:$LINENO: checking clang compiler" >&5
5115echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5116WITH_CLANGPATH=""
5117WITH_BUILT_CLANG=0
5118if test "$with_clang" != "default"; then
5119 WITH_CLANGPATH="$with_clang"
5120 if ! test -x "$WITH_CLANGPATH"; then
5121 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5122echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5123 { (exit 1); exit 1; }; }
5124 fi
5125elif test "$with_built_clang" = "yes"; then
5126 WITH_BUILT_CLANG=1
5127elif test "$with_built_clang" = "no"; then
5128 WITH_BUILT_CLANG=0
5129else
5130 if test "$with_built_clang" != "check"; then
5131 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5132echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5133 { (exit 1); exit 1; }; }
5134 fi
5135
5136 if test -f ${srcdir}/tools/clang/README.txt; then
5137 WITH_BUILT_CLANG=1
5138 fi
5139fi
5140
5141if ! test -z "$WITH_CLANGPATH"; then
5142 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5143echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5144 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5145elif test "$WITH_BUILT_CLANG" = "1"; then
5146 { echo "$as_me:$LINENO: result: built" >&5
5147echo "${ECHO_T}built" >&6; }
5148else
5149 { echo "$as_me:$LINENO: result: none" >&5
5150echo "${ECHO_T}none" >&6; }
5151fi
5152CLANGPATH=$WITH_CLANGPATH
5153
5154CLANGXXPATH=$WITH_CLANGXXPATH
5155
5156ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5157
5158
5159
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005160# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005161if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005162 withval=$with_optimize_option;
5163else
5164 withval=default
5165fi
5166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005167{ echo "$as_me:$LINENO: checking optimization flags" >&5
5168echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005169case "$withval" in
5170 default)
5171 case "$llvm_cv_os_type" in
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005172 MingW) optimize_option=-O2 ;;
5173 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005174 esac ;;
5175 *) optimize_option="$withval" ;;
5176esac
5177OPTIMIZE_OPTION=$optimize_option
5178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005179{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5180echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005181
5182
Reid Spencera773bd52006-08-04 18:18:08 +00005183# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005184if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005185 withval=$with_extra_options;
5186else
5187 withval=default
5188fi
5189
5190case "$withval" in
5191 default) EXTRA_OPTIONS= ;;
5192 *) EXTRA_OPTIONS=$withval ;;
5193esac
5194EXTRA_OPTIONS=$EXTRA_OPTIONS
5195
5196
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005197# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005198if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005199 enableval=$enable_bindings;
5200else
5201 enableval=default
5202fi
5203
5204BINDINGS_TO_BUILD=""
5205case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005206 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005207 all ) BINDINGS_TO_BUILD="ocaml" ;;
5208 none | no) BINDINGS_TO_BUILD="" ;;
5209 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5210 case "$a_binding" in
5211 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005212 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5213echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5214 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005215 esac
5216 done
5217 ;;
5218esac
5219
Reid Spencera773bd52006-08-04 18:18:08 +00005220
Gordon Henriksenf0915682007-10-02 16:42:22 +00005221# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005222if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005223 withval=$with_ocaml_libdir;
5224else
5225 withval=auto
5226fi
5227
5228case "$withval" in
5229 auto) with_ocaml_libdir="$withval" ;;
5230 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005231 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5232echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5233 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005234esac
5235
5236
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005237# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005238if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005239 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005240else
5241 withval=""
5242fi
5243
5244
5245cat >>confdefs.h <<_ACEOF
5246#define C_INCLUDE_DIRS "$withval"
5247_ACEOF
5248
5249
5250
Rafael Espindola420d23c2009-11-16 19:46:55 +00005251# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005252if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005253 withval=$with_cxx_include_root;
5254else
5255 withval=""
5256fi
5257
5258
5259cat >>confdefs.h <<_ACEOF
5260#define CXX_INCLUDE_ROOT "$withval"
5261_ACEOF
5262
5263
5264
5265# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005266if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005267 withval=$with_cxx_include_arch;
5268else
5269 withval=""
5270fi
5271
5272
5273cat >>confdefs.h <<_ACEOF
5274#define CXX_INCLUDE_ARCH "$withval"
5275_ACEOF
5276
5277
5278
5279# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005280if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005281 withval=$with_cxx_include_32bit_dir;
5282else
5283 withval=""
5284fi
5285
5286
5287cat >>confdefs.h <<_ACEOF
5288#define CXX_INCLUDE_32BIT_DIR "$withval"
5289_ACEOF
5290
5291
5292
5293# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005294if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005295 withval=$with_cxx_include_64bit_dir;
5296else
5297 withval=""
5298fi
5299
5300
5301cat >>confdefs.h <<_ACEOF
5302#define CXX_INCLUDE_64BIT_DIR "$withval"
5303_ACEOF
5304
5305
5306
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005307# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005309 withval=$with_binutils_include;
5310else
5311 withval=default
5312fi
5313
5314case "$withval" in
5315 default) WITH_BINUTILS_INCDIR=default ;;
5316 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005317 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5318echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5319 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005320esac
5321if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5322 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5323
5324 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5325 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5327echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5328 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005329 fi
5330fi
5331
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005332# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005333if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005334 enableval=$enable_libffi; case "$enableval" in
5335 yes) llvm_cv_enable_libffi="yes" ;;
5336 no) llvm_cv_enable_libffi="no" ;;
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005338echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005340 esac
5341else
5342 llvm_cv_enable_libffi=no
5343fi
5344
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005345
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005346if test "$llvm_cv_os_type" = "Win32" ; then
5347 llvmc_dynamic="yes"
5348else
5349 llvmc_dynamic="no"
5350fi
5351
5352# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005353if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005354 enableval=$enable_llvmc_dynamic;
5355else
5356 enableval=$llvmc_dynamic
5357fi
5358
5359if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5360 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5361
5362else
5363 ENABLE_LLVMC_DYNAMIC=
5364
5365fi
5366
5367# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005368if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005369 enableval=$enable_llvmc_dynamic_plugins;
5370else
5371 enableval=yes
5372fi
5373
5374if test ${enableval} = "yes" ; then
5375 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5376
5377else
5378 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5379
5380fi
5381
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005382
Reid Spencera773bd52006-08-04 18:18:08 +00005383ac_ext=c
5384ac_cpp='$CPP $CPPFLAGS'
5385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005390# On Suns, sometimes $CPP names a directory.
5391if test -n "$CPP" && test -d "$CPP"; then
5392 CPP=
5393fi
5394if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005395 if test "${ac_cv_prog_CPP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005397else
5398 # Double quotes because CPP needs to be expanded
5399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5400 do
5401 ac_preproc_ok=false
5402for ac_c_preproc_warn_flag in '' yes
5403do
5404 # Use a header file that comes with gcc, so configuring glibc
5405 # with a fresh cross-compiler works.
5406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407 # <limits.h> exists even on freestanding compilers.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005410 cat >conftest.$ac_ext <<_ACEOF
5411/* confdefs.h. */
5412_ACEOF
5413cat confdefs.h >>conftest.$ac_ext
5414cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005415/* end confdefs.h. */
5416#ifdef __STDC__
5417# include <limits.h>
5418#else
5419# include <assert.h>
5420#endif
5421 Syntax error
5422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005423if { (ac_try="$ac_cpp conftest.$ac_ext"
5424case "(($ac_try" in
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5427esac
5428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5430 ac_status=$?
5431 grep -v '^ *+' conftest.er1 >conftest.err
5432 rm -f conftest.er1
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev/null; then
5436 if test -s conftest.err; then
5437 ac_cpp_err=$ac_c_preproc_warn_flag
5438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5439 else
5440 ac_cpp_err=
5441 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005442else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005443 ac_cpp_err=yes
5444fi
5445if test -z "$ac_cpp_err"; then
5446 :
5447else
5448 echo "$as_me: failed program was:" >&5
5449sed 's/^/| /' conftest.$ac_ext >&5
5450
Reid Spencera773bd52006-08-04 18:18:08 +00005451 # Broken: fails on valid input.
5452continue
5453fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005454
Reid Spencera773bd52006-08-04 18:18:08 +00005455rm -f conftest.err conftest.$ac_ext
5456
5457 # OK, works on sane cases. Now check whether nonexistent headers
5458 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005459 cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h. */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005464/* end confdefs.h. */
5465#include <ac_nonexistent.h>
5466_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005467if { (ac_try="$ac_cpp conftest.$ac_ext"
5468case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471esac
5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } >/dev/null; then
5480 if test -s conftest.err; then
5481 ac_cpp_err=$ac_c_preproc_warn_flag
5482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5483 else
5484 ac_cpp_err=
5485 fi
5486else
5487 ac_cpp_err=yes
5488fi
5489if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005490 # Broken: success on invalid input.
5491continue
5492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
5495
Reid Spencera773bd52006-08-04 18:18:08 +00005496 # Passes both tests.
5497ac_preproc_ok=:
5498break
5499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005500
Reid Spencera773bd52006-08-04 18:18:08 +00005501rm -f conftest.err conftest.$ac_ext
5502
5503done
5504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5505rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005506if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005507 break
5508fi
5509
5510 done
5511 ac_cv_prog_CPP=$CPP
5512
5513fi
5514 CPP=$ac_cv_prog_CPP
5515else
5516 ac_cv_prog_CPP=$CPP
5517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005518{ echo "$as_me:$LINENO: result: $CPP" >&5
5519echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005520ac_preproc_ok=false
5521for ac_c_preproc_warn_flag in '' yes
5522do
5523 # Use a header file that comes with gcc, so configuring glibc
5524 # with a fresh cross-compiler works.
5525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 # <limits.h> exists even on freestanding compilers.
5527 # On the NeXT, cc -E runs the code through the compiler's parser,
5528 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005529 cat >conftest.$ac_ext <<_ACEOF
5530/* confdefs.h. */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005534/* end confdefs.h. */
5535#ifdef __STDC__
5536# include <limits.h>
5537#else
5538# include <assert.h>
5539#endif
5540 Syntax error
5541_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005542if { (ac_try="$ac_cpp conftest.$ac_ext"
5543case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5546esac
5547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } >/dev/null; then
5555 if test -s conftest.err; then
5556 ac_cpp_err=$ac_c_preproc_warn_flag
5557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5558 else
5559 ac_cpp_err=
5560 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005562 ac_cpp_err=yes
5563fi
5564if test -z "$ac_cpp_err"; then
5565 :
5566else
5567 echo "$as_me: failed program was:" >&5
5568sed 's/^/| /' conftest.$ac_ext >&5
5569
Reid Spencera773bd52006-08-04 18:18:08 +00005570 # Broken: fails on valid input.
5571continue
5572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005573
Reid Spencera773bd52006-08-04 18:18:08 +00005574rm -f conftest.err conftest.$ac_ext
5575
5576 # OK, works on sane cases. Now check whether nonexistent headers
5577 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578 cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005583/* end confdefs.h. */
5584#include <ac_nonexistent.h>
5585_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005586if { (ac_try="$ac_cpp conftest.$ac_ext"
5587case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } >/dev/null; then
5599 if test -s conftest.err; then
5600 ac_cpp_err=$ac_c_preproc_warn_flag
5601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5602 else
5603 ac_cpp_err=
5604 fi
5605else
5606 ac_cpp_err=yes
5607fi
5608if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005609 # Broken: success on invalid input.
5610continue
5611else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612 echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
Reid Spencera773bd52006-08-04 18:18:08 +00005615 # Passes both tests.
5616ac_preproc_ok=:
5617break
5618fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005619
Reid Spencera773bd52006-08-04 18:18:08 +00005620rm -f conftest.err conftest.$ac_ext
5621
5622done
5623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005625if $ac_preproc_ok; then
5626 :
Reid Spencera773bd52006-08-04 18:18:08 +00005627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005628 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5629See \`config.log' for more details." >&5
5630echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5631See \`config.log' for more details." >&2;}
5632 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005633fi
5634
5635ac_ext=c
5636ac_cpp='$CPP $CPPFLAGS'
5637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640
5641ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646if test -n "$ac_tool_prefix"; then
5647 for ac_prog in gcc
5648 do
5649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5653if test "${ac_cv_prog_CC+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005655else
5656 if test -n "$CC"; then
5657 ac_cv_prog_CC="$CC" # Let the user override the test.
5658else
5659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660for as_dir in $PATH
5661do
5662 IFS=$as_save_IFS
5663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 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 +00005666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005668 break 2
5669 fi
5670done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671done
Reid Spencera773bd52006-08-04 18:18:08 +00005672IFS=$as_save_IFS
5673
5674fi
5675fi
5676CC=$ac_cv_prog_CC
5677if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005678 { echo "$as_me:$LINENO: result: $CC" >&5
5679echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005681 { echo "$as_me:$LINENO: result: no" >&5
5682echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005683fi
5684
5685
5686 test -n "$CC" && break
5687 done
5688fi
5689if test -z "$CC"; then
5690 ac_ct_CC=$CC
5691 for ac_prog in gcc
5692do
5693 # Extract the first word of "$ac_prog", so it can be a program name with args.
5694set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005699else
5700 if test -n "$ac_ct_CC"; then
5701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5702else
5703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704for as_dir in $PATH
5705do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 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 +00005710 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005712 break 2
5713 fi
5714done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715done
Reid Spencera773bd52006-08-04 18:18:08 +00005716IFS=$as_save_IFS
5717
5718fi
5719fi
5720ac_ct_CC=$ac_cv_prog_ac_ct_CC
5721if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5723echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005724else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005725 { echo "$as_me:$LINENO: result: no" >&5
5726echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005727fi
5728
5729
5730 test -n "$ac_ct_CC" && break
5731done
5732
5733 if test "x$ac_ct_CC" = x; then
5734 CC=""
5735 else
5736 case $cross_compiling:$ac_tool_warned in
5737yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5739whose name does not start with the host triplet. If you think this
5740configuration is useful to you, please write to autoconf@gnu.org." >&5
5741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5742whose name does not start with the host triplet. If you think this
5743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005744ac_tool_warned=yes ;;
5745esac
5746 CC=$ac_ct_CC
5747 fi
5748fi
5749
5750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5752See \`config.log' for more details." >&5
5753echo "$as_me: error: no acceptable C compiler found in \$PATH
5754See \`config.log' for more details." >&2;}
5755 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005756
5757# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758echo "$as_me:$LINENO: checking for C compiler version" >&5
5759ac_compiler=`set X $ac_compile; echo $2`
5760{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005761case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005767 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }
5770{ (ac_try="$ac_compiler -v >&5"
5771case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5774esac
5775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compiler -v >&5") 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }
5780{ (ac_try="$ac_compiler -V >&5"
5781case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_compiler -V >&5") 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005790
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005791{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5792echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5793if test "${ac_cv_c_compiler_gnu+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005795else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005796 cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h. */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005801/* end confdefs.h. */
5802
5803int
5804main ()
5805{
5806#ifndef __GNUC__
5807 choke me
5808#endif
5809
5810 ;
5811 return 0;
5812}
5813_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005814rm -f conftest.$ac_objext
5815if { (ac_try="$ac_compile"
5816case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819esac
5820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5822 ac_status=$?
5823 grep -v '^ *+' conftest.er1 >conftest.err
5824 rm -f conftest.er1
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832esac
5833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005848 ac_compiler_gnu=yes
5849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005850 echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005855
Reid Spencera773bd52006-08-04 18:18:08 +00005856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857ac_cv_c_compiler_gnu=$ac_compiler_gnu
5858
5859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005860{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5862GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005863ac_test_CFLAGS=${CFLAGS+set}
5864ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005865{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5866echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5867if test "${ac_cv_prog_cc_g+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005869else
5870 ac_save_c_werror_flag=$ac_c_werror_flag
5871 ac_c_werror_flag=yes
5872 ac_cv_prog_cc_g=no
5873 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874 cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h. */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005879/* end confdefs.h. */
5880
5881int
5882main ()
5883{
5884
5885 ;
5886 return 0;
5887}
5888_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005889rm -f conftest.$ac_objext
5890if { (ac_try="$ac_compile"
5891case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894esac
5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5904 { (case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_try") 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917esac
5918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005923 ac_cv_prog_cc_g=yes
5924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005925 echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 CFLAGS=""
5929 cat >conftest.$ac_ext <<_ACEOF
5930/* confdefs.h. */
5931_ACEOF
5932cat confdefs.h >>conftest.$ac_ext
5933cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005934/* end confdefs.h. */
5935
5936int
5937main ()
5938{
5939
5940 ;
5941 return 0;
5942}
5943_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005944rm -f conftest.$ac_objext
5945if { (ac_try="$ac_compile"
5946case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972esac
5973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 :
Torok Edwin871384f2010-01-26 08:50:50 +00005979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
5983 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005984 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985 cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005990/* end confdefs.h. */
5991
5992int
5993main ()
5994{
5995
5996 ;
5997 return 0;
5998}
5999_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006000rm -f conftest.$ac_objext
6001if { (ac_try="$ac_compile"
6002case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005esac
6006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6015 { (case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6018esac
6019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_try") 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; } &&
6024 { ac_try='test -s conftest.$ac_objext'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006034 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006035else
6036 echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039
Reid Spencera773bd52006-08-04 18:18:08 +00006040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041
Reid Spencera773bd52006-08-04 18:18:08 +00006042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044
Reid Spencera773bd52006-08-04 18:18:08 +00006045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006047
Reid Spencera773bd52006-08-04 18:18:08 +00006048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 ac_c_werror_flag=$ac_save_c_werror_flag
6050fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006051{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006053if test "$ac_test_CFLAGS" = set; then
6054 CFLAGS=$ac_save_CFLAGS
6055elif test $ac_cv_prog_cc_g = yes; then
6056 if test "$GCC" = yes; then
6057 CFLAGS="-g -O2"
6058 else
6059 CFLAGS="-g"
6060 fi
6061else
6062 if test "$GCC" = yes; then
6063 CFLAGS="-O2"
6064 else
6065 CFLAGS=
6066 fi
6067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6069echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6070if test "${ac_cv_prog_cc_c89+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006072else
6073 ac_cv_prog_cc_c89=no
6074ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006075cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006080/* end confdefs.h. */
6081#include <stdarg.h>
6082#include <stdio.h>
6083#include <sys/types.h>
6084#include <sys/stat.h>
6085/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6086struct buf { int x; };
6087FILE * (*rcsopen) (struct buf *, struct stat *, int);
6088static char *e (p, i)
6089 char **p;
6090 int i;
6091{
6092 return p[i];
6093}
6094static char *f (char * (*g) (char **, int), char **p, ...)
6095{
6096 char *s;
6097 va_list v;
6098 va_start (v,p);
6099 s = g (p, va_arg (v,int));
6100 va_end (v);
6101 return s;
6102}
6103
6104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6105 function prototypes and stuff, but not '\xHH' hex character constants.
6106 These don't provoke an error unfortunately, instead are silently treated
6107 as 'x'. The following induces an error, until -std is added to get
6108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6109 array size at least. It's necessary to write '\x00'==0 to get something
6110 that's true only with -std. */
6111int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6112
6113/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6114 inside strings and character constants. */
6115#define FOO(x) 'x'
6116int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6117
6118int test (int i, double x);
6119struct s1 {int (*f) (int a);};
6120struct s2 {int (*f) (double a);};
6121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6122int argc;
6123char **argv;
6124int
6125main ()
6126{
6127return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6128 ;
6129 return 0;
6130}
6131_ACEOF
6132for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6134do
6135 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006136 rm -f conftest.$ac_objext
6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006170 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175
Reid Spencera773bd52006-08-04 18:18:08 +00006176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006177
Reid Spencera773bd52006-08-04 18:18:08 +00006178rm -f core conftest.err conftest.$ac_objext
6179 test "x$ac_cv_prog_cc_c89" != "xno" && break
6180done
6181rm -f conftest.$ac_ext
6182CC=$ac_save_CC
6183
6184fi
6185# AC_CACHE_VAL
6186case "x$ac_cv_prog_cc_c89" in
6187 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 { echo "$as_me:$LINENO: result: none needed" >&5
6189echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006190 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006191 { echo "$as_me:$LINENO: result: unsupported" >&5
6192echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006193 *)
6194 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6196echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006197esac
6198
6199
6200ac_ext=c
6201ac_cpp='$CPP $CPPFLAGS'
6202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205
6206ac_ext=cpp
6207ac_cpp='$CXXCPP $CPPFLAGS'
6208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6211if test -z "$CXX"; then
6212 if test -n "$CCC"; then
6213 CXX=$CCC
6214 else
6215 if test -n "$ac_tool_prefix"; then
6216 for ac_prog in g++
6217 do
6218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222if test "${ac_cv_prog_CXX+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006224else
6225 if test -n "$CXX"; then
6226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 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 +00006235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006237 break 2
6238 fi
6239done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240done
Reid Spencera773bd52006-08-04 18:18:08 +00006241IFS=$as_save_IFS
6242
6243fi
6244fi
6245CXX=$ac_cv_prog_CXX
6246if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006247 { echo "$as_me:$LINENO: result: $CXX" >&5
6248echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006249else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250 { echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006252fi
6253
6254
6255 test -n "$CXX" && break
6256 done
6257fi
6258if test -z "$CXX"; then
6259 ac_ct_CXX=$CXX
6260 for ac_prog in g++
6261do
6262 # Extract the first word of "$ac_prog", so it can be a program name with args.
6263set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006268else
6269 if test -n "$ac_ct_CXX"; then
6270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6271else
6272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273for as_dir in $PATH
6274do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 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 +00006279 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006281 break 2
6282 fi
6283done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284done
Reid Spencera773bd52006-08-04 18:18:08 +00006285IFS=$as_save_IFS
6286
6287fi
6288fi
6289ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6290if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006291 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6292echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006294 { echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006296fi
6297
6298
6299 test -n "$ac_ct_CXX" && break
6300done
6301
6302 if test "x$ac_ct_CXX" = x; then
6303 CXX="g++"
6304 else
6305 case $cross_compiling:$ac_tool_warned in
6306yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6308whose name does not start with the host triplet. If you think this
6309configuration is useful to you, please write to autoconf@gnu.org." >&5
6310echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6311whose name does not start with the host triplet. If you think this
6312configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006313ac_tool_warned=yes ;;
6314esac
6315 CXX=$ac_ct_CXX
6316 fi
6317fi
6318
6319 fi
6320fi
6321# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6323ac_compiler=`set X $ac_compile; echo $2`
6324{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006325case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006331 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }
6334{ (ac_try="$ac_compiler -v >&5"
6335case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6338esac
6339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_compiler -v >&5") 2>&5
6341 ac_status=$?
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }
6344{ (ac_try="$ac_compiler -V >&5"
6345case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_compiler -V >&5") 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006355{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6356echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6357if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006359else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006360 cat >conftest.$ac_ext <<_ACEOF
6361/* confdefs.h. */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006365/* end confdefs.h. */
6366
6367int
6368main ()
6369{
6370#ifndef __GNUC__
6371 choke me
6372#endif
6373
6374 ;
6375 return 0;
6376}
6377_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006378rm -f conftest.$ac_objext
6379if { (ac_try="$ac_compile"
6380case "(($ac_try" in
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6383esac
6384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6386 ac_status=$?
6387 grep -v '^ *+' conftest.er1 >conftest.err
6388 rm -f conftest.er1
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
6397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6406esac
6407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006412 ac_compiler_gnu=yes
6413else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006414 echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006418fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006419
Reid Spencera773bd52006-08-04 18:18:08 +00006420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6422
6423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006424{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6425echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6426GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006427ac_test_CXXFLAGS=${CXXFLAGS+set}
6428ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006429{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6430echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6431if test "${ac_cv_prog_cxx_g+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006433else
6434 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6435 ac_cxx_werror_flag=yes
6436 ac_cv_prog_cxx_g=no
6437 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438 cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h. */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006443/* end confdefs.h. */
6444
6445int
6446main ()
6447{
6448
6449 ;
6450 return 0;
6451}
6452_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006453rm -f conftest.$ac_objext
6454if { (ac_try="$ac_compile"
6455case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6468 { (case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6471esac
6472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_try") 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481esac
6482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6484 ac_status=$?
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006487 ac_cv_prog_cxx_g=yes
6488else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006489 echo "$as_me: failed program was:" >&5
6490sed 's/^/| /' conftest.$ac_ext >&5
6491
6492 CXXFLAGS=""
6493 cat >conftest.$ac_ext <<_ACEOF
6494/* confdefs.h. */
6495_ACEOF
6496cat confdefs.h >>conftest.$ac_ext
6497cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006498/* end confdefs.h. */
6499
6500int
6501main ()
6502{
6503
6504 ;
6505 return 0;
6506}
6507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006508rm -f conftest.$ac_objext
6509if { (ac_try="$ac_compile"
6510case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest.$ac_objext'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6536esac
6537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 :
Torok Edwin871384f2010-01-26 08:50:50 +00006543else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006544 echo "$as_me: failed program was:" >&5
6545sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006548 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549 cat >conftest.$ac_ext <<_ACEOF
6550/* confdefs.h. */
6551_ACEOF
6552cat confdefs.h >>conftest.$ac_ext
6553cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006554/* end confdefs.h. */
6555
6556int
6557main ()
6558{
6559
6560 ;
6561 return 0;
6562}
6563_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006564rm -f conftest.$ac_objext
6565if { (ac_try="$ac_compile"
6566case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6579 { (case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582esac
6583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_try") 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6592esac
6593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006598 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006599else
6600 echo "$as_me: failed program was:" >&5
6601sed 's/^/| /' conftest.$ac_ext >&5
6602
6603
Reid Spencera773bd52006-08-04 18:18:08 +00006604fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006605
Reid Spencera773bd52006-08-04 18:18:08 +00006606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608
Reid Spencera773bd52006-08-04 18:18:08 +00006609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006611
Reid Spencera773bd52006-08-04 18:18:08 +00006612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006617if test "$ac_test_CXXFLAGS" = set; then
6618 CXXFLAGS=$ac_save_CXXFLAGS
6619elif test $ac_cv_prog_cxx_g = yes; then
6620 if test "$GXX" = yes; then
6621 CXXFLAGS="-g -O2"
6622 else
6623 CXXFLAGS="-g"
6624 fi
6625else
6626 if test "$GXX" = yes; then
6627 CXXFLAGS="-O2"
6628 else
6629 CXXFLAGS=
6630 fi
6631fi
6632ac_ext=c
6633ac_cpp='$CPP $CPPFLAGS'
6634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636ac_compiler_gnu=$ac_cv_c_compiler_gnu
6637
Reid Spencera773bd52006-08-04 18:18:08 +00006638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006639{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6640echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6641if test "${lt_cv_path_NM+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006643else
6644 if test -n "$NM"; then
6645 # Let the user override the test.
6646 lt_cv_path_NM="$NM"
6647else
6648 lt_nm_to_check="${ac_tool_prefix}nm"
6649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6650 lt_nm_to_check="$lt_nm_to_check nm"
6651 fi
6652 for lt_tmp_nm in $lt_nm_to_check; do
6653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6655 IFS="$lt_save_ifs"
6656 test -z "$ac_dir" && ac_dir=.
6657 tmp_nm="$ac_dir/$lt_tmp_nm"
6658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6659 # Check to see if the nm accepts a BSD-compat flag.
6660 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6661 # nm: unknown option "B" ignored
6662 # Tru64's nm complains that /dev/null is an invalid object file
6663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6664 */dev/null* | *'Invalid file or object type'*)
6665 lt_cv_path_NM="$tmp_nm -B"
6666 break
6667 ;;
6668 *)
6669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6670 */dev/null*)
6671 lt_cv_path_NM="$tmp_nm -p"
6672 break
6673 ;;
6674 *)
6675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6676 continue # so that we can try to find one that supports BSD flags
6677 ;;
6678 esac
6679 ;;
6680 esac
6681 fi
6682 done
6683 IFS="$lt_save_ifs"
6684 done
6685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6686fi
6687fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6689echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006690NM="$lt_cv_path_NM"
6691
6692
6693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006694{ echo "$as_me:$LINENO: checking for GNU make" >&5
6695echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6696if test "${llvm_cv_gnu_make_command+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006698else
6699 llvm_cv_gnu_make_command=''
6700 for a in "$MAKE" make gmake gnumake ; do
6701 if test -z "$a" ; then continue ; fi ;
6702 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6703 then
6704 llvm_cv_gnu_make_command=$a ;
6705 break;
6706 fi
6707 done
6708fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006709{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6710echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006711 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6712 ifGNUmake='' ;
6713 else
6714 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006715 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6716echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006717 fi
6718
6719
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6721echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006722LN_S=$as_ln_s
6723if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 { echo "$as_me:$LINENO: result: yes" >&5
6725echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006726else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006727 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6728echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006729fi
6730
6731# Extract the first word of "cmp", so it can be a program name with args.
6732set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735if test "${ac_cv_path_CMP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006737else
6738 case $CMP in
6739 [\\/]* | ?:[\\/]*)
6740 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6741 ;;
6742 *)
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744for as_dir in $PATH
6745do
6746 IFS=$as_save_IFS
6747 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 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 +00006750 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006752 break 2
6753 fi
6754done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006755done
Reid Spencera773bd52006-08-04 18:18:08 +00006756IFS=$as_save_IFS
6757
6758 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6759 ;;
6760esac
6761fi
6762CMP=$ac_cv_path_CMP
6763if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764 { echo "$as_me:$LINENO: result: $CMP" >&5
6765echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006766else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767 { echo "$as_me:$LINENO: result: no" >&5
6768echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006769fi
6770
6771
6772# Extract the first word of "cp", so it can be a program name with args.
6773set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776if test "${ac_cv_path_CP+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006778else
6779 case $CP in
6780 [\\/]* | ?:[\\/]*)
6781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6782 ;;
6783 *)
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785for as_dir in $PATH
6786do
6787 IFS=$as_save_IFS
6788 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 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 +00006791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006793 break 2
6794 fi
6795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006796done
Reid Spencera773bd52006-08-04 18:18:08 +00006797IFS=$as_save_IFS
6798
6799 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6800 ;;
6801esac
6802fi
6803CP=$ac_cv_path_CP
6804if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805 { echo "$as_me:$LINENO: result: $CP" >&5
6806echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808 { echo "$as_me:$LINENO: result: no" >&5
6809echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006810fi
6811
6812
6813# Extract the first word of "date", so it can be a program name with args.
6814set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817if test "${ac_cv_path_DATE+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006819else
6820 case $DATE in
6821 [\\/]* | ?:[\\/]*)
6822 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6823 ;;
6824 *)
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 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 +00006832 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006834 break 2
6835 fi
6836done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006837done
Reid Spencera773bd52006-08-04 18:18:08 +00006838IFS=$as_save_IFS
6839
6840 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6841 ;;
6842esac
6843fi
6844DATE=$ac_cv_path_DATE
6845if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846 { echo "$as_me:$LINENO: result: $DATE" >&5
6847echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006848else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849 { echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006851fi
6852
6853
6854# Extract the first word of "find", so it can be a program name with args.
6855set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_path_FIND+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006860else
6861 case $FIND in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6864 ;;
6865 *)
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 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 +00006873 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006875 break 2
6876 fi
6877done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006878done
Reid Spencera773bd52006-08-04 18:18:08 +00006879IFS=$as_save_IFS
6880
6881 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6882 ;;
6883esac
6884fi
6885FIND=$ac_cv_path_FIND
6886if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887 { echo "$as_me:$LINENO: result: $FIND" >&5
6888echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006889else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890 { echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006892fi
6893
6894
6895# Extract the first word of "grep", so it can be a program name with args.
6896set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899if test "${ac_cv_path_GREP+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006901else
6902 case $GREP in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6905 ;;
6906 *)
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 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 +00006914 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006916 break 2
6917 fi
6918done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006919done
Reid Spencera773bd52006-08-04 18:18:08 +00006920IFS=$as_save_IFS
6921
6922 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6923 ;;
6924esac
6925fi
6926GREP=$ac_cv_path_GREP
6927if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928 { echo "$as_me:$LINENO: result: $GREP" >&5
6929echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006930else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006933fi
6934
6935
6936# Extract the first word of "mkdir", so it can be a program name with args.
6937set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940if test "${ac_cv_path_MKDIR+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006942else
6943 case $MKDIR in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 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 +00006955 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006957 break 2
6958 fi
6959done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006960done
Reid Spencera773bd52006-08-04 18:18:08 +00006961IFS=$as_save_IFS
6962
6963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6964 ;;
6965esac
6966fi
6967MKDIR=$ac_cv_path_MKDIR
6968if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6970echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006971else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972 { echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006974fi
6975
6976
6977# Extract the first word of "mv", so it can be a program name with args.
6978set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981if test "${ac_cv_path_MV+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006983else
6984 case $MV in
6985 [\\/]* | ?:[\\/]*)
6986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6987 ;;
6988 *)
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990for as_dir in $PATH
6991do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 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 +00006996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006998 break 2
6999 fi
7000done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007001done
Reid Spencera773bd52006-08-04 18:18:08 +00007002IFS=$as_save_IFS
7003
7004 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7005 ;;
7006esac
7007fi
7008MV=$ac_cv_path_MV
7009if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 { echo "$as_me:$LINENO: result: $MV" >&5
7011echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 { echo "$as_me:$LINENO: result: no" >&5
7014echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007015fi
7016
7017
7018if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7020set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023if test "${ac_cv_prog_RANLIB+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007025else
7026 if test -n "$RANLIB"; then
7027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 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 +00007036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007038 break 2
7039 fi
7040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041done
Reid Spencera773bd52006-08-04 18:18:08 +00007042IFS=$as_save_IFS
7043
7044fi
7045fi
7046RANLIB=$ac_cv_prog_RANLIB
7047if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007048 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7049echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051 { echo "$as_me:$LINENO: result: no" >&5
7052echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007053fi
7054
7055
7056fi
7057if test -z "$ac_cv_prog_RANLIB"; then
7058 ac_ct_RANLIB=$RANLIB
7059 # Extract the first word of "ranlib", so it can be a program name with args.
7060set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007065else
7066 if test -n "$ac_ct_RANLIB"; then
7067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 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 +00007076 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007078 break 2
7079 fi
7080done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081done
Reid Spencera773bd52006-08-04 18:18:08 +00007082IFS=$as_save_IFS
7083
7084fi
7085fi
7086ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7087if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007088 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7089echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007090else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007091 { echo "$as_me:$LINENO: result: no" >&5
7092echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007093fi
7094
7095 if test "x$ac_ct_RANLIB" = x; then
7096 RANLIB=":"
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7101whose name does not start with the host triplet. If you think this
7102configuration is useful to you, please write to autoconf@gnu.org." >&5
7103echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7104whose name does not start with the host triplet. If you think this
7105configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007106ac_tool_warned=yes ;;
7107esac
7108 RANLIB=$ac_ct_RANLIB
7109 fi
7110else
7111 RANLIB="$ac_cv_prog_RANLIB"
7112fi
7113
Torok Edwin871384f2010-01-26 08:50:50 +00007114if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7116set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119if test "${ac_cv_prog_AR+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007121else
7122 if test -n "$AR"; then
7123 ac_cv_prog_AR="$AR" # Let the user override the test.
7124else
7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 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 +00007132 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007134 break 2
7135 fi
7136done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137done
Torok Edwin871384f2010-01-26 08:50:50 +00007138IFS=$as_save_IFS
7139
7140fi
7141fi
7142AR=$ac_cv_prog_AR
7143if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007144 { echo "$as_me:$LINENO: result: $AR" >&5
7145echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007146else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147 { echo "$as_me:$LINENO: result: no" >&5
7148echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007149fi
7150
7151
7152fi
7153if test -z "$ac_cv_prog_AR"; then
7154 ac_ct_AR=$AR
7155 # Extract the first word of "ar", so it can be a program name with args.
7156set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007161else
7162 if test -n "$ac_ct_AR"; then
7163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7164else
7165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 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 +00007172 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007174 break 2
7175 fi
7176done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177done
Torok Edwin871384f2010-01-26 08:50:50 +00007178IFS=$as_save_IFS
7179
7180fi
7181fi
7182ac_ct_AR=$ac_cv_prog_ac_ct_AR
7183if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7185echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007187 { echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007189fi
7190
7191 if test "x$ac_ct_AR" = x; then
7192 AR="false"
7193 else
7194 case $cross_compiling:$ac_tool_warned in
7195yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197whose name does not start with the host triplet. If you think this
7198configuration is useful to you, please write to autoconf@gnu.org." >&5
7199echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200whose name does not start with the host triplet. If you think this
7201configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007202ac_tool_warned=yes ;;
7203esac
7204 AR=$ac_ct_AR
7205 fi
7206else
7207 AR="$ac_cv_prog_AR"
7208fi
7209
Reid Spencera773bd52006-08-04 18:18:08 +00007210# Extract the first word of "rm", so it can be a program name with args.
7211set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214if test "${ac_cv_path_RM+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007216else
7217 case $RM in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7220 ;;
7221 *)
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 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 +00007229 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007231 break 2
7232 fi
7233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007234done
Reid Spencera773bd52006-08-04 18:18:08 +00007235IFS=$as_save_IFS
7236
7237 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7238 ;;
7239esac
7240fi
7241RM=$ac_cv_path_RM
7242if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243 { echo "$as_me:$LINENO: result: $RM" >&5
7244echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007248fi
7249
7250
7251# Extract the first word of "sed", so it can be a program name with args.
7252set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007253{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255if test "${ac_cv_path_SED+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007257else
7258 case $SED in
7259 [\\/]* | ?:[\\/]*)
7260 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7261 ;;
7262 *)
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 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 +00007270 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007272 break 2
7273 fi
7274done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007275done
Reid Spencera773bd52006-08-04 18:18:08 +00007276IFS=$as_save_IFS
7277
7278 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7279 ;;
7280esac
7281fi
7282SED=$ac_cv_path_SED
7283if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284 { echo "$as_me:$LINENO: result: $SED" >&5
7285echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287 { echo "$as_me:$LINENO: result: no" >&5
7288echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007289fi
7290
7291
7292# Extract the first word of "tar", so it can be a program name with args.
7293set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296if test "${ac_cv_path_TAR+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007298else
7299 case $TAR in
7300 [\\/]* | ?:[\\/]*)
7301 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7302 ;;
7303 *)
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 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 +00007311 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007313 break 2
7314 fi
7315done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007316done
Reid Spencera773bd52006-08-04 18:18:08 +00007317IFS=$as_save_IFS
7318
7319 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7320 ;;
7321esac
7322fi
7323TAR=$ac_cv_path_TAR
7324if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325 { echo "$as_me:$LINENO: result: $TAR" >&5
7326echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 { echo "$as_me:$LINENO: result: no" >&5
7329echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007330fi
7331
7332
7333# Extract the first word of "pwd", so it can be a program name with args.
7334set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337if test "${ac_cv_path_BINPWD+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007339else
7340 case $BINPWD in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7343 ;;
7344 *)
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346for as_dir in $PATH
7347do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 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 +00007352 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007354 break 2
7355 fi
7356done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007357done
Reid Spencera773bd52006-08-04 18:18:08 +00007358IFS=$as_save_IFS
7359
7360 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7361 ;;
7362esac
7363fi
7364BINPWD=$ac_cv_path_BINPWD
7365if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7367echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369 { echo "$as_me:$LINENO: result: no" >&5
7370echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007371fi
7372
7373
7374
7375# Extract the first word of "Graphviz", so it can be a program name with args.
7376set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007381else
7382 case $GRAPHVIZ in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 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 +00007394 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007396 break 2
7397 fi
7398done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007399done
Reid Spencera773bd52006-08-04 18:18:08 +00007400IFS=$as_save_IFS
7401
7402 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7403 ;;
7404esac
7405fi
7406GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7407if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7409echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007410else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411 { echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007413fi
7414
7415
7416if test "$GRAPHVIZ" != "echo Graphviz" ; then
7417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418cat >>confdefs.h <<\_ACEOF
7419#define HAVE_GRAPHVIZ 1
7420_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007421
Jeff Cohen28783c32007-01-12 18:22:38 +00007422 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007423 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7424 fi
7425
7426cat >>confdefs.h <<_ACEOF
7427#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7428_ACEOF
7429
7430fi
7431# Extract the first word of "dot", so it can be a program name with args.
7432set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435if test "${ac_cv_path_DOT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007437else
7438 case $DOT in
7439 [\\/]* | ?:[\\/]*)
7440 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7441 ;;
7442 *)
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444for as_dir in $PATH
7445do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 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 +00007450 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007452 break 2
7453 fi
7454done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455done
Reid Spencera773bd52006-08-04 18:18:08 +00007456IFS=$as_save_IFS
7457
7458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7459 ;;
7460esac
7461fi
7462DOT=$ac_cv_path_DOT
7463if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464 { echo "$as_me:$LINENO: result: $DOT" >&5
7465echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467 { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007469fi
7470
7471
7472if test "$DOT" != "echo dot" ; then
7473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474cat >>confdefs.h <<\_ACEOF
7475#define HAVE_DOT 1
7476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007477
Jeff Cohen28783c32007-01-12 18:22:38 +00007478 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7480 fi
7481
7482cat >>confdefs.h <<_ACEOF
7483#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7484_ACEOF
7485
7486fi
David Greenef0b9eff2009-07-09 17:16:26 +00007487# Extract the first word of "fdp", so it can be a program name with args.
7488set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491if test "${ac_cv_path_FDP+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007493else
7494 case $FDP in
7495 [\\/]* | ?:[\\/]*)
7496 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7497 ;;
7498 *)
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 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 +00007506 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007508 break 2
7509 fi
7510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511done
David Greenef0b9eff2009-07-09 17:16:26 +00007512IFS=$as_save_IFS
7513
7514 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7515 ;;
7516esac
7517fi
7518FDP=$ac_cv_path_FDP
7519if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007520 { echo "$as_me:$LINENO: result: $FDP" >&5
7521echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007522else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523 { echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007525fi
7526
7527
7528if test "$FDP" != "echo fdp" ; then
7529
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530cat >>confdefs.h <<\_ACEOF
7531#define HAVE_FDP 1
7532_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007533
7534 if test "$llvm_cv_os_type" = "MingW" ; then
7535 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7536 fi
7537
7538cat >>confdefs.h <<_ACEOF
7539#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7540_ACEOF
7541
7542fi
7543# Extract the first word of "neato", so it can be a program name with args.
7544set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_NEATO+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007549else
7550 case $NEATO in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7553 ;;
7554 *)
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 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 +00007562 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007564 break 2
7565 fi
7566done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567done
David Greenef0b9eff2009-07-09 17:16:26 +00007568IFS=$as_save_IFS
7569
7570 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7571 ;;
7572esac
7573fi
7574NEATO=$ac_cv_path_NEATO
7575if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576 { echo "$as_me:$LINENO: result: $NEATO" >&5
7577echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007578else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579 { echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007581fi
7582
7583
7584if test "$NEATO" != "echo neato" ; then
7585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586cat >>confdefs.h <<\_ACEOF
7587#define HAVE_NEATO 1
7588_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007589
7590 if test "$llvm_cv_os_type" = "MingW" ; then
7591 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7592 fi
7593
7594cat >>confdefs.h <<_ACEOF
7595#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7596_ACEOF
7597
7598fi
7599# Extract the first word of "twopi", so it can be a program name with args.
7600set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603if test "${ac_cv_path_TWOPI+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007605else
7606 case $TWOPI in
7607 [\\/]* | ?:[\\/]*)
7608 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7609 ;;
7610 *)
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 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 +00007618 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007620 break 2
7621 fi
7622done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623done
David Greenef0b9eff2009-07-09 17:16:26 +00007624IFS=$as_save_IFS
7625
7626 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7627 ;;
7628esac
7629fi
7630TWOPI=$ac_cv_path_TWOPI
7631if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7633echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007634else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635 { echo "$as_me:$LINENO: result: no" >&5
7636echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007637fi
7638
7639
7640if test "$TWOPI" != "echo twopi" ; then
7641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642cat >>confdefs.h <<\_ACEOF
7643#define HAVE_TWOPI 1
7644_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007645
7646 if test "$llvm_cv_os_type" = "MingW" ; then
7647 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7648 fi
7649
7650cat >>confdefs.h <<_ACEOF
7651#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7652_ACEOF
7653
7654fi
7655# Extract the first word of "circo", so it can be a program name with args.
7656set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659if test "${ac_cv_path_CIRCO+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007661else
7662 case $CIRCO in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7665 ;;
7666 *)
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 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 +00007674 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007676 break 2
7677 fi
7678done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679done
David Greenef0b9eff2009-07-09 17:16:26 +00007680IFS=$as_save_IFS
7681
7682 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7683 ;;
7684esac
7685fi
7686CIRCO=$ac_cv_path_CIRCO
7687if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7689echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691 { echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007693fi
7694
7695
7696if test "$CIRCO" != "echo circo" ; then
7697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007698cat >>confdefs.h <<\_ACEOF
7699#define HAVE_CIRCO 1
7700_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007701
7702 if test "$llvm_cv_os_type" = "MingW" ; then
7703 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7704 fi
7705
7706cat >>confdefs.h <<_ACEOF
7707#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7708_ACEOF
7709
7710fi
Reid Spencera773bd52006-08-04 18:18:08 +00007711for ac_prog in gv gsview32
7712do
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717if test "${ac_cv_path_GV+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007719else
7720 case $GV in
7721 [\\/]* | ?:[\\/]*)
7722 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7723 ;;
7724 *)
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726for as_dir in $PATH
7727do
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 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 +00007732 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007734 break 2
7735 fi
7736done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007737done
Reid Spencera773bd52006-08-04 18:18:08 +00007738IFS=$as_save_IFS
7739
7740 ;;
7741esac
7742fi
7743GV=$ac_cv_path_GV
7744if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007745 { echo "$as_me:$LINENO: result: $GV" >&5
7746echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 { echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007750fi
7751
7752
7753 test -n "$GV" && break
7754done
7755test -n "$GV" || GV="echo gv"
7756
7757if test "$GV" != "echo gv" ; then
7758
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759cat >>confdefs.h <<\_ACEOF
7760#define HAVE_GV 1
7761_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007762
Jeff Cohen28783c32007-01-12 18:22:38 +00007763 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007764 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7765 fi
7766
7767cat >>confdefs.h <<_ACEOF
7768#define LLVM_PATH_GV "$GV${EXEEXT}"
7769_ACEOF
7770
7771fi
7772# Extract the first word of "dotty", so it can be a program name with args.
7773set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_DOTTY+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007778else
7779 case $DOTTY in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7782 ;;
7783 *)
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 for ac_exec_ext in '' $ac_executable_extensions; do
7790 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 +00007791 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007793 break 2
7794 fi
7795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007796done
Reid Spencera773bd52006-08-04 18:18:08 +00007797IFS=$as_save_IFS
7798
7799 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7800 ;;
7801esac
7802fi
7803DOTTY=$ac_cv_path_DOTTY
7804if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7806echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007810fi
7811
7812
7813if test "$DOTTY" != "echo dotty" ; then
7814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007815cat >>confdefs.h <<\_ACEOF
7816#define HAVE_DOTTY 1
7817_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007818
Jeff Cohen28783c32007-01-12 18:22:38 +00007819 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007820 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7821 fi
7822
7823cat >>confdefs.h <<_ACEOF
7824#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7825_ACEOF
7826
7827fi
7828
7829
7830# Extract the first word of "perl", so it can be a program name with args.
7831set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834if test "${ac_cv_path_PERL+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007836else
7837 case $PERL in
7838 [\\/]* | ?:[\\/]*)
7839 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7840 ;;
7841 *)
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845 IFS=$as_save_IFS
7846 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 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 +00007849 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007851 break 2
7852 fi
7853done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007854done
Reid Spencera773bd52006-08-04 18:18:08 +00007855IFS=$as_save_IFS
7856
7857 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7858 ;;
7859esac
7860fi
7861PERL=$ac_cv_path_PERL
7862if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863 { echo "$as_me:$LINENO: result: $PERL" >&5
7864echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007865else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007866 { echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007868fi
7869
7870
7871if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7873echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007874 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007875 { echo "$as_me:$LINENO: result: yes" >&5
7876echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007877 else
7878 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879 { echo "$as_me:$LINENO: result: not found" >&5
7880echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007881 fi
7882fi
7883
7884
7885if test x"$PERL" = xnone; then
7886 HAVE_PERL=0
7887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7889echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7890 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007891else
7892 HAVE_PERL=1
7893
7894fi
7895
7896# Find a good install program. We prefer a C program (faster),
7897# so one script is as good as another. But avoid the broken or
7898# incompatible versions:
7899# SysV /etc/install, /usr/sbin/install
7900# SunOS /usr/etc/install
7901# IRIX /sbin/install
7902# AIX /bin/install
7903# AmigaOS /C/install, which installs bootblocks on floppy discs
7904# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7905# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7906# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7907# OS/2's system install, which has a completely different semantic
7908# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007909{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7910echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007911if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912if test "${ac_cv_path_install+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007914else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920 # Account for people who put trailing slashes in PATH elements.
7921case $as_dir/ in
7922 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007924 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007925 /usr/ucb/* ) ;;
7926 *)
7927 # OSF1 and SCO ODT 3.0 have their own names for install.
7928 # Don't use installbsd from OSF since it installs stuff as root
7929 # by default.
7930 for ac_prog in ginstall scoinst install; do
7931 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007932 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 +00007933 if test $ac_prog = install &&
7934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7935 # AIX install. It has an incompatible calling convention.
7936 :
7937 elif test $ac_prog = install &&
7938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939 # program-specific install script used by HP pwplus--don't use.
7940 :
7941 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7943 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007944 fi
7945 fi
7946 done
7947 done
7948 ;;
7949esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007950done
Reid Spencera773bd52006-08-04 18:18:08 +00007951IFS=$as_save_IFS
7952
7953
7954fi
7955 if test "${ac_cv_path_install+set}" = set; then
7956 INSTALL=$ac_cv_path_install
7957 else
7958 # As a last resort, use the slow shell script. Don't cache a
7959 # value for INSTALL within a source directory, because that will
7960 # break other packages using the cache if that directory is
7961 # removed, or if the value is a relative name.
7962 INSTALL=$ac_install_sh
7963 fi
7964fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007965{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7966echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007967
7968# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7969# It thinks the first close brace ends the variable substitution.
7970test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7971
7972test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7973
7974test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7975
7976
7977# Extract the first word of "bzip2", so it can be a program name with args.
7978set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981if test "${ac_cv_path_BZIP2+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007983else
7984 case $BZIP2 in
7985 [\\/]* | ?:[\\/]*)
7986 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7987 ;;
7988 *)
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 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 +00007996 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007998 break 2
7999 fi
8000done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008001done
Reid Spencera773bd52006-08-04 18:18:08 +00008002IFS=$as_save_IFS
8003
Reid Spencera773bd52006-08-04 18:18:08 +00008004 ;;
8005esac
8006fi
8007BZIP2=$ac_cv_path_BZIP2
8008if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008009 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8010echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008011else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008012 { echo "$as_me:$LINENO: result: no" >&5
8013echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008014fi
8015
8016
8017# Extract the first word of "doxygen", so it can be a program name with args.
8018set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8021if test "${ac_cv_path_DOXYGEN+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008023else
8024 case $DOXYGEN in
8025 [\\/]* | ?:[\\/]*)
8026 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8027 ;;
8028 *)
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 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 +00008036 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008038 break 2
8039 fi
8040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008041done
Reid Spencera773bd52006-08-04 18:18:08 +00008042IFS=$as_save_IFS
8043
Reid Spencera773bd52006-08-04 18:18:08 +00008044 ;;
8045esac
8046fi
8047DOXYGEN=$ac_cv_path_DOXYGEN
8048if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008049 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8050echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008051else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008052 { echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008054fi
8055
8056
Reid Spencera773bd52006-08-04 18:18:08 +00008057# Extract the first word of "groff", so it can be a program name with args.
8058set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061if test "${ac_cv_path_GROFF+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008063else
8064 case $GROFF in
8065 [\\/]* | ?:[\\/]*)
8066 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8067 ;;
8068 *)
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 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 +00008076 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008078 break 2
8079 fi
8080done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081done
Reid Spencera773bd52006-08-04 18:18:08 +00008082IFS=$as_save_IFS
8083
Reid Spencera773bd52006-08-04 18:18:08 +00008084 ;;
8085esac
8086fi
8087GROFF=$ac_cv_path_GROFF
8088if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089 { echo "$as_me:$LINENO: result: $GROFF" >&5
8090echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008092 { echo "$as_me:$LINENO: result: no" >&5
8093echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008094fi
8095
8096
8097# Extract the first word of "gzip", so it can be a program name with args.
8098set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101if test "${ac_cv_path_GZIP+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008103else
8104 case $GZIP in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8107 ;;
8108 *)
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 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 +00008116 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008118 break 2
8119 fi
8120done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121done
Reid Spencera773bd52006-08-04 18:18:08 +00008122IFS=$as_save_IFS
8123
Reid Spencera773bd52006-08-04 18:18:08 +00008124 ;;
8125esac
8126fi
8127GZIP=$ac_cv_path_GZIP
8128if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129 { echo "$as_me:$LINENO: result: $GZIP" >&5
8130echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008132 { echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008134fi
8135
8136
8137# Extract the first word of "pod2html", so it can be a program name with args.
8138set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_POD2HTML+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008143else
8144 case $POD2HTML in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8147 ;;
8148 *)
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 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 +00008156 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008158 break 2
8159 fi
8160done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008161done
Reid Spencera773bd52006-08-04 18:18:08 +00008162IFS=$as_save_IFS
8163
Reid Spencera773bd52006-08-04 18:18:08 +00008164 ;;
8165esac
8166fi
8167POD2HTML=$ac_cv_path_POD2HTML
8168if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8170echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008172 { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008174fi
8175
8176
8177# Extract the first word of "pod2man", so it can be a program name with args.
8178set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181if test "${ac_cv_path_POD2MAN+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008183else
8184 case $POD2MAN in
8185 [\\/]* | ?:[\\/]*)
8186 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8187 ;;
8188 *)
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 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 +00008196 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008198 break 2
8199 fi
8200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008201done
Reid Spencera773bd52006-08-04 18:18:08 +00008202IFS=$as_save_IFS
8203
Reid Spencera773bd52006-08-04 18:18:08 +00008204 ;;
8205esac
8206fi
8207POD2MAN=$ac_cv_path_POD2MAN
8208if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8210echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212 { echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008214fi
8215
8216
8217# Extract the first word of "runtest", so it can be a program name with args.
8218set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221if test "${ac_cv_path_RUNTEST+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008223else
8224 case $RUNTEST in
8225 [\\/]* | ?:[\\/]*)
8226 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8227 ;;
8228 *)
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 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 +00008236 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008238 break 2
8239 fi
8240done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241done
Reid Spencera773bd52006-08-04 18:18:08 +00008242IFS=$as_save_IFS
8243
Reid Spencera773bd52006-08-04 18:18:08 +00008244 ;;
8245esac
8246fi
8247RUNTEST=$ac_cv_path_RUNTEST
8248if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8250echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008252 { echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008254fi
8255
8256
8257
8258no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008259{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8260echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008261
8262# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008263if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008264 withval=$with_tclinclude; with_tclinclude=${withval}
8265else
8266 with_tclinclude=''
8267fi
8268
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008269if test "${ac_cv_path_tclsh+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008271else
8272
8273if test x"${with_tclinclude}" != x ; then
8274 if test -f ${with_tclinclude}/tclsh ; then
8275 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8276 elif test -f ${with_tclinclude}/src/tclsh ; then
8277 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8278 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8280echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8281 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008282 fi
8283fi
Torok Edwin871384f2010-01-26 08:50:50 +00008284fi
8285
Reid Spencera773bd52006-08-04 18:18:08 +00008286
8287if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008288 { echo "$as_me:$LINENO: result: none" >&5
8289echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008290 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
8291do
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296if test "${ac_cv_path_TCLSH+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008298else
8299 case $TCLSH in
8300 [\\/]* | ?:[\\/]*)
8301 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8302 ;;
8303 *)
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 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 +00008311 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008313 break 2
8314 fi
8315done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008316done
Reid Spencera773bd52006-08-04 18:18:08 +00008317IFS=$as_save_IFS
8318
8319 ;;
8320esac
8321fi
8322TCLSH=$ac_cv_path_TCLSH
8323if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008324 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8325echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008327 { echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008329fi
8330
8331
8332 test -n "$TCLSH" && break
8333done
8334
8335 if test x"${TCLSH}" = x ; then
8336 ac_cv_path_tclsh='';
8337 else
8338 ac_cv_path_tclsh="${TCLSH}";
8339 fi
8340else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8342echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008343 TCLSH="${ac_cv_path_tclsh}"
8344
8345fi
8346
Reid Spencera773bd52006-08-04 18:18:08 +00008347# Extract the first word of "zip", so it can be a program name with args.
8348set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8351if test "${ac_cv_path_ZIP+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008353else
8354 case $ZIP in
8355 [\\/]* | ?:[\\/]*)
8356 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8357 ;;
8358 *)
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360for as_dir in $PATH
8361do
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 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 +00008366 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008368 break 2
8369 fi
8370done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371done
Reid Spencera773bd52006-08-04 18:18:08 +00008372IFS=$as_save_IFS
8373
Reid Spencera773bd52006-08-04 18:18:08 +00008374 ;;
8375esac
8376fi
8377ZIP=$ac_cv_path_ZIP
8378if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379 { echo "$as_me:$LINENO: result: $ZIP" >&5
8380echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008381else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382 { echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008384fi
8385
8386
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008387for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008388do
8389 # Extract the first word of "$ac_prog", so it can be a program name with args.
8390set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393if test "${ac_cv_path_OCAMLC+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008395else
8396 case $OCAMLC in
8397 [\\/]* | ?:[\\/]*)
8398 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8399 ;;
8400 *)
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 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 +00008408 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008410 break 2
8411 fi
8412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008413done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008414IFS=$as_save_IFS
8415
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008416 ;;
8417esac
8418fi
8419OCAMLC=$ac_cv_path_OCAMLC
8420if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8422echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 { echo "$as_me:$LINENO: result: no" >&5
8425echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008426fi
8427
8428
Gordon Henriksene7072162008-03-07 18:20:01 +00008429 test -n "$OCAMLC" && break
8430done
8431
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008432for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008433do
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8438if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008440else
8441 case $OCAMLOPT in
8442 [\\/]* | ?:[\\/]*)
8443 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8444 ;;
8445 *)
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008453 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008455 break 2
8456 fi
8457done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008458done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008459IFS=$as_save_IFS
8460
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008461 ;;
8462esac
8463fi
8464OCAMLOPT=$ac_cv_path_OCAMLOPT
8465if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008466 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8467echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008468else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008469 { echo "$as_me:$LINENO: result: no" >&5
8470echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008471fi
8472
8473
Gordon Henriksene7072162008-03-07 18:20:01 +00008474 test -n "$OCAMLOPT" && break
8475done
8476
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008477for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008478do
8479 # Extract the first word of "$ac_prog", so it can be a program name with args.
8480set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8483if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008485else
8486 case $OCAMLDEP in
8487 [\\/]* | ?:[\\/]*)
8488 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8489 ;;
8490 *)
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492for as_dir in $PATH
8493do
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 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 +00008498 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008500 break 2
8501 fi
8502done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008503done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008504IFS=$as_save_IFS
8505
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008506 ;;
8507esac
8508fi
8509OCAMLDEP=$ac_cv_path_OCAMLDEP
8510if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8512echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514 { echo "$as_me:$LINENO: result: no" >&5
8515echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008516fi
8517
8518
Gordon Henriksene7072162008-03-07 18:20:01 +00008519 test -n "$OCAMLDEP" && break
8520done
8521
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008522for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008523do
8524 # Extract the first word of "$ac_prog", so it can be a program name with args.
8525set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8528if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008530else
8531 case $OCAMLDOC in
8532 [\\/]* | ?:[\\/]*)
8533 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8534 ;;
8535 *)
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537for as_dir in $PATH
8538do
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 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 +00008543 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008545 break 2
8546 fi
8547done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008548done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008549IFS=$as_save_IFS
8550
8551 ;;
8552esac
8553fi
8554OCAMLDOC=$ac_cv_path_OCAMLDOC
8555if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008556 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8557echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008558else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008559 { echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008561fi
8562
8563
8564 test -n "$OCAMLDOC" && break
8565done
8566
Torok Edwincc499a42008-10-22 09:56:27 +00008567for ac_prog in gas as
8568do
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8573if test "${ac_cv_path_GAS+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008575else
8576 case $GAS in
8577 [\\/]* | ?:[\\/]*)
8578 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8579 ;;
8580 *)
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582for as_dir in $PATH
8583do
8584 IFS=$as_save_IFS
8585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 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 +00008588 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008590 break 2
8591 fi
8592done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008593done
Torok Edwincc499a42008-10-22 09:56:27 +00008594IFS=$as_save_IFS
8595
8596 ;;
8597esac
8598fi
8599GAS=$ac_cv_path_GAS
8600if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008601 { echo "$as_me:$LINENO: result: $GAS" >&5
8602echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008604 { echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008606fi
8607
8608
8609 test -n "$GAS" && break
8610done
8611
Reid Spencera773bd52006-08-04 18:18:08 +00008612
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008613{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8614echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8615if test "${llvm_cv_link_use_r+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008617else
8618 ac_ext=c
8619ac_cpp='$CPP $CPPFLAGS'
8620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8622ac_compiler_gnu=$ac_cv_c_compiler_gnu
8623
8624 oldcflags="$CFLAGS"
8625 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008626 cat >conftest.$ac_ext <<_ACEOF
8627/* confdefs.h. */
8628_ACEOF
8629cat confdefs.h >>conftest.$ac_ext
8630cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008631/* end confdefs.h. */
8632
8633int
8634main ()
8635{
8636int main() { return 0; }
8637 ;
8638 return 0;
8639}
8640_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641rm -f conftest.$ac_objext conftest$ac_exeext
8642if { (ac_try="$ac_link"
8643case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8656 { (case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8659esac
8660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_try") 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669esac
8670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_try") 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008675 llvm_cv_link_use_r=yes
8676else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008677 echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008681fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682
Bill Wendlingebcceee2009-04-18 11:20:33 +00008683rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008684 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008685 CFLAGS="$oldcflags"
8686 ac_ext=c
8687ac_cpp='$CPP $CPPFLAGS'
8688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691
8692
8693fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008694{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8695echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008696if test "$llvm_cv_link_use_r" = yes ; then
8697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008698cat >>confdefs.h <<\_ACEOF
8699#define HAVE_LINK_R 1
8700_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008701
8702 fi
8703
8704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008705{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8706echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8707if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008709else
8710 ac_ext=c
8711ac_cpp='$CPP $CPPFLAGS'
8712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
8716 oldcflags="$CFLAGS"
8717 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008718 cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008723/* end confdefs.h. */
8724
8725int
8726main ()
8727{
8728int main() { return 0; }
8729 ;
8730 return 0;
8731}
8732_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008733rm -f conftest.$ac_objext conftest$ac_exeext
8734if { (ac_try="$ac_link"
8735case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738esac
8739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_link") 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8748 { (case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751esac
8752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_try") 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761esac
8762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_try") 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008767 llvm_cv_link_use_export_dynamic=yes
8768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008769 echo "$as_me: failed program was:" >&5
8770sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008773fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008774
Bill Wendlingebcceee2009-04-18 11:20:33 +00008775rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008776 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008777 CFLAGS="$oldcflags"
8778 ac_ext=c
8779ac_cpp='$CPP $CPPFLAGS'
8780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782ac_compiler_gnu=$ac_cv_c_compiler_gnu
8783
8784
8785fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8787echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008788if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008790cat >>confdefs.h <<\_ACEOF
8791#define HAVE_LINK_EXPORT_DYNAMIC 1
8792_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008793
8794 fi
8795
8796
Reid Spencera773bd52006-08-04 18:18:08 +00008797
8798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008799{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8800echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8801if test "${ac_cv_c_const+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +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 Spencera773bd52006-08-04 18:18:08 +00008809/* end confdefs.h. */
8810
8811int
8812main ()
8813{
8814/* FIXME: Include the comments suggested by Paul. */
8815#ifndef __cplusplus
8816 /* Ultrix mips cc rejects this. */
8817 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008818 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008819 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008820 char const *const *ccp;
8821 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008822 /* NEC SVR4.0.2 mips cc rejects this. */
8823 struct point {int x, y;};
8824 static struct point const zero = {0,0};
8825 /* AIX XL C 1.02.0.0 rejects this.
8826 It does not let you subtract one const X* pointer from another in
8827 an arm of an if-expression whose if-part is not a constant
8828 expression */
8829 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008830 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008831 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008832 ++ccp;
8833 p = (char**) ccp;
8834 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008835 { /* SCO 3.2v4 cc rejects this. */
8836 char *t;
8837 char const *s = 0 ? (char *) 0 : (char const *) 0;
8838
8839 *t++ = 0;
8840 if (s) return 0;
8841 }
8842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8843 int x[] = {25, 17};
8844 const int *foo = &x[0];
8845 ++foo;
8846 }
8847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8848 typedef const int *iptr;
8849 iptr p = 0;
8850 ++p;
8851 }
8852 { /* AIX XL C 1.02.0.0 rejects this saying
8853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8854 struct s { int j; const int *ap[3]; };
8855 struct s *b; b->j = 5;
8856 }
8857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8858 const int foo = 10;
8859 if (!foo) return 0;
8860 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008861 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008862#endif
8863
8864 ;
8865 return 0;
8866}
8867_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008868rm -f conftest.$ac_objext
8869if { (ac_try="$ac_compile"
8870case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883 { (case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886esac
8887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_try") 2>&5
8889 ac_status=$?
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8896esac
8897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008902 ac_cv_c_const=yes
8903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904 echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008909
Reid Spencera773bd52006-08-04 18:18:08 +00008910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008912{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8913echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008914if test $ac_cv_c_const = no; then
8915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008916cat >>confdefs.h <<\_ACEOF
8917#define const
8918_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008919
8920fi
8921
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008922
8923
8924
8925
8926
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008927ac_header_dirent=no
8928for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008929 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8930{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8931echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008934else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008935 cat >conftest.$ac_ext <<_ACEOF
8936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008940/* end confdefs.h. */
8941#include <sys/types.h>
8942#include <$ac_hdr>
8943
8944int
8945main ()
8946{
8947if ((DIR *) 0)
8948return 0;
8949 ;
8950 return 0;
8951}
8952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008953rm -f conftest.$ac_objext
8954if { (ac_try="$ac_compile"
8955case "(($ac_try" in
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8958esac
8959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8971esac
8972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8974 ac_status=$?
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8981esac
8982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_try") 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008987 eval "$as_ac_Header=yes"
8988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008993fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008994
Reid Spencera773bd52006-08-04 18:18:08 +00008995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008997ac_res=`eval echo '${'$as_ac_Header'}'`
8998 { echo "$as_me:$LINENO: result: $ac_res" >&5
8999echo "${ECHO_T}$ac_res" >&6; }
9000if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009001 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009002#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009003_ACEOF
9004
9005ac_header_dirent=$ac_hdr; break
9006fi
9007
9008done
9009# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9010if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009011 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9012echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9013if test "${ac_cv_search_opendir+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009015else
9016 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009017cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009022/* end confdefs.h. */
9023
Reid Spencera773bd52006-08-04 18:18:08 +00009024/* Override any GCC internal prototype to avoid an error.
9025 Use char because int might match the return type of a GCC
9026 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009027#ifdef __cplusplus
9028extern "C"
9029#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009030char opendir ();
9031int
9032main ()
9033{
Reid Spencera773bd52006-08-04 18:18:08 +00009034return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009035 ;
9036 return 0;
9037}
9038_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009039for ac_lib in '' dir; do
9040 if test -z "$ac_lib"; then
9041 ac_res="none required"
9042 else
9043 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009045 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009046 rm -f conftest.$ac_objext conftest$ac_exeext
9047if { (ac_try="$ac_link"
9048case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051esac
9052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_link") 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064esac
9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_try") 2>&5
9077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009080 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081else
9082 echo "$as_me: failed program was:" >&5
9083sed 's/^/| /' conftest.$ac_ext >&5
9084
9085
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009086fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009087
Bill Wendlingebcceee2009-04-18 11:20:33 +00009088rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009089 conftest$ac_exeext
9090 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009091 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009092fi
John Criswell7a73b802003-06-30 21:59:07 +00009093done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009094if test "${ac_cv_search_opendir+set}" = set; then
9095 :
Reid Spencera773bd52006-08-04 18:18:08 +00009096else
9097 ac_cv_search_opendir=no
9098fi
9099rm conftest.$ac_ext
9100LIBS=$ac_func_search_save_LIBS
9101fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009102{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9103echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009104ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009105if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009107
Reid Spencera773bd52006-08-04 18:18:08 +00009108fi
9109
9110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009111 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9112echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9113if test "${ac_cv_search_opendir+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009115else
9116 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009117cat >conftest.$ac_ext <<_ACEOF
9118/* confdefs.h. */
9119_ACEOF
9120cat confdefs.h >>conftest.$ac_ext
9121cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009122/* end confdefs.h. */
9123
9124/* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9127#ifdef __cplusplus
9128extern "C"
9129#endif
9130char opendir ();
9131int
9132main ()
9133{
9134return opendir ();
9135 ;
9136 return 0;
9137}
9138_ACEOF
9139for ac_lib in '' x; do
9140 if test -z "$ac_lib"; then
9141 ac_res="none required"
9142 else
9143 ac_res=-l$ac_lib
9144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9145 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009146 rm -f conftest.$ac_objext conftest$ac_exeext
9147if { (ac_try="$ac_link"
9148case "(($ac_try" in
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9151esac
9152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_link") 2>conftest.er1
9154 ac_status=$?
9155 grep -v '^ *+' conftest.er1 >conftest.err
9156 rm -f conftest.er1
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164esac
9165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174esac
9175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9177 ac_status=$?
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009180 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009181else
9182 echo "$as_me: failed program was:" >&5
9183sed 's/^/| /' conftest.$ac_ext >&5
9184
9185
Reid Spencera773bd52006-08-04 18:18:08 +00009186fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009187
Bill Wendlingebcceee2009-04-18 11:20:33 +00009188rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009189 conftest$ac_exeext
9190 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009191 break
9192fi
9193done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009194if test "${ac_cv_search_opendir+set}" = set; then
9195 :
Reid Spencera773bd52006-08-04 18:18:08 +00009196else
9197 ac_cv_search_opendir=no
9198fi
9199rm conftest.$ac_ext
9200LIBS=$ac_func_search_save_LIBS
9201fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009202{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9203echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009204ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009205if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9207
9208fi
9209
9210fi
John Criswell7a73b802003-06-30 21:59:07 +00009211
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009212
John Criswell7a73b802003-06-30 21:59:07 +00009213for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009214do
9215as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221fi
9222ac_res=`eval echo '${'$as_ac_Header'}'`
9223 { echo "$as_me:$LINENO: result: $ac_res" >&5
9224echo "${ECHO_T}$ac_res" >&6; }
9225else
9226 # Is the header compilable?
9227{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235$ac_includes_default
9236#include <$ac_header>
9237_ACEOF
9238rm -f conftest.$ac_objext
9239if { (ac_try="$ac_compile"
9240case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243esac
9244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256esac
9257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_try") 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9266esac
9267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_try") 2>&5
9269 ac_status=$?
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_header_compiler=yes
9273else
9274 echo "$as_me: failed program was:" >&5
9275sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_header_compiler=no
9278fi
9279
9280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9282echo "${ECHO_T}$ac_header_compiler" >&6; }
9283
9284# Is the header present?
9285{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9287cat >conftest.$ac_ext <<_ACEOF
9288/* confdefs.h. */
9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h. */
9293#include <$ac_header>
9294_ACEOF
9295if { (ac_try="$ac_cpp conftest.$ac_ext"
9296case "(($ac_try" in
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9299esac
9300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } >/dev/null; then
9308 if test -s conftest.err; then
9309 ac_cpp_err=$ac_c_preproc_warn_flag
9310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9311 else
9312 ac_cpp_err=
9313 fi
9314else
9315 ac_cpp_err=yes
9316fi
9317if test -z "$ac_cpp_err"; then
9318 ac_header_preproc=yes
9319else
9320 echo "$as_me: failed program was:" >&5
9321sed 's/^/| /' conftest.$ac_ext >&5
9322
9323 ac_header_preproc=no
9324fi
9325
9326rm -f conftest.err conftest.$ac_ext
9327{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328echo "${ECHO_T}$ac_header_preproc" >&6; }
9329
9330# So? What about this header?
9331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9332 yes:no: )
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9337 ac_header_preproc=yes
9338 ;;
9339 no:yes:* )
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9352 ( cat <<\_ASBOX
9353## ----------------------------------- ##
9354## Report this to llvmbugs@cs.uiuc.edu ##
9355## ----------------------------------- ##
9356_ASBOX
9357 ) | sed "s/^/$as_me: WARNING: /" >&2
9358 ;;
9359esac
9360{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9364else
9365 eval "$as_ac_Header=\$ac_header_preproc"
9366fi
9367ac_res=`eval echo '${'$as_ac_Header'}'`
9368 { echo "$as_me:$LINENO: result: $ac_res" >&5
9369echo "${ECHO_T}$ac_res" >&6; }
9370
9371fi
9372if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009373 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009375_ACEOF
9376
9377fi
9378
9379done
9380
Reid Spencera773bd52006-08-04 18:18:08 +00009381# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009382if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009383 enableval=$enable_ltdl_install;
9384fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009387
9388
9389if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009390 INSTALL_LTDL_TRUE=
9391 INSTALL_LTDL_FALSE='#'
9392else
9393 INSTALL_LTDL_TRUE='#'
9394 INSTALL_LTDL_FALSE=
9395fi
9396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009397
9398
9399if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400 CONVENIENCE_LTDL_TRUE=
9401 CONVENIENCE_LTDL_FALSE='#'
9402else
9403 CONVENIENCE_LTDL_TRUE='#'
9404 CONVENIENCE_LTDL_FALSE=
9405fi
9406
9407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009408{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9409echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009410library_names_spec=
9411libname_spec='lib$name'
9412soname_spec=
9413shrext_cmds=".so"
9414postinstall_cmds=
9415postuninstall_cmds=
9416finish_cmds=
9417finish_eval=
9418shlibpath_var=
9419shlibpath_overrides_runpath=unknown
9420version_type=none
9421dynamic_linker="$host_os ld.so"
9422sys_lib_dlsearch_path_spec="/lib /usr/lib"
9423if test "$GCC" = yes; then
9424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9426 # if the path contains ";" then we assume it to be the separator
9427 # otherwise default to the standard path separator (i.e. ":") - it is
9428 # assumed that no part of a normal pathname contains ";" but that should
9429 # okay in the real world where ";" in dirpaths is itself problematic.
9430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9431 else
9432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9433 fi
9434else
9435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9436fi
9437need_lib_prefix=unknown
9438hardcode_into_libs=no
9439
9440# when you set need_version to no, make sure it does not cause -set_version
9441# flags to be left without arguments
9442need_version=unknown
9443
9444case $host_os in
9445aix3*)
9446 version_type=linux
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9448 shlibpath_var=LIBPATH
9449
9450 # AIX 3 has no versioning support, so we append a major version to the name.
9451 soname_spec='${libname}${release}${shared_ext}$major'
9452 ;;
9453
9454aix4* | aix5*)
9455 version_type=linux
9456 need_lib_prefix=no
9457 need_version=no
9458 hardcode_into_libs=yes
9459 if test "$host_cpu" = ia64; then
9460 # AIX 5 supports IA64
9461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9463 else
9464 # With GCC up to 2.95.x, collect2 would create an import file
9465 # for dependence libraries. The import file would start with
9466 # the line `#! .'. This would cause the generated library to
9467 # depend on `.', always an invalid library. This was fixed in
9468 # development snapshots of GCC prior to 3.0.
9469 case $host_os in
9470 aix4 | aix4.[01] | aix4.[01].*)
9471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9472 echo ' yes '
9473 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9474 :
9475 else
9476 can_build_shared=no
9477 fi
9478 ;;
9479 esac
9480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9481 # soname into executable. Probably we can add versioning support to
9482 # collect2, so additional links can be useful in future.
9483 if test "$aix_use_runtimelinking" = yes; then
9484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9485 # instead of lib<name>.a to let people know that these are not
9486 # typical AIX shared libraries.
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 else
9489 # We preserve .a as extension for shared libraries through AIX4.2
9490 # and later when we are not doing run time linking.
9491 library_names_spec='${libname}${release}.a $libname.a'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 fi
9494 shlibpath_var=LIBPATH
9495 fi
9496 ;;
9497
9498amigaos*)
9499 library_names_spec='$libname.ixlibrary $libname.a'
9500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9501 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'
9502 ;;
9503
9504beos*)
9505 library_names_spec='${libname}${shared_ext}'
9506 dynamic_linker="$host_os ld.so"
9507 shlibpath_var=LIBRARY_PATH
9508 ;;
9509
9510bsdi[45]*)
9511 version_type=linux
9512 need_version=no
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9519 # the default ld.so.conf also contains /usr/contrib/lib and
9520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9521 # libtool to hard-code these into programs
9522 ;;
9523
9524cygwin* | mingw* | pw32*)
9525 version_type=windows
9526 shrext_cmds=".dll"
9527 need_version=no
9528 need_lib_prefix=no
9529
9530 case $GCC,$host_os in
9531 yes,cygwin* | yes,mingw* | yes,pw32*)
9532 library_names_spec='$libname.dll.a'
9533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9534 postinstall_cmds='base_file=`basename \${file}`~
9535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9536 dldir=$destdir/`dirname \$dlpath`~
9537 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009538 $install_prog $dir/$dlname \$dldir/$dlname~
9539 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9541 dlpath=$dir/\$dldll~
9542 $rm \$dlpath'
9543 shlibpath_overrides_runpath=yes
9544
9545 case $host_os in
9546 cygwin*)
9547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9550 ;;
9551 mingw*)
9552 # MinGW DLLs use traditional 'lib' prefix
9553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9556 # It is most probably a Windows format PATH printed by
9557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9558 # path with ; separators, and with drive letters. We can handle the
9559 # drive letters (cygwin fileutils understands them), so leave them,
9560 # especially as we might pass files found there to a mingw objdump,
9561 # which wouldn't understand a cygwinified path. Ahh.
9562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9563 else
9564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9565 fi
9566 ;;
9567 pw32*)
9568 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009569 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 +00009570 ;;
9571 esac
9572 ;;
9573
9574 *)
9575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9576 ;;
9577 esac
9578 dynamic_linker='Win32 ld.exe'
9579 # FIXME: first we should search . and the directory the executable is in
9580 shlibpath_var=PATH
9581 ;;
9582
9583darwin* | rhapsody*)
9584 dynamic_linker="$host_os dyld"
9585 version_type=darwin
9586 need_lib_prefix=no
9587 need_version=no
9588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9589 soname_spec='${libname}${release}${major}$shared_ext'
9590 shlibpath_overrides_runpath=yes
9591 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009592 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9594 if test "$GCC" = yes; then
9595 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"`
9596 else
9597 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9598 fi
9599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9600 ;;
9601
9602dgux*)
9603 version_type=linux
9604 need_lib_prefix=no
9605 need_version=no
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 ;;
9610
9611freebsd1*)
9612 dynamic_linker=no
9613 ;;
9614
9615kfreebsd*-gnu)
9616 version_type=linux
9617 need_lib_prefix=no
9618 need_version=no
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=no
9623 hardcode_into_libs=yes
9624 dynamic_linker='GNU ld.so'
9625 ;;
9626
Reid Spencera773bd52006-08-04 18:18:08 +00009627freebsd* | dragonfly*)
9628 # DragonFly does not have aout. When/if they implement a new
9629 # versioning mechanism, adjust this.
9630 if test -x /usr/bin/objformat; then
9631 objformat=`/usr/bin/objformat`
9632 else
9633 case $host_os in
9634 freebsd[123]*) objformat=aout ;;
9635 *) objformat=elf ;;
9636 esac
9637 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638 version_type=freebsd-$objformat
9639 case $version_type in
9640 freebsd-elf*)
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9642 need_version=no
9643 need_lib_prefix=no
9644 ;;
9645 freebsd-*)
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9647 need_version=yes
9648 ;;
9649 esac
9650 shlibpath_var=LD_LIBRARY_PATH
9651 case $host_os in
9652 freebsd2*)
9653 shlibpath_overrides_runpath=yes
9654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009655 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009661 shlibpath_overrides_runpath=no
9662 hardcode_into_libs=yes
9663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009664 freebsd*) # from 4.6 on
9665 shlibpath_overrides_runpath=yes
9666 hardcode_into_libs=yes
9667 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668 esac
9669 ;;
9670
9671gnu*)
9672 version_type=linux
9673 need_lib_prefix=no
9674 need_version=no
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 hardcode_into_libs=yes
9679 ;;
9680
9681hpux9* | hpux10* | hpux11*)
9682 # Give a soname corresponding to the major version so that dld.sl refuses to
9683 # link against other versions.
9684 version_type=sunos
9685 need_lib_prefix=no
9686 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009687 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 ia64*)
9689 shrext_cmds='.so'
9690 hardcode_into_libs=yes
9691 dynamic_linker="$host_os dld.so"
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 if test "X$HPUX_IA64_MODE" = X32; then
9697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9698 else
9699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9700 fi
9701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9702 ;;
9703 hppa*64*)
9704 shrext_cmds='.sl'
9705 hardcode_into_libs=yes
9706 dynamic_linker="$host_os dld.sl"
9707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9713 ;;
9714 *)
9715 shrext_cmds='.sl'
9716 dynamic_linker="$host_os dld.sl"
9717 shlibpath_var=SHLIB_PATH
9718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 ;;
9722 esac
9723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9724 postinstall_cmds='chmod 555 $lib'
9725 ;;
9726
Reid Spencera773bd52006-08-04 18:18:08 +00009727interix3*)
9728 version_type=linux
9729 need_lib_prefix=no
9730 need_version=no
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9737 ;;
9738
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009739irix5* | irix6* | nonstopux*)
9740 case $host_os in
9741 nonstopux*) version_type=nonstopux ;;
9742 *)
9743 if test "$lt_cv_prog_gnu_ld" = yes; then
9744 version_type=linux
9745 else
9746 version_type=irix
9747 fi ;;
9748 esac
9749 need_lib_prefix=no
9750 need_version=no
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9753 case $host_os in
9754 irix5* | nonstopux*)
9755 libsuff= shlibsuff=
9756 ;;
9757 *)
9758 case $LD in # libtool.m4 will add one of these switches to LD
9759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9760 libsuff= shlibsuff= libmagic=32-bit;;
9761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9762 libsuff=32 shlibsuff=N32 libmagic=N32;;
9763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9765 *) libsuff= shlibsuff= libmagic=never-match;;
9766 esac
9767 ;;
9768 esac
9769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9770 shlibpath_overrides_runpath=no
9771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9773 hardcode_into_libs=yes
9774 ;;
9775
9776# No shared lib support for Linux oldld, aout, or coff.
9777linux*oldld* | linux*aout* | linux*coff*)
9778 dynamic_linker=no
9779 ;;
9780
9781# This must be Linux ELF.
9782linux*)
9783 version_type=linux
9784 need_lib_prefix=no
9785 need_version=no
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 shlibpath_overrides_runpath=no
9791 # This implies no fast_install, which is unacceptable.
9792 # Some rework will be needed to allow for fast_install
9793 # before this can be enabled.
9794 hardcode_into_libs=yes
9795
9796 # Append ld.so.conf contents to the search path
9797 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009798 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 +00009799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9800 fi
9801
9802 # We used to test for /lib/ld.so.1 and disable shared libraries on
9803 # powerpc, because MkLinux only supported shared libraries with the
9804 # GNU dynamic linker. Since this was broken with cross compilers,
9805 # most powerpc-linux boxes support dynamic linking these days and
9806 # people can always --disable-shared, the test was removed, and we
9807 # assume the GNU/Linux dynamic linker is in use.
9808 dynamic_linker='GNU/Linux ld.so'
9809 ;;
9810
9811knetbsd*-gnu)
9812 version_type=linux
9813 need_lib_prefix=no
9814 need_version=no
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=no
9819 hardcode_into_libs=yes
9820 dynamic_linker='GNU ld.so'
9821 ;;
9822
9823netbsd*)
9824 version_type=sunos
9825 need_lib_prefix=no
9826 need_version=no
9827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9830 dynamic_linker='NetBSD (a.out) ld.so'
9831 else
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 dynamic_linker='NetBSD ld.elf_so'
9835 fi
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9839 ;;
9840
9841newsos6)
9842 version_type=linux
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=yes
9846 ;;
9847
9848nto-qnx*)
9849 version_type=linux
9850 need_lib_prefix=no
9851 need_version=no
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 shlibpath_overrides_runpath=yes
9856 ;;
9857
9858openbsd*)
9859 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009860 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9863 case $host_os in
9864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9865 *) need_version=no ;;
9866 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9871 case $host_os in
9872 openbsd2.[89] | openbsd2.[89].*)
9873 shlibpath_overrides_runpath=no
9874 ;;
9875 *)
9876 shlibpath_overrides_runpath=yes
9877 ;;
9878 esac
9879 else
9880 shlibpath_overrides_runpath=yes
9881 fi
9882 ;;
9883
9884os2*)
9885 libname_spec='$name'
9886 shrext_cmds=".dll"
9887 need_lib_prefix=no
9888 library_names_spec='$libname${shared_ext} $libname.a'
9889 dynamic_linker='OS/2 ld.exe'
9890 shlibpath_var=LIBPATH
9891 ;;
9892
9893osf3* | osf4* | osf5*)
9894 version_type=osf
9895 need_lib_prefix=no
9896 need_version=no
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9902 ;;
9903
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904solaris*)
9905 version_type=linux
9906 need_lib_prefix=no
9907 need_version=no
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 shlibpath_overrides_runpath=yes
9912 hardcode_into_libs=yes
9913 # ldd complains unless libraries are executable
9914 postinstall_cmds='chmod +x $lib'
9915 ;;
9916
9917sunos4*)
9918 version_type=sunos
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 shlibpath_overrides_runpath=yes
9923 if test "$with_gnu_ld" = yes; then
9924 need_lib_prefix=no
9925 fi
9926 need_version=yes
9927 ;;
9928
Reid Spencera773bd52006-08-04 18:18:08 +00009929sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009930 version_type=linux
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 case $host_vendor in
9935 sni)
9936 shlibpath_overrides_runpath=no
9937 need_lib_prefix=no
9938 export_dynamic_flag_spec='${wl}-Blargedynsym'
9939 runpath_var=LD_RUN_PATH
9940 ;;
9941 siemens)
9942 need_lib_prefix=no
9943 ;;
9944 motorola)
9945 need_lib_prefix=no
9946 need_version=no
9947 shlibpath_overrides_runpath=no
9948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9949 ;;
9950 esac
9951 ;;
9952
9953sysv4*MP*)
9954 if test -d /usr/nec ;then
9955 version_type=linux
9956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9957 soname_spec='$libname${shared_ext}.$major'
9958 shlibpath_var=LD_LIBRARY_PATH
9959 fi
9960 ;;
9961
Reid Spencera773bd52006-08-04 18:18:08 +00009962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9963 version_type=freebsd-elf
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 hardcode_into_libs=yes
9970 if test "$with_gnu_ld" = yes; then
9971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9972 shlibpath_overrides_runpath=no
9973 else
9974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9975 shlibpath_overrides_runpath=yes
9976 case $host_os in
9977 sco3.2v5*)
9978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9979 ;;
9980 esac
9981 fi
9982 sys_lib_dlsearch_path_spec='/usr/lib'
9983 ;;
9984
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985uts4*)
9986 version_type=linux
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 shlibpath_var=LD_LIBRARY_PATH
9990 ;;
9991
9992*)
9993 dynamic_linker=no
9994 ;;
9995esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009996{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9997echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009998test "$dynamic_linker" = no && can_build_shared=no
9999
Reid Spencera773bd52006-08-04 18:18:08 +000010000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10001if test "$GCC" = yes; then
10002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10003fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004
Reid Spencera773bd52006-08-04 18:18:08 +000010005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010006{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10007echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10008if test "${libltdl_cv_shlibext+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010010else
10011
10012module=yes
10013eval libltdl_cv_shlibext=$shrext_cmds
10014
10015fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010016{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10017echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018if test -n "$libltdl_cv_shlibext"; then
10019
10020cat >>confdefs.h <<_ACEOF
10021#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10022_ACEOF
10023
10024fi
10025
10026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010027{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10028echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10029if test "${libltdl_cv_shlibpath_var+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010031else
10032 libltdl_cv_shlibpath_var="$shlibpath_var"
10033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010034{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10035echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010036if test -n "$libltdl_cv_shlibpath_var"; then
10037
10038cat >>confdefs.h <<_ACEOF
10039#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10040_ACEOF
10041
10042fi
10043
10044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010045{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10046echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10047if test "${libltdl_cv_sys_search_path+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010049else
10050 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010052{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10053echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010054if test -n "$libltdl_cv_sys_search_path"; then
10055 sys_search_path=
10056 for dir in $libltdl_cv_sys_search_path; do
10057 if test -z "$sys_search_path"; then
10058 sys_search_path="$dir"
10059 else
10060 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10061 fi
10062 done
10063
10064cat >>confdefs.h <<_ACEOF
10065#define LTDL_SYSSEARCHPATH "$sys_search_path"
10066_ACEOF
10067
10068fi
10069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010070{ echo "$as_me:$LINENO: checking for objdir" >&5
10071echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10072if test "${libltdl_cv_objdir+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074else
10075 libltdl_cv_objdir="$objdir"
10076 if test -n "$objdir"; then
10077 :
10078 else
10079 rm -f .libs 2>/dev/null
10080 mkdir .libs 2>/dev/null
10081 if test -d .libs; then
10082 libltdl_cv_objdir=.libs
10083 else
10084 # MS-DOS does not allow filenames that begin with a dot.
10085 libltdl_cv_objdir=_libs
10086 fi
10087 rmdir .libs 2>/dev/null
10088 fi
10089
10090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010091{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10092echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093
10094cat >>confdefs.h <<_ACEOF
10095#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10096_ACEOF
10097
10098
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010099
10100
10101
10102
10103# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010104{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10105echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10106if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010108else
10109
10110# These are sane defaults that work on at least a few old systems.
10111# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10112
10113# Character class describing NM global symbol codes.
10114symcode='[BCDEGRST]'
10115
10116# Regexp to match symbols that can be accessed directly from C.
10117sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10118
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119# Transform an extracted symbol line into a proper C declaration
10120lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10121
10122# Transform an extracted symbol line into symbol name and symbol address
10123lt_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'"
10124
10125# Define system-specific variables.
10126case $host_os in
10127aix*)
10128 symcode='[BCDT]'
10129 ;;
10130cygwin* | mingw* | pw32*)
10131 symcode='[ABCDGISTW]'
10132 ;;
10133hpux*) # Its linker distinguishes data from code symbols
10134 if test "$host_cpu" = ia64; then
10135 symcode='[ABCDEGRST]'
10136 fi
10137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10138 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'"
10139 ;;
10140linux*)
10141 if test "$host_cpu" = ia64; then
10142 symcode='[ABCDGIRSTW]'
10143 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10144 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'"
10145 fi
10146 ;;
10147irix* | nonstopux*)
10148 symcode='[BCDEGRST]'
10149 ;;
10150osf*)
10151 symcode='[BCDEGQRST]'
10152 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010153solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154 symcode='[BDRT]'
10155 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010156sco3.2v5*)
10157 symcode='[DT]'
10158 ;;
10159sysv4.2uw2*)
10160 symcode='[DT]'
10161 ;;
10162sysv5* | sco5v6* | unixware* | OpenUNIX*)
10163 symcode='[ABDT]'
10164 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165sysv4)
10166 symcode='[DFNSTU]'
10167 ;;
10168esac
10169
10170# Handle CRLF in mingw tool chain
10171opt_cr=
10172case $build_os in
10173mingw*)
10174 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10175 ;;
10176esac
10177
10178# If we're using GNU nm, then use its standard symbol codes.
10179case `$NM -V 2>&1` in
10180*GNU* | *'with BFD'*)
10181 symcode='[ABCDGIRSTW]' ;;
10182esac
10183
10184# Try without a prefix undercore, then with it.
10185for ac_symprfx in "" "_"; do
10186
Reid Spencera773bd52006-08-04 18:18:08 +000010187 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10188 symxfrm="\\1 $ac_symprfx\\2 \\2"
10189
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010191 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 +000010192
10193 # Check to see that the pipe works correctly.
10194 pipe_works=no
10195
10196 rm -f conftest*
10197 cat > conftest.$ac_ext <<EOF
10198#ifdef __cplusplus
10199extern "C" {
10200#endif
10201char nm_test_var;
10202void nm_test_func(){}
10203#ifdef __cplusplus
10204}
10205#endif
10206int main(){nm_test_var='a';nm_test_func();return(0);}
10207EOF
10208
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010210 (eval $ac_compile) 2>&5
10211 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214 # Now try to grab the symbols.
10215 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010216 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 +000010217 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10218 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221 # Try sorting and uniquifying the output.
10222 if sort "$nlist" | uniq > "$nlist"T; then
10223 mv -f "$nlist"T "$nlist"
10224 else
10225 rm -f "$nlist"T
10226 fi
10227
10228 # Make sure that we snagged all the symbols we need.
10229 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10230 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10231 cat <<EOF > conftest.$ac_ext
10232#ifdef __cplusplus
10233extern "C" {
10234#endif
10235
10236EOF
10237 # Now generate the symbol file.
10238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10239
10240 cat <<EOF >> conftest.$ac_ext
10241#if defined (__STDC__) && __STDC__
10242# define lt_ptr_t void *
10243#else
10244# define lt_ptr_t char *
10245# define const
10246#endif
10247
10248/* The mapping between symbol names and symbols. */
10249const struct {
10250 const char *name;
10251 lt_ptr_t address;
10252}
10253lt_preloaded_symbols[] =
10254{
10255EOF
10256 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10257 cat <<\EOF >> conftest.$ac_ext
10258 {0, (lt_ptr_t) 0}
10259};
10260
10261#ifdef __cplusplus
10262}
10263#endif
10264EOF
10265 # Now try linking the two files.
10266 mv conftest.$ac_objext conftstm.$ac_objext
10267 lt_save_LIBS="$LIBS"
10268 lt_save_CFLAGS="$CFLAGS"
10269 LIBS="conftstm.$ac_objext"
10270 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272 (eval $ac_link) 2>&5
10273 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276 pipe_works=yes
10277 fi
10278 LIBS="$lt_save_LIBS"
10279 CFLAGS="$lt_save_CFLAGS"
10280 else
10281 echo "cannot find nm_test_func in $nlist" >&5
10282 fi
10283 else
10284 echo "cannot find nm_test_var in $nlist" >&5
10285 fi
10286 else
10287 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10288 fi
10289 else
10290 echo "$progname: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10292 fi
10293 rm -f conftest* conftst*
10294
10295 # Do not use the global_symbol_pipe unless it works.
10296 if test "$pipe_works" = yes; then
10297 break
10298 else
10299 lt_cv_sys_global_symbol_pipe=
10300 fi
10301done
10302
10303fi
10304
10305if test -z "$lt_cv_sys_global_symbol_pipe"; then
10306 lt_cv_sys_global_symbol_to_cdecl=
10307fi
10308if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010309 { echo "$as_me:$LINENO: result: failed" >&5
10310echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010312 { echo "$as_me:$LINENO: result: ok" >&5
10313echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314fi
10315
10316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010317{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10318echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10319if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321else
10322 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10323 libltdl_cv_preloaded_symbols=yes
10324 else
10325 libltdl_cv_preloaded_symbols=no
10326 fi
10327
10328fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010329{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10330echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010333cat >>confdefs.h <<\_ACEOF
10334#define HAVE_PRELOADED_SYMBOLS 1
10335_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336
10337fi
10338
10339LIBADD_DL=
10340
10341ac_ext=c
10342ac_cpp='$CPP $CPPFLAGS'
10343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345ac_compiler_gnu=$ac_cv_c_compiler_gnu
10346
10347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010348{ echo "$as_me:$LINENO: checking for shl_load" >&5
10349echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10350if test "${ac_cv_func_shl_load+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h. */
10359/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10361#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010363/* System header to define __stub macros and hopefully few prototypes,
10364 which can conflict with char shl_load (); below.
10365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10366 <limits.h> exists even on freestanding compilers. */
10367
10368#ifdef __STDC__
10369# include <limits.h>
10370#else
10371# include <assert.h>
10372#endif
10373
10374#undef shl_load
10375
10376/* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10379#ifdef __cplusplus
10380extern "C"
10381#endif
10382char shl_load ();
10383/* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
10386#if defined __stub_shl_load || defined __stub___shl_load
10387choke me
10388#endif
10389
10390int
10391main ()
10392{
10393return shl_load ();
10394 ;
10395 return 0;
10396}
10397_ACEOF
10398rm -f conftest.$ac_objext conftest$ac_exeext
10399if { (ac_try="$ac_link"
10400case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403esac
10404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_try") 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10426esac
10427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_try") 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_func_shl_load=yes
10433else
10434 echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ac_cv_func_shl_load=no
10438fi
10439
10440rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10442fi
10443{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10444echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10445if test $ac_cv_func_shl_load = yes; then
10446
10447cat >>confdefs.h <<\_ACEOF
10448#define HAVE_SHL_LOAD 1
10449_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450
10451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010452 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10453echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10454if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010456else
10457 ac_check_lib_save_LIBS=$LIBS
10458LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010459cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464/* end confdefs.h. */
10465
Reid Spencera773bd52006-08-04 18:18:08 +000010466/* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469#ifdef __cplusplus
10470extern "C"
10471#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472char shl_load ();
10473int
10474main ()
10475{
Reid Spencera773bd52006-08-04 18:18:08 +000010476return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010477 ;
10478 return 0;
10479}
10480_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010481rm -f conftest.$ac_objext conftest$ac_exeext
10482if { (ac_try="$ac_link"
10483case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486esac
10487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_link") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499esac
10500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509esac
10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010515 ac_cv_lib_dld_shl_load=yes
10516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010517 echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010522
Bill Wendlingebcceee2009-04-18 11:20:33 +000010523rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010524 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525LIBS=$ac_check_lib_save_LIBS
10526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010527{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10528echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10529if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010531cat >>confdefs.h <<\_ACEOF
10532#define HAVE_SHL_LOAD 1
10533_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010534
10535 LIBADD_DL="$LIBADD_DL -ldld"
10536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10538echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10539if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541else
10542 ac_check_lib_save_LIBS=$LIBS
10543LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010544cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h. */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549/* end confdefs.h. */
10550
Reid Spencera773bd52006-08-04 18:18:08 +000010551/* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554#ifdef __cplusplus
10555extern "C"
10556#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557char dlopen ();
10558int
10559main ()
10560{
Reid Spencera773bd52006-08-04 18:18:08 +000010561return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562 ;
10563 return 0;
10564}
10565_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010566rm -f conftest.$ac_objext conftest$ac_exeext
10567if { (ac_try="$ac_link"
10568case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10571esac
10572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_link") 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10584esac
10585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest$ac_exeext'
10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594esac
10595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600 ac_cv_lib_dl_dlopen=yes
10601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010607
Bill Wendlingebcceee2009-04-18 11:20:33 +000010608rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010609 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010610LIBS=$ac_check_lib_save_LIBS
10611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010612{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10613echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10614if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010616cat >>confdefs.h <<\_ACEOF
10617#define HAVE_LIBDL 1
10618_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619
10620 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010622 cat >conftest.$ac_ext <<_ACEOF
10623/* confdefs.h. */
10624_ACEOF
10625cat confdefs.h >>conftest.$ac_ext
10626cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010627/* end confdefs.h. */
10628#if HAVE_DLFCN_H
10629# include <dlfcn.h>
10630#endif
10631
10632int
10633main ()
10634{
10635dlopen(0, 0);
10636 ;
10637 return 0;
10638}
10639_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010640rm -f conftest.$ac_objext conftest$ac_exeext
10641if { (ac_try="$ac_link"
10642case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645esac
10646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_link") 2>conftest.er1
10648 ac_status=$?
10649 grep -v '^ *+' conftest.er1 >conftest.err
10650 rm -f conftest.er1
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658esac
10659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10661 ac_status=$?
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10668esac
10669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_try") 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010675cat >>confdefs.h <<\_ACEOF
10676#define HAVE_LIBDL 1
10677_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 libltdl_cv_func_dlopen="yes"
10679else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682
10683 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10684echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10685if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687else
10688 ac_check_lib_save_LIBS=$LIBS
10689LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010690cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h. */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695/* end confdefs.h. */
10696
Reid Spencera773bd52006-08-04 18:18:08 +000010697/* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700#ifdef __cplusplus
10701extern "C"
10702#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703char dlopen ();
10704int
10705main ()
10706{
Reid Spencera773bd52006-08-04 18:18:08 +000010707return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708 ;
10709 return 0;
10710}
10711_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010712rm -f conftest.$ac_objext conftest$ac_exeext
10713if { (ac_try="$ac_link"
10714case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717esac
10718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740esac
10741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746 ac_cv_lib_svld_dlopen=yes
10747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010753
Bill Wendlingebcceee2009-04-18 11:20:33 +000010754rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010755 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756LIBS=$ac_check_lib_save_LIBS
10757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010758{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10759echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10760if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010762cat >>confdefs.h <<\_ACEOF
10763#define HAVE_LIBDL 1
10764_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765
10766 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10769echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10770if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772else
10773 ac_check_lib_save_LIBS=$LIBS
10774LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010775cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780/* end confdefs.h. */
10781
Reid Spencera773bd52006-08-04 18:18:08 +000010782/* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785#ifdef __cplusplus
10786extern "C"
10787#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788char dld_link ();
10789int
10790main ()
10791{
Reid Spencera773bd52006-08-04 18:18:08 +000010792return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793 ;
10794 return 0;
10795}
10796_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010797rm -f conftest.$ac_objext conftest$ac_exeext
10798if { (ac_try="$ac_link"
10799case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802esac
10803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831 ac_cv_lib_dld_dld_link=yes
10832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838
Bill Wendlingebcceee2009-04-18 11:20:33 +000010839rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841LIBS=$ac_check_lib_save_LIBS
10842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010843{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10844echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10845if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010847cat >>confdefs.h <<\_ACEOF
10848#define HAVE_DLD 1
10849_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850
10851 LIBADD_DL="$LIBADD_DL -ldld"
10852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010853 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10854echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10855if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
10864/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010868/* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char _dyld_func_lookup (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010873#ifdef __STDC__
10874# include <limits.h>
10875#else
10876# include <assert.h>
10877#endif
10878
10879#undef _dyld_func_lookup
10880
10881/* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884#ifdef __cplusplus
10885extern "C"
10886#endif
10887char _dyld_func_lookup ();
10888/* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10892choke me
10893#endif
10894
10895int
10896main ()
10897{
10898return _dyld_func_lookup ();
10899 ;
10900 return 0;
10901}
10902_ACEOF
10903rm -f conftest.$ac_objext conftest$ac_exeext
10904if { (ac_try="$ac_link"
10905case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10918 { (case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10921esac
10922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_try") 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10931esac
10932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_try") 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_cv_func__dyld_func_lookup=yes
10938else
10939 echo "$as_me: failed program was:" >&5
10940sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943fi
Reid Spencera773bd52006-08-04 18:18:08 +000010944
Bill Wendlingebcceee2009-04-18 11:20:33 +000010945rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010946 conftest$ac_exeext conftest.$ac_ext
10947fi
10948{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10949echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10950if test $ac_cv_func__dyld_func_lookup = yes; then
10951
10952cat >>confdefs.h <<\_ACEOF
10953#define HAVE_DYLD 1
10954_ACEOF
10955
10956fi
10957
10958
10959fi
10960
10961
10962fi
10963
10964
10965fi
10966
10967rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969
10970fi
10971
10972
10973fi
10974
10975
10976fi
10977
10978
10979if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10980then
10981 lt_save_LIBS="$LIBS"
10982 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010983
10984for ac_func in dlerror
10985do
10986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10987{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10989if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991else
10992 cat >conftest.$ac_ext <<_ACEOF
10993/* confdefs.h. */
10994_ACEOF
10995cat confdefs.h >>conftest.$ac_ext
10996cat >>conftest.$ac_ext <<_ACEOF
10997/* end confdefs.h. */
10998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11000#define $ac_func innocuous_$ac_func
11001
11002/* System header to define __stub macros and hopefully few prototypes,
11003 which can conflict with char $ac_func (); below.
11004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 <limits.h> exists even on freestanding compilers. */
11006
11007#ifdef __STDC__
11008# include <limits.h>
11009#else
11010# include <assert.h>
11011#endif
11012
11013#undef $ac_func
11014
11015/* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11018#ifdef __cplusplus
11019extern "C"
11020#endif
11021char $ac_func ();
11022/* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025#if defined __stub_$ac_func || defined __stub___$ac_func
11026choke me
11027#endif
11028
11029int
11030main ()
11031{
11032return $ac_func ();
11033 ;
11034 return 0;
11035}
11036_ACEOF
11037rm -f conftest.$ac_objext conftest$ac_exeext
11038if { (ac_try="$ac_link"
11039case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 eval "$as_ac_var=yes"
11072else
11073 echo "$as_me: failed program was:" >&5
11074sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 eval "$as_ac_var=no"
11077fi
11078
11079rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11081fi
11082ac_res=`eval echo '${'$as_ac_var'}'`
11083 { echo "$as_me:$LINENO: result: $ac_res" >&5
11084echo "${ECHO_T}$ac_res" >&6; }
11085if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011086 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088_ACEOF
11089
11090fi
11091done
11092
11093 LIBS="$lt_save_LIBS"
11094fi
11095ac_ext=c
11096ac_cpp='$CPP $CPPFLAGS'
11097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099ac_compiler_gnu=$ac_cv_c_compiler_gnu
11100
11101
11102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011103{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11104echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11105if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107else
11108 ac_cv_sys_symbol_underscore=no
11109 cat > conftest.$ac_ext <<EOF
11110void nm_test_func(){}
11111int main(){nm_test_func;return 0;}
11112EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114 (eval $ac_compile) 2>&5
11115 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118 # Now try to grab the symbols.
11119 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011120 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 +000011121 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11122 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125 # See whether the symbols have a leading underscore.
11126 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11127 ac_cv_sys_symbol_underscore=yes
11128 else
11129 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11130 :
11131 else
11132 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11133 fi
11134 fi
11135 else
11136 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11137 fi
11138 else
11139 echo "configure: failed program was:" >&5
11140 cat conftest.c >&5
11141 fi
11142 rm -rf conftest*
11143
11144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011145{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11146echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011147
11148
11149if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11150 if test x"$libltdl_cv_func_dlopen" = xyes ||
11151 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011152 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11153echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11154if test "${libltdl_cv_need_uscore+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011156else
11157 libltdl_cv_need_uscore=unknown
11158 save_LIBS="$LIBS"
11159 LIBS="$LIBS $LIBADD_DL"
11160 if test "$cross_compiling" = yes; then :
11161 libltdl_cv_need_uscore=cross
11162else
11163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11164 lt_status=$lt_dlunknown
11165 cat > conftest.$ac_ext <<EOF
Daniel Dunbar195d2de2010-04-10 18:56:24 +000011166#line 11166 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167#include "confdefs.h"
11168
11169#if HAVE_DLFCN_H
11170#include <dlfcn.h>
11171#endif
11172
11173#include <stdio.h>
11174
11175#ifdef RTLD_GLOBAL
11176# define LT_DLGLOBAL RTLD_GLOBAL
11177#else
11178# ifdef DL_GLOBAL
11179# define LT_DLGLOBAL DL_GLOBAL
11180# else
11181# define LT_DLGLOBAL 0
11182# endif
11183#endif
11184
11185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11186 find out it does not work in some platform. */
11187#ifndef LT_DLLAZY_OR_NOW
11188# ifdef RTLD_LAZY
11189# define LT_DLLAZY_OR_NOW RTLD_LAZY
11190# else
11191# ifdef DL_LAZY
11192# define LT_DLLAZY_OR_NOW DL_LAZY
11193# else
11194# ifdef RTLD_NOW
11195# define LT_DLLAZY_OR_NOW RTLD_NOW
11196# else
11197# ifdef DL_NOW
11198# define LT_DLLAZY_OR_NOW DL_NOW
11199# else
11200# define LT_DLLAZY_OR_NOW 0
11201# endif
11202# endif
11203# endif
11204# endif
11205#endif
11206
11207#ifdef __cplusplus
11208extern "C" void exit (int);
11209#endif
11210
11211void fnord() { int i=42;}
11212int main ()
11213{
11214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11215 int status = $lt_dlunknown;
11216
11217 if (self)
11218 {
11219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11220 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 /* dlclose (self); */
11222 }
Reid Spencera773bd52006-08-04 18:18:08 +000011223 else
11224 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011225
11226 exit (status);
11227}
11228EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230 (eval $ac_link) 2>&5
11231 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011234 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235 lt_status=$?
11236 case x$lt_status in
11237 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11238 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011239 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240 esac
11241 else :
11242 # compilation failed
11243
11244 fi
11245fi
11246rm -fr conftest*
11247
11248 LIBS="$save_LIBS"
11249
11250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011251{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11252echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011253 fi
11254fi
11255
11256if test x"$libltdl_cv_need_uscore" = xyes; then
11257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011258cat >>confdefs.h <<\_ACEOF
11259#define NEED_USCORE 1
11260_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011261
11262fi
11263
11264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011265{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11266echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11267if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269else
11270 # PORTME does your system automatically load deplibs for dlopen?
11271 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11272 # For now, we just catch OSes we know something about -- in the
11273 # future, we'll try test this programmatically.
11274 libltdl_cv_sys_dlopen_deplibs=unknown
11275 case "$host_os" in
11276 aix3*|aix4.1.*|aix4.2.*)
11277 # Unknown whether this is true for these versions of AIX, but
11278 # we want this `case' here to explicitly catch those versions.
11279 libltdl_cv_sys_dlopen_deplibs=unknown
11280 ;;
11281 aix[45]*)
11282 libltdl_cv_sys_dlopen_deplibs=yes
11283 ;;
11284 darwin*)
11285 # Assuming the user has installed a libdl from somewhere, this is true
11286 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11287 libltdl_cv_sys_dlopen_deplibs=yes
11288 ;;
11289 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11290 # GNU and its variants, using gnu ld.so (Glibc)
11291 libltdl_cv_sys_dlopen_deplibs=yes
11292 ;;
11293 hpux10*|hpux11*)
11294 libltdl_cv_sys_dlopen_deplibs=yes
11295 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011296 interix*)
11297 libltdl_cv_sys_dlopen_deplibs=yes
11298 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299 irix[12345]*|irix6.[01]*)
11300 # Catch all versions of IRIX before 6.2, and indicate that we don't
11301 # know how it worked for any of those versions.
11302 libltdl_cv_sys_dlopen_deplibs=unknown
11303 ;;
11304 irix*)
11305 # The case above catches anything before 6.2, and it's known that
11306 # at 6.2 and later dlopen does load deplibs.
11307 libltdl_cv_sys_dlopen_deplibs=yes
11308 ;;
11309 netbsd*)
11310 libltdl_cv_sys_dlopen_deplibs=yes
11311 ;;
11312 openbsd*)
11313 libltdl_cv_sys_dlopen_deplibs=yes
11314 ;;
11315 osf[1234]*)
11316 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11317 # it did *not* use an RPATH in a shared library to find objects the
11318 # library depends on, so we explictly say `no'.
11319 libltdl_cv_sys_dlopen_deplibs=no
11320 ;;
11321 osf5.0|osf5.0a|osf5.1)
11322 # dlopen *does* load deplibs and with the right loader patch applied
11323 # it even uses RPATH in a shared library to search for shared objects
11324 # that the library depends on, but there's no easy way to know if that
11325 # patch is installed. Since this is the case, all we can really
11326 # say is unknown -- it depends on the patch being installed. If
11327 # it is, this changes to `yes'. Without it, it would be `no'.
11328 libltdl_cv_sys_dlopen_deplibs=unknown
11329 ;;
11330 osf*)
11331 # the two cases above should catch all versions of osf <= 5.1. Read
11332 # the comments above for what we know about them.
11333 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11334 # is used to find them so we can finally say `yes'.
11335 libltdl_cv_sys_dlopen_deplibs=yes
11336 ;;
11337 solaris*)
11338 libltdl_cv_sys_dlopen_deplibs=yes
11339 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11341 libltdl_cv_sys_dlopen_deplibs=yes
11342 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343 esac
11344
11345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011346{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11347echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011348if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011350cat >>confdefs.h <<\_ACEOF
11351#define LTDL_DLOPEN_DEPLIBS 1
11352_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353
11354fi
11355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011356
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011358do
11359as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11360if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365fi
11366ac_res=`eval echo '${'$as_ac_Header'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368echo "${ECHO_T}$ac_res" >&6; }
11369else
11370 # Is the header compilable?
11371{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11372echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379$ac_includes_default
11380#include <$ac_header>
11381_ACEOF
11382rm -f conftest.$ac_objext
11383if { (ac_try="$ac_compile"
11384case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11390 ac_status=$?
11391 grep -v '^ *+' conftest.er1 >conftest.err
11392 rm -f conftest.er1
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400esac
11401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410esac
11411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_try") 2>&5
11413 ac_status=$?
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_header_compiler=yes
11417else
11418 echo "$as_me: failed program was:" >&5
11419sed 's/^/| /' conftest.$ac_ext >&5
11420
11421 ac_header_compiler=no
11422fi
11423
11424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11426echo "${ECHO_T}$ac_header_compiler" >&6; }
11427
11428# Is the header present?
11429{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11431cat >conftest.$ac_ext <<_ACEOF
11432/* confdefs.h. */
11433_ACEOF
11434cat confdefs.h >>conftest.$ac_ext
11435cat >>conftest.$ac_ext <<_ACEOF
11436/* end confdefs.h. */
11437#include <$ac_header>
11438_ACEOF
11439if { (ac_try="$ac_cpp conftest.$ac_ext"
11440case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443esac
11444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11446 ac_status=$?
11447 grep -v '^ *+' conftest.er1 >conftest.err
11448 rm -f conftest.er1
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } >/dev/null; then
11452 if test -s conftest.err; then
11453 ac_cpp_err=$ac_c_preproc_warn_flag
11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11455 else
11456 ac_cpp_err=
11457 fi
11458else
11459 ac_cpp_err=yes
11460fi
11461if test -z "$ac_cpp_err"; then
11462 ac_header_preproc=yes
11463else
11464 echo "$as_me: failed program was:" >&5
11465sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 ac_header_preproc=no
11468fi
11469
11470rm -f conftest.err conftest.$ac_ext
11471{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11472echo "${ECHO_T}$ac_header_preproc" >&6; }
11473
11474# So? What about this header?
11475case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11476 yes:no: )
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11478echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11480echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11481 ac_header_preproc=yes
11482 ;;
11483 no:yes:* )
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11485echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11487echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11489echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11491echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11493echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11495echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11496 ( cat <<\_ASBOX
11497## ----------------------------------- ##
11498## Report this to llvmbugs@cs.uiuc.edu ##
11499## ----------------------------------- ##
11500_ASBOX
11501 ) | sed "s/^/$as_me: WARNING: /" >&2
11502 ;;
11503esac
11504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508else
11509 eval "$as_ac_Header=\$ac_header_preproc"
11510fi
11511ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513echo "${ECHO_T}$ac_res" >&6; }
11514
11515fi
11516if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011517 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011519_ACEOF
11520
11521fi
11522
11523done
11524
11525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011526{ echo "$as_me:$LINENO: checking for error_t" >&5
11527echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11528if test "${ac_cv_type_error_t+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11530else
11531 cat >conftest.$ac_ext <<_ACEOF
11532/* confdefs.h. */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h. */
11537#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011538# include <argz.h>
11539#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011540
11541typedef error_t ac__type_new_;
11542int
11543main ()
11544{
11545if ((ac__type_new_ *) 0)
11546 return 0;
11547if (sizeof (ac__type_new_))
11548 return 0;
11549 ;
11550 return 0;
11551}
11552_ACEOF
11553rm -f conftest.$ac_objext
11554if { (ac_try="$ac_compile"
11555case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11581esac
11582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_type_error_t=yes
11588else
11589 echo "$as_me: failed program was:" >&5
11590sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 ac_cv_type_error_t=no
11593fi
11594
11595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596fi
11597{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11598echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11599if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600
11601cat >>confdefs.h <<_ACEOF
11602#define HAVE_ERROR_T 1
11603_ACEOF
11604
11605
11606else
11607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011608cat >>confdefs.h <<\_ACEOF
11609#define error_t int
11610_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011611
11612fi
11613
11614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011615
11616
11617
11618
11619
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011621do
11622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11623{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11625if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11627else
11628 cat >conftest.$ac_ext <<_ACEOF
11629/* confdefs.h. */
11630_ACEOF
11631cat confdefs.h >>conftest.$ac_ext
11632cat >>conftest.$ac_ext <<_ACEOF
11633/* end confdefs.h. */
11634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11636#define $ac_func innocuous_$ac_func
11637
11638/* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char $ac_func (); below.
11640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641 <limits.h> exists even on freestanding compilers. */
11642
11643#ifdef __STDC__
11644# include <limits.h>
11645#else
11646# include <assert.h>
11647#endif
11648
11649#undef $ac_func
11650
11651/* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11654#ifdef __cplusplus
11655extern "C"
11656#endif
11657char $ac_func ();
11658/* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661#if defined __stub_$ac_func || defined __stub___$ac_func
11662choke me
11663#endif
11664
11665int
11666main ()
11667{
11668return $ac_func ();
11669 ;
11670 return 0;
11671}
11672_ACEOF
11673rm -f conftest.$ac_objext conftest$ac_exeext
11674if { (ac_try="$ac_link"
11675case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11678esac
11679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11681 ac_status=$?
11682 grep -v '^ *+' conftest.er1 >conftest.err
11683 rm -f conftest.er1
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701esac
11702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_try") 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 eval "$as_ac_var=yes"
11708else
11709 echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 eval "$as_ac_var=no"
11713fi
11714
11715rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717fi
11718ac_res=`eval echo '${'$as_ac_var'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720echo "${ECHO_T}$ac_res" >&6; }
11721if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724_ACEOF
11725
11726fi
11727done
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011748
11749
11750
11751
11752
11753
11754
11755
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11757 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011758do
11759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11765fi
11766ac_res=`eval echo '${'$as_ac_Header'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768echo "${ECHO_T}$ac_res" >&6; }
11769else
11770 # Is the header compilable?
11771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11773cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779$ac_includes_default
11780#include <$ac_header>
11781_ACEOF
11782rm -f conftest.$ac_objext
11783if { (ac_try="$ac_compile"
11784case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787esac
11788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800esac
11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest.$ac_objext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_header_compiler=yes
11817else
11818 echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_header_compiler=no
11822fi
11823
11824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11826echo "${ECHO_T}$ac_header_compiler" >&6; }
11827
11828# Is the header present?
11829{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11831cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837#include <$ac_header>
11838_ACEOF
11839if { (ac_try="$ac_cpp conftest.$ac_ext"
11840case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11846 ac_status=$?
11847 grep -v '^ *+' conftest.er1 >conftest.err
11848 rm -f conftest.er1
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } >/dev/null; then
11852 if test -s conftest.err; then
11853 ac_cpp_err=$ac_c_preproc_warn_flag
11854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11855 else
11856 ac_cpp_err=
11857 fi
11858else
11859 ac_cpp_err=yes
11860fi
11861if test -z "$ac_cpp_err"; then
11862 ac_header_preproc=yes
11863else
11864 echo "$as_me: failed program was:" >&5
11865sed 's/^/| /' conftest.$ac_ext >&5
11866
11867 ac_header_preproc=no
11868fi
11869
11870rm -f conftest.err conftest.$ac_ext
11871{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11872echo "${ECHO_T}$ac_header_preproc" >&6; }
11873
11874# So? What about this header?
11875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11876 yes:no: )
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11881 ac_header_preproc=yes
11882 ;;
11883 no:yes:* )
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11896 ( cat <<\_ASBOX
11897## ----------------------------------- ##
11898## Report this to llvmbugs@cs.uiuc.edu ##
11899## ----------------------------------- ##
11900_ASBOX
11901 ) | sed "s/^/$as_me: WARNING: /" >&2
11902 ;;
11903esac
11904{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11908else
11909 eval "$as_ac_Header=\$ac_header_preproc"
11910fi
11911ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913echo "${ECHO_T}$ac_res" >&6; }
11914
11915fi
11916if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011919_ACEOF
11920
11921fi
11922
11923done
11924
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011925
11926
11927
11928
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011930do
11931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937fi
11938ac_res=`eval echo '${'$as_ac_Header'}'`
11939 { echo "$as_me:$LINENO: result: $ac_res" >&5
11940echo "${ECHO_T}$ac_res" >&6; }
11941else
11942 # Is the header compilable?
11943{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11945cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951$ac_includes_default
11952#include <$ac_header>
11953_ACEOF
11954rm -f conftest.$ac_objext
11955if { (ac_try="$ac_compile"
11956case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959esac
11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11985 ac_status=$?
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_header_compiler=yes
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993 ac_header_compiler=no
11994fi
11995
11996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11998echo "${ECHO_T}$ac_header_compiler" >&6; }
11999
12000# Is the header present?
12001{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12003cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009#include <$ac_header>
12010_ACEOF
12011if { (ac_try="$ac_cpp conftest.$ac_ext"
12012case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } >/dev/null; then
12024 if test -s conftest.err; then
12025 ac_cpp_err=$ac_c_preproc_warn_flag
12026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12027 else
12028 ac_cpp_err=
12029 fi
12030else
12031 ac_cpp_err=yes
12032fi
12033if test -z "$ac_cpp_err"; then
12034 ac_header_preproc=yes
12035else
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 ac_header_preproc=no
12040fi
12041
12042rm -f conftest.err conftest.$ac_ext
12043{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044echo "${ECHO_T}$ac_header_preproc" >&6; }
12045
12046# So? What about this header?
12047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12048 yes:no: )
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12053 ac_header_preproc=yes
12054 ;;
12055 no:yes:* )
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12068 ( cat <<\_ASBOX
12069## ----------------------------------- ##
12070## Report this to llvmbugs@cs.uiuc.edu ##
12071## ----------------------------------- ##
12072_ASBOX
12073 ) | sed "s/^/$as_me: WARNING: /" >&2
12074 ;;
12075esac
12076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081 eval "$as_ac_Header=\$ac_header_preproc"
12082fi
12083ac_res=`eval echo '${'$as_ac_Header'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085echo "${ECHO_T}$ac_res" >&6; }
12086
12087fi
12088if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012091_ACEOF
12092
12093fi
12094
12095done
12096
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012097
12098
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012099for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012100do
12101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107fi
12108ac_res=`eval echo '${'$as_ac_Header'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110echo "${ECHO_T}$ac_res" >&6; }
12111else
12112 # Is the header compilable?
12113{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12115cat >conftest.$ac_ext <<_ACEOF
12116/* confdefs.h. */
12117_ACEOF
12118cat confdefs.h >>conftest.$ac_ext
12119cat >>conftest.$ac_ext <<_ACEOF
12120/* end confdefs.h. */
12121$ac_includes_default
12122#include <$ac_header>
12123_ACEOF
12124rm -f conftest.$ac_objext
12125if { (ac_try="$ac_compile"
12126case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest.$ac_objext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_header_compiler=yes
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
12163 ac_header_compiler=no
12164fi
12165
12166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12168echo "${ECHO_T}$ac_header_compiler" >&6; }
12169
12170# Is the header present?
12171{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12173cat >conftest.$ac_ext <<_ACEOF
12174/* confdefs.h. */
12175_ACEOF
12176cat confdefs.h >>conftest.$ac_ext
12177cat >>conftest.$ac_ext <<_ACEOF
12178/* end confdefs.h. */
12179#include <$ac_header>
12180_ACEOF
12181if { (ac_try="$ac_cpp conftest.$ac_ext"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } >/dev/null; then
12194 if test -s conftest.err; then
12195 ac_cpp_err=$ac_c_preproc_warn_flag
12196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12197 else
12198 ac_cpp_err=
12199 fi
12200else
12201 ac_cpp_err=yes
12202fi
12203if test -z "$ac_cpp_err"; then
12204 ac_header_preproc=yes
12205else
12206 echo "$as_me: failed program was:" >&5
12207sed 's/^/| /' conftest.$ac_ext >&5
12208
12209 ac_header_preproc=no
12210fi
12211
12212rm -f conftest.err conftest.$ac_ext
12213{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12214echo "${ECHO_T}$ac_header_preproc" >&6; }
12215
12216# So? What about this header?
12217case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12218 yes:no: )
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12220echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12222echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12223 ac_header_preproc=yes
12224 ;;
12225 no:yes:* )
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12227echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12229echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12231echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12233echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12235echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12237echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12238 ( cat <<\_ASBOX
12239## ----------------------------------- ##
12240## Report this to llvmbugs@cs.uiuc.edu ##
12241## ----------------------------------- ##
12242_ASBOX
12243 ) | sed "s/^/$as_me: WARNING: /" >&2
12244 ;;
12245esac
12246{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 eval "$as_ac_Header=\$ac_header_preproc"
12252fi
12253ac_res=`eval echo '${'$as_ac_Header'}'`
12254 { echo "$as_me:$LINENO: result: $ac_res" >&5
12255echo "${ECHO_T}$ac_res" >&6; }
12256
12257fi
12258if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012261_ACEOF
12262 break
12263fi
12264
12265done
12266
12267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012268
12269
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012270for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012271do
12272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12275if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277else
12278 cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
12284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12286#define $ac_func innocuous_$ac_func
12287
12288/* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below.
12290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291 <limits.h> exists even on freestanding compilers. */
12292
12293#ifdef __STDC__
12294# include <limits.h>
12295#else
12296# include <assert.h>
12297#endif
12298
12299#undef $ac_func
12300
12301/* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12304#ifdef __cplusplus
12305extern "C"
12306#endif
12307char $ac_func ();
12308/* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311#if defined __stub_$ac_func || defined __stub___$ac_func
12312choke me
12313#endif
12314
12315int
12316main ()
12317{
12318return $ac_func ();
12319 ;
12320 return 0;
12321}
12322_ACEOF
12323rm -f conftest.$ac_objext conftest$ac_exeext
12324if { (ac_try="$ac_link"
12325case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_link") 2>conftest.er1
12331 ac_status=$?
12332 grep -v '^ *+' conftest.er1 >conftest.err
12333 rm -f conftest.er1
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12351esac
12352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12358else
12359 echo "$as_me: failed program was:" >&5
12360sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 eval "$as_ac_var=no"
12363fi
12364
12365rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12367fi
12368ac_res=`eval echo '${'$as_ac_var'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370echo "${ECHO_T}$ac_res" >&6; }
12371if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012372 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374_ACEOF
12375 break
12376fi
12377done
12378
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012379
12380
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012382do
12383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12388else
12389 cat >conftest.$ac_ext <<_ACEOF
12390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397#define $ac_func innocuous_$ac_func
12398
12399/* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12403
12404#ifdef __STDC__
12405# include <limits.h>
12406#else
12407# include <assert.h>
12408#endif
12409
12410#undef $ac_func
12411
12412/* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415#ifdef __cplusplus
12416extern "C"
12417#endif
12418char $ac_func ();
12419/* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422#if defined __stub_$ac_func || defined __stub___$ac_func
12423choke me
12424#endif
12425
12426int
12427main ()
12428{
12429return $ac_func ();
12430 ;
12431 return 0;
12432}
12433_ACEOF
12434rm -f conftest.$ac_objext conftest$ac_exeext
12435if { (ac_try="$ac_link"
12436case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12439esac
12440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452esac
12453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 eval "$as_ac_var=no"
12474fi
12475
12476rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12478fi
12479ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481echo "${ECHO_T}$ac_res" >&6; }
12482if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012484#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485_ACEOF
12486 break
12487fi
12488done
12489
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012490
12491
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012493do
12494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500 cat >conftest.$ac_ext <<_ACEOF
12501/* confdefs.h. */
12502_ACEOF
12503cat confdefs.h >>conftest.$ac_ext
12504cat >>conftest.$ac_ext <<_ACEOF
12505/* end confdefs.h. */
12506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508#define $ac_func innocuous_$ac_func
12509
12510/* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12514
12515#ifdef __STDC__
12516# include <limits.h>
12517#else
12518# include <assert.h>
12519#endif
12520
12521#undef $ac_func
12522
12523/* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526#ifdef __cplusplus
12527extern "C"
12528#endif
12529char $ac_func ();
12530/* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533#if defined __stub_$ac_func || defined __stub___$ac_func
12534choke me
12535#endif
12536
12537int
12538main ()
12539{
12540return $ac_func ();
12541 ;
12542 return 0;
12543}
12544_ACEOF
12545rm -f conftest.$ac_objext conftest$ac_exeext
12546if { (ac_try="$ac_link"
12547case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12550esac
12551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12553 ac_status=$?
12554 grep -v '^ *+' conftest.er1 >conftest.err
12555 rm -f conftest.er1
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12563esac
12564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12573esac
12574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12576 ac_status=$?
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12580else
12581 echo "$as_me: failed program was:" >&5
12582sed 's/^/| /' conftest.$ac_ext >&5
12583
12584 eval "$as_ac_var=no"
12585fi
12586
12587rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589fi
12590ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592echo "${ECHO_T}$ac_res" >&6; }
12593if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596_ACEOF
12597 break
12598fi
12599done
12600
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012601
12602
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012604do
12605as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12607echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611 cat >conftest.$ac_ext <<_ACEOF
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
12617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619#define $ac_func innocuous_$ac_func
12620
12621/* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char $ac_func (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12625
12626#ifdef __STDC__
12627# include <limits.h>
12628#else
12629# include <assert.h>
12630#endif
12631
12632#undef $ac_func
12633
12634/* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12637#ifdef __cplusplus
12638extern "C"
12639#endif
12640char $ac_func ();
12641/* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644#if defined __stub_$ac_func || defined __stub___$ac_func
12645choke me
12646#endif
12647
12648int
12649main ()
12650{
12651return $ac_func ();
12652 ;
12653 return 0;
12654}
12655_ACEOF
12656rm -f conftest.$ac_objext conftest$ac_exeext
12657if { (ac_try="$ac_link"
12658case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12661esac
12662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12664 ac_status=$?
12665 grep -v '^ *+' conftest.er1 >conftest.err
12666 rm -f conftest.er1
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12691else
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 eval "$as_ac_var=no"
12696fi
12697
12698rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700fi
12701ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703echo "${ECHO_T}$ac_res" >&6; }
12704if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012705 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012706#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707_ACEOF
12708
12709fi
12710done
12711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012712
12713
12714
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012715for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012716do
12717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722else
12723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
12729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731#define $ac_func innocuous_$ac_func
12732
12733/* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12737
12738#ifdef __STDC__
12739# include <limits.h>
12740#else
12741# include <assert.h>
12742#endif
12743
12744#undef $ac_func
12745
12746/* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749#ifdef __cplusplus
12750extern "C"
12751#endif
12752char $ac_func ();
12753/* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756#if defined __stub_$ac_func || defined __stub___$ac_func
12757choke me
12758#endif
12759
12760int
12761main ()
12762{
12763return $ac_func ();
12764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext conftest$ac_exeext
12769if { (ac_try="$ac_link"
12770case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
12774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12776 ac_status=$?
12777 grep -v '^ *+' conftest.er1 >conftest.err
12778 rm -f conftest.er1
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12786esac
12787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796esac
12797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12799 ac_status=$?
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 eval "$as_ac_var=yes"
12803else
12804 echo "$as_me: failed program was:" >&5
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
12807 eval "$as_ac_var=no"
12808fi
12809
12810rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812fi
12813ac_res=`eval echo '${'$as_ac_var'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815echo "${ECHO_T}$ac_res" >&6; }
12816if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012817 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012819_ACEOF
12820
12821fi
12822done
12823
12824
Douglas Gregor01746742009-05-11 18:05:52 +000012825
Reid Spencer7931a782004-12-27 06:15:02 +000012826if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012827 LLVMGCC="llvm-gcc${EXEEXT}"
12828 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012829 LLVMGCCCOMMAND="$LLVMGCC"
12830 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012831 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12832
12833 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12834
Reid Spencerc84492c2005-06-02 22:34:49 +000012835 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12836set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12839if test "${ac_cv_path_LLVMGCC+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012841else
12842 case $LLVMGCC in
12843 [\\/]* | ?:[\\/]*)
12844 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12845 ;;
12846 *)
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848for as_dir in $PATH
12849do
12850 IFS=$as_save_IFS
12851 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012852 for ac_exec_ext in '' $ac_executable_extensions; do
12853 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 +000012854 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012856 break 2
12857 fi
12858done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012859done
Reid Spencera773bd52006-08-04 18:18:08 +000012860IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012861
Reid Spencer59473af2004-12-25 07:31:29 +000012862 ;;
12863esac
12864fi
12865LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012866if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012867 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12868echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012869else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012870 { echo "$as_me:$LINENO: result: no" >&5
12871echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012872fi
12873
Reid Spencera773bd52006-08-04 18:18:08 +000012874
Reid Spencerc84492c2005-06-02 22:34:49 +000012875 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12876set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12879if test "${ac_cv_path_LLVMGXX+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012881else
12882 case $LLVMGXX in
12883 [\\/]* | ?:[\\/]*)
12884 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12885 ;;
12886 *)
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888for as_dir in $PATH
12889do
12890 IFS=$as_save_IFS
12891 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 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 +000012894 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012896 break 2
12897 fi
12898done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012899done
Reid Spencera773bd52006-08-04 18:18:08 +000012900IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012901
Reid Spencer59473af2004-12-25 07:31:29 +000012902 ;;
12903esac
12904fi
12905LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012906if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012907 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12908echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012910 { echo "$as_me:$LINENO: result: no" >&5
12911echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012912fi
12913
Reid Spencera773bd52006-08-04 18:18:08 +000012914
Reid Spencer59473af2004-12-25 07:31:29 +000012915else
Devang Patel5d28b882007-12-04 22:54:47 +000012916 if test -z "$LLVMGCC"; then
12917 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012918 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012919 fi
12920 if test -z "$LLVMGXX"; then
12921 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012922 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012923 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012924
Reid Spencer59473af2004-12-25 07:31:29 +000012925 LLVMGCC=$LLVMGCC
12926
12927 LLVMGXX=$LLVMGXX
12928
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012929 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12930
12931 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12932
Reid Spencer59473af2004-12-25 07:31:29 +000012933fi
12934
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012935
Daniel Dunbar98515672010-02-23 10:00:49 +000012936# Check whether --with-llvmcc was given.
12937if test "${with_llvmcc+set}" = set; then
12938 withval=$with_llvmcc;
12939else
12940 with_llvmcc=check
12941fi
12942
12943{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12944echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12945if test "$with_llvmcc" != "check"; then
12946 if (test "$with_llvmcc" != "llvm-gcc" &&
12947 test "$with_llvmcc" != "clang" &&
12948 test "$with_llvmcc" != "none"); then
12949 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12950echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12951 { (exit 1); exit 1; }; }
12952 fi
12953 WITH_LLVMCC="$with_llvmcc"
12954elif test -n "$LLVMGCC"; then
12955 WITH_LLVMCC=llvm-gcc
12956elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12957 WITH_LLVMCC=clang
12958else
12959 WITH_LLVMCC=none
12960fi
12961{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12962echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12963LLVMCC_OPTION=$WITH_LLVMCC
12964
12965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12967echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012968
Reid Spencer86901802004-12-08 23:07:27 +000012969ICC=no
12970IXX=no
12971case $CC in
12972 icc*|icpc*)
12973 ICC=yes
12974 IXX=yes
12975 ;;
12976 *)
12977 ;;
12978esac
12979
Duraid Madina937c60a2006-02-15 07:57:42 +000012980if test "$GCC" != "yes" && test "$ICC" != "yes"
12981then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012982 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12983echo "$as_me: error: gcc|icc required but not found" >&2;}
12984 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012985fi
12986
12987if test "$GXX" != "yes" && test "$IXX" != "yes"
12988then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012989 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12990echo "$as_me: error: g++|icc required but not found" >&2;}
12991 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012992fi
12993
Reid Spencer86901802004-12-08 23:07:27 +000012994if test "$GCC" = "yes"
12995then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012996 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012997#if !defined(__GNUC__) || __GNUC__ < 3
12998#error Unsupported GCC version
12999#endif
13000
13001_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013002rm -f conftest.$ac_objext
13003if { (ac_try="$ac_compile"
13004case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007esac
13008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_compile") 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020esac
13021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13030esac
13031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_try") 2>&5
13033 ac_status=$?
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013037else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013038 echo "$as_me: failed program was:" >&5
13039sed 's/^/| /' conftest.$ac_ext >&5
13040
13041 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13042echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13043 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013044fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013045
Chris Lattner399c7c72008-02-05 19:43:53 +000013046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013047fi
13048
13049if test -z "$llvm_cv_gnu_make_command"
13050then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013051 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13052echo "$as_me: error: GNU Make required but not found" >&2;}
13053 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013054fi
13055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013056{ echo "$as_me:$LINENO: result: ok" >&5
13057echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013059{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13060echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013061NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13062
13063NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13064
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013065{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13066echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013067
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069
13070{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13071echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13072if test "${ac_cv_lib_m_sin+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013074else
13075 ac_check_lib_save_LIBS=$LIBS
13076LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013077cat >conftest.$ac_ext <<_ACEOF
13078/* confdefs.h. */
13079_ACEOF
13080cat confdefs.h >>conftest.$ac_ext
13081cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013082/* end confdefs.h. */
13083
Reid Spencera773bd52006-08-04 18:18:08 +000013084/* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013087#ifdef __cplusplus
13088extern "C"
13089#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013090char sin ();
13091int
13092main ()
13093{
Reid Spencera773bd52006-08-04 18:18:08 +000013094return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013095 ;
13096 return 0;
13097}
13098_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013099rm -f conftest.$ac_objext conftest$ac_exeext
13100if { (ac_try="$ac_link"
13101case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104esac
13105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_link") 2>conftest.er1
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13114 { (case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13117esac
13118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_try") 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest$ac_exeext'
13124 { (case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013133 ac_cv_lib_m_sin=yes
13134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135 echo "$as_me: failed program was:" >&5
13136sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013139fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013140
Bill Wendlingebcceee2009-04-18 11:20:33 +000013141rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013142 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013143LIBS=$ac_check_lib_save_LIBS
13144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013145{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13146echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13147if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013148 cat >>confdefs.h <<_ACEOF
13149#define HAVE_LIBM 1
13150_ACEOF
13151
13152 LIBS="-lm $LIBS"
13153
13154fi
13155
Jeff Cohen28783c32007-01-12 18:22:38 +000013156if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013157
13158{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13159echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13160if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013162else
13163 ac_check_lib_save_LIBS=$LIBS
13164LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013165cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013170/* end confdefs.h. */
13171
Reid Spencer48fdf912006-06-01 19:03:21 +000013172
Reid Spencer484fc8e2006-06-01 16:55:59 +000013173int
13174main ()
13175{
Reid Spencera773bd52006-08-04 18:18:08 +000013176return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013177 ;
13178 return 0;
13179}
13180_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013181rm -f conftest.$ac_objext conftest$ac_exeext
13182if { (ac_try="$ac_link"
13183case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13186esac
13187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13189 ac_status=$?
13190 grep -v '^ *+' conftest.er1 >conftest.err
13191 rm -f conftest.er1
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
13206 { (case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13209esac
13210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_try") 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013215 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013216else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013221fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013222
Bill Wendlingebcceee2009-04-18 11:20:33 +000013223rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013224 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013225LIBS=$ac_check_lib_save_LIBS
13226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13228echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13229if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013230 cat >>confdefs.h <<_ACEOF
13231#define HAVE_LIBIMAGEHLP 1
13232_ACEOF
13233
13234 LIBS="-limagehlp $LIBS"
13235
13236fi
13237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013238
13239{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13240echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13241if test "${ac_cv_lib_psapi_main+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013243else
13244 ac_check_lib_save_LIBS=$LIBS
13245LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013246cat >conftest.$ac_ext <<_ACEOF
13247/* confdefs.h. */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013251/* end confdefs.h. */
13252
Reid Spencer48fdf912006-06-01 19:03:21 +000013253
Reid Spencer484fc8e2006-06-01 16:55:59 +000013254int
13255main ()
13256{
Reid Spencera773bd52006-08-04 18:18:08 +000013257return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013258 ;
13259 return 0;
13260}
13261_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013262rm -f conftest.$ac_objext conftest$ac_exeext
13263if { (ac_try="$ac_link"
13264case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267esac
13268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_link") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13280esac
13281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13283 ac_status=$?
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
13287 { (case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290esac
13291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_try") 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013296 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013298 echo "$as_me: failed program was:" >&5
13299sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013302fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013303
Bill Wendlingebcceee2009-04-18 11:20:33 +000013304rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013305 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013306LIBS=$ac_check_lib_save_LIBS
13307fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013308{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13309echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13310if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013311 cat >>confdefs.h <<_ACEOF
13312#define HAVE_LIBPSAPI 1
13313_ACEOF
13314
13315 LIBS="-lpsapi $LIBS"
13316
13317fi
13318
13319fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013321{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13322echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13323if test "${ac_cv_search_dlopen+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013325else
13326 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013327cat >conftest.$ac_ext <<_ACEOF
13328/* confdefs.h. */
13329_ACEOF
13330cat confdefs.h >>conftest.$ac_ext
13331cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013332/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013333
Reid Spencera773bd52006-08-04 18:18:08 +000013334/* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013337#ifdef __cplusplus
13338extern "C"
13339#endif
John Criswell7a73b802003-06-30 21:59:07 +000013340char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013341int
13342main ()
13343{
Reid Spencera773bd52006-08-04 18:18:08 +000013344return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013345 ;
13346 return 0;
13347}
13348_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013349for ac_lib in '' dl; do
13350 if test -z "$ac_lib"; then
13351 ac_res="none required"
13352 else
13353 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013355 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013356 rm -f conftest.$ac_objext conftest$ac_exeext
13357if { (ac_try="$ac_link"
13358case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361esac
13362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
13375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13377 ac_status=$?
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384esac
13385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13387 ac_status=$?
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013390 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013391else
13392 echo "$as_me: failed program was:" >&5
13393sed 's/^/| /' conftest.$ac_ext >&5
13394
13395
John Criswell7a73b802003-06-30 21:59:07 +000013396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013397
Bill Wendlingebcceee2009-04-18 11:20:33 +000013398rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399 conftest$ac_exeext
13400 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013401 break
John Criswell7a73b802003-06-30 21:59:07 +000013402fi
Reid Spencera773bd52006-08-04 18:18:08 +000013403done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013404if test "${ac_cv_search_dlopen+set}" = set; then
13405 :
Reid Spencera773bd52006-08-04 18:18:08 +000013406else
13407 ac_cv_search_dlopen=no
13408fi
13409rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013410LIBS=$ac_func_search_save_LIBS
13411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13413echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013414ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013418cat >>confdefs.h <<\_ACEOF
13419#define HAVE_DLOPEN 1
13420_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013421
13422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013423 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13424echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013425fi
13426
13427
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013428if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013429 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13430echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13431if test "${ac_cv_search_ffi_call+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013433else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013434 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013435cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013440/* end confdefs.h. */
13441
13442/* Override any GCC internal prototype to avoid an error.
13443 Use char because int might match the return type of a GCC
13444 builtin and then its argument prototype would still apply. */
13445#ifdef __cplusplus
13446extern "C"
13447#endif
13448char ffi_call ();
13449int
13450main ()
13451{
13452return ffi_call ();
13453 ;
13454 return 0;
13455}
13456_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013457for ac_lib in '' ffi; do
13458 if test -z "$ac_lib"; then
13459 ac_res="none required"
13460 else
13461 ac_res=-l$ac_lib
13462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13463 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013464 rm -f conftest.$ac_objext conftest$ac_exeext
13465if { (ac_try="$ac_link"
13466case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13469esac
13470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_link") 2>conftest.er1
13472 ac_status=$?
13473 grep -v '^ *+' conftest.er1 >conftest.err
13474 rm -f conftest.er1
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13492esac
13493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013498 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
13503
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013504fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013505
Bill Wendlingebcceee2009-04-18 11:20:33 +000013506rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013507 conftest$ac_exeext
13508 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013509 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013510fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013511done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013512if test "${ac_cv_search_ffi_call+set}" = set; then
13513 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013514else
13515 ac_cv_search_ffi_call=no
13516fi
13517rm conftest.$ac_ext
13518LIBS=$ac_func_search_save_LIBS
13519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13521echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013522ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013523if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13525
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013526cat >>confdefs.h <<\_ACEOF
13527#define HAVE_FFI_CALL 1
13528_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013529
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013530else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013531 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13532echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13533 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013534fi
13535
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013536fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013538{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13539echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13540if test "${ac_cv_search_mallinfo+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013542else
13543 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013544cat >conftest.$ac_ext <<_ACEOF
13545/* confdefs.h. */
13546_ACEOF
13547cat confdefs.h >>conftest.$ac_ext
13548cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013550
Reid Spencera773bd52006-08-04 18:18:08 +000013551/* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013554#ifdef __cplusplus
13555extern "C"
13556#endif
John Criswell7a73b802003-06-30 21:59:07 +000013557char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013558int
13559main ()
13560{
Reid Spencera773bd52006-08-04 18:18:08 +000013561return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013562 ;
13563 return 0;
13564}
13565_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013566for ac_lib in '' malloc; do
13567 if test -z "$ac_lib"; then
13568 ac_res="none required"
13569 else
13570 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013572 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013573 rm -f conftest.$ac_objext conftest$ac_exeext
13574if { (ac_try="$ac_link"
13575case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578esac
13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>conftest.er1
13581 ac_status=$?
13582 grep -v '^ *+' conftest.er1 >conftest.err
13583 rm -f conftest.er1
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591esac
13592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest$ac_exeext'
13598 { (case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13601esac
13602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_try") 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013607 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013608else
13609 echo "$as_me: failed program was:" >&5
13610sed 's/^/| /' conftest.$ac_ext >&5
13611
13612
John Criswell7a73b802003-06-30 21:59:07 +000013613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614
Bill Wendlingebcceee2009-04-18 11:20:33 +000013615rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013616 conftest$ac_exeext
13617 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013618 break
John Criswell7a73b802003-06-30 21:59:07 +000013619fi
Reid Spencera773bd52006-08-04 18:18:08 +000013620done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013621if test "${ac_cv_search_mallinfo+set}" = set; then
13622 :
Reid Spencera773bd52006-08-04 18:18:08 +000013623else
13624 ac_cv_search_mallinfo=no
13625fi
13626rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013627LIBS=$ac_func_search_save_LIBS
13628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013629{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13630echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013631ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013632if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013635cat >>confdefs.h <<\_ACEOF
13636#define HAVE_MALLINFO 1
13637_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013638
13639fi
13640
13641
Reid Spencer0a262ba2005-08-24 10:07:20 +000013642if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643
13644{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13645echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13646if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013648else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013649 ac_check_lib_save_LIBS=$LIBS
13650LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013651cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013656/* end confdefs.h. */
13657
Reid Spencera773bd52006-08-04 18:18:08 +000013658/* Override any GCC internal prototype to avoid an error.
13659 Use char because int might match the return type of a GCC
13660 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013661#ifdef __cplusplus
13662extern "C"
13663#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013664char pthread_mutex_init ();
13665int
13666main ()
13667{
Reid Spencera773bd52006-08-04 18:18:08 +000013668return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013669 ;
13670 return 0;
13671}
13672_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013673rm -f conftest.$ac_objext conftest$ac_exeext
13674if { (ac_try="$ac_link"
13675case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
13681 ac_status=$?
13682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691esac
13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701esac
13702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013707 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013708else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013709 echo "$as_me: failed program was:" >&5
13710sed 's/^/| /' conftest.$ac_ext >&5
13711
13712 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013713fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013714
Bill Wendlingebcceee2009-04-18 11:20:33 +000013715rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013716 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013717LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013719{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13720echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13721if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013722 cat >>confdefs.h <<_ACEOF
13723#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013724_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013725
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013726 LIBS="-lpthread $LIBS"
13727
Reid Spencer22177fe2005-07-12 15:24:20 +000013728fi
13729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013730 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13731echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13732if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013734else
13735 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013736cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013741/* end confdefs.h. */
13742
Reid Spencera773bd52006-08-04 18:18:08 +000013743/* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013746#ifdef __cplusplus
13747extern "C"
13748#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013749char pthread_mutex_lock ();
13750int
13751main ()
13752{
Reid Spencera773bd52006-08-04 18:18:08 +000013753return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013754 ;
13755 return 0;
13756}
13757_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013758for ac_lib in '' pthread; do
13759 if test -z "$ac_lib"; then
13760 ac_res="none required"
13761 else
13762 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013764 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013765 rm -f conftest.$ac_objext conftest$ac_exeext
13766if { (ac_try="$ac_link"
13767case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13773 ac_status=$?
13774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013799 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
13804
Brian Gaeke5f268f72003-12-05 19:29:01 +000013805fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806
Bill Wendlingebcceee2009-04-18 11:20:33 +000013807rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013808 conftest$ac_exeext
13809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013810 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013811fi
Reid Spencera773bd52006-08-04 18:18:08 +000013812done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013813if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13814 :
Reid Spencera773bd52006-08-04 18:18:08 +000013815else
13816 ac_cv_search_pthread_mutex_lock=no
13817fi
13818rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013819LIBS=$ac_func_search_save_LIBS
13820fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013821{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13822echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013823ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013824if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013827cat >>confdefs.h <<\_ACEOF
13828#define HAVE_PTHREAD_MUTEX_LOCK 1
13829_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013830
13831fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013833 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13834echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13835if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013837else
13838 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013839cat >conftest.$ac_ext <<_ACEOF
13840/* confdefs.h. */
13841_ACEOF
13842cat confdefs.h >>conftest.$ac_ext
13843cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013844/* end confdefs.h. */
13845
13846/* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13849#ifdef __cplusplus
13850extern "C"
13851#endif
13852char pthread_rwlock_init ();
13853int
13854main ()
13855{
13856return pthread_rwlock_init ();
13857 ;
13858 return 0;
13859}
13860_ACEOF
13861for ac_lib in '' pthread; do
13862 if test -z "$ac_lib"; then
13863 ac_res="none required"
13864 else
13865 ac_res=-l$ac_lib
13866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13867 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013868 rm -f conftest.$ac_objext conftest$ac_exeext
13869if { (ac_try="$ac_link"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886esac
13887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13889 ac_status=$?
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896esac
13897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013902 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903else
13904 echo "$as_me: failed program was:" >&5
13905sed 's/^/| /' conftest.$ac_ext >&5
13906
13907
Owen Andersonde8aed22009-06-16 18:20:20 +000013908fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013909
Owen Andersonde8aed22009-06-16 18:20:20 +000013910rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013911 conftest$ac_exeext
13912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013913 break
13914fi
13915done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013916if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13917 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013918else
13919 ac_cv_search_pthread_rwlock_init=no
13920fi
13921rm conftest.$ac_ext
13922LIBS=$ac_func_search_save_LIBS
13923fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13925echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013926ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013927if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013930cat >>confdefs.h <<\_ACEOF
13931#define HAVE_PTHREAD_RWLOCK_INIT 1
13932_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013933
13934fi
13935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013936 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13937echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13938if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013940else
13941 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013942cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013947/* end confdefs.h. */
13948
13949/* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13952#ifdef __cplusplus
13953extern "C"
13954#endif
13955char pthread_getspecific ();
13956int
13957main ()
13958{
13959return pthread_getspecific ();
13960 ;
13961 return 0;
13962}
13963_ACEOF
13964for ac_lib in '' pthread; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13967 else
13968 ac_res=-l$ac_lib
13969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13970 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013971 rm -f conftest.$ac_objext conftest$ac_exeext
13972if { (ac_try="$ac_link"
13973case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13976esac
13977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13989esac
13990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
13999esac
14000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14002 ac_status=$?
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014005 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006else
14007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
14010
Owen Anderson27fcfe12009-06-25 23:10:26 +000014011fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014012
Owen Anderson27fcfe12009-06-25 23:10:26 +000014013rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014014 conftest$ac_exeext
14015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014016 break
14017fi
14018done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014019if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14020 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014021else
14022 ac_cv_search_pthread_getspecific=no
14023fi
14024rm conftest.$ac_ext
14025LIBS=$ac_func_search_save_LIBS
14026fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014027{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14028echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014029ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014030if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014033cat >>confdefs.h <<\_ACEOF
14034#define HAVE_PTHREAD_GETSPECIFIC 1
14035_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014036
14037fi
14038
Reid Spencer0a262ba2005-08-24 10:07:20 +000014039fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014040
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014041
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014042# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014043if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014044 withval=$with_udis86;
14045 USE_UDIS86=1
14046
14047 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014048 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014049 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14050 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051
14052{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14053echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14054if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014056else
14057 ac_check_lib_save_LIBS=$LIBS
14058LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014059cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014064/* end confdefs.h. */
14065
14066/* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14069#ifdef __cplusplus
14070extern "C"
14071#endif
14072char ud_init ();
14073int
14074main ()
14075{
14076return ud_init ();
14077 ;
14078 return 0;
14079}
14080_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014081rm -f conftest.$ac_objext conftest$ac_exeext
14082if { (ac_try="$ac_link"
14083case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14086esac
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099esac
14100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14109esac
14110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14112 ac_status=$?
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014115 ac_cv_lib_udis86_ud_init=yes
14116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014117 echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
14120 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014121fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014122
Bill Wendlingebcceee2009-04-18 11:20:33 +000014123rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014125LIBS=$ac_check_lib_save_LIBS
14126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14128echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14129if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014130 cat >>confdefs.h <<_ACEOF
14131#define HAVE_LIBUDIS86 1
14132_ACEOF
14133
14134 LIBS="-ludis86 $LIBS"
14135
14136else
14137
14138 echo "Error! You need to have libudis86 around."
14139 exit -1
14140
14141fi
14142
14143
14144else
14145 USE_UDIS86=0
14146
14147fi
14148
14149
14150cat >>confdefs.h <<_ACEOF
14151#define USE_UDIS86 $USE_UDIS86
14152_ACEOF
14153
14154
14155
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014156# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014158 withval=$with_oprofile;
14159 USE_OPROFILE=1
14160
14161 case "$withval" in
14162 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014163 no) llvm_cv_oppath=
14164 USE_OPROFILE=0
14165 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014166 *) llvm_cv_oppath="${withval}/lib/oprofile"
14167 CPPFLAGS="-I${withval}/include";;
14168 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014169 if test -n "$llvm_cv_oppath" ; then
14170 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14172echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14173if test "${ac_cv_search_bfd_init+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014175else
14176 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h. */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014182/* end confdefs.h. */
14183
14184/* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14187#ifdef __cplusplus
14188extern "C"
14189#endif
14190char bfd_init ();
14191int
14192main ()
14193{
14194return bfd_init ();
14195 ;
14196 return 0;
14197}
14198_ACEOF
14199for ac_lib in '' bfd; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14202 else
14203 ac_res=-l$ac_lib
14204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14205 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206 rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (ac_try="$ac_link"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224esac
14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014240 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014248rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249 conftest$ac_exeext
14250 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014251 break
14252fi
14253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254if test "${ac_cv_search_bfd_init+set}" = set; then
14255 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014256else
14257 ac_cv_search_bfd_init=no
14258fi
14259rm conftest.$ac_ext
14260LIBS=$ac_func_search_save_LIBS
14261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14263echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014264ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14267
14268fi
14269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014270 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14271echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14272if test "${ac_cv_search_op_open_agent+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014274else
14275 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014276cat >conftest.$ac_ext <<_ACEOF
14277/* confdefs.h. */
14278_ACEOF
14279cat confdefs.h >>conftest.$ac_ext
14280cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014281/* end confdefs.h. */
14282
14283/* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14286#ifdef __cplusplus
14287extern "C"
14288#endif
14289char op_open_agent ();
14290int
14291main ()
14292{
14293return op_open_agent ();
14294 ;
14295 return 0;
14296}
14297_ACEOF
14298for ac_lib in '' opagent; do
14299 if test -z "$ac_lib"; then
14300 ac_res="none required"
14301 else
14302 ac_res=-l$ac_lib
14303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14304 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014305 rm -f conftest.$ac_objext conftest$ac_exeext
14306if { (ac_try="$ac_link"
14307case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14310esac
14311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>conftest.er1
14313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14323esac
14324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14333esac
14334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014339 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014340else
14341 echo "$as_me: failed program was:" >&5
14342sed 's/^/| /' conftest.$ac_ext >&5
14343
14344
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014346
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014347rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348 conftest$ac_exeext
14349 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014350 break
14351fi
14352done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353if test "${ac_cv_search_op_open_agent+set}" = set; then
14354 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014355else
14356 ac_cv_search_op_open_agent=no
14357fi
14358rm conftest.$ac_ext
14359LIBS=$ac_func_search_save_LIBS
14360fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014361{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14362echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014363ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014364if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14366
14367else
14368
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014369 echo "Error! You need to have libopagent around."
14370 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014371
14372fi
14373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014374 if test "${ac_cv_header_opagent_h+set}" = set; then
14375 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14376echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14377if test "${ac_cv_header_opagent_h+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379fi
14380{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14381echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14382else
14383 # Is the header compilable?
14384{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14385echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14386cat >conftest.$ac_ext <<_ACEOF
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392$ac_includes_default
14393#include <opagent.h>
14394_ACEOF
14395rm -f conftest.$ac_objext
14396if { (ac_try="$ac_compile"
14397case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14400esac
14401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14403 ac_status=$?
14404 grep -v '^ *+' conftest.er1 >conftest.err
14405 rm -f conftest.er1
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14413esac
14414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14423esac
14424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14426 ac_status=$?
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_header_compiler=yes
14430else
14431 echo "$as_me: failed program was:" >&5
14432sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014433
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014434 ac_header_compiler=no
14435fi
14436
14437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14439echo "${ECHO_T}$ac_header_compiler" >&6; }
14440
14441# Is the header present?
14442{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14443echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450#include <opagent.h>
14451_ACEOF
14452if { (ac_try="$ac_cpp conftest.$ac_ext"
14453case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456esac
14457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14459 ac_status=$?
14460 grep -v '^ *+' conftest.er1 >conftest.err
14461 rm -f conftest.er1
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } >/dev/null; then
14465 if test -s conftest.err; then
14466 ac_cpp_err=$ac_c_preproc_warn_flag
14467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14468 else
14469 ac_cpp_err=
14470 fi
14471else
14472 ac_cpp_err=yes
14473fi
14474if test -z "$ac_cpp_err"; then
14475 ac_header_preproc=yes
14476else
14477 echo "$as_me: failed program was:" >&5
14478sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_header_preproc=no
14481fi
14482
14483rm -f conftest.err conftest.$ac_ext
14484{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14485echo "${ECHO_T}$ac_header_preproc" >&6; }
14486
14487# So? What about this header?
14488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14489 yes:no: )
14490 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14491echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14493echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14494 ac_header_preproc=yes
14495 ;;
14496 no:yes:* )
14497 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14498echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14500echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14502echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14504echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14506echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14508echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14509 ( cat <<\_ASBOX
14510## ----------------------------------- ##
14511## Report this to llvmbugs@cs.uiuc.edu ##
14512## ----------------------------------- ##
14513_ASBOX
14514 ) | sed "s/^/$as_me: WARNING: /" >&2
14515 ;;
14516esac
14517{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14518echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14519if test "${ac_cv_header_opagent_h+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521else
14522 ac_cv_header_opagent_h=$ac_header_preproc
14523fi
14524{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14525echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14526
14527fi
14528if test $ac_cv_header_opagent_h = yes; then
14529 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014530else
14531
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014532 echo "Error! You need to have opagent.h around."
14533 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014534
14535fi
14536
14537
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014538 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014539
14540else
14541
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014542 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014543
14544
14545fi
14546
14547
14548cat >>confdefs.h <<_ACEOF
14549#define USE_OPROFILE $USE_OPROFILE
14550_ACEOF
14551
14552
14553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014554
14555
14556
14557
14558
Reid Spencer59473af2004-12-25 07:31:29 +000014559ac_header_dirent=no
14560for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14562{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14563echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014566else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014567 cat >conftest.$ac_ext <<_ACEOF
14568/* confdefs.h. */
14569_ACEOF
14570cat confdefs.h >>conftest.$ac_ext
14571cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014572/* end confdefs.h. */
14573#include <sys/types.h>
14574#include <$ac_hdr>
14575
14576int
14577main ()
14578{
14579if ((DIR *) 0)
14580return 0;
14581 ;
14582 return 0;
14583}
14584_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014585rm -f conftest.$ac_objext
14586if { (ac_try="$ac_compile"
14587case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590esac
14591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_compile") 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600 { (case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14603esac
14604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_try") 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14613esac
14614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14616 ac_status=$?
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014619 eval "$as_ac_Header=yes"
14620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014621 echo "$as_me: failed program was:" >&5
14622sed 's/^/| /' conftest.$ac_ext >&5
14623
14624 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014625fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014626
Reid Spencera773bd52006-08-04 18:18:08 +000014627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014628fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014629ac_res=`eval echo '${'$as_ac_Header'}'`
14630 { echo "$as_me:$LINENO: result: $ac_res" >&5
14631echo "${ECHO_T}$ac_res" >&6; }
14632if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014633 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014634#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014635_ACEOF
14636
14637ac_header_dirent=$ac_hdr; break
14638fi
14639
14640done
14641# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14642if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014643 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14644echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14645if test "${ac_cv_search_opendir+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014647else
14648 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014649cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */
14651_ACEOF
14652cat confdefs.h >>conftest.$ac_ext
14653cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014654/* end confdefs.h. */
14655
Reid Spencera773bd52006-08-04 18:18:08 +000014656/* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014659#ifdef __cplusplus
14660extern "C"
14661#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014662char opendir ();
14663int
14664main ()
14665{
Reid Spencera773bd52006-08-04 18:18:08 +000014666return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014667 ;
14668 return 0;
14669}
14670_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014671for ac_lib in '' dir; do
14672 if test -z "$ac_lib"; then
14673 ac_res="none required"
14674 else
14675 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014677 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014678 rm -f conftest.$ac_objext conftest$ac_exeext
14679if { (ac_try="$ac_link"
14680case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14683esac
14684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_link") 2>conftest.er1
14686 ac_status=$?
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696esac
14697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706esac
14707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14709 ac_status=$?
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014712 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014713else
14714 echo "$as_me: failed program was:" >&5
14715sed 's/^/| /' conftest.$ac_ext >&5
14716
14717
Reid Spencer59473af2004-12-25 07:31:29 +000014718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014719
Bill Wendlingebcceee2009-04-18 11:20:33 +000014720rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014721 conftest$ac_exeext
14722 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014723 break
Reid Spencer59473af2004-12-25 07:31:29 +000014724fi
Reid Spencera773bd52006-08-04 18:18:08 +000014725done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014726if test "${ac_cv_search_opendir+set}" = set; then
14727 :
Reid Spencera773bd52006-08-04 18:18:08 +000014728else
14729 ac_cv_search_opendir=no
14730fi
14731rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014732LIBS=$ac_func_search_save_LIBS
14733fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014734{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14735echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014736ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014737if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014739
14740fi
14741
14742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014743 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14744echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14745if test "${ac_cv_search_opendir+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014747else
14748 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014749cat >conftest.$ac_ext <<_ACEOF
14750/* confdefs.h. */
14751_ACEOF
14752cat confdefs.h >>conftest.$ac_ext
14753cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014754/* end confdefs.h. */
14755
Reid Spencera773bd52006-08-04 18:18:08 +000014756/* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014759#ifdef __cplusplus
14760extern "C"
14761#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014762char opendir ();
14763int
14764main ()
14765{
Reid Spencera773bd52006-08-04 18:18:08 +000014766return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014767 ;
14768 return 0;
14769}
14770_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014771for ac_lib in '' x; do
14772 if test -z "$ac_lib"; then
14773 ac_res="none required"
14774 else
14775 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014777 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014778 rm -f conftest.$ac_objext conftest$ac_exeext
14779if { (ac_try="$ac_link"
14780case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14783esac
14784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_link") 2>conftest.er1
14786 ac_status=$?
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793 { (case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14796esac
14797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_try") 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806esac
14807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_try") 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014812 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014813else
14814 echo "$as_me: failed program was:" >&5
14815sed 's/^/| /' conftest.$ac_ext >&5
14816
14817
Reid Spencer59473af2004-12-25 07:31:29 +000014818fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014819
Bill Wendlingebcceee2009-04-18 11:20:33 +000014820rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014821 conftest$ac_exeext
14822 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014823 break
Reid Spencer59473af2004-12-25 07:31:29 +000014824fi
Reid Spencera773bd52006-08-04 18:18:08 +000014825done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014826if test "${ac_cv_search_opendir+set}" = set; then
14827 :
Reid Spencera773bd52006-08-04 18:18:08 +000014828else
14829 ac_cv_search_opendir=no
14830fi
14831rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014832LIBS=$ac_func_search_save_LIBS
14833fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014834{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14835echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014836ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014837if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014839
14840fi
14841
14842fi
14843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014844{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14845echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14846if test "${ac_cv_header_mmap_anon+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014848else
14849 ac_ext=c
14850ac_cpp='$CPP $CPPFLAGS'
14851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14853ac_compiler_gnu=$ac_cv_c_compiler_gnu
14854
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014855 cat >conftest.$ac_ext <<_ACEOF
14856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014860/* end confdefs.h. */
14861#include <sys/mman.h>
14862#include <unistd.h>
14863#include <fcntl.h>
14864int
14865main ()
14866{
14867mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14868 ;
14869 return 0;
14870}
14871_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014872rm -f conftest.$ac_objext
14873if { (ac_try="$ac_compile"
14874case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14877esac
14878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_compile") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14890esac
14891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14893 ac_status=$?
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14900esac
14901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014906 ac_cv_header_mmap_anon=yes
14907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014912fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014913
Reid Spencera773bd52006-08-04 18:18:08 +000014914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014915 ac_ext=c
14916ac_cpp='$CPP $CPPFLAGS'
14917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920
14921
14922fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014923{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14924echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014925if test "$ac_cv_header_mmap_anon" = yes; then
14926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014927cat >>confdefs.h <<\_ACEOF
14928#define HAVE_MMAP_ANONYMOUS 1
14929_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014930
14931fi
14932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14934echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14935if test "${ac_cv_header_stat_broken+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014938 cat >conftest.$ac_ext <<_ACEOF
14939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014943/* end confdefs.h. */
14944#include <sys/types.h>
14945#include <sys/stat.h>
14946
Reid Spencera773bd52006-08-04 18:18:08 +000014947#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948# if S_ISBLK (S_IFDIR)
14949You lose.
14950# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014951#endif
14952
Reid Spencera773bd52006-08-04 18:18:08 +000014953#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014954# if S_ISBLK (S_IFCHR)
14955You lose.
14956# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014957#endif
14958
Reid Spencera773bd52006-08-04 18:18:08 +000014959#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014960# if S_ISLNK (S_IFREG)
14961You lose.
14962# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014963#endif
14964
Reid Spencera773bd52006-08-04 18:18:08 +000014965#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014966# if S_ISSOCK (S_IFREG)
14967You lose.
14968# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014969#endif
14970
14971_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14973 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014974 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014975else
14976 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014977fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014978rm -f conftest*
14979
Reid Spencer59473af2004-12-25 07:31:29 +000014980fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014981{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14982echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014983if test $ac_cv_header_stat_broken = yes; then
14984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014985cat >>confdefs.h <<\_ACEOF
14986#define STAT_MACROS_BROKEN 1
14987_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014988
14989fi
14990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014991{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14992echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14993if test "${ac_cv_header_stdc+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014995else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014996 cat >conftest.$ac_ext <<_ACEOF
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015001/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015002#include <stdlib.h>
15003#include <stdarg.h>
15004#include <string.h>
15005#include <float.h>
15006
John Criswell0c38eaf2003-09-10 15:17:25 +000015007int
15008main ()
15009{
15010
15011 ;
15012 return 0;
15013}
John Criswell7a73b802003-06-30 21:59:07 +000015014_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015015rm -f conftest.$ac_objext
15016if { (ac_try="$ac_compile"
15017case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020esac
15021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15023 ac_status=$?
15024 grep -v '^ *+' conftest.er1 >conftest.err
15025 rm -f conftest.er1
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15030 { (case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15033esac
15034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_try") 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15043esac
15044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_try") 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015049 ac_cv_header_stdc=yes
15050else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051 echo "$as_me: failed program was:" >&5
15052sed 's/^/| /' conftest.$ac_ext >&5
15053
15054 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015056
Reid Spencera773bd52006-08-04 18:18:08 +000015057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015058
15059if test $ac_cv_header_stdc = yes; then
15060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015061 cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015067#include <string.h>
15068
15069_ACEOF
15070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015071 $EGREP "memchr" >/dev/null 2>&1; then
15072 :
John Criswell7a73b802003-06-30 21:59:07 +000015073else
15074 ac_cv_header_stdc=no
15075fi
15076rm -f conftest*
15077
15078fi
15079
15080if test $ac_cv_header_stdc = yes; then
15081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015082 cat >conftest.$ac_ext <<_ACEOF
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015088#include <stdlib.h>
15089
15090_ACEOF
15091if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015092 $EGREP "free" >/dev/null 2>&1; then
15093 :
John Criswell7a73b802003-06-30 21:59:07 +000015094else
15095 ac_cv_header_stdc=no
15096fi
15097rm -f conftest*
15098
15099fi
15100
15101if test $ac_cv_header_stdc = yes; then
15102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015103 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015104 :
15105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015106 cat >conftest.$ac_ext <<_ACEOF
15107/* confdefs.h. */
15108_ACEOF
15109cat confdefs.h >>conftest.$ac_ext
15110cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015112#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015113#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015114#if ((' ' & 0x0FF) == 0x020)
15115# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15116# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15117#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015118# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015119 (('a' <= (c) && (c) <= 'i') \
15120 || ('j' <= (c) && (c) <= 'r') \
15121 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015122# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15123#endif
15124
15125#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15126int
15127main ()
15128{
15129 int i;
15130 for (i = 0; i < 256; i++)
15131 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015132 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015133 return 2;
15134 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015135}
15136_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015137rm -f conftest$ac_exeext
15138if { (ac_try="$ac_link"
15139case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142esac
15143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15151esac
15152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15154 ac_status=$?
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15157 :
John Criswell7a73b802003-06-30 21:59:07 +000015158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159 echo "$as_me: program exited with status $ac_status" >&5
15160echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
15163( exit $ac_status )
15164ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015165fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015166rm -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 +000015167fi
15168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169
John Criswell7a73b802003-06-30 21:59:07 +000015170fi
15171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015172{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15173echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015174if test $ac_cv_header_stdc = yes; then
15175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015176cat >>confdefs.h <<\_ACEOF
15177#define STDC_HEADERS 1
15178_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015179
15180fi
15181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15183echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15184if test "${ac_cv_header_sys_wait_h+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015187 cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015193#include <sys/types.h>
15194#include <sys/wait.h>
15195#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015196# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015197#endif
15198#ifndef WIFEXITED
15199# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15200#endif
15201
John Criswell7a73b802003-06-30 21:59:07 +000015202int
15203main ()
15204{
15205 int s;
15206 wait (&s);
15207 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15208 ;
15209 return 0;
15210}
15211_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015212rm -f conftest.$ac_objext
15213if { (ac_try="$ac_compile"
15214case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217esac
15218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_compile") 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15227 { (case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15230esac
15231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_try") 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
15237 { (case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240esac
15241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_try") 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015246 ac_cv_header_sys_wait_h=yes
15247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015248 echo "$as_me: failed program was:" >&5
15249sed 's/^/| /' conftest.$ac_ext >&5
15250
15251 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015253
Reid Spencera773bd52006-08-04 18:18:08 +000015254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015255fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015256{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15257echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015258if test $ac_cv_header_sys_wait_h = yes; then
15259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015260cat >>confdefs.h <<\_ACEOF
15261#define HAVE_SYS_WAIT_H 1
15262_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015263
15264fi
15265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015266{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15267echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15268if test "${ac_cv_header_time+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015271 cat >conftest.$ac_ext <<_ACEOF
15272/* confdefs.h. */
15273_ACEOF
15274cat confdefs.h >>conftest.$ac_ext
15275cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015276/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015277#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015278#include <sys/time.h>
15279#include <time.h>
15280
15281int
15282main ()
15283{
15284if ((struct tm *) 0)
15285return 0;
15286 ;
15287 return 0;
15288}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015289_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015290rm -f conftest.$ac_objext
15291if { (ac_try="$ac_compile"
15292case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295esac
15296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15298 ac_status=$?
15299 grep -v '^ *+' conftest.er1 >conftest.err
15300 rm -f conftest.er1
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15308esac
15309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15318esac
15319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015324 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015331
Reid Spencera773bd52006-08-04 18:18:08 +000015332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015334{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15335echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015336if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015338cat >>confdefs.h <<\_ACEOF
15339#define TIME_WITH_SYS_TIME 1
15340_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015341
15342fi
15343
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015345
15346
15347
15348
15349
15350
Reid Spencer59473af2004-12-25 07:31:29 +000015351for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352do
15353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359fi
15360ac_res=`eval echo '${'$as_ac_Header'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362echo "${ECHO_T}$ac_res" >&6; }
15363else
15364 # Is the header compilable?
15365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15367cat >conftest.$ac_ext <<_ACEOF
15368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
15373$ac_includes_default
15374#include <$ac_header>
15375_ACEOF
15376rm -f conftest.$ac_objext
15377if { (ac_try="$ac_compile"
15378case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15381esac
15382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_compile") 2>conftest.er1
15384 ac_status=$?
15385 grep -v '^ *+' conftest.er1 >conftest.err
15386 rm -f conftest.er1
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15391 { (case "(($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_try") 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404esac
15405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_try") 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_header_compiler=yes
15411else
15412 echo "$as_me: failed program was:" >&5
15413sed 's/^/| /' conftest.$ac_ext >&5
15414
15415 ac_header_compiler=no
15416fi
15417
15418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15420echo "${ECHO_T}$ac_header_compiler" >&6; }
15421
15422# Is the header present?
15423{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15425cat >conftest.$ac_ext <<_ACEOF
15426/* confdefs.h. */
15427_ACEOF
15428cat confdefs.h >>conftest.$ac_ext
15429cat >>conftest.$ac_ext <<_ACEOF
15430/* end confdefs.h. */
15431#include <$ac_header>
15432_ACEOF
15433if { (ac_try="$ac_cpp conftest.$ac_ext"
15434case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437esac
15438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } >/dev/null; then
15446 if test -s conftest.err; then
15447 ac_cpp_err=$ac_c_preproc_warn_flag
15448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15449 else
15450 ac_cpp_err=
15451 fi
15452else
15453 ac_cpp_err=yes
15454fi
15455if test -z "$ac_cpp_err"; then
15456 ac_header_preproc=yes
15457else
15458 echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_header_preproc=no
15462fi
15463
15464rm -f conftest.err conftest.$ac_ext
15465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15466echo "${ECHO_T}$ac_header_preproc" >&6; }
15467
15468# So? What about this header?
15469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15470 yes:no: )
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15475 ac_header_preproc=yes
15476 ;;
15477 no:yes:* )
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15490 ( cat <<\_ASBOX
15491## ----------------------------------- ##
15492## Report this to llvmbugs@cs.uiuc.edu ##
15493## ----------------------------------- ##
15494_ASBOX
15495 ) | sed "s/^/$as_me: WARNING: /" >&2
15496 ;;
15497esac
15498{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15502else
15503 eval "$as_ac_Header=\$ac_header_preproc"
15504fi
15505ac_res=`eval echo '${'$as_ac_Header'}'`
15506 { echo "$as_me:$LINENO: result: $ac_res" >&5
15507echo "${ECHO_T}$ac_res" >&6; }
15508
15509fi
15510if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015511 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015513_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015514
15515fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015516
Reid Spencer59473af2004-12-25 07:31:29 +000015517done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015519
15520
15521
15522
15523
15524
Douglas Gregor071d73d2009-05-18 17:21:34 +000015525for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015526do
15527as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15533fi
15534ac_res=`eval echo '${'$as_ac_Header'}'`
15535 { echo "$as_me:$LINENO: result: $ac_res" >&5
15536echo "${ECHO_T}$ac_res" >&6; }
15537else
15538 # Is the header compilable?
15539{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15540echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15541cat >conftest.$ac_ext <<_ACEOF
15542/* confdefs.h. */
15543_ACEOF
15544cat confdefs.h >>conftest.$ac_ext
15545cat >>conftest.$ac_ext <<_ACEOF
15546/* end confdefs.h. */
15547$ac_includes_default
15548#include <$ac_header>
15549_ACEOF
15550rm -f conftest.$ac_objext
15551if { (ac_try="$ac_compile"
15552case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568esac
15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_header_compiler=yes
15585else
15586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 ac_header_compiler=no
15590fi
15591
15592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15594echo "${ECHO_T}$ac_header_compiler" >&6; }
15595
15596# Is the header present?
15597{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15599cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605#include <$ac_header>
15606_ACEOF
15607if { (ac_try="$ac_cpp conftest.$ac_ext"
15608case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611esac
15612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15614 ac_status=$?
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } >/dev/null; then
15620 if test -s conftest.err; then
15621 ac_cpp_err=$ac_c_preproc_warn_flag
15622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15623 else
15624 ac_cpp_err=
15625 fi
15626else
15627 ac_cpp_err=yes
15628fi
15629if test -z "$ac_cpp_err"; then
15630 ac_header_preproc=yes
15631else
15632 echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635 ac_header_preproc=no
15636fi
15637
15638rm -f conftest.err conftest.$ac_ext
15639{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15640echo "${ECHO_T}$ac_header_preproc" >&6; }
15641
15642# So? What about this header?
15643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 yes:no: )
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15646echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15648echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15649 ac_header_preproc=yes
15650 ;;
15651 no:yes:* )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15653echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15655echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15657echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15659echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15661echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15663echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15664 ( cat <<\_ASBOX
15665## ----------------------------------- ##
15666## Report this to llvmbugs@cs.uiuc.edu ##
15667## ----------------------------------- ##
15668_ASBOX
15669 ) | sed "s/^/$as_me: WARNING: /" >&2
15670 ;;
15671esac
15672{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676else
15677 eval "$as_ac_Header=\$ac_header_preproc"
15678fi
15679ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681echo "${ECHO_T}$ac_res" >&6; }
15682
15683fi
15684if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015685 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015687_ACEOF
15688
15689fi
15690
15691done
15692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015693
15694
Douglas Gregor071d73d2009-05-18 17:21:34 +000015695for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015696do
15697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15703fi
15704ac_res=`eval echo '${'$as_ac_Header'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706echo "${ECHO_T}$ac_res" >&6; }
15707else
15708 # Is the header compilable?
15709{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15711cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717$ac_includes_default
15718#include <$ac_header>
15719_ACEOF
15720rm -f conftest.$ac_objext
15721if { (ac_try="$ac_compile"
15722case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15725esac
15726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15738esac
15739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15741 ac_status=$?
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15748esac
15749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 ac_header_compiler=no
15760fi
15761
15762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764echo "${ECHO_T}$ac_header_compiler" >&6; }
15765
15766# Is the header present?
15767{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769cat >conftest.$ac_ext <<_ACEOF
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775#include <$ac_header>
15776_ACEOF
15777if { (ac_try="$ac_cpp conftest.$ac_ext"
15778case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15784 ac_status=$?
15785 grep -v '^ *+' conftest.er1 >conftest.err
15786 rm -f conftest.er1
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_c_preproc_warn_flag
15792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15793 else
15794 ac_cpp_err=
15795 fi
15796else
15797 ac_cpp_err=yes
15798fi
15799if test -z "$ac_cpp_err"; then
15800 ac_header_preproc=yes
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_header_preproc=no
15806fi
15807
15808rm -f conftest.err conftest.$ac_ext
15809{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810echo "${ECHO_T}$ac_header_preproc" >&6; }
15811
15812# So? What about this header?
15813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15814 yes:no: )
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15820 ;;
15821 no:yes:* )
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15834 ( cat <<\_ASBOX
15835## ----------------------------------- ##
15836## Report this to llvmbugs@cs.uiuc.edu ##
15837## ----------------------------------- ##
15838_ASBOX
15839 ) | sed "s/^/$as_me: WARNING: /" >&2
15840 ;;
15841esac
15842{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15846else
15847 eval "$as_ac_Header=\$ac_header_preproc"
15848fi
15849ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851echo "${ECHO_T}$ac_res" >&6; }
15852
15853fi
15854if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015855 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015857_ACEOF
15858
15859fi
15860
15861done
Reid Spencer59473af2004-12-25 07:31:29 +000015862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015863
15864
15865
15866
Reid Spencerbe3e4192007-08-17 05:45:26 +000015867for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015868do
15869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15875fi
15876ac_res=`eval echo '${'$as_ac_Header'}'`
15877 { echo "$as_me:$LINENO: result: $ac_res" >&5
15878echo "${ECHO_T}$ac_res" >&6; }
15879else
15880 # Is the header compilable?
15881{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15883cat >conftest.$ac_ext <<_ACEOF
15884/* confdefs.h. */
15885_ACEOF
15886cat confdefs.h >>conftest.$ac_ext
15887cat >>conftest.$ac_ext <<_ACEOF
15888/* end confdefs.h. */
15889$ac_includes_default
15890#include <$ac_header>
15891_ACEOF
15892rm -f conftest.$ac_objext
15893if { (ac_try="$ac_compile"
15894case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897esac
15898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_compile") 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15907 { (case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15910esac
15911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_try") 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; } &&
15916 { ac_try='test -s conftest.$ac_objext'
15917 { (case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920esac
15921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_try") 2>&5
15923 ac_status=$?
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_header_compiler=yes
15927else
15928 echo "$as_me: failed program was:" >&5
15929sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ac_header_compiler=no
15932fi
15933
15934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15936echo "${ECHO_T}$ac_header_compiler" >&6; }
15937
15938# Is the header present?
15939{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15941cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947#include <$ac_header>
15948_ACEOF
15949if { (ac_try="$ac_cpp conftest.$ac_ext"
15950case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } >/dev/null; then
15962 if test -s conftest.err; then
15963 ac_cpp_err=$ac_c_preproc_warn_flag
15964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15965 else
15966 ac_cpp_err=
15967 fi
15968else
15969 ac_cpp_err=yes
15970fi
15971if test -z "$ac_cpp_err"; then
15972 ac_header_preproc=yes
15973else
15974 echo "$as_me: failed program was:" >&5
15975sed 's/^/| /' conftest.$ac_ext >&5
15976
15977 ac_header_preproc=no
15978fi
15979
15980rm -f conftest.err conftest.$ac_ext
15981{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15982echo "${ECHO_T}$ac_header_preproc" >&6; }
15983
15984# So? What about this header?
15985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15986 yes:no: )
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15991 ac_header_preproc=yes
15992 ;;
15993 no:yes:* )
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16006 ( cat <<\_ASBOX
16007## ----------------------------------- ##
16008## Report this to llvmbugs@cs.uiuc.edu ##
16009## ----------------------------------- ##
16010_ASBOX
16011 ) | sed "s/^/$as_me: WARNING: /" >&2
16012 ;;
16013esac
16014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16018else
16019 eval "$as_ac_Header=\$ac_header_preproc"
16020fi
16021ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023echo "${ECHO_T}$ac_res" >&6; }
16024
16025fi
16026if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016027 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016029_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016030
16031fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016032
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016033done
16034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016035
16036
16037
16038
Douglas Gregor01746742009-05-11 18:05:52 +000016039for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016040do
16041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047fi
16048ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result: $ac_res" >&5
16050echo "${ECHO_T}$ac_res" >&6; }
16051else
16052 # Is the header compilable?
16053{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16054echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16055cat >conftest.$ac_ext <<_ACEOF
16056/* confdefs.h. */
16057_ACEOF
16058cat confdefs.h >>conftest.$ac_ext
16059cat >>conftest.$ac_ext <<_ACEOF
16060/* end confdefs.h. */
16061$ac_includes_default
16062#include <$ac_header>
16063_ACEOF
16064rm -f conftest.$ac_objext
16065if { (ac_try="$ac_compile"
16066case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069esac
16070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16072 ac_status=$?
16073 grep -v '^ *+' conftest.er1 >conftest.err
16074 rm -f conftest.er1
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16082esac
16083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16092esac
16093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_header_compiler=yes
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103 ac_header_compiler=no
16104fi
16105
16106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16108echo "${ECHO_T}$ac_header_compiler" >&6; }
16109
16110# Is the header present?
16111{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16113cat >conftest.$ac_ext <<_ACEOF
16114/* confdefs.h. */
16115_ACEOF
16116cat confdefs.h >>conftest.$ac_ext
16117cat >>conftest.$ac_ext <<_ACEOF
16118/* end confdefs.h. */
16119#include <$ac_header>
16120_ACEOF
16121if { (ac_try="$ac_cpp conftest.$ac_ext"
16122case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16128 ac_status=$?
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } >/dev/null; then
16134 if test -s conftest.err; then
16135 ac_cpp_err=$ac_c_preproc_warn_flag
16136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16137 else
16138 ac_cpp_err=
16139 fi
16140else
16141 ac_cpp_err=yes
16142fi
16143if test -z "$ac_cpp_err"; then
16144 ac_header_preproc=yes
16145else
16146 echo "$as_me: failed program was:" >&5
16147sed 's/^/| /' conftest.$ac_ext >&5
16148
16149 ac_header_preproc=no
16150fi
16151
16152rm -f conftest.err conftest.$ac_ext
16153{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16154echo "${ECHO_T}$ac_header_preproc" >&6; }
16155
16156# So? What about this header?
16157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16158 yes:no: )
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16163 ac_header_preproc=yes
16164 ;;
16165 no:yes:* )
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16178 ( cat <<\_ASBOX
16179## ----------------------------------- ##
16180## Report this to llvmbugs@cs.uiuc.edu ##
16181## ----------------------------------- ##
16182_ASBOX
16183 ) | sed "s/^/$as_me: WARNING: /" >&2
16184 ;;
16185esac
16186{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190else
16191 eval "$as_ac_Header=\$ac_header_preproc"
16192fi
16193ac_res=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195echo "${ECHO_T}$ac_res" >&6; }
16196
16197fi
16198if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016199 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016201_ACEOF
16202
16203fi
16204
16205done
16206
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016207
16208for ac_header in valgrind/valgrind.h
16209do
16210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216fi
16217ac_res=`eval echo '${'$as_ac_Header'}'`
16218 { echo "$as_me:$LINENO: result: $ac_res" >&5
16219echo "${ECHO_T}$ac_res" >&6; }
16220else
16221 # Is the header compilable?
16222{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16224cat >conftest.$ac_ext <<_ACEOF
16225/* confdefs.h. */
16226_ACEOF
16227cat confdefs.h >>conftest.$ac_ext
16228cat >>conftest.$ac_ext <<_ACEOF
16229/* end confdefs.h. */
16230$ac_includes_default
16231#include <$ac_header>
16232_ACEOF
16233rm -f conftest.$ac_objext
16234if { (ac_try="$ac_compile"
16235case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16238esac
16239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_compile") 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16251esac
16252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16261esac
16262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_header_compiler=yes
16268else
16269 echo "$as_me: failed program was:" >&5
16270sed 's/^/| /' conftest.$ac_ext >&5
16271
16272 ac_header_compiler=no
16273fi
16274
16275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16277echo "${ECHO_T}$ac_header_compiler" >&6; }
16278
16279# Is the header present?
16280{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16281echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16282cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288#include <$ac_header>
16289_ACEOF
16290if { (ac_try="$ac_cpp conftest.$ac_ext"
16291case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16294esac
16295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16297 ac_status=$?
16298 grep -v '^ *+' conftest.er1 >conftest.err
16299 rm -f conftest.er1
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null; then
16303 if test -s conftest.err; then
16304 ac_cpp_err=$ac_c_preproc_warn_flag
16305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16306 else
16307 ac_cpp_err=
16308 fi
16309else
16310 ac_cpp_err=yes
16311fi
16312if test -z "$ac_cpp_err"; then
16313 ac_header_preproc=yes
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_preproc=no
16319fi
16320
16321rm -f conftest.err conftest.$ac_ext
16322{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16323echo "${ECHO_T}$ac_header_preproc" >&6; }
16324
16325# So? What about this header?
16326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16327 yes:no: )
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16332 ac_header_preproc=yes
16333 ;;
16334 no:yes:* )
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16347 ( cat <<\_ASBOX
16348## ----------------------------------- ##
16349## Report this to llvmbugs@cs.uiuc.edu ##
16350## ----------------------------------- ##
16351_ASBOX
16352 ) | sed "s/^/$as_me: WARNING: /" >&2
16353 ;;
16354esac
16355{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359else
16360 eval "$as_ac_Header=\$ac_header_preproc"
16361fi
16362ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364echo "${ECHO_T}$ac_res" >&6; }
16365
16366fi
16367if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16370_ACEOF
16371
16372fi
16373
16374done
16375
Reid Spencer0a262ba2005-08-24 10:07:20 +000016376if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016377
16378for ac_header in pthread.h
16379do
16380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16386fi
16387ac_res=`eval echo '${'$as_ac_Header'}'`
16388 { echo "$as_me:$LINENO: result: $ac_res" >&5
16389echo "${ECHO_T}$ac_res" >&6; }
16390else
16391 # Is the header compilable?
16392{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16394cat >conftest.$ac_ext <<_ACEOF
16395/* confdefs.h. */
16396_ACEOF
16397cat confdefs.h >>conftest.$ac_ext
16398cat >>conftest.$ac_ext <<_ACEOF
16399/* end confdefs.h. */
16400$ac_includes_default
16401#include <$ac_header>
16402_ACEOF
16403rm -f conftest.$ac_objext
16404if { (ac_try="$ac_compile"
16405case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408esac
16409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421esac
16422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_try") 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431esac
16432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16434 ac_status=$?
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_header_compiler=yes
16438else
16439 echo "$as_me: failed program was:" >&5
16440sed 's/^/| /' conftest.$ac_ext >&5
16441
16442 ac_header_compiler=no
16443fi
16444
16445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16447echo "${ECHO_T}$ac_header_compiler" >&6; }
16448
16449# Is the header present?
16450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16452cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458#include <$ac_header>
16459_ACEOF
16460if { (ac_try="$ac_cpp conftest.$ac_ext"
16461case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16464esac
16465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16467 ac_status=$?
16468 grep -v '^ *+' conftest.er1 >conftest.err
16469 rm -f conftest.er1
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } >/dev/null; then
16473 if test -s conftest.err; then
16474 ac_cpp_err=$ac_c_preproc_warn_flag
16475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16476 else
16477 ac_cpp_err=
16478 fi
16479else
16480 ac_cpp_err=yes
16481fi
16482if test -z "$ac_cpp_err"; then
16483 ac_header_preproc=yes
16484else
16485 echo "$as_me: failed program was:" >&5
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
16488 ac_header_preproc=no
16489fi
16490
16491rm -f conftest.err conftest.$ac_ext
16492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16493echo "${ECHO_T}$ac_header_preproc" >&6; }
16494
16495# So? What about this header?
16496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16497 yes:no: )
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16502 ac_header_preproc=yes
16503 ;;
16504 no:yes:* )
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16517 ( cat <<\_ASBOX
16518## ----------------------------------- ##
16519## Report this to llvmbugs@cs.uiuc.edu ##
16520## ----------------------------------- ##
16521_ASBOX
16522 ) | sed "s/^/$as_me: WARNING: /" >&2
16523 ;;
16524esac
16525{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16529else
16530 eval "$as_ac_Header=\$ac_header_preproc"
16531fi
16532ac_res=`eval echo '${'$as_ac_Header'}'`
16533 { echo "$as_me:$LINENO: result: $ac_res" >&5
16534echo "${ECHO_T}$ac_res" >&6; }
16535
16536fi
16537if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016538 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016540_ACEOF
16541 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016542
16543else
16544 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016545
16546fi
16547
Reid Spencerbe3e4192007-08-17 05:45:26 +000016548done
Reid Spencer1000b732006-12-01 00:37:14 +000016549
16550else
16551 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016552
16553fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016554
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016555if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016556
16557
16558for ac_header in ffi.h ffi/ffi.h
16559do
16560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16566fi
16567ac_res=`eval echo '${'$as_ac_Header'}'`
16568 { echo "$as_me:$LINENO: result: $ac_res" >&5
16569echo "${ECHO_T}$ac_res" >&6; }
16570else
16571 # Is the header compilable?
16572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16574cat >conftest.$ac_ext <<_ACEOF
16575/* confdefs.h. */
16576_ACEOF
16577cat confdefs.h >>conftest.$ac_ext
16578cat >>conftest.$ac_ext <<_ACEOF
16579/* end confdefs.h. */
16580$ac_includes_default
16581#include <$ac_header>
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (ac_try="$ac_compile"
16585case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16588esac
16589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16591 ac_status=$?
16592 grep -v '^ *+' conftest.er1 >conftest.err
16593 rm -f conftest.er1
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601esac
16602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16611esac
16612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16614 ac_status=$?
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_header_compiler=yes
16618else
16619 echo "$as_me: failed program was:" >&5
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
16622 ac_header_compiler=no
16623fi
16624
16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16627echo "${ECHO_T}$ac_header_compiler" >&6; }
16628
16629# Is the header present?
16630{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16632cat >conftest.$ac_ext <<_ACEOF
16633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
16638#include <$ac_header>
16639_ACEOF
16640if { (ac_try="$ac_cpp conftest.$ac_ext"
16641case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644esac
16645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16647 ac_status=$?
16648 grep -v '^ *+' conftest.er1 >conftest.err
16649 rm -f conftest.er1
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } >/dev/null; then
16653 if test -s conftest.err; then
16654 ac_cpp_err=$ac_c_preproc_warn_flag
16655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16656 else
16657 ac_cpp_err=
16658 fi
16659else
16660 ac_cpp_err=yes
16661fi
16662if test -z "$ac_cpp_err"; then
16663 ac_header_preproc=yes
16664else
16665 echo "$as_me: failed program was:" >&5
16666sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ac_header_preproc=no
16669fi
16670
16671rm -f conftest.err conftest.$ac_ext
16672{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673echo "${ECHO_T}$ac_header_preproc" >&6; }
16674
16675# So? What about this header?
16676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16677 yes:no: )
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682 ac_header_preproc=yes
16683 ;;
16684 no:yes:* )
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16697 ( cat <<\_ASBOX
16698## ----------------------------------- ##
16699## Report this to llvmbugs@cs.uiuc.edu ##
16700## ----------------------------------- ##
16701_ASBOX
16702 ) | sed "s/^/$as_me: WARNING: /" >&2
16703 ;;
16704esac
16705{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709else
16710 eval "$as_ac_Header=\$ac_header_preproc"
16711fi
16712ac_res=`eval echo '${'$as_ac_Header'}'`
16713 { echo "$as_me:$LINENO: result: $ac_res" >&5
16714echo "${ECHO_T}$ac_res" >&6; }
16715
16716fi
16717if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016718 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016720_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016721
16722fi
16723
16724done
16725
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016726fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016727
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016728
Reid Spencer8085cff2005-01-16 02:58:39 +000016729
Torok Edwin871384f2010-01-26 08:50:50 +000016730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016731 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16732echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16733if test "${ac_cv_huge_val_sanity+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016735else
16736
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016737 ac_ext=cpp
16738ac_cpp='$CXXCPP $CPPFLAGS'
16739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016742
Eric Christopherc7718502010-03-02 05:06:54 +000016743 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016744 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016745 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016746 ac_cv_huge_val_sanity=yes
16747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016748 cat >conftest.$ac_ext <<_ACEOF
16749/* confdefs.h. */
16750_ACEOF
16751cat confdefs.h >>conftest.$ac_ext
16752cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016753/* end confdefs.h. */
16754#include <math.h>
16755int
16756main ()
16757{
16758double x = HUGE_VAL; return x != x;
16759 ;
16760 return 0;
16761}
16762_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016763rm -f conftest$ac_exeext
16764if { (ac_try="$ac_link"
16765case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_link") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16777esac
16778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016783 ac_cv_huge_val_sanity=yes
16784else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016785 echo "$as_me: program exited with status $ac_status" >&5
16786echo "$as_me: failed program was:" >&5
16787sed 's/^/| /' conftest.$ac_ext >&5
16788
16789( exit $ac_status )
16790ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016792rm -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 +000016793fi
16794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016795
Eric Christopherc7718502010-03-02 05:06:54 +000016796 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016797 ac_ext=c
16798ac_cpp='$CPP $CPPFLAGS'
16799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16801ac_compiler_gnu=$ac_cv_c_compiler_gnu
16802
16803
16804fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016805{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16806echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016807 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16808
16809
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016810{ echo "$as_me:$LINENO: checking for pid_t" >&5
16811echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16812if test "${ac_cv_type_pid_t+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814else
16815 cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821$ac_includes_default
16822typedef pid_t ac__type_new_;
16823int
16824main ()
16825{
16826if ((ac__type_new_ *) 0)
16827 return 0;
16828if (sizeof (ac__type_new_))
16829 return 0;
16830 ;
16831 return 0;
16832}
16833_ACEOF
16834rm -f conftest.$ac_objext
16835if { (ac_try="$ac_compile"
16836case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16839esac
16840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_compile") 2>conftest.er1
16842 ac_status=$?
16843 grep -v '^ *+' conftest.er1 >conftest.err
16844 rm -f conftest.er1
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16852esac
16853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862esac
16863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16865 ac_status=$?
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_type_pid_t=yes
16869else
16870 echo "$as_me: failed program was:" >&5
16871sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016873 ac_cv_type_pid_t=no
16874fi
16875
16876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877fi
16878{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16879echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16880if test $ac_cv_type_pid_t = yes; then
16881 :
John Criswell7a73b802003-06-30 21:59:07 +000016882else
16883
16884cat >>confdefs.h <<_ACEOF
16885#define pid_t int
16886_ACEOF
16887
16888fi
16889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016890{ echo "$as_me:$LINENO: checking for size_t" >&5
16891echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16892if test "${ac_cv_type_size_t+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894else
16895 cat >conftest.$ac_ext <<_ACEOF
16896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h. */
16901$ac_includes_default
16902typedef size_t ac__type_new_;
16903int
16904main ()
16905{
16906if ((ac__type_new_ *) 0)
16907 return 0;
16908if (sizeof (ac__type_new_))
16909 return 0;
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914rm -f conftest.$ac_objext
16915if { (ac_try="$ac_compile"
16916case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16919esac
16920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_compile") 2>conftest.er1
16922 ac_status=$?
16923 grep -v '^ *+' conftest.er1 >conftest.err
16924 rm -f conftest.er1
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
16938 { ac_try='test -s conftest.$ac_objext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16942esac
16943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_type_size_t=yes
16949else
16950 echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016953 ac_cv_type_size_t=no
16954fi
16955
16956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16957fi
16958{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16959echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16960if test $ac_cv_type_size_t = yes; then
16961 :
John Criswell7a73b802003-06-30 21:59:07 +000016962else
16963
16964cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016965#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016966_ACEOF
16967
16968fi
16969
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016970
16971cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016972#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016973_ACEOF
16974
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016975{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16976echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16977if test "${ac_cv_struct_tm+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016979else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016980 cat >conftest.$ac_ext <<_ACEOF
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016985/* end confdefs.h. */
16986#include <sys/types.h>
16987#include <time.h>
16988
16989int
16990main ()
16991{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016992struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016993 ;
16994 return 0;
16995}
16996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016997rm -f conftest.$ac_objext
16998if { (ac_try="$ac_compile"
16999case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002esac
17003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_compile") 2>conftest.er1
17005 ac_status=$?
17006 grep -v '^ *+' conftest.er1 >conftest.err
17007 rm -f conftest.er1
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } &&
17011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17015esac
17016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025esac
17026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017031 ac_cv_struct_tm=time.h
17032else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017033 echo "$as_me: failed program was:" >&5
17034sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017038
Reid Spencera773bd52006-08-04 18:18:08 +000017039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017041{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17042echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017043if test $ac_cv_struct_tm = sys/time.h; then
17044
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017045cat >>confdefs.h <<\_ACEOF
17046#define TM_IN_SYS_TIME 1
17047_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017048
17049fi
17050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017051{ echo "$as_me:$LINENO: checking for int64_t" >&5
17052echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17053if test "${ac_cv_type_int64_t+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055else
17056 cat >conftest.$ac_ext <<_ACEOF
17057/* confdefs.h. */
17058_ACEOF
17059cat confdefs.h >>conftest.$ac_ext
17060cat >>conftest.$ac_ext <<_ACEOF
17061/* end confdefs.h. */
17062$ac_includes_default
17063typedef int64_t ac__type_new_;
17064int
17065main ()
17066{
17067if ((ac__type_new_ *) 0)
17068 return 0;
17069if (sizeof (ac__type_new_))
17070 return 0;
17071 ;
17072 return 0;
17073}
17074_ACEOF
17075rm -f conftest.$ac_objext
17076if { (ac_try="$ac_compile"
17077case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17080esac
17081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_compile") 2>conftest.er1
17083 ac_status=$?
17084 grep -v '^ *+' conftest.er1 >conftest.err
17085 rm -f conftest.er1
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093esac
17094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103esac
17104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_type_int64_t=yes
17110else
17111 echo "$as_me: failed program was:" >&5
17112sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 ac_cv_type_int64_t=no
17115fi
17116
17117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118fi
17119{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17120echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17121if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017122
17123cat >>confdefs.h <<_ACEOF
17124#define HAVE_INT64_T 1
17125_ACEOF
17126
17127
17128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017129 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17130echo "$as_me: error: Type int64_t required but not found" >&2;}
17131 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017132fi
17133
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017134{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17135echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17136if test "${ac_cv_type_uint64_t+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138else
17139 cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145$ac_includes_default
17146typedef uint64_t ac__type_new_;
17147int
17148main ()
17149{
17150if ((ac__type_new_ *) 0)
17151 return 0;
17152if (sizeof (ac__type_new_))
17153 return 0;
17154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext
17159if { (ac_try="$ac_compile"
17160case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_compile") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest.$ac_objext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_type_uint64_t=yes
17193else
17194 echo "$as_me: failed program was:" >&5
17195sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_cv_type_uint64_t=no
17198fi
17199
17200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201fi
17202{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17203echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17204if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017205
17206cat >>confdefs.h <<_ACEOF
17207#define HAVE_UINT64_T 1
17208_ACEOF
17209
17210
17211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017212 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17213echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17214if test "${ac_cv_type_u_int64_t+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216else
17217 cat >conftest.$ac_ext <<_ACEOF
17218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
17223$ac_includes_default
17224typedef u_int64_t ac__type_new_;
17225int
17226main ()
17227{
17228if ((ac__type_new_ *) 0)
17229 return 0;
17230if (sizeof (ac__type_new_))
17231 return 0;
17232 ;
17233 return 0;
17234}
17235_ACEOF
17236rm -f conftest.$ac_objext
17237if { (ac_try="$ac_compile"
17238case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241esac
17242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_compile") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17254esac
17255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17264esac
17265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_u_int64_t=yes
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275 ac_cv_type_u_int64_t=no
17276fi
17277
17278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279fi
17280{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17281echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17282if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017283
17284cat >>confdefs.h <<_ACEOF
17285#define HAVE_U_INT64_T 1
17286_ACEOF
17287
17288
Misha Brukmanceca9042004-09-02 23:02:30 +000017289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017290 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17291echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17292 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017293fi
17294
John Criswell679ff312004-09-02 18:44:44 +000017295fi
17296
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017297
17298
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017299
17300
17301
17302
17303
17304
17305
Reid Spencerdf3be822006-01-23 08:15:53 +000017306for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017307do
17308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17313else
17314 cat >conftest.$ac_ext <<_ACEOF
17315/* confdefs.h. */
17316_ACEOF
17317cat confdefs.h >>conftest.$ac_ext
17318cat >>conftest.$ac_ext <<_ACEOF
17319/* end confdefs.h. */
17320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17322#define $ac_func innocuous_$ac_func
17323
17324/* System header to define __stub macros and hopefully few prototypes,
17325 which can conflict with char $ac_func (); below.
17326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17327 <limits.h> exists even on freestanding compilers. */
17328
17329#ifdef __STDC__
17330# include <limits.h>
17331#else
17332# include <assert.h>
17333#endif
17334
17335#undef $ac_func
17336
17337/* Override any GCC internal prototype to avoid an error.
17338 Use char because int might match the return type of a GCC
17339 builtin and then its argument prototype would still apply. */
17340#ifdef __cplusplus
17341extern "C"
17342#endif
17343char $ac_func ();
17344/* The GNU C library defines this for functions which it implements
17345 to always fail with ENOSYS. Some functions are actually named
17346 something starting with __ and the normal name is an alias. */
17347#if defined __stub_$ac_func || defined __stub___$ac_func
17348choke me
17349#endif
17350
17351int
17352main ()
17353{
17354return $ac_func ();
17355 ;
17356 return 0;
17357}
17358_ACEOF
17359rm -f conftest.$ac_objext conftest$ac_exeext
17360if { (ac_try="$ac_link"
17361case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17364esac
17365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17367 ac_status=$?
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377esac
17378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17380 ac_status=$?
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest$ac_exeext'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17390 ac_status=$?
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 eval "$as_ac_var=yes"
17394else
17395 echo "$as_me: failed program was:" >&5
17396sed 's/^/| /' conftest.$ac_ext >&5
17397
17398 eval "$as_ac_var=no"
17399fi
17400
17401rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403fi
17404ac_res=`eval echo '${'$as_ac_var'}'`
17405 { echo "$as_me:$LINENO: result: $ac_res" >&5
17406echo "${ECHO_T}$ac_res" >&6; }
17407if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017408 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017410_ACEOF
17411
17412fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017413done
John Criswell7a73b802003-06-30 21:59:07 +000017414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017415
17416
17417
17418
Reid Spencer96cf5872007-07-13 10:05:30 +000017419for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017420do
17421as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17422{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17423echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17424if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17426else
17427 cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435#define $ac_func innocuous_$ac_func
17436
17437/* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char $ac_func (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17441
17442#ifdef __STDC__
17443# include <limits.h>
17444#else
17445# include <assert.h>
17446#endif
17447
17448#undef $ac_func
17449
17450/* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456char $ac_func ();
17457/* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460#if defined __stub_$ac_func || defined __stub___$ac_func
17461choke me
17462#endif
17463
17464int
17465main ()
17466{
17467return $ac_func ();
17468 ;
17469 return 0;
17470}
17471_ACEOF
17472rm -f conftest.$ac_objext conftest$ac_exeext
17473if { (ac_try="$ac_link"
17474case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477esac
17478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17500esac
17501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17503 ac_status=$?
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 eval "$as_ac_var=yes"
17507else
17508 echo "$as_me: failed program was:" >&5
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 eval "$as_ac_var=no"
17512fi
17513
17514rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17516fi
17517ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result: $ac_res" >&5
17519echo "${ECHO_T}$ac_res" >&6; }
17520if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017521 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017523_ACEOF
17524
17525fi
17526done
17527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017528
17529
17530
17531
17532
Reid Spencerb90645c2007-02-16 19:17:20 +000017533for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017534do
17535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17536{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17538if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540else
17541 cat >conftest.$ac_ext <<_ACEOF
17542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
17547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17549#define $ac_func innocuous_$ac_func
17550
17551/* System header to define __stub macros and hopefully few prototypes,
17552 which can conflict with char $ac_func (); below.
17553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17554 <limits.h> exists even on freestanding compilers. */
17555
17556#ifdef __STDC__
17557# include <limits.h>
17558#else
17559# include <assert.h>
17560#endif
17561
17562#undef $ac_func
17563
17564/* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17567#ifdef __cplusplus
17568extern "C"
17569#endif
17570char $ac_func ();
17571/* The GNU C library defines this for functions which it implements
17572 to always fail with ENOSYS. Some functions are actually named
17573 something starting with __ and the normal name is an alias. */
17574#if defined __stub_$ac_func || defined __stub___$ac_func
17575choke me
17576#endif
17577
17578int
17579main ()
17580{
17581return $ac_func ();
17582 ;
17583 return 0;
17584}
17585_ACEOF
17586rm -f conftest.$ac_objext conftest$ac_exeext
17587if { (ac_try="$ac_link"
17588case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_link") 2>conftest.er1
17594 ac_status=$?
17595 grep -v '^ *+' conftest.er1 >conftest.err
17596 rm -f conftest.er1
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604esac
17605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17607 ac_status=$?
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest$ac_exeext'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614esac
17615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 eval "$as_ac_var=yes"
17621else
17622 echo "$as_me: failed program was:" >&5
17623sed 's/^/| /' conftest.$ac_ext >&5
17624
17625 eval "$as_ac_var=no"
17626fi
17627
17628rm -f core conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17630fi
17631ac_res=`eval echo '${'$as_ac_var'}'`
17632 { echo "$as_me:$LINENO: result: $ac_res" >&5
17633echo "${ECHO_T}$ac_res" >&6; }
17634if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017635 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017637_ACEOF
17638
17639fi
17640done
17641
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017642
17643
17644
Reid Spencerb90645c2007-02-16 19:17:20 +000017645for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017646do
17647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17650if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17652else
17653 cat >conftest.$ac_ext <<_ACEOF
17654/* confdefs.h. */
17655_ACEOF
17656cat confdefs.h >>conftest.$ac_ext
17657cat >>conftest.$ac_ext <<_ACEOF
17658/* end confdefs.h. */
17659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17661#define $ac_func innocuous_$ac_func
17662
17663/* System header to define __stub macros and hopefully few prototypes,
17664 which can conflict with char $ac_func (); below.
17665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666 <limits.h> exists even on freestanding compilers. */
17667
17668#ifdef __STDC__
17669# include <limits.h>
17670#else
17671# include <assert.h>
17672#endif
17673
17674#undef $ac_func
17675
17676/* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17679#ifdef __cplusplus
17680extern "C"
17681#endif
17682char $ac_func ();
17683/* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686#if defined __stub_$ac_func || defined __stub___$ac_func
17687choke me
17688#endif
17689
17690int
17691main ()
17692{
17693return $ac_func ();
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext conftest$ac_exeext
17699if { (ac_try="$ac_link"
17700case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17703esac
17704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_link") 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716esac
17717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17719 ac_status=$?
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17726esac
17727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 eval "$as_ac_var=yes"
17733else
17734 echo "$as_me: failed program was:" >&5
17735sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 eval "$as_ac_var=no"
17738fi
17739
17740rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742fi
17743ac_res=`eval echo '${'$as_ac_var'}'`
17744 { echo "$as_me:$LINENO: result: $ac_res" >&5
17745echo "${ECHO_T}$ac_res" >&6; }
17746if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017747 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017749_ACEOF
17750
17751fi
17752done
17753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017754
17755
17756
17757
17758
Eric Christophere4291822010-04-16 05:14:21 +000017759
17760for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017761do
17762as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17763{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17764echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17765if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17767else
17768 cat >conftest.$ac_ext <<_ACEOF
17769/* confdefs.h. */
17770_ACEOF
17771cat confdefs.h >>conftest.$ac_ext
17772cat >>conftest.$ac_ext <<_ACEOF
17773/* end confdefs.h. */
17774/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17776#define $ac_func innocuous_$ac_func
17777
17778/* System header to define __stub macros and hopefully few prototypes,
17779 which can conflict with char $ac_func (); below.
17780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17781 <limits.h> exists even on freestanding compilers. */
17782
17783#ifdef __STDC__
17784# include <limits.h>
17785#else
17786# include <assert.h>
17787#endif
17788
17789#undef $ac_func
17790
17791/* Override any GCC internal prototype to avoid an error.
17792 Use char because int might match the return type of a GCC
17793 builtin and then its argument prototype would still apply. */
17794#ifdef __cplusplus
17795extern "C"
17796#endif
17797char $ac_func ();
17798/* The GNU C library defines this for functions which it implements
17799 to always fail with ENOSYS. Some functions are actually named
17800 something starting with __ and the normal name is an alias. */
17801#if defined __stub_$ac_func || defined __stub___$ac_func
17802choke me
17803#endif
17804
17805int
17806main ()
17807{
17808return $ac_func ();
17809 ;
17810 return 0;
17811}
17812_ACEOF
17813rm -f conftest.$ac_objext conftest$ac_exeext
17814if { (ac_try="$ac_link"
17815case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_link") 2>conftest.er1
17821 ac_status=$?
17822 grep -v '^ *+' conftest.er1 >conftest.err
17823 rm -f conftest.er1
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
17827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17828 { (case "(($ac_try" in
17829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830 *) ac_try_echo=$ac_try;;
17831esac
17832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833 (eval "$ac_try") 2>&5
17834 ac_status=$?
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); }; } &&
17837 { ac_try='test -s conftest$ac_exeext'
17838 { (case "(($ac_try" in
17839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840 *) ac_try_echo=$ac_try;;
17841esac
17842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843 (eval "$ac_try") 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; }; then
17847 eval "$as_ac_var=yes"
17848else
17849 echo "$as_me: failed program was:" >&5
17850sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 eval "$as_ac_var=no"
17853fi
17854
17855rm -f core conftest.err conftest.$ac_objext \
17856 conftest$ac_exeext conftest.$ac_ext
17857fi
17858ac_res=`eval echo '${'$as_ac_var'}'`
17859 { echo "$as_me:$LINENO: result: $ac_res" >&5
17860echo "${ECHO_T}$ac_res" >&6; }
17861if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017862 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017864_ACEOF
17865
17866fi
17867done
Reid Spencerdf3be822006-01-23 08:15:53 +000017868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017869
17870
17871
17872
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017873for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017874do
17875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880else
17881 cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h. */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h. */
17887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17889#define $ac_func innocuous_$ac_func
17890
17891/* System header to define __stub macros and hopefully few prototypes,
17892 which can conflict with char $ac_func (); below.
17893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17894 <limits.h> exists even on freestanding compilers. */
17895
17896#ifdef __STDC__
17897# include <limits.h>
17898#else
17899# include <assert.h>
17900#endif
17901
17902#undef $ac_func
17903
17904/* Override any GCC internal prototype to avoid an error.
17905 Use char because int might match the return type of a GCC
17906 builtin and then its argument prototype would still apply. */
17907#ifdef __cplusplus
17908extern "C"
17909#endif
17910char $ac_func ();
17911/* The GNU C library defines this for functions which it implements
17912 to always fail with ENOSYS. Some functions are actually named
17913 something starting with __ and the normal name is an alias. */
17914#if defined __stub_$ac_func || defined __stub___$ac_func
17915choke me
17916#endif
17917
17918int
17919main ()
17920{
17921return $ac_func ();
17922 ;
17923 return 0;
17924}
17925_ACEOF
17926rm -f conftest.$ac_objext conftest$ac_exeext
17927if { (ac_try="$ac_link"
17928case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_link") 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944esac
17945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_try") 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); }; } &&
17950 { ac_try='test -s conftest$ac_exeext'
17951 { (case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17954esac
17955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_try") 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 eval "$as_ac_var=yes"
17961else
17962 echo "$as_me: failed program was:" >&5
17963sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 eval "$as_ac_var=no"
17966fi
17967
17968rm -f core conftest.err conftest.$ac_objext \
17969 conftest$ac_exeext conftest.$ac_ext
17970fi
17971ac_res=`eval echo '${'$as_ac_var'}'`
17972 { echo "$as_me:$LINENO: result: $ac_res" >&5
17973echo "${ECHO_T}$ac_res" >&6; }
17974if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017975 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017977_ACEOF
17978
17979fi
17980done
17981
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017982
17983
17984
17985
Chris Lattner511f11d2005-11-14 07:25:50 +000017986for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017987do
17988as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17989{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17990echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17991if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993else
17994 cat >conftest.$ac_ext <<_ACEOF
17995/* confdefs.h. */
17996_ACEOF
17997cat confdefs.h >>conftest.$ac_ext
17998cat >>conftest.$ac_ext <<_ACEOF
17999/* end confdefs.h. */
18000/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18002#define $ac_func innocuous_$ac_func
18003
18004/* System header to define __stub macros and hopefully few prototypes,
18005 which can conflict with char $ac_func (); below.
18006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 <limits.h> exists even on freestanding compilers. */
18008
18009#ifdef __STDC__
18010# include <limits.h>
18011#else
18012# include <assert.h>
18013#endif
18014
18015#undef $ac_func
18016
18017/* Override any GCC internal prototype to avoid an error.
18018 Use char because int might match the return type of a GCC
18019 builtin and then its argument prototype would still apply. */
18020#ifdef __cplusplus
18021extern "C"
18022#endif
18023char $ac_func ();
18024/* The GNU C library defines this for functions which it implements
18025 to always fail with ENOSYS. Some functions are actually named
18026 something starting with __ and the normal name is an alias. */
18027#if defined __stub_$ac_func || defined __stub___$ac_func
18028choke me
18029#endif
18030
18031int
18032main ()
18033{
18034return $ac_func ();
18035 ;
18036 return 0;
18037}
18038_ACEOF
18039rm -f conftest.$ac_objext conftest$ac_exeext
18040if { (ac_try="$ac_link"
18041case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18044esac
18045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_link") 2>conftest.er1
18047 ac_status=$?
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18054 { (case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18057esac
18058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_try") 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest$ac_exeext'
18064 { (case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18067esac
18068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_try") 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 eval "$as_ac_var=yes"
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078 eval "$as_ac_var=no"
18079fi
18080
18081rm -f core conftest.err conftest.$ac_objext \
18082 conftest$ac_exeext conftest.$ac_ext
18083fi
18084ac_res=`eval echo '${'$as_ac_var'}'`
18085 { echo "$as_me:$LINENO: result: $ac_res" >&5
18086echo "${ECHO_T}$ac_res" >&6; }
18087if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018088 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018090_ACEOF
18091
18092fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018093done
John Criswell7a73b802003-06-30 21:59:07 +000018094
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018095
18096
18097
18098
Reid Spencerafa22e22006-12-10 23:29:19 +000018099for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018100do
18101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18102{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18104if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18105 echo $ECHO_N "(cached) $ECHO_C" >&6
18106else
18107 cat >conftest.$ac_ext <<_ACEOF
18108/* confdefs.h. */
18109_ACEOF
18110cat confdefs.h >>conftest.$ac_ext
18111cat >>conftest.$ac_ext <<_ACEOF
18112/* end confdefs.h. */
18113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18115#define $ac_func innocuous_$ac_func
18116
18117/* System header to define __stub macros and hopefully few prototypes,
18118 which can conflict with char $ac_func (); below.
18119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18120 <limits.h> exists even on freestanding compilers. */
18121
18122#ifdef __STDC__
18123# include <limits.h>
18124#else
18125# include <assert.h>
18126#endif
18127
18128#undef $ac_func
18129
18130/* Override any GCC internal prototype to avoid an error.
18131 Use char because int might match the return type of a GCC
18132 builtin and then its argument prototype would still apply. */
18133#ifdef __cplusplus
18134extern "C"
18135#endif
18136char $ac_func ();
18137/* The GNU C library defines this for functions which it implements
18138 to always fail with ENOSYS. Some functions are actually named
18139 something starting with __ and the normal name is an alias. */
18140#if defined __stub_$ac_func || defined __stub___$ac_func
18141choke me
18142#endif
18143
18144int
18145main ()
18146{
18147return $ac_func ();
18148 ;
18149 return 0;
18150}
18151_ACEOF
18152rm -f conftest.$ac_objext conftest$ac_exeext
18153if { (ac_try="$ac_link"
18154case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_link") 2>conftest.er1
18160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
18166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18167 { (case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170esac
18171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_try") 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest$ac_exeext'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; }; then
18186 eval "$as_ac_var=yes"
18187else
18188 echo "$as_me: failed program was:" >&5
18189sed 's/^/| /' conftest.$ac_ext >&5
18190
18191 eval "$as_ac_var=no"
18192fi
18193
18194rm -f core conftest.err conftest.$ac_objext \
18195 conftest$ac_exeext conftest.$ac_ext
18196fi
18197ac_res=`eval echo '${'$as_ac_var'}'`
18198 { echo "$as_me:$LINENO: result: $ac_res" >&5
18199echo "${ECHO_T}$ac_res" >&6; }
18200if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018201 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018202#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018203_ACEOF
18204
18205fi
18206done
18207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018208{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18209echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18210if test "${llvm_cv_c_printf_a+set}" = set; then
18211 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018212else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018213 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018214ac_cpp='$CPP $CPPFLAGS'
18215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18217ac_compiler_gnu=$ac_cv_c_compiler_gnu
18218
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018219 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018220 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018222 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018224 /* confdefs.h. */
18225_ACEOF
18226cat confdefs.h >>conftest.$ac_ext
18227cat >>conftest.$ac_ext <<_ACEOF
18228/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018229
John Criswella0137d32003-10-13 16:22:01 +000018230#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018231#include <stdlib.h>
18232
John Criswella0137d32003-10-13 16:22:01 +000018233int
18234main ()
18235{
18236
Reid Spencer2706f8c2004-09-19 23:53:36 +000018237volatile double A, B;
18238char Buffer[100];
18239A = 1;
18240A /= 10.0;
18241sprintf(Buffer, "%a", A);
18242B = atof(Buffer);
18243if (A != B)
18244 return (1);
18245if (A != 0x1.999999999999ap-4)
18246 return (1);
18247return (0);
John Criswella0137d32003-10-13 16:22:01 +000018248 ;
18249 return 0;
18250}
18251_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018252rm -f conftest$ac_exeext
18253if { (ac_try="$ac_link"
18254case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18257esac
18258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_link") 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018272 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018273else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018274 echo "$as_me: program exited with status $ac_status" >&5
18275echo "$as_me: failed program was:" >&5
18276sed 's/^/| /' conftest.$ac_ext >&5
18277
18278( exit $ac_status )
18279llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018281rm -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 +000018282fi
Reid Spencera773bd52006-08-04 18:18:08 +000018283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018284
Reid Spencer2706f8c2004-09-19 23:53:36 +000018285 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018286ac_cpp='$CPP $CPPFLAGS'
18287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18289ac_compiler_gnu=$ac_cv_c_compiler_gnu
18290
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018291fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018292{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18293echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018294 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018296cat >>confdefs.h <<\_ACEOF
18297#define HAVE_PRINTF_A 1
18298_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018299
Reid Spencer2706f8c2004-09-19 23:53:36 +000018300 fi
John Criswella0137d32003-10-13 16:22:01 +000018301
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018303{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18304echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18305if test "${ac_cv_func_rand48+set}" = set; then
18306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018307else
Reid Spencera773bd52006-08-04 18:18:08 +000018308 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018309ac_cpp='$CXXCPP $CPPFLAGS'
18310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18313
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018314 cat >conftest.$ac_ext <<_ACEOF
18315/* confdefs.h. */
18316_ACEOF
18317cat confdefs.h >>conftest.$ac_ext
18318cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018319/* end confdefs.h. */
18320#include <stdlib.h>
18321int
18322main ()
18323{
18324srand48(0);lrand48();drand48();
18325 ;
18326 return 0;
18327}
18328_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018329rm -f conftest.$ac_objext
18330if { (ac_try="$ac_compile"
18331case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18334esac
18335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_compile") 2>conftest.er1
18337 ac_status=$?
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18344 { (case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18347esac
18348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_try") 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest.$ac_objext'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357esac
18358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018363 ac_cv_func_rand48=yes
18364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018365 echo "$as_me: failed program was:" >&5
18366sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018369fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018370
Reid Spencera773bd52006-08-04 18:18:08 +000018371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018372 ac_ext=c
18373ac_cpp='$CPP $CPPFLAGS'
18374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18376ac_compiler_gnu=$ac_cv_c_compiler_gnu
18377
18378fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018379{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18380echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018381
18382if test "$ac_cv_func_rand48" = "yes" ; then
18383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018384cat >>confdefs.h <<\_ACEOF
18385#define HAVE_RAND48 1
18386_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018387
18388fi
John Criswell0021c312004-02-13 21:57:29 +000018389
18390
Torok Edwin871384f2010-01-26 08:50:50 +000018391
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018392{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18393echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18394if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018396else
Reid Spencera773bd52006-08-04 18:18:08 +000018397 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018398ac_cpp='$CXXCPP $CPPFLAGS'
18399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018403 cat >conftest.$ac_ext <<_ACEOF
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018408/* end confdefs.h. */
18409#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018410int
18411main ()
18412{
18413float f; isnan(f);
18414 ;
18415 return 0;
18416}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018417_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018418rm -f conftest.$ac_objext
18419if { (ac_try="$ac_compile"
18420case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18423esac
18424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_compile") 2>conftest.er1
18426 ac_status=$?
18427 grep -v '^ *+' conftest.er1 >conftest.err
18428 rm -f conftest.er1
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } &&
18432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18436esac
18437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; } &&
18442 { ac_try='test -s conftest.$ac_objext'
18443 { (case "(($ac_try" in
18444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445 *) ac_try_echo=$ac_try;;
18446esac
18447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18448 (eval "$ac_try") 2>&5
18449 ac_status=$?
18450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18451 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018452 ac_cv_func_isnan_in_math_h=yes
18453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018454 echo "$as_me: failed program was:" >&5
18455sed 's/^/| /' conftest.$ac_ext >&5
18456
18457 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018458fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018459
Reid Spencera773bd52006-08-04 18:18:08 +000018460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018461 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018462ac_cpp='$CPP $CPPFLAGS'
18463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465ac_compiler_gnu=$ac_cv_c_compiler_gnu
18466
18467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018468{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18469echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018470
18471
18472if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018474cat >>confdefs.h <<\_ACEOF
18475#define HAVE_ISNAN_IN_MATH_H 1
18476_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018477
Reid Spencerabec8f92004-10-27 23:03:44 +000018478fi
18479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018480{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18481echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18482if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018484else
Reid Spencera773bd52006-08-04 18:18:08 +000018485 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018486ac_cpp='$CXXCPP $CPPFLAGS'
18487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018491 cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018496/* end confdefs.h. */
18497#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018498int
18499main ()
18500{
18501float f; isnan(f);
18502 ;
18503 return 0;
18504}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018505_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018506rm -f conftest.$ac_objext
18507if { (ac_try="$ac_compile"
18508case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_compile") 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18524esac
18525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest.$ac_objext'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018540 ac_cv_func_isnan_in_cmath=yes
18541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018542 echo "$as_me: failed program was:" >&5
18543sed 's/^/| /' conftest.$ac_ext >&5
18544
18545 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018547
Reid Spencera773bd52006-08-04 18:18:08 +000018548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018549 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018550ac_cpp='$CPP $CPPFLAGS'
18551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18553ac_compiler_gnu=$ac_cv_c_compiler_gnu
18554
18555fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018556{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18557echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018558
18559if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018561cat >>confdefs.h <<\_ACEOF
18562#define HAVE_ISNAN_IN_CMATH 1
18563_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018564
Reid Spencerabec8f92004-10-27 23:03:44 +000018565fi
18566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018567{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18568echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18569if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018571else
Reid Spencera773bd52006-08-04 18:18:08 +000018572 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018573ac_cpp='$CXXCPP $CPPFLAGS'
18574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018578 cat >conftest.$ac_ext <<_ACEOF
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018583/* end confdefs.h. */
18584#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018585int
18586main ()
18587{
18588float f; std::isnan(f);
18589 ;
18590 return 0;
18591}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018592_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018593rm -f conftest.$ac_objext
18594if { (ac_try="$ac_compile"
18595case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18598esac
18599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_compile") 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } &&
18607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18608 { (case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18611esac
18612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_try") 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest.$ac_objext'
18618 { (case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_try") 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018627 ac_cv_func_std_isnan_in_cmath=yes
18628else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018629 echo "$as_me: failed program was:" >&5
18630sed 's/^/| /' conftest.$ac_ext >&5
18631
18632 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018633fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018634
Reid Spencera773bd52006-08-04 18:18:08 +000018635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018636 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018637ac_cpp='$CPP $CPPFLAGS'
18638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18640ac_compiler_gnu=$ac_cv_c_compiler_gnu
18641
18642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018643{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18644echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018645
18646if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018648cat >>confdefs.h <<\_ACEOF
18649#define HAVE_STD_ISNAN_IN_CMATH 1
18650_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018651
Reid Spencerabec8f92004-10-27 23:03:44 +000018652fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018653
18654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018655{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18656echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18657if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018659else
Reid Spencera773bd52006-08-04 18:18:08 +000018660 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018661ac_cpp='$CXXCPP $CPPFLAGS'
18662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018666 cat >conftest.$ac_ext <<_ACEOF
18667/* confdefs.h. */
18668_ACEOF
18669cat confdefs.h >>conftest.$ac_ext
18670cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018671/* end confdefs.h. */
18672#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018673int
18674main ()
18675{
18676float f; isinf(f);
18677 ;
18678 return 0;
18679}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018680_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018681rm -f conftest.$ac_objext
18682if { (ac_try="$ac_compile"
18683case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686esac
18687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_compile") 2>conftest.er1
18689 ac_status=$?
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } &&
18695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18696 { (case "(($ac_try" in
18697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18699esac
18700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_try") 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest.$ac_objext'
18706 { (case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18709esac
18710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_try") 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018715 ac_cv_func_isinf_in_math_h=yes
18716else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018717 echo "$as_me: failed program was:" >&5
18718sed 's/^/| /' conftest.$ac_ext >&5
18719
18720 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018721fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018722
Reid Spencera773bd52006-08-04 18:18:08 +000018723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018724 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018725ac_cpp='$CPP $CPPFLAGS'
18726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18728ac_compiler_gnu=$ac_cv_c_compiler_gnu
18729
18730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018731{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18732echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018733
18734if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018735
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018736cat >>confdefs.h <<\_ACEOF
18737#define HAVE_ISINF_IN_MATH_H 1
18738_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018739
Reid Spencerabec8f92004-10-27 23:03:44 +000018740fi
18741
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018742{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18743echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18744if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018746else
Reid Spencera773bd52006-08-04 18:18:08 +000018747 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018748ac_cpp='$CXXCPP $CPPFLAGS'
18749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018753 cat >conftest.$ac_ext <<_ACEOF
18754/* confdefs.h. */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018758/* end confdefs.h. */
18759#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018760int
18761main ()
18762{
18763float f; isinf(f);
18764 ;
18765 return 0;
18766}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018767_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018768rm -f conftest.$ac_objext
18769if { (ac_try="$ac_compile"
18770case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18773esac
18774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_compile") 2>conftest.er1
18776 ac_status=$?
18777 grep -v '^ *+' conftest.er1 >conftest.err
18778 rm -f conftest.er1
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786esac
18787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18789 ac_status=$?
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest.$ac_objext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796esac
18797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018802 ac_cv_func_isinf_in_cmath=yes
18803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018804 echo "$as_me: failed program was:" >&5
18805sed 's/^/| /' conftest.$ac_ext >&5
18806
18807 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018808fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018809
Reid Spencera773bd52006-08-04 18:18:08 +000018810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018811 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018812ac_cpp='$CPP $CPPFLAGS'
18813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18815ac_compiler_gnu=$ac_cv_c_compiler_gnu
18816
18817fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018818{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18819echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018820
18821if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018823cat >>confdefs.h <<\_ACEOF
18824#define HAVE_ISINF_IN_CMATH 1
18825_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018826
Reid Spencerabec8f92004-10-27 23:03:44 +000018827fi
18828
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018829{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18830echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18831if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018833else
Reid Spencera773bd52006-08-04 18:18:08 +000018834 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018835ac_cpp='$CXXCPP $CPPFLAGS'
18836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18839
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018840 cat >conftest.$ac_ext <<_ACEOF
18841/* confdefs.h. */
18842_ACEOF
18843cat confdefs.h >>conftest.$ac_ext
18844cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018845/* end confdefs.h. */
18846#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018847int
18848main ()
18849{
18850float f; std::isinf(f)}
18851 ;
18852 return 0;
18853}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018854_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018855rm -f conftest.$ac_objext
18856if { (ac_try="$ac_compile"
18857case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18860esac
18861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_compile") 2>conftest.er1
18863 ac_status=$?
18864 grep -v '^ *+' conftest.er1 >conftest.err
18865 rm -f conftest.er1
18866 cat conftest.err >&5
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } &&
18869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18870 { (case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18873esac
18874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_try") 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; } &&
18879 { ac_try='test -s conftest.$ac_objext'
18880 { (case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18883esac
18884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_try") 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018889 ac_cv_func_std_isinf_in_cmath=yes
18890else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018891 echo "$as_me: failed program was:" >&5
18892sed 's/^/| /' conftest.$ac_ext >&5
18893
18894 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018895fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018896
Reid Spencera773bd52006-08-04 18:18:08 +000018897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018898 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018899ac_cpp='$CPP $CPPFLAGS'
18900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18902ac_compiler_gnu=$ac_cv_c_compiler_gnu
18903
18904fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018905{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18906echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018907
18908if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018909
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018910cat >>confdefs.h <<\_ACEOF
18911#define HAVE_STD_ISINF_IN_CMATH 1
18912_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018913
Reid Spencerabec8f92004-10-27 23:03:44 +000018914fi
18915
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018916{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18917echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18918if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018920else
Reid Spencera773bd52006-08-04 18:18:08 +000018921 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018922ac_cpp='$CXXCPP $CPPFLAGS'
18923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018927 cat >conftest.$ac_ext <<_ACEOF
18928/* confdefs.h. */
18929_ACEOF
18930cat confdefs.h >>conftest.$ac_ext
18931cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018932/* end confdefs.h. */
18933#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018934int
18935main ()
18936{
18937float f; finite(f);
18938 ;
18939 return 0;
18940}
Brian Gaeked59a6472004-07-21 03:33:58 +000018941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018942rm -f conftest.$ac_objext
18943if { (ac_try="$ac_compile"
18944case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18947esac
18948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_compile") 2>conftest.er1
18950 ac_status=$?
18951 grep -v '^ *+' conftest.er1 >conftest.err
18952 rm -f conftest.er1
18953 cat conftest.err >&5
18954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955 (exit $ac_status); } &&
18956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18957 { (case "(($ac_try" in
18958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959 *) ac_try_echo=$ac_try;;
18960esac
18961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962 (eval "$ac_try") 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; } &&
18966 { ac_try='test -s conftest.$ac_objext'
18967 { (case "(($ac_try" in
18968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18969 *) ac_try_echo=$ac_try;;
18970esac
18971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18972 (eval "$ac_try") 2>&5
18973 ac_status=$?
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018976 ac_cv_func_finite_in_ieeefp_h=yes
18977else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018978 echo "$as_me: failed program was:" >&5
18979sed 's/^/| /' conftest.$ac_ext >&5
18980
18981 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018983
Reid Spencera773bd52006-08-04 18:18:08 +000018984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018985 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018986ac_cpp='$CPP $CPPFLAGS'
18987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989ac_compiler_gnu=$ac_cv_c_compiler_gnu
18990
18991fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018992{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18993echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018994
Brian Gaeke6802b552004-10-28 05:06:45 +000018995if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018997cat >>confdefs.h <<\_ACEOF
18998#define HAVE_FINITE_IN_IEEEFP_H 1
18999_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019000
Reid Spencerabec8f92004-10-27 23:03:44 +000019001fi
19002
19003
19004
Reid Spencer30fe5262007-01-20 07:48:49 +000019005if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019006
19007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019008for ac_header in stdlib.h unistd.h
19009do
19010as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19016fi
19017ac_res=`eval echo '${'$as_ac_Header'}'`
19018 { echo "$as_me:$LINENO: result: $ac_res" >&5
19019echo "${ECHO_T}$ac_res" >&6; }
19020else
19021 # Is the header compilable?
19022{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19024cat >conftest.$ac_ext <<_ACEOF
19025/* confdefs.h. */
19026_ACEOF
19027cat confdefs.h >>conftest.$ac_ext
19028cat >>conftest.$ac_ext <<_ACEOF
19029/* end confdefs.h. */
19030$ac_includes_default
19031#include <$ac_header>
19032_ACEOF
19033rm -f conftest.$ac_objext
19034if { (ac_try="$ac_compile"
19035case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19038esac
19039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_compile") 2>conftest.er1
19041 ac_status=$?
19042 grep -v '^ *+' conftest.er1 >conftest.err
19043 rm -f conftest.er1
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } &&
19047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19054 ac_status=$?
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; } &&
19057 { ac_try='test -s conftest.$ac_objext'
19058 { (case "(($ac_try" in
19059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19060 *) ac_try_echo=$ac_try;;
19061esac
19062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19063 (eval "$ac_try") 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; }; then
19067 ac_header_compiler=yes
19068else
19069 echo "$as_me: failed program was:" >&5
19070sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019071
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019072 ac_header_compiler=no
19073fi
19074
19075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19076{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19077echo "${ECHO_T}$ac_header_compiler" >&6; }
19078
19079# Is the header present?
19080{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19082cat >conftest.$ac_ext <<_ACEOF
19083/* confdefs.h. */
19084_ACEOF
19085cat confdefs.h >>conftest.$ac_ext
19086cat >>conftest.$ac_ext <<_ACEOF
19087/* end confdefs.h. */
19088#include <$ac_header>
19089_ACEOF
19090if { (ac_try="$ac_cpp conftest.$ac_ext"
19091case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } >/dev/null; then
19103 if test -s conftest.err; then
19104 ac_cpp_err=$ac_c_preproc_warn_flag
19105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19106 else
19107 ac_cpp_err=
19108 fi
19109else
19110 ac_cpp_err=yes
19111fi
19112if test -z "$ac_cpp_err"; then
19113 ac_header_preproc=yes
19114else
19115 echo "$as_me: failed program was:" >&5
19116sed 's/^/| /' conftest.$ac_ext >&5
19117
19118 ac_header_preproc=no
19119fi
19120
19121rm -f conftest.err conftest.$ac_ext
19122{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19123echo "${ECHO_T}$ac_header_preproc" >&6; }
19124
19125# So? What about this header?
19126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19127 yes:no: )
19128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19129echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19131echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19132 ac_header_preproc=yes
19133 ;;
19134 no:yes:* )
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19136echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19138echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19140echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19142echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19144echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19146echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19147 ( cat <<\_ASBOX
19148## ----------------------------------- ##
19149## Report this to llvmbugs@cs.uiuc.edu ##
19150## ----------------------------------- ##
19151_ASBOX
19152 ) | sed "s/^/$as_me: WARNING: /" >&2
19153 ;;
19154esac
19155{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159else
19160 eval "$as_ac_Header=\$ac_header_preproc"
19161fi
19162ac_res=`eval echo '${'$as_ac_Header'}'`
19163 { echo "$as_me:$LINENO: result: $ac_res" >&5
19164echo "${ECHO_T}$ac_res" >&6; }
19165
19166fi
19167if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019168 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019170_ACEOF
19171
19172fi
19173
19174done
19175
19176
19177for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019178do
19179as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19180{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19181echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19182if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184else
19185 cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h. */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h. */
19191/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19193#define $ac_func innocuous_$ac_func
19194
19195/* System header to define __stub macros and hopefully few prototypes,
19196 which can conflict with char $ac_func (); below.
19197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19198 <limits.h> exists even on freestanding compilers. */
19199
19200#ifdef __STDC__
19201# include <limits.h>
19202#else
19203# include <assert.h>
19204#endif
19205
19206#undef $ac_func
19207
19208/* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
19211#ifdef __cplusplus
19212extern "C"
19213#endif
19214char $ac_func ();
19215/* The GNU C library defines this for functions which it implements
19216 to always fail with ENOSYS. Some functions are actually named
19217 something starting with __ and the normal name is an alias. */
19218#if defined __stub_$ac_func || defined __stub___$ac_func
19219choke me
19220#endif
19221
19222int
19223main ()
19224{
19225return $ac_func ();
19226 ;
19227 return 0;
19228}
19229_ACEOF
19230rm -f conftest.$ac_objext conftest$ac_exeext
19231if { (ac_try="$ac_link"
19232case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19235esac
19236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_link") 2>conftest.er1
19238 ac_status=$?
19239 grep -v '^ *+' conftest.er1 >conftest.err
19240 rm -f conftest.er1
19241 cat conftest.err >&5
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
19244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19245 { (case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19248esac
19249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_try") 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest$ac_exeext'
19255 { (case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258esac
19259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_try") 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 eval "$as_ac_var=yes"
19265else
19266 echo "$as_me: failed program was:" >&5
19267sed 's/^/| /' conftest.$ac_ext >&5
19268
19269 eval "$as_ac_var=no"
19270fi
19271
19272rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19274fi
19275ac_res=`eval echo '${'$as_ac_var'}'`
19276 { echo "$as_me:$LINENO: result: $ac_res" >&5
19277echo "${ECHO_T}$ac_res" >&6; }
19278if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019279 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019280#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019281_ACEOF
19282
19283fi
19284done
19285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286{ echo "$as_me:$LINENO: checking for working mmap" >&5
19287echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19288if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19289 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019291 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019292 ac_cv_func_mmap_fixed_mapped=no
19293else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019294 cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019300$ac_includes_default
19301/* malloc might have been renamed as rpl_malloc. */
19302#undef malloc
19303
19304/* Thanks to Mike Haertel and Jim Avera for this test.
19305 Here is a matrix of mmap possibilities:
19306 mmap private not fixed
19307 mmap private fixed at somewhere currently unmapped
19308 mmap private fixed at somewhere already mapped
19309 mmap shared not fixed
19310 mmap shared fixed at somewhere currently unmapped
19311 mmap shared fixed at somewhere already mapped
19312 For private mappings, we should verify that changes cannot be read()
19313 back from the file, nor mmap's back from the file at a different
19314 address. (There have been systems where private was not correctly
19315 implemented like the infamous i386 svr4.0, and systems where the
19316 VM page cache was not coherent with the file system buffer cache
19317 like early versions of FreeBSD and possibly contemporary NetBSD.)
19318 For shared mappings, we should conversely verify that changes get
19319 propagated back to all the places they're supposed to be.
19320
19321 Grep wants private fixed already mapped.
19322 The main things grep needs to know about mmap are:
19323 * does it exist and is it safe to write into the mmap'd area
19324 * how to use it (BSD variants) */
19325
19326#include <fcntl.h>
19327#include <sys/mman.h>
19328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019329#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019330char *malloc ();
19331#endif
19332
19333/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019334#if !HAVE_GETPAGESIZE
19335/* Assume that all systems that can run configure have sys/param.h. */
19336# if !HAVE_SYS_PARAM_H
19337# define HAVE_SYS_PARAM_H 1
19338# endif
19339
John Criswell7a73b802003-06-30 21:59:07 +000019340# ifdef _SC_PAGESIZE
19341# define getpagesize() sysconf(_SC_PAGESIZE)
19342# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019343# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019344# include <sys/param.h>
19345# ifdef EXEC_PAGESIZE
19346# define getpagesize() EXEC_PAGESIZE
19347# else /* no EXEC_PAGESIZE */
19348# ifdef NBPG
19349# define getpagesize() NBPG * CLSIZE
19350# ifndef CLSIZE
19351# define CLSIZE 1
19352# endif /* no CLSIZE */
19353# else /* no NBPG */
19354# ifdef NBPC
19355# define getpagesize() NBPC
19356# else /* no NBPC */
19357# ifdef PAGESIZE
19358# define getpagesize() PAGESIZE
19359# endif /* PAGESIZE */
19360# endif /* no NBPC */
19361# endif /* no NBPG */
19362# endif /* no EXEC_PAGESIZE */
19363# else /* no HAVE_SYS_PARAM_H */
19364# define getpagesize() 8192 /* punt totally */
19365# endif /* no HAVE_SYS_PARAM_H */
19366# endif /* no _SC_PAGESIZE */
19367
19368#endif /* no HAVE_GETPAGESIZE */
19369
19370int
19371main ()
19372{
19373 char *data, *data2, *data3;
19374 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019375 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019376
19377 pagesize = getpagesize ();
19378
19379 /* First, make a file with some known garbage in it. */
19380 data = (char *) malloc (pagesize);
19381 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019382 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019383 for (i = 0; i < pagesize; ++i)
19384 *(data + i) = rand ();
19385 umask (0);
19386 fd = creat ("conftest.mmap", 0600);
19387 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019388 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019389 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019390 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019391 close (fd);
19392
19393 /* Next, try to mmap the file at a fixed address which already has
19394 something else allocated at it. If we can, also make sure that
19395 we see the same garbage. */
19396 fd = open ("conftest.mmap", O_RDWR);
19397 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019398 return 1;
19399 data2 = (char *) malloc (2 * pagesize);
19400 if (!data2)
19401 return 1;
19402 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019403 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019404 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019405 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019406 for (i = 0; i < pagesize; ++i)
19407 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019408 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019409
19410 /* Finally, make sure that changes to the mapped area do not
19411 percolate back to the file as seen by read(). (This is a bug on
19412 some variants of i386 svr4.0.) */
19413 for (i = 0; i < pagesize; ++i)
19414 *(data2 + i) = *(data2 + i) + 1;
19415 data3 = (char *) malloc (pagesize);
19416 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019417 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019418 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019419 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019420 for (i = 0; i < pagesize; ++i)
19421 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019422 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019423 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019424 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019425}
19426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019427rm -f conftest$ac_exeext
19428if { (ac_try="$ac_link"
19429case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_link") 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19438 { (case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19441esac
19442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_try") 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019447 ac_cv_func_mmap_fixed_mapped=yes
19448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019449 echo "$as_me: program exited with status $ac_status" >&5
19450echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453( exit $ac_status )
19454ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019455fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019456rm -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 +000019457fi
Reid Spencera773bd52006-08-04 18:18:08 +000019458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459
John Criswell7a73b802003-06-30 21:59:07 +000019460fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019461{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19462echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019463if test $ac_cv_func_mmap_fixed_mapped = yes; then
19464
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019465cat >>confdefs.h <<\_ACEOF
19466#define HAVE_MMAP 1
19467_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019468
19469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019470rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019472 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19473echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19474if test "${ac_cv_func_mmap_file+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019476else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019477 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019478ac_cpp='$CPP $CPPFLAGS'
19479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481ac_compiler_gnu=$ac_cv_c_compiler_gnu
19482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019484 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019486 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019487
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019488 /* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019493
John Criswell7a73b802003-06-30 21:59:07 +000019494#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019495#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019496#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019497
19498int
19499main ()
19500{
John Criswell7a73b802003-06-30 21:59:07 +000019501
19502 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019503 fd = creat ("foo",0777);
19504 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19505 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019506 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019507 ;
19508 return 0;
19509}
John Criswell7a73b802003-06-30 21:59:07 +000019510_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019511rm -f conftest$ac_exeext
19512if { (ac_try="$ac_link"
19513case "(($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_link") 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19525esac
19526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019531 ac_cv_func_mmap_file=yes
19532else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019533 echo "$as_me: program exited with status $ac_status" >&5
19534echo "$as_me: failed program was:" >&5
19535sed 's/^/| /' conftest.$ac_ext >&5
19536
19537( exit $ac_status )
19538ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019540rm -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 +000019541fi
Reid Spencera773bd52006-08-04 18:18:08 +000019542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019543
John Criswell7a73b802003-06-30 21:59:07 +000019544 ac_ext=c
19545ac_cpp='$CPP $CPPFLAGS'
19546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19548ac_compiler_gnu=$ac_cv_c_compiler_gnu
19549
19550
19551fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019552{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19553echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019554if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556cat >>confdefs.h <<\_ACEOF
19557#define HAVE_MMAP_FILE
19558_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019559
19560 MMAP_FILE=yes
19561
19562fi
19563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019564 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19565echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19566if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019568else
Reid Spencer582a23c2004-12-29 07:07:57 +000019569 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019570 ac_cv_need_dev_zero_for_mmap=yes
19571 else
19572 ac_cv_need_dev_zero_for_mmap=no
19573 fi
19574
19575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019576{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19577echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019578if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019580cat >>confdefs.h <<\_ACEOF
19581#define NEED_DEV_ZERO_FOR_MMAP 1
19582_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019583
19584fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019585
Reid Spencer30fe5262007-01-20 07:48:49 +000019586 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19587 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019588 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19589echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019590 fi
19591 if test "$ac_cv_func_mmap_file" = "no"
19592 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019593 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19594echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019595 fi
John Criswellb13092b2003-07-22 21:00:24 +000019596fi
John Criswell7a73b802003-06-30 21:59:07 +000019597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019598{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19599echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19600cat >conftest.$ac_ext <<_ACEOF
19601/* confdefs.h. */
19602_ACEOF
19603cat confdefs.h >>conftest.$ac_ext
19604cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019605/* end confdefs.h. */
19606int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019607 volatile unsigned long val = 1;
19608 __sync_synchronize();
19609 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019610 __sync_add_and_fetch(&val, 1);
19611 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019612 return 0;
19613 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019614
19615_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019616rm -f conftest.$ac_objext conftest$ac_exeext
19617if { (ac_try="$ac_link"
19618case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621esac
19622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_link") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19631 { (case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19634esac
19635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_try") 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest$ac_exeext'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643 *) ac_try_echo=$ac_try;;
19644esac
19645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 { echo "$as_me:$LINENO: result: yes" >&5
19651echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019653cat >>confdefs.h <<\_ACEOF
19654#define LLVM_MULTITHREADED 1
19655_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019656
Owen Andersond4b272b2009-05-18 23:58:51 +000019657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019658 echo "$as_me: failed program was:" >&5
19659sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019661 { echo "$as_me:$LINENO: result: no" >&5
19662echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019664cat >>confdefs.h <<\_ACEOF
19665#define LLVM_MULTITHREADED 0
19666_ACEOF
19667
19668 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19669echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671
Owen Andersond4b272b2009-05-18 23:58:51 +000019672rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019673 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019674
19675
John Criswell7a73b802003-06-30 21:59:07 +000019676
Nick Lewycky4372e692009-09-29 06:18:23 +000019677if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019678 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19679echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19680if test "${llvm_cv_linux_mixed+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019682else
19683 ac_ext=c
19684ac_cpp='$CPP $CPPFLAGS'
19685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687ac_compiler_gnu=$ac_cv_c_compiler_gnu
19688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019689 cat >conftest.$ac_ext <<_ACEOF
19690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019694/* end confdefs.h. */
19695#ifndef __x86_64__
19696 error: Not x86-64 even if uname says so!
19697 #endif
19698
19699int
19700main ()
19701{
19702
19703 ;
19704 return 0;
19705}
19706_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019707rm -f conftest.$ac_objext
19708if { (ac_try="$ac_compile"
19709case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19712esac
19713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_compile") 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19722 { (case "(($ac_try" in
19723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724 *) ac_try_echo=$ac_try;;
19725esac
19726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19727 (eval "$ac_try") 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; } &&
19731 { ac_try='test -s conftest.$ac_objext'
19732 { (case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_try") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019741 llvm_cv_linux_mixed=no
19742else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019743 echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019748
Nick Lewycky4372e692009-09-29 06:18:23 +000019749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 ac_ext=c
19751ac_cpp='$CPP $CPPFLAGS'
19752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19754ac_compiler_gnu=$ac_cv_c_compiler_gnu
19755
19756
19757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019758{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19759echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019760
19761 if test "$llvm_cv_linux_mixed" = "yes"; then
19762 llvm_cv_target_arch="x86"
19763 ARCH="x86"
19764 fi
19765fi
19766
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019767
Reid Spencer9372f152007-07-30 20:13:24 +000019768for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019769do
19770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19771{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19773if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19775else
19776 cat >conftest.$ac_ext <<_ACEOF
19777/* confdefs.h. */
19778_ACEOF
19779cat confdefs.h >>conftest.$ac_ext
19780cat >>conftest.$ac_ext <<_ACEOF
19781/* end confdefs.h. */
19782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19784#define $ac_func innocuous_$ac_func
19785
19786/* System header to define __stub macros and hopefully few prototypes,
19787 which can conflict with char $ac_func (); below.
19788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19789 <limits.h> exists even on freestanding compilers. */
19790
19791#ifdef __STDC__
19792# include <limits.h>
19793#else
19794# include <assert.h>
19795#endif
19796
19797#undef $ac_func
19798
19799/* Override any GCC internal prototype to avoid an error.
19800 Use char because int might match the return type of a GCC
19801 builtin and then its argument prototype would still apply. */
19802#ifdef __cplusplus
19803extern "C"
19804#endif
19805char $ac_func ();
19806/* The GNU C library defines this for functions which it implements
19807 to always fail with ENOSYS. Some functions are actually named
19808 something starting with __ and the normal name is an alias. */
19809#if defined __stub_$ac_func || defined __stub___$ac_func
19810choke me
19811#endif
19812
19813int
19814main ()
19815{
19816return $ac_func ();
19817 ;
19818 return 0;
19819}
19820_ACEOF
19821rm -f conftest.$ac_objext conftest$ac_exeext
19822if { (ac_try="$ac_link"
19823case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_link") 2>conftest.er1
19829 ac_status=$?
19830 grep -v '^ *+' conftest.er1 >conftest.err
19831 rm -f conftest.er1
19832 cat conftest.err >&5
19833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } &&
19835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19836 { (case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839esac
19840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_try") 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; } &&
19845 { ac_try='test -s conftest$ac_exeext'
19846 { (case "(($ac_try" in
19847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848 *) ac_try_echo=$ac_try;;
19849esac
19850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851 (eval "$ac_try") 2>&5
19852 ac_status=$?
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); }; }; then
19855 eval "$as_ac_var=yes"
19856else
19857 echo "$as_me: failed program was:" >&5
19858sed 's/^/| /' conftest.$ac_ext >&5
19859
19860 eval "$as_ac_var=no"
19861fi
19862
19863rm -f core conftest.err conftest.$ac_objext \
19864 conftest$ac_exeext conftest.$ac_ext
19865fi
19866ac_res=`eval echo '${'$as_ac_var'}'`
19867 { echo "$as_me:$LINENO: result: $ac_res" >&5
19868echo "${ECHO_T}$ac_res" >&6; }
19869if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019870 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019871#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019872_ACEOF
19873
19874fi
19875done
19876
19877
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019878{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19879echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19880if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19881 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019882else
19883 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019884if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019885 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019886 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19887 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019888 if test $? -eq 0 ; then
19889 llvm_cv_llvmgcc_sanity="yes"
19890 fi
19891 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019892fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019893fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019894{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19895echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019896
19897if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019898 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19899echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019900 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019901 LLVMCC1=$llvmcc1path
19902
Reid Spencer502935f2004-12-22 05:56:56 +000019903 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019904 LLVMCC1PLUS=$llvmcc1pluspath
19905
Reid Spencer502935f2004-12-22 05:56:56 +000019906 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19907 LLVMGCCDIR=$llvmgccdir
19908
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019909 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019910 LLVMGCC_LANGS=$llvmgcclangs
19911
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019912 { echo "$as_me:$LINENO: result: ok" >&5
19913echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019914fi
19915
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019916SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019917
19918
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000019919SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19920
19921
Reid Spencere9de0912004-08-20 09:03:57 +000019922# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019923# information into substitutions that will end up in Makefile.config.in
19924# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019925if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019926 prefix="/usr/local"
19927fi
Reid Spencere9de0912004-08-20 09:03:57 +000019928eval LLVM_PREFIX="${prefix}";
19929eval LLVM_BINDIR="${prefix}/bin";
19930eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019931eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000019932eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000019933eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019934eval LLVM_INCLUDEDIR="${prefix}/include";
19935eval LLVM_INFODIR="${prefix}/info";
19936eval LLVM_MANDIR="${prefix}/man";
19937LLVM_CONFIGTIME=`date`
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019949# Place the various directores into the config.h file as #defines so that we
19950# can know about the installation paths within LLVM.
19951
Reid Spencere9de0912004-08-20 09:03:57 +000019952cat >>confdefs.h <<_ACEOF
19953#define LLVM_PREFIX "$LLVM_PREFIX"
19954_ACEOF
19955
19956
19957cat >>confdefs.h <<_ACEOF
19958#define LLVM_BINDIR "$LLVM_BINDIR"
19959_ACEOF
19960
19961
19962cat >>confdefs.h <<_ACEOF
19963#define LLVM_LIBDIR "$LLVM_LIBDIR"
19964_ACEOF
19965
19966
19967cat >>confdefs.h <<_ACEOF
19968#define LLVM_DATADIR "$LLVM_DATADIR"
19969_ACEOF
19970
19971
19972cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019973#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019974_ACEOF
19975
19976
19977cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019978#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019979_ACEOF
19980
19981
19982cat >>confdefs.h <<_ACEOF
19983#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19984_ACEOF
19985
19986
19987cat >>confdefs.h <<_ACEOF
19988#define LLVM_INFODIR "$LLVM_INFODIR"
19989_ACEOF
19990
19991
19992cat >>confdefs.h <<_ACEOF
19993#define LLVM_MANDIR "$LLVM_MANDIR"
19994_ACEOF
19995
19996
19997cat >>confdefs.h <<_ACEOF
19998#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19999_ACEOF
20000
20001
Eric Christopher790e11c2007-12-01 00:34:39 +000020002cat >>confdefs.h <<_ACEOF
20003#define LLVM_HOSTTRIPLE "$host"
20004_ACEOF
20005
20006
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020007# Determine which bindings to build.
20008if test "$BINDINGS_TO_BUILD" = auto ; then
20009 BINDINGS_TO_BUILD=""
20010 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20011 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20012 fi
20013fi
20014BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20015
20016
20017# This isn't really configurey, but it avoids having to repeat the list in
20018# other files.
20019ALL_BINDINGS=ocaml
20020
20021
Gordon Henriksenf0915682007-10-02 16:42:22 +000020022# Do any work necessary to ensure that bindings have what they need.
20023binding_prereqs_failed=0
20024for a_binding in $BINDINGS_TO_BUILD ; do
20025 case "$a_binding" in
20026 ocaml)
20027 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020028 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20029echo "$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 +000020030 binding_prereqs_failed=1
20031 fi
20032 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20034echo "$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 +000020035 binding_prereqs_failed=1
20036 fi
20037 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20039echo "$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 +000020040 fi
20041 if test "x$with_ocaml_libdir" != xauto ; then
20042 OCAML_LIBDIR=$with_ocaml_libdir
20043
20044 else
20045 ocaml_stdlib="`"$OCAMLC" -where`"
20046 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20047 then
20048 # ocaml stdlib is beneath our prefix; use stdlib
20049 OCAML_LIBDIR=$ocaml_stdlib
20050
20051 else
20052 # ocaml stdlib is outside our prefix; use libdir/ocaml
20053 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20054
20055 fi
20056 fi
20057 ;;
20058 esac
20059done
20060if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020061 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20062echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20063 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020064fi
20065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20067echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20068if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020070else
20071 ac_ext=cpp
20072ac_cpp='$CXXCPP $CPPFLAGS'
20073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20076
20077 oldcxxflags="$CXXFLAGS"
20078 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020079 cat >conftest.$ac_ext <<_ACEOF
20080/* confdefs.h. */
20081_ACEOF
20082cat confdefs.h >>conftest.$ac_ext
20083cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020084/* end confdefs.h. */
20085
20086int
20087main ()
20088{
20089
20090 ;
20091 return 0;
20092}
20093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094rm -f conftest.$ac_objext
20095if { (ac_try="$ac_compile"
20096case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20099esac
20100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_compile") 2>conftest.er1
20102 ac_status=$?
20103 grep -v '^ *+' conftest.er1 >conftest.err
20104 rm -f conftest.er1
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } &&
20108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20109 { (case "(($ac_try" in
20110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111 *) ac_try_echo=$ac_try;;
20112esac
20113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114 (eval "$ac_try") 2>&5
20115 ac_status=$?
20116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); }; } &&
20118 { ac_try='test -s conftest.$ac_objext'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
20125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020128 llvm_cv_cxx_visibility_inlines_hidden=yes
20129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020130 echo "$as_me: failed program was:" >&5
20131sed 's/^/| /' conftest.$ac_ext >&5
20132
20133 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020134fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020135
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137 CXXFLAGS="$oldcxxflags"
20138 ac_ext=c
20139ac_cpp='$CPP $CPPFLAGS'
20140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20142ac_compiler_gnu=$ac_cv_c_compiler_gnu
20143
20144
20145fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020146{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20147echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020148if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20149 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20150
20151else
20152 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20153
20154fi
20155
Gordon Henriksenf0915682007-10-02 16:42:22 +000020156
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020157if test "$llvm_cv_link_use_r" = "yes" ; then
20158 RPATH="-Wl,-R"
20159else
20160 RPATH="-Wl,-rpath"
20161fi
20162
20163
20164if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20165 RDYNAMIC="-Wl,-export-dynamic"
20166else
20167 RDYNAMIC=""
20168fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020169
20170
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020171
Reid Spencera773bd52006-08-04 18:18:08 +000020172ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020173
Douglas Gregor1555a232009-06-16 20:12:29 +000020174ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20175
20176ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20177
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020178ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20179
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020180ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20181
Chandler Carruth8b67f772009-10-26 01:35:46 +000020182ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020183
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020184
Reid Spencera773bd52006-08-04 18:18:08 +000020185ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020186
20187
Reid Spencerea949cf2006-08-16 00:45:38 +000020188ac_config_files="$ac_config_files llvm.spec"
20189
20190
Reid Spencera773bd52006-08-04 18:18:08 +000020191ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000020192
20193
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020194ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20195
20196
Reid Spencera773bd52006-08-04 18:18:08 +000020197ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020198
20199
Reid Spencera773bd52006-08-04 18:18:08 +000020200ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020201
Reid Spencera773bd52006-08-04 18:18:08 +000020202ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020203
20204
Reid Spencera773bd52006-08-04 18:18:08 +000020205ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020206
20207
Reid Spencera773bd52006-08-04 18:18:08 +000020208ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020209
20210
Reid Spencera773bd52006-08-04 18:18:08 +000020211ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020212
20213
Reid Spencer8b2e1412006-11-17 03:32:33 +000020214ac_config_commands="$ac_config_commands runtime/Makefile"
20215
20216
Reid Spencera773bd52006-08-04 18:18:08 +000020217ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020218
20219
Reid Spencera773bd52006-08-04 18:18:08 +000020220ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020221
20222
Bill Wendlingf24eb392009-01-04 23:12:30 +000020223ac_config_commands="$ac_config_commands unittests/Makefile"
20224
20225
Reid Spencera773bd52006-08-04 18:18:08 +000020226ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020227
20228
Reid Spencera773bd52006-08-04 18:18:08 +000020229ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020230
20231
Reid Spencera773bd52006-08-04 18:18:08 +000020232ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020233
20234
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020235ac_config_commands="$ac_config_commands bindings/Makefile"
20236
20237
20238ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20239
20240
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020241
John Criswell7a73b802003-06-30 21:59:07 +000020242cat >confcache <<\_ACEOF
20243# This file is a shell script that caches the results of configure
20244# tests run on this system so they can be shared between configure
20245# scripts and configure runs, see configure's option --config-cache.
20246# It is not useful on other systems. If it contains results you don't
20247# want to keep, you may remove or edit it.
20248#
20249# config.status only pays attention to the cache file if you give it
20250# the --recheck option to rerun configure.
20251#
John Criswell0c38eaf2003-09-10 15:17:25 +000020252# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020253# loading this file, other *unset* `ac_cv_foo' will be assigned the
20254# following values.
20255
20256_ACEOF
20257
20258# The following way of writing the cache mishandles newlines in values,
20259# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020260# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020261# Ultrix sh set writes to stderr and can't be redirected directly,
20262# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020263(
20264 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20265 eval ac_val=\$$ac_var
20266 case $ac_val in #(
20267 *${as_nl}*)
20268 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020269 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20270echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020271 esac
20272 case $ac_var in #(
20273 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020275 esac ;;
20276 esac
20277 done
20278
John Criswell7a73b802003-06-30 21:59:07 +000020279 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020280 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20281 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020282 # `set' does not quote correctly, so add quotes (double-quote
20283 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020284 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020285 "s/'/'\\\\''/g;
20286 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020287 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020288 *)
20289 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020290 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020292 esac |
20293 sort
20294) |
John Criswell7a73b802003-06-30 21:59:07 +000020295 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020296 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020297 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020298 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020299 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20300 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020301 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20302 :end' >>confcache
20303if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20304 if test -w "$cache_file"; then
20305 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20307echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020308 cat confcache >$cache_file
20309 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020310 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20311echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020312 fi
20313fi
20314rm -f confcache
20315
20316test "x$prefix" = xNONE && prefix=$ac_default_prefix
20317# Let make expand exec_prefix.
20318test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20319
John Criswell7a73b802003-06-30 21:59:07 +000020320DEFS=-DHAVE_CONFIG_H
20321
John Criswell0c38eaf2003-09-10 15:17:25 +000020322ac_libobjs=
20323ac_ltlibobjs=
20324for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20325 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020327 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20329 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020330 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20331 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020332done
20333LIBOBJS=$ac_libobjs
20334
20335LTLIBOBJS=$ac_ltlibobjs
20336
20337
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020338if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020339 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20340Usually this means the macro was only invoked conditionally." >&5
20341echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20342Usually this means the macro was only invoked conditionally." >&2;}
20343 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020344fi
20345if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020346 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20347Usually this means the macro was only invoked conditionally." >&5
20348echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20349Usually this means the macro was only invoked conditionally." >&2;}
20350 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020351fi
John Criswell7a73b802003-06-30 21:59:07 +000020352
20353: ${CONFIG_STATUS=./config.status}
20354ac_clean_files_save=$ac_clean_files
20355ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020356{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20357echo "$as_me: creating $CONFIG_STATUS" >&6;}
20358cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020359#! $SHELL
20360# Generated by $as_me.
20361# Run this file to recreate the current configuration.
20362# Compiler output produced by configure, useful for debugging
20363# configure, is in config.log if it exists.
20364
20365debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020366ac_cs_recheck=false
20367ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020368SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020369_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020371cat >>$CONFIG_STATUS <<\_ACEOF
20372## --------------------- ##
20373## M4sh Initialization. ##
20374## --------------------- ##
20375
20376# Be Bourne compatible
20377if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020378 emulate sh
20379 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020380 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020381 # is contrary to our usage. Disable this feature.
20382 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020383 setopt NO_GLOB_SUBST
20384else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020385 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020387BIN_SH=xpg4; export BIN_SH # for Tru64
20388DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020389
John Criswell7a73b802003-06-30 21:59:07 +000020390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020391# PATH needs CR
20392# Avoid depending upon Character Ranges.
20393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20396as_cr_digits='0123456789'
20397as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020398
20399# The user is always right.
20400if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020401 echo "#! /bin/sh" >conf$$.sh
20402 echo "exit 0" >>conf$$.sh
20403 chmod +x conf$$.sh
20404 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20405 PATH_SEPARATOR=';'
20406 else
20407 PATH_SEPARATOR=:
20408 fi
20409 rm -f conf$$.sh
20410fi
20411
20412# Support unset when possible.
20413if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20414 as_unset=unset
20415else
20416 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020417fi
John Criswell7a73b802003-06-30 21:59:07 +000020418
Reid Spencera773bd52006-08-04 18:18:08 +000020419
20420# IFS
20421# We need space, tab and new line, in precisely that order. Quoting is
20422# there to prevent editors from complaining about space-tab.
20423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20424# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020425as_nl='
20426'
Reid Spencera773bd52006-08-04 18:18:08 +000020427IFS=" "" $as_nl"
20428
20429# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020430case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020431 *[\\/]* ) as_myself=$0 ;;
20432 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020433for as_dir in $PATH
20434do
20435 IFS=$as_save_IFS
20436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020437 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20438done
Reid Spencera773bd52006-08-04 18:18:08 +000020439IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020440
Reid Spencera773bd52006-08-04 18:18:08 +000020441 ;;
20442esac
20443# We did not find ourselves, most probably we were run as `sh COMMAND'
20444# in which case we are not to be found in the path.
20445if test "x$as_myself" = x; then
20446 as_myself=$0
20447fi
20448if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020449 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20450 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020451fi
20452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020453# Work around bugs in pre-3.0 UWIN ksh.
20454for as_var in ENV MAIL MAILPATH
20455do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020456done
20457PS1='$ '
20458PS2='> '
20459PS4='+ '
20460
20461# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020462for as_var in \
20463 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20464 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20465 LC_TELEPHONE LC_TIME
20466do
20467 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20468 eval $as_var=C; export $as_var
20469 else
20470 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020471 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020472done
Torok Edwin871384f2010-01-26 08:50:50 +000020473
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020474# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020475if expr a : '\(a\)' >/dev/null 2>&1 &&
20476 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20477 as_expr=expr
20478else
20479 as_expr=false
20480fi
20481
20482if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20483 as_basename=basename
20484else
20485 as_basename=false
20486fi
20487
20488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020489# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020490as_me=`$as_basename -- "$0" ||
20491$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20492 X"$0" : 'X\(//\)$' \| \
20493 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020494echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020495 sed '/^.*\/\([^/][^/]*\)\/*$/{
20496 s//\1/
20497 q
20498 }
20499 /^X\/\(\/\/\)$/{
20500 s//\1/
20501 q
20502 }
20503 /^X\/\(\/\).*/{
20504 s//\1/
20505 q
20506 }
20507 s/.*/./; q'`
20508
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020509# CDPATH.
20510$as_unset CDPATH
20511
20512
20513
20514 as_lineno_1=$LINENO
20515 as_lineno_2=$LINENO
20516 test "x$as_lineno_1" != "x$as_lineno_2" &&
20517 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20518
20519 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20520 # uniformly replaced by the line number. The first 'sed' inserts a
20521 # line-number line after each line using $LINENO; the second 'sed'
20522 # does the real work. The second script uses 'N' to pair each
20523 # line-number line with the line containing $LINENO, and appends
20524 # trailing '-' during substitution so that $LINENO is not a special
20525 # case at line end.
20526 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20527 # scripts with optimization help from Paolo Bonzini. Blame Lee
20528 # E. McMahon (1931-1989) for sed's syntax. :-)
20529 sed -n '
20530 p
20531 /[$]LINENO/=
20532 ' <$as_myself |
20533 sed '
20534 s/[$]LINENO.*/&-/
20535 t lineno
20536 b
20537 :lineno
20538 N
20539 :loop
20540 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20541 t loop
20542 s/-\n.*//
20543 ' >$as_me.lineno &&
20544 chmod +x "$as_me.lineno" ||
20545 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20546 { (exit 1); exit 1; }; }
20547
20548 # Don't try to exec as it changes $[0], causing all sort of problems
20549 # (the dirname of $[0] is not the place where we might find the
20550 # original and so on. Autoconf is especially sensitive to this).
20551 . "./$as_me.lineno"
20552 # Exit status is that of the last command.
20553 exit
20554}
20555
20556
20557if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20558 as_dirname=dirname
20559else
20560 as_dirname=false
20561fi
Reid Spencera773bd52006-08-04 18:18:08 +000020562
20563ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020564case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020565-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020566 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020567 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020568 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020569 esac;;
20570*)
20571 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020572esac
20573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574if expr a : '\(a\)' >/dev/null 2>&1 &&
20575 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20576 as_expr=expr
20577else
20578 as_expr=false
20579fi
20580
John Criswell7a73b802003-06-30 21:59:07 +000020581rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020582if test -d conf$$.dir; then
20583 rm -f conf$$.dir/conf$$.file
20584else
20585 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020586 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020588echo >conf$$.file
20589if ln -s conf$$.file conf$$ 2>/dev/null; then
20590 as_ln_s='ln -s'
20591 # ... but there are two gotchas:
20592 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20593 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20594 # In both cases, we have to default to `cp -p'.
20595 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020596 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597elif ln conf$$.file conf$$ 2>/dev/null; then
20598 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020599else
20600 as_ln_s='cp -p'
20601fi
Reid Spencera773bd52006-08-04 18:18:08 +000020602rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20603rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020604
John Criswell0c38eaf2003-09-10 15:17:25 +000020605if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020606 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020607else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020608 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020609 as_mkdir_p=false
20610fi
20611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020612# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20613# systems may use methods other than mode bits to determine executability.
20614cat >conf$$.file <<_ASEOF
20615#! /bin/sh
20616exit 0
20617_ASEOF
20618chmod +x conf$$.file
20619if test -x conf$$.file >/dev/null 2>&1; then
20620 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020622 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020624rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020625
20626# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020627as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020628
20629# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020630as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020631
20632
John Criswell7a73b802003-06-30 21:59:07 +000020633exec 6>&1
20634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020635# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020636# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020637# values after options handling.
20638ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020639This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020640generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020641
20642 CONFIG_FILES = $CONFIG_FILES
20643 CONFIG_HEADERS = $CONFIG_HEADERS
20644 CONFIG_LINKS = $CONFIG_LINKS
20645 CONFIG_COMMANDS = $CONFIG_COMMANDS
20646 $ $0 $@
20647
Reid Spencera773bd52006-08-04 18:18:08 +000020648on `(hostname || uname -n) 2>/dev/null | sed 1q`
20649"
20650
John Criswell7a73b802003-06-30 21:59:07 +000020651_ACEOF
20652
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020653cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020654# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020655config_files="$ac_config_files"
20656config_headers="$ac_config_headers"
20657config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020658
Reid Spencera773bd52006-08-04 18:18:08 +000020659_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020661cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020662ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020663\`$as_me' instantiates files from templates according to the
20664current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020666Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020667
20668 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020669 -V, --version print version number, then exit
20670 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020671 -d, --debug don't remove temporary files
20672 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020673 --file=FILE[:TEMPLATE]
20674 instantiate the configuration file FILE
20675 --header=FILE[:TEMPLATE]
20676 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020677
20678Configuration files:
20679$config_files
20680
20681Configuration headers:
20682$config_headers
20683
John Criswellc764fbc2003-09-06 15:17:13 +000020684Configuration commands:
20685$config_commands
20686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020687Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020688
Reid Spencera773bd52006-08-04 18:18:08 +000020689_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020690cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020691ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020692llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020693configured by $0, generated by GNU Autoconf 2.60,
20694 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020696Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020697This config.status script is free software; the Free Software Foundation
20698gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020699
20700ac_pwd='$ac_pwd'
20701srcdir='$srcdir'
20702INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020703_ACEOF
20704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020705cat >>$CONFIG_STATUS <<\_ACEOF
20706# If no file are specified by the user, then we need to provide default
20707# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020708ac_need_defaults=:
20709while test $# != 0
20710do
20711 case $1 in
20712 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020715 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020717 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020718 ac_option=$1
20719 ac_optarg=$2
20720 ac_shift=shift
20721 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020722 esac
20723
John Criswell0c38eaf2003-09-10 15:17:25 +000020724 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020725 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20727 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020729 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020730 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020731 debug=: ;;
20732 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020733 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020734 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020735 ac_need_defaults=false;;
20736 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020737 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020738 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020739 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020740 --he | --h)
20741 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020742 { echo "$as_me: error: ambiguous option: $1
20743Try \`$0 --help' for more information." >&2
20744 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020745 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020746 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20748 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20749 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020750
20751 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020752 -*) { echo "$as_me: error: unrecognized option: $1
20753Try \`$0 --help' for more information." >&2
20754 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020756 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020757 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020758
20759 esac
20760 shift
20761done
20762
John Criswell0c38eaf2003-09-10 15:17:25 +000020763ac_configure_extra_args=
20764
20765if $ac_cs_silent; then
20766 exec 6>/dev/null
20767 ac_configure_extra_args="$ac_configure_extra_args --silent"
20768fi
20769
20770_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020771cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020772if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020773 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20774 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020775 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020776 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020777fi
20778
John Criswell7a73b802003-06-30 21:59:07 +000020779_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020780cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020781exec 5>>config.log
20782{
20783 echo
20784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20785## Running $as_me. ##
20786_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020787 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020788} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020789
Reid Spencera773bd52006-08-04 18:18:08 +000020790_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020791cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020792#
Reid Spencera773bd52006-08-04 18:18:08 +000020793# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020794#
Reid Spencerc0682832005-02-24 19:05:19 +000020795llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020796
20797_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020800
20801# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020802for ac_config_target in $ac_config_targets
20803do
Reid Spencera773bd52006-08-04 18:18:08 +000020804 case $ac_config_target in
20805 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020806 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20807 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020808 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020809 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020810 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020811 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020812 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020813 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020814 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020815 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20816 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20817 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20818 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20819 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20820 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020821 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020822 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20823 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020824 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020825 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20826 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20827 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020828 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20829 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020831 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20832echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20833 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020834 esac
20835done
20836
Reid Spencera773bd52006-08-04 18:18:08 +000020837
John Criswell7a73b802003-06-30 21:59:07 +000020838# If the user did not use the arguments to specify the items to instantiate,
20839# then the envvar interface is used. Set only those that are not.
20840# We use the long form for the default assignment because of an extremely
20841# bizarre bug on SunOS 4.1.3.
20842if $ac_need_defaults; then
20843 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20844 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020846fi
20847
John Criswell0c38eaf2003-09-10 15:17:25 +000020848# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020849# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020850# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020851# Hook for its removal unless debugging.
20852# Note that there is a small window in which the directory will not be cleaned:
20853# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020854$debug ||
20855{
Reid Spencera773bd52006-08-04 18:18:08 +000020856 tmp=
20857 trap 'exit_status=$?
20858 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20859' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020861}
John Criswell7a73b802003-06-30 21:59:07 +000020862# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020863
John Criswell7a73b802003-06-30 21:59:07 +000020864{
Reid Spencera773bd52006-08-04 18:18:08 +000020865 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020866 test -n "$tmp" && test -d "$tmp"
20867} ||
20868{
Reid Spencera773bd52006-08-04 18:18:08 +000020869 tmp=./conf$$-$RANDOM
20870 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020871} ||
20872{
20873 echo "$me: cannot create a temporary directory in ." >&2
20874 { (exit 1); exit 1; }
20875}
John Criswell7a73b802003-06-30 21:59:07 +000020876
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020877#
20878# Set up the sed scripts for CONFIG_FILES section.
20879#
20880
20881# No need to generate the scripts if there are no CONFIG_FILES.
20882# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020883if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020884
20885_ACEOF
20886
Reid Spencera773bd52006-08-04 18:18:08 +000020887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888
Reid Spencera773bd52006-08-04 18:18:08 +000020889ac_delim='%!_!# '
20890for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020891 cat >conf$$subs.sed <<_ACEOF
20892SHELL!$SHELL$ac_delim
20893PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20894PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20895PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20896PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20897PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20898PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20899exec_prefix!$exec_prefix$ac_delim
20900prefix!$prefix$ac_delim
20901program_transform_name!$program_transform_name$ac_delim
20902bindir!$bindir$ac_delim
20903sbindir!$sbindir$ac_delim
20904libexecdir!$libexecdir$ac_delim
20905datarootdir!$datarootdir$ac_delim
20906datadir!$datadir$ac_delim
20907sysconfdir!$sysconfdir$ac_delim
20908sharedstatedir!$sharedstatedir$ac_delim
20909localstatedir!$localstatedir$ac_delim
20910includedir!$includedir$ac_delim
20911oldincludedir!$oldincludedir$ac_delim
20912docdir!$docdir$ac_delim
20913infodir!$infodir$ac_delim
20914htmldir!$htmldir$ac_delim
20915dvidir!$dvidir$ac_delim
20916pdfdir!$pdfdir$ac_delim
20917psdir!$psdir$ac_delim
20918libdir!$libdir$ac_delim
20919localedir!$localedir$ac_delim
20920mandir!$mandir$ac_delim
20921DEFS!$DEFS$ac_delim
20922ECHO_C!$ECHO_C$ac_delim
20923ECHO_N!$ECHO_N$ac_delim
20924ECHO_T!$ECHO_T$ac_delim
20925LIBS!$LIBS$ac_delim
20926build_alias!$build_alias$ac_delim
20927host_alias!$host_alias$ac_delim
20928target_alias!$target_alias$ac_delim
20929LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20930subdirs!$subdirs$ac_delim
20931build!$build$ac_delim
20932build_cpu!$build_cpu$ac_delim
20933build_vendor!$build_vendor$ac_delim
20934build_os!$build_os$ac_delim
20935host!$host$ac_delim
20936host_cpu!$host_cpu$ac_delim
20937host_vendor!$host_vendor$ac_delim
20938host_os!$host_os$ac_delim
20939target!$target$ac_delim
20940target_cpu!$target_cpu$ac_delim
20941target_vendor!$target_vendor$ac_delim
20942target_os!$target_os$ac_delim
20943OS!$OS$ac_delim
20944HOST_OS!$HOST_OS$ac_delim
20945TARGET_OS!$TARGET_OS$ac_delim
20946LINKALL!$LINKALL$ac_delim
20947NOLINKALL!$NOLINKALL$ac_delim
20948LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20949LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20950ARCH!$ARCH$ac_delim
20951ENDIAN!$ENDIAN$ac_delim
20952CC!$CC$ac_delim
20953CFLAGS!$CFLAGS$ac_delim
20954LDFLAGS!$LDFLAGS$ac_delim
20955CPPFLAGS!$CPPFLAGS$ac_delim
20956ac_ct_CC!$ac_ct_CC$ac_delim
20957EXEEXT!$EXEEXT$ac_delim
20958OBJEXT!$OBJEXT$ac_delim
20959CPP!$CPP$ac_delim
20960GREP!$GREP$ac_delim
20961EGREP!$EGREP$ac_delim
20962LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20963BUILD_CC!$BUILD_CC$ac_delim
20964BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20965BUILD_CXX!$BUILD_CXX$ac_delim
20966CVSBUILD!$CVSBUILD$ac_delim
20967ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20968ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20969DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20970ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20971EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20972DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20973DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20974JIT!$JIT$ac_delim
20975TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20976ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20977ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20978ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020979ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020980TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20981LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20982LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20983LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20984LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20985ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020986CLANGPATH!$CLANGPATH$ac_delim
20987CLANGXXPATH!$CLANGXXPATH$ac_delim
20988ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020989_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020991 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020992 break
20993 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020994 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20995echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20996 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020997 else
20998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020999 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021000done
21001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021002ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21003if test -n "$ac_eof"; then
21004 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21005 ac_eof=`expr $ac_eof + 1`
21006fi
21007
21008cat >>$CONFIG_STATUS <<_ACEOF
21009cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21010/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021012sed '
21013s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21014s/^/s,@/; s/!/@,|#_!!_#|/
21015:n
21016t n
21017s/'"$ac_delim"'$/,g/; t
21018s/$/\\/; p
21019N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21020' >>$CONFIG_STATUS <conf$$subs.sed
21021rm -f conf$$subs.sed
21022cat >>$CONFIG_STATUS <<_ACEOF
21023CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021024_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025
21026
21027ac_delim='%!_!# '
21028for ac_last_try in false false false false false :; do
21029 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021030OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021031EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21032BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21033ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21035CXX!$CXX$ac_delim
21036CXXFLAGS!$CXXFLAGS$ac_delim
21037ac_ct_CXX!$ac_ct_CXX$ac_delim
21038NM!$NM$ac_delim
21039ifGNUmake!$ifGNUmake$ac_delim
21040LN_S!$LN_S$ac_delim
21041CMP!$CMP$ac_delim
21042CP!$CP$ac_delim
21043DATE!$DATE$ac_delim
21044FIND!$FIND$ac_delim
21045MKDIR!$MKDIR$ac_delim
21046MV!$MV$ac_delim
21047RANLIB!$RANLIB$ac_delim
21048AR!$AR$ac_delim
21049RM!$RM$ac_delim
21050SED!$SED$ac_delim
21051TAR!$TAR$ac_delim
21052BINPWD!$BINPWD$ac_delim
21053GRAPHVIZ!$GRAPHVIZ$ac_delim
21054DOT!$DOT$ac_delim
21055FDP!$FDP$ac_delim
21056NEATO!$NEATO$ac_delim
21057TWOPI!$TWOPI$ac_delim
21058CIRCO!$CIRCO$ac_delim
21059GV!$GV$ac_delim
21060DOTTY!$DOTTY$ac_delim
21061PERL!$PERL$ac_delim
21062HAVE_PERL!$HAVE_PERL$ac_delim
21063INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21064INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21065INSTALL_DATA!$INSTALL_DATA$ac_delim
21066BZIP2!$BZIP2$ac_delim
21067DOXYGEN!$DOXYGEN$ac_delim
21068GROFF!$GROFF$ac_delim
21069GZIP!$GZIP$ac_delim
21070POD2HTML!$POD2HTML$ac_delim
21071POD2MAN!$POD2MAN$ac_delim
21072RUNTEST!$RUNTEST$ac_delim
21073TCLSH!$TCLSH$ac_delim
21074ZIP!$ZIP$ac_delim
21075OCAMLC!$OCAMLC$ac_delim
21076OCAMLOPT!$OCAMLOPT$ac_delim
21077OCAMLDEP!$OCAMLDEP$ac_delim
21078OCAMLDOC!$OCAMLDOC$ac_delim
21079GAS!$GAS$ac_delim
21080INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21081INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21082CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21083CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21084LIBADD_DL!$LIBADD_DL$ac_delim
21085LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21086LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21087LLVMGCC!$LLVMGCC$ac_delim
21088LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021089LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021090NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21091NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21092USE_UDIS86!$USE_UDIS86$ac_delim
21093USE_OPROFILE!$USE_OPROFILE$ac_delim
21094HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21095HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21096MMAP_FILE!$MMAP_FILE$ac_delim
21097LLVMCC1!$LLVMCC1$ac_delim
21098LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21099LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021100LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21101SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021102SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021103LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21104LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21105LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21106LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21107LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21108LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21109LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21110LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21111LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21112LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21113BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21114ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21115OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21116ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21117RPATH!$RPATH$ac_delim
21118RDYNAMIC!$RDYNAMIC$ac_delim
21119LIBOBJS!$LIBOBJS$ac_delim
21120LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021121_ACEOF
21122
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021123 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021124 break
21125 elif $ac_last_try; then
21126 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21127echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21128 { (exit 1); exit 1; }; }
21129 else
21130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21131 fi
21132done
21133
21134ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21135if test -n "$ac_eof"; then
21136 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21137 ac_eof=`expr $ac_eof + 1`
21138fi
21139
21140cat >>$CONFIG_STATUS <<_ACEOF
21141cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21142/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21143_ACEOF
21144sed '
21145s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21146s/^/s,@/; s/!/@,|#_!!_#|/
21147:n
21148t n
21149s/'"$ac_delim"'$/,g/; t
21150s/$/\\/; p
21151N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21152' >>$CONFIG_STATUS <conf$$subs.sed
21153rm -f conf$$subs.sed
21154cat >>$CONFIG_STATUS <<_ACEOF
21155:end
21156s/|#_!!_#|//g
21157CEOF$ac_eof
21158_ACEOF
21159
21160
Reid Spencera773bd52006-08-04 18:18:08 +000021161# VPATH may cause trouble with some makes, so we remove $(srcdir),
21162# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21163# trailing colons and then remove the whole line if VPATH becomes empty
21164# (actually we leave an empty line to preserve line numbers).
21165if test "x$srcdir" = x.; then
21166 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21167s/:*\$(srcdir):*/:/
21168s/:*\${srcdir}:*/:/
21169s/:*@srcdir@:*/:/
21170s/^\([^=]*=[ ]*\):*/\1/
21171s/:*$//
21172s/^[^=]*=[ ]*$//
21173}'
21174fi
21175
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021176cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021177fi # test -n "$CONFIG_FILES"
21178
Reid Spencera773bd52006-08-04 18:18:08 +000021179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021180for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021181do
21182 case $ac_tag in
21183 :[FHLC]) ac_mode=$ac_tag; continue;;
21184 esac
21185 case $ac_mode$ac_tag in
21186 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21188echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21189 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021190 :[FH]-) ac_tag=-:-;;
21191 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21192 esac
21193 ac_save_IFS=$IFS
21194 IFS=:
21195 set x $ac_tag
21196 IFS=$ac_save_IFS
21197 shift
21198 ac_file=$1
21199 shift
21200
21201 case $ac_mode in
21202 :L) ac_source=$1;;
21203 :[FH])
21204 ac_file_inputs=
21205 for ac_f
21206 do
21207 case $ac_f in
21208 -) ac_f="$tmp/stdin";;
21209 *) # Look for the file first in the build tree, then in the source tree
21210 # (if the path is not absolute). The absolute path cannot be DOS-style,
21211 # because $ac_f cannot contain `:'.
21212 test -f "$ac_f" ||
21213 case $ac_f in
21214 [\\/$]*) false;;
21215 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21216 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021217 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21218echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21219 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021220 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021221 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021222 done
21223
21224 # Let's still pretend it is `configure' which instantiates (i.e., don't
21225 # use $as_me), people would be surprised to read:
21226 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021227 configure_input="Generated from "`IFS=:
21228 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021229 if test x"$ac_file" != x-; then
21230 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231 { echo "$as_me:$LINENO: creating $ac_file" >&5
21232echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021233 fi
21234
21235 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021237 esac
21238 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021239 esac
21240
Reid Spencera773bd52006-08-04 18:18:08 +000021241 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021243 X"$ac_file" : 'X\(//\)[^/]' \| \
21244 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021245 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021246echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21248 s//\1/
21249 q
21250 }
21251 /^X\(\/\/\)[^/].*/{
21252 s//\1/
21253 q
21254 }
21255 /^X\(\/\/\)$/{
21256 s//\1/
21257 q
21258 }
21259 /^X\(\/\).*/{
21260 s//\1/
21261 q
21262 }
21263 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021264 { as_dir="$ac_dir"
21265 case $as_dir in #(
21266 -*) as_dir=./$as_dir;;
21267 esac
21268 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21269 as_dirs=
21270 while :; do
21271 case $as_dir in #(
21272 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21273 *) as_qdir=$as_dir;;
21274 esac
21275 as_dirs="'$as_qdir' $as_dirs"
21276 as_dir=`$as_dirname -- "$as_dir" ||
21277$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21278 X"$as_dir" : 'X\(//\)[^/]' \| \
21279 X"$as_dir" : 'X\(//\)$' \| \
21280 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21281echo X"$as_dir" |
21282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21283 s//\1/
21284 q
21285 }
21286 /^X\(\/\/\)[^/].*/{
21287 s//\1/
21288 q
21289 }
21290 /^X\(\/\/\)$/{
21291 s//\1/
21292 q
21293 }
21294 /^X\(\/\).*/{
21295 s//\1/
21296 q
21297 }
21298 s/.*/./; q'`
21299 test -d "$as_dir" && break
21300 done
21301 test -z "$as_dirs" || eval "mkdir $as_dirs"
21302 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21303echo "$as_me: error: cannot create directory $as_dir" >&2;}
21304 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021305 ac_builddir=.
21306
Reid Spencera773bd52006-08-04 18:18:08 +000021307case "$ac_dir" in
21308.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21309*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021311 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021312 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021313 case $ac_top_builddir_sub in
21314 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21315 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21316 esac ;;
21317esac
21318ac_abs_top_builddir=$ac_pwd
21319ac_abs_builddir=$ac_pwd$ac_dir_suffix
21320# for backward compatibility:
21321ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021322
21323case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021324 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021325 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021326 ac_top_srcdir=$ac_top_builddir_sub
21327 ac_abs_top_srcdir=$ac_pwd ;;
21328 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021329 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021330 ac_top_srcdir=$srcdir
21331 ac_abs_top_srcdir=$srcdir ;;
21332 *) # Relative name.
21333 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21334 ac_top_srcdir=$ac_top_build_prefix$srcdir
21335 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021336esac
Reid Spencera773bd52006-08-04 18:18:08 +000021337ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021338
John Criswell7a73b802003-06-30 21:59:07 +000021339
Reid Spencera773bd52006-08-04 18:18:08 +000021340 case $ac_mode in
21341 :F)
21342 #
21343 # CONFIG_FILE
21344 #
John Criswell7a73b802003-06-30 21:59:07 +000021345
21346 case $INSTALL in
21347 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021348 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021349 esac
John Criswell7a73b802003-06-30 21:59:07 +000021350_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021352cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021353# If the template does not know about datarootdir, expand it.
21354# FIXME: This hack should be removed a few years after 2.60.
21355ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021356
21357case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021358 p
21359 q
21360}
21361/@datadir@/p
21362/@docdir@/p
21363/@infodir@/p
21364/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021365/@mandir@/p
21366' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021367*datarootdir*) ac_datarootdir_seen=yes;;
21368*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021369 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21370echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021371_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021372cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021373 ac_datarootdir_hack='
21374 s&@datadir@&$datadir&g
21375 s&@docdir@&$docdir&g
21376 s&@infodir@&$infodir&g
21377 s&@localedir@&$localedir&g
21378 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021380esac
21381_ACEOF
21382
21383# Neutralize VPATH when `$srcdir' = `.'.
21384# Shell code in configure.ac might set extrasub.
21385# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021386cat >>$CONFIG_STATUS <<_ACEOF
21387 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021388$extrasub
21389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021390cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021391:t
21392/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021393s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021394s&@top_builddir@&$ac_top_builddir_sub&;t t
21395s&@srcdir@&$ac_srcdir&;t t
21396s&@abs_srcdir@&$ac_abs_srcdir&;t t
21397s&@top_srcdir@&$ac_top_srcdir&;t t
21398s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21399s&@builddir@&$ac_builddir&;t t
21400s&@abs_builddir@&$ac_abs_builddir&;t t
21401s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21402s&@INSTALL@&$ac_INSTALL&;t t
21403$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021404" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021405
Reid Spencera773bd52006-08-04 18:18:08 +000021406test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21407 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21408 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021409 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021410which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021411echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021412which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021413
Reid Spencera773bd52006-08-04 18:18:08 +000021414 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021415 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416 -) cat "$tmp/out"; rm -f "$tmp/out";;
21417 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21418 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021419 ;;
21420 :H)
21421 #
21422 # CONFIG_HEADER
21423 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021424_ACEOF
21425
21426# Transform confdefs.h into a sed script `conftest.defines', that
21427# substitutes the proper values into config.h.in to produce config.h.
21428rm -f conftest.defines conftest.tail
21429# First, append a space to every undef/define line, to ease matching.
21430echo 's/$/ /' >conftest.defines
21431# Then, protect against being on the right side of a sed subst, or in
21432# an unquoted here document, in config.status. If some macros were
21433# called several times there might be several #defines for the same
21434# symbol, which is useless. But do not sort them, since the last
21435# AC_DEFINE must be honored.
21436ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21437# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21438# NAME is the cpp macro being defined, VALUE is the value it is being given.
21439# PARAMS is the parameter list in the macro definition--in most cases, it's
21440# just an empty string.
21441ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21442ac_dB='\\)[ (].*,\\1define\\2'
21443ac_dC=' '
21444ac_dD=' ,'
21445
21446uniq confdefs.h |
21447 sed -n '
21448 t rset
21449 :rset
21450 s/^[ ]*#[ ]*define[ ][ ]*//
21451 t ok
21452 d
21453 :ok
21454 s/[\\&,]/\\&/g
21455 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21456 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21457 ' >>conftest.defines
21458
21459# Remove the space that was appended to ease matching.
21460# Then replace #undef with comments. This is necessary, for
21461# example, in the case of _POSIX_SOURCE, which is predefined and required
21462# on some systems where configure will not decide to define it.
21463# (The regexp can be short, since the line contains either #define or #undef.)
21464echo 's/ $//
21465s,^[ #]*u.*,/* & */,' >>conftest.defines
21466
21467# Break up conftest.defines:
21468ac_max_sed_lines=50
21469
21470# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21471# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21472# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21473# et cetera.
21474ac_in='$ac_file_inputs'
21475ac_out='"$tmp/out1"'
21476ac_nxt='"$tmp/out2"'
21477
21478while :
21479do
21480 # Write a here document:
21481 cat >>$CONFIG_STATUS <<_ACEOF
21482 # First, check the format of the line:
21483 cat >"\$tmp/defines.sed" <<\\CEOF
21484/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21485/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21486b
21487:def
21488_ACEOF
21489 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21490 echo 'CEOF
21491 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21492 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21493 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21494 grep . conftest.tail >/dev/null || break
21495 rm -f conftest.defines
21496 mv conftest.tail conftest.defines
21497done
21498rm -f conftest.defines conftest.tail
21499
21500echo "ac_result=$ac_in" >>$CONFIG_STATUS
21501cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021502 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503 echo "/* $configure_input */" >"$tmp/config.h"
21504 cat "$ac_result" >>"$tmp/config.h"
21505 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21506 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21507echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021508 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509 rm -f $ac_file
21510 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021511 fi
21512 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513 echo "/* $configure_input */"
21514 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021515 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021517 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21520echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021521 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021522 esac
John Criswell7a73b802003-06-30 21:59:07 +000021523
Reid Spencera773bd52006-08-04 18:18:08 +000021524
21525 case $ac_file$ac_mode in
21526 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021528 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021530 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021532 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021534 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021535 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021536 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021537 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021538 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021539 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021540 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021541 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021542 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021543 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021544 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021545 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021546 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021547 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021548 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021549 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021550 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021551 ${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 +000021552
21553 esac
21554done # for ac_tag
21555
John Criswell7a73b802003-06-30 21:59:07 +000021556
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021557{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021559chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021560ac_clean_files=$ac_clean_files_save
21561
21562
21563# configure is writing to config.log, and then calls config.status.
21564# config.status does its own redirection, appending to config.log.
21565# Unfortunately, on DOS this fails, as config.log is still kept open
21566# by configure, so config.status won't be able to write to it; its
21567# output is simply discarded. So we exec the FD to /dev/null,
21568# effectively closing config.log, so it can be properly (re)opened and
21569# appended to by config.status. When coming back to configure, we
21570# need to make the FD available again.
21571if test "$no_create" != yes; then
21572 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021573 ac_config_status_args=
21574 test "$silent" = yes &&
21575 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021576 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021578 exec 5>>config.log
21579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21580 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021581 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021582fi
21583
John Criswell12399a12003-09-30 15:55:44 +000021584#
21585# CONFIG_SUBDIRS section.
21586#
21587if test "$no_recursion" != yes; then
21588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021589 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021590 ac_sub_configure_args=
21591 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021592 eval "set x $ac_configure_args"
21593 shift
21594 for ac_arg
21595 do
John Criswell12399a12003-09-30 15:55:44 +000021596 if test -n "$ac_prev"; then
21597 ac_prev=
21598 continue
21599 fi
21600 case $ac_arg in
21601 -cache-file | --cache-file | --cache-fil | --cache-fi \
21602 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21603 ac_prev=cache_file ;;
21604 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21605 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21606 | --c=*)
21607 ;;
21608 --config-cache | -C)
21609 ;;
21610 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21611 ac_prev=srcdir ;;
21612 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21613 ;;
21614 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21615 ac_prev=prefix ;;
21616 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021618 *)
21619 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021620 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021621 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021622 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021623 esac
21624 done
21625
21626 # Always prepend --prefix to ensure using the same prefix
21627 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021628 ac_arg="--prefix=$prefix"
21629 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021630 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021631 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021632 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021633
21634 ac_popdir=`pwd`
21635 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21636
21637 # Do not complain, so a configure script can configure whichever
21638 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021639 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021640
Reid Spencera773bd52006-08-04 18:18:08 +000021641 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021642 echo "$as_me:$LINENO: $ac_msg" >&5
21643 echo "$ac_msg" >&6
21644 { as_dir="$ac_dir"
21645 case $as_dir in #(
21646 -*) as_dir=./$as_dir;;
21647 esac
21648 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21649 as_dirs=
21650 while :; do
21651 case $as_dir in #(
21652 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21653 *) as_qdir=$as_dir;;
21654 esac
21655 as_dirs="'$as_qdir' $as_dirs"
21656 as_dir=`$as_dirname -- "$as_dir" ||
21657$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21658 X"$as_dir" : 'X\(//\)[^/]' \| \
21659 X"$as_dir" : 'X\(//\)$' \| \
21660 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21661echo X"$as_dir" |
21662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21663 s//\1/
21664 q
21665 }
21666 /^X\(\/\/\)[^/].*/{
21667 s//\1/
21668 q
21669 }
21670 /^X\(\/\/\)$/{
21671 s//\1/
21672 q
21673 }
21674 /^X\(\/\).*/{
21675 s//\1/
21676 q
21677 }
21678 s/.*/./; q'`
21679 test -d "$as_dir" && break
21680 done
21681 test -z "$as_dirs" || eval "mkdir $as_dirs"
21682 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21683echo "$as_me: error: cannot create directory $as_dir" >&2;}
21684 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021685 ac_builddir=.
21686
Reid Spencera773bd52006-08-04 18:18:08 +000021687case "$ac_dir" in
21688.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21689*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021690 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021691 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021692 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021693 case $ac_top_builddir_sub in
21694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21696 esac ;;
21697esac
21698ac_abs_top_builddir=$ac_pwd
21699ac_abs_builddir=$ac_pwd$ac_dir_suffix
21700# for backward compatibility:
21701ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021702
21703case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021704 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021705 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021706 ac_top_srcdir=$ac_top_builddir_sub
21707 ac_abs_top_srcdir=$ac_pwd ;;
21708 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021709 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021710 ac_top_srcdir=$srcdir
21711 ac_abs_top_srcdir=$srcdir ;;
21712 *) # Relative name.
21713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21714 ac_top_srcdir=$ac_top_build_prefix$srcdir
21715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021716esac
Reid Spencera773bd52006-08-04 18:18:08 +000021717ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021718
21719
Reid Spencera773bd52006-08-04 18:18:08 +000021720 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021721
21722 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021723 if test -f "$ac_srcdir/configure.gnu"; then
21724 ac_sub_configure=$ac_srcdir/configure.gnu
21725 elif test -f "$ac_srcdir/configure"; then
21726 ac_sub_configure=$ac_srcdir/configure
21727 elif test -f "$ac_srcdir/configure.in"; then
21728 # This should be Cygnus configure.
21729 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021730 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021731 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21732echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021733 ac_sub_configure=
21734 fi
21735
21736 # The recursion is here.
21737 if test -n "$ac_sub_configure"; then
21738 # Make the cache file name correct relative to the subdirectory.
21739 case $cache_file in
21740 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021741 *) # Relative name.
21742 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021743 esac
21744
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021745 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21746echo "$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 +000021747 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021748 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21749 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021750 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21751echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21752 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021753 fi
21754
Reid Spencera773bd52006-08-04 18:18:08 +000021755 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021756 done
21757fi
21758