blob: 973899a258346129c1073497ae92b0fb2ba72108 [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
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Tanya 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'
Reid Spencera773bd52006-08-04 18:18:08 +0000805ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000806projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000807projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000808projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000809projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000810projects/llvm-reopt
811projects/llvm-gcc
812projects/llvm-java
813projects/llvm-tv
814projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000815projects/poolalloc
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 Criswell33a911a2003-11-25 20:36:46 +00001954for i in `ls ${srcdir}/projects`
1955do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001956 if test -d ${srcdir}/projects/${i} ; then
1957 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001958 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001959 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001960 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001961 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001962 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001963 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001964 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00001965 # llvm-test is the old name of the test-suite, kept here for backwards
1966 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00001967 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00001968 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00001969 test-suite) subdirs="$subdirs projects/test-suite"
1970 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001971 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001972;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001973 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001974 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001975 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001976 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001977 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001978 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001979 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001980 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00001981 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00001982 ;;
John Criswell7def2932010-02-25 22:57:19 +00001983 safecode) subdirs="$subdirs projects/safecode"
1984 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001985 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00001986 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001987 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001988 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1989echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001990 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001991 esac
John Criswell33a911a2003-11-25 20:36:46 +00001992 fi
1993done
John Criswell559a6c12003-09-30 16:31:48 +00001994
John Criswell7a73b802003-06-30 21:59:07 +00001995
1996# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00001997$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001998 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1999echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2000 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002001
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002002{ echo "$as_me:$LINENO: checking build system type" >&5
2003echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2004if test "${ac_cv_build+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002006else
Reid Spencera773bd52006-08-04 18:18:08 +00002007 ac_build_alias=$build_alias
2008test "x$ac_build_alias" = x &&
2009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2010test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002011 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2012echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2013 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002015 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2016echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2017 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002018
2019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002020{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2021echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002022case $ac_cv_build in
2023*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002024*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2025echo "$as_me: error: invalid value of canonical build" >&2;}
2026 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002027esac
John Criswell7a73b802003-06-30 21:59:07 +00002028build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002029ac_save_IFS=$IFS; IFS='-'
2030set x $ac_cv_build
2031shift
2032build_cpu=$1
2033build_vendor=$2
2034shift; shift
2035# Remember, the first character of IFS is used to create $*,
2036# except with old shells:
2037build_os=$*
2038IFS=$ac_save_IFS
2039case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002040
2041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002042{ echo "$as_me:$LINENO: checking host system type" >&5
2043echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2044if test "${ac_cv_host+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002046else
Reid Spencera773bd52006-08-04 18:18:08 +00002047 if test "x$host_alias" = x; then
2048 ac_cv_host=$ac_cv_build
2049else
2050 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002051 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2052echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2053 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002054fi
John Criswell7a73b802003-06-30 21:59:07 +00002055
2056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002057{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2058echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002059case $ac_cv_host in
2060*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2062echo "$as_me: error: invalid value of canonical host" >&2;}
2063 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002064esac
John Criswell7a73b802003-06-30 21:59:07 +00002065host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002066ac_save_IFS=$IFS; IFS='-'
2067set x $ac_cv_host
2068shift
2069host_cpu=$1
2070host_vendor=$2
2071shift; shift
2072# Remember, the first character of IFS is used to create $*,
2073# except with old shells:
2074host_os=$*
2075IFS=$ac_save_IFS
2076case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002077
2078
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002079{ echo "$as_me:$LINENO: checking target system type" >&5
2080echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2081if test "${ac_cv_target+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002083else
Reid Spencera773bd52006-08-04 18:18:08 +00002084 if test "x$target_alias" = x; then
2085 ac_cv_target=$ac_cv_host
2086else
2087 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002088 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2089echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2090 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002091fi
John Criswell7a73b802003-06-30 21:59:07 +00002092
2093fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002094{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2095echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002096case $ac_cv_target in
2097*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2099echo "$as_me: error: invalid value of canonical target" >&2;}
2100 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002101esac
John Criswell7a73b802003-06-30 21:59:07 +00002102target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002103ac_save_IFS=$IFS; IFS='-'
2104set x $ac_cv_target
2105shift
2106target_cpu=$1
2107target_vendor=$2
2108shift; shift
2109# Remember, the first character of IFS is used to create $*,
2110# except with old shells:
2111target_os=$*
2112IFS=$ac_save_IFS
2113case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002114
2115
2116# The aliases save the names the user supplied, while $host etc.
2117# will get canonicalized.
2118test -n "$target_alias" &&
2119 test "$program_prefix$program_suffix$program_transform_name" = \
2120 NONENONEs,x,x, &&
2121 program_prefix=${target_alias}-
2122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002123{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2124echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2125if test "${llvm_cv_os_type+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002127else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002128 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002129 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002130 llvm_cv_link_all_option="-Wl,--whole-archive"
2131 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002132 llvm_cv_os_type="AIX"
2133 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002134 *-*-irix*)
2135 llvm_cv_link_all_option="-Wl,--whole-archive"
2136 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2137 llvm_cv_os_type="IRIX"
2138 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002139 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002140 llvm_cv_link_all_option="-Wl,--whole-archive"
2141 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002142 llvm_cv_os_type="Cygwin"
2143 llvm_cv_platform_type="Unix" ;;
2144 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002145 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002146 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002147 llvm_cv_os_type="Darwin"
2148 llvm_cv_platform_type="Unix" ;;
2149 *-*-freebsd*)
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="FreeBSD"
2153 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002154 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002157 llvm_cv_os_type="OpenBSD"
2158 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002159 *-*-netbsd*)
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="NetBSD"
2163 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002164 *-*-dragonfly*)
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="DragonFly"
2168 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002169 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002170 llvm_cv_link_all_option="-Wl,--whole-archive"
2171 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002172 llvm_cv_os_type="HP-UX"
2173 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002174 *-*-interix*)
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="Interix"
2178 llvm_cv_platform_type="Unix" ;;
2179 *-*-linux*)
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 Spencer7b3e8512004-12-24 06:29:05 +00002182 llvm_cv_os_type="Linux"
2183 llvm_cv_platform_type="Unix" ;;
2184 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002185 llvm_cv_link_all_option="-Wl,-z,allextract"
2186 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002187 llvm_cv_os_type="SunOS"
2188 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002189 *-*-auroraux*)
2190 llvm_cv_link_all_option="-Wl,-z,allextract"
2191 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2192 llvm_cv_os_type="AuroraUX"
2193 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002194 *-*-win32*)
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"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002197 llvm_cv_os_type="Win32"
2198 llvm_cv_platform_type="Win32" ;;
2199 *-*-mingw*)
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="MingW"
2203 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002204 *-*-haiku*)
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Haiku"
2208 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002209 *-unknown-eabi*)
2210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212 llvm_cv_os_type="Freestanding"
2213 llvm_cv_platform_type="Unix" ;;
2214 *-unknown-elf*)
2215 llvm_cv_link_all_option="-Wl,--whole-archive"
2216 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2217 llvm_cv_os_type="Freestanding"
2218 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002219 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002220 llvm_cv_link_all_option=""
2221 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 llvm_cv_os_type="Unknown"
2223 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002224esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002226{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2227echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002229{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2230echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2231if test "${llvm_cv_target_os_type+set}" = set; then
2232 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002233else
2234 case $target in
2235 *-*-aix*)
2236 llvm_cv_target_os_type="AIX" ;;
2237 *-*-irix*)
2238 llvm_cv_target_os_type="IRIX" ;;
2239 *-*-cygwin*)
2240 llvm_cv_target_os_type="Cygwin" ;;
2241 *-*-darwin*)
2242 llvm_cv_target_os_type="Darwin" ;;
2243 *-*-freebsd*)
2244 llvm_cv_target_os_type="FreeBSD" ;;
2245 *-*-openbsd*)
2246 llvm_cv_target_os_type="OpenBSD" ;;
2247 *-*-netbsd*)
2248 llvm_cv_target_os_type="NetBSD" ;;
2249 *-*-dragonfly*)
2250 llvm_cv_target_os_type="DragonFly" ;;
2251 *-*-hpux*)
2252 llvm_cv_target_os_type="HP-UX" ;;
2253 *-*-interix*)
2254 llvm_cv_target_os_type="Interix" ;;
2255 *-*-linux*)
2256 llvm_cv_target_os_type="Linux" ;;
2257 *-*-solaris*)
2258 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002259 *-*-auroraux*)
2260 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002261 *-*-win32*)
2262 llvm_cv_target_os_type="Win32" ;;
2263 *-*-mingw*)
2264 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002265 *-*-haiku*)
2266 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002267 *-unknown-eabi*)
2268 llvm_cv_target_os_type="Freestanding" ;;
2269 *)
2270 llvm_cv_target_os_type="Unknown" ;;
2271esac
2272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002273{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2274echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002275
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002277 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2278echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2279 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002280fi
2281
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002283
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002284HOST_OS=$llvm_cv_os_type
2285
2286TARGET_OS=$llvm_cv_target_os_type
2287
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002288
Reid Spencera773bd52006-08-04 18:18:08 +00002289LINKALL=$llvm_cv_link_all_option
2290
2291NOLINKALL=$llvm_cv_no_link_all_option
2292
2293
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294case $llvm_cv_platform_type in
2295 Unix)
2296
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002297cat >>confdefs.h <<\_ACEOF
2298#define LLVM_ON_UNIX 1
2299_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002300
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002301 LLVM_ON_UNIX=1
2302
2303 LLVM_ON_WIN32=0
2304
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305 ;;
2306 Win32)
2307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002308cat >>confdefs.h <<\_ACEOF
2309#define LLVM_ON_WIN32 1
2310_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002312 LLVM_ON_UNIX=0
2313
2314 LLVM_ON_WIN32=1
2315
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 ;;
2317esac
2318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002319{ echo "$as_me:$LINENO: checking target architecture" >&5
2320echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2321if test "${llvm_cv_target_arch+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002323else
2324 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002325 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002326 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002327 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2328 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002329 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002330 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002331 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002332 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002333 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002334 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002335 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002336 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002337 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002338 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002339esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002340fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2342echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002343
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2346echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002347fi
John Criswell76595452003-07-01 22:07:39 +00002348
Nick Lewycky83fc4472009-09-29 05:48:51 +00002349# Determine the LLVM native architecture for the target
2350case "$llvm_cv_target_arch" in
2351 x86) LLVM_NATIVE_ARCH="X86" ;;
2352 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2353 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2354esac
2355
2356ARCH=$llvm_cv_target_arch
2357
2358
2359ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002364if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2366set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369if test "${ac_cv_prog_CC+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371else
2372 if test -n "$CC"; then
2373 ac_cv_prog_CC="$CC" # Let the user override the test.
2374else
2375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376for as_dir in $PATH
2377do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 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 +00002382 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384 break 2
2385 fi
2386done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002387done
Reid Spencera773bd52006-08-04 18:18:08 +00002388IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389
2390fi
2391fi
2392CC=$ac_cv_prog_CC
2393if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394 { echo "$as_me:$LINENO: result: $CC" >&5
2395echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002397 { echo "$as_me:$LINENO: result: no" >&5
2398echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399fi
2400
Reid Spencera773bd52006-08-04 18:18:08 +00002401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402fi
2403if test -z "$ac_cv_prog_CC"; then
2404 ac_ct_CC=$CC
2405 # Extract the first word of "gcc", so it can be a program name with args.
2406set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2409if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411else
2412 if test -n "$ac_ct_CC"; then
2413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 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 +00002422 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424 break 2
2425 fi
2426done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002427done
Reid Spencera773bd52006-08-04 18:18:08 +00002428IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429
2430fi
2431fi
2432ac_ct_CC=$ac_cv_prog_ac_ct_CC
2433if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2435echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002437 { echo "$as_me:$LINENO: result: no" >&5
2438echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439fi
2440
Reid Spencera773bd52006-08-04 18:18:08 +00002441 if test "x$ac_ct_CC" = x; then
2442 CC=""
2443 else
2444 case $cross_compiling:$ac_tool_warned in
2445yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2447whose name does not start with the host triplet. If you think this
2448configuration is useful to you, please write to autoconf@gnu.org." >&5
2449echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2450whose name does not start with the host triplet. If you think this
2451configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002452ac_tool_warned=yes ;;
2453esac
2454 CC=$ac_ct_CC
2455 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456else
2457 CC="$ac_cv_prog_CC"
2458fi
2459
2460if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002461 if test -n "$ac_tool_prefix"; then
2462 # 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 +00002463set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466if test "${ac_cv_prog_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468else
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 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 +00002479 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481 break 2
2482 fi
2483done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484done
Reid Spencera773bd52006-08-04 18:18:08 +00002485IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486
2487fi
2488fi
2489CC=$ac_cv_prog_CC
2490if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491 { echo "$as_me:$LINENO: result: $CC" >&5
2492echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002494 { echo "$as_me:$LINENO: result: no" >&5
2495echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496fi
2497
Reid Spencera773bd52006-08-04 18:18:08 +00002498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500fi
2501if test -z "$CC"; then
2502 # Extract the first word of "cc", so it can be a program name with args.
2503set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512 ac_prog_rejected=no
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 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 +00002520 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2521 ac_prog_rejected=yes
2522 continue
2523 fi
2524 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526 break 2
2527 fi
2528done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002529done
Reid Spencera773bd52006-08-04 18:18:08 +00002530IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531
2532if test $ac_prog_rejected = yes; then
2533 # We found a bogon in the path, so make sure we never use it.
2534 set dummy $ac_cv_prog_CC
2535 shift
2536 if test $# != 0; then
2537 # We chose a different compiler from the bogus one.
2538 # However, it has the same basename, so the bogon will be chosen
2539 # first if we set CC to just the basename; use the full file name.
2540 shift
2541 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542 fi
2543fi
2544fi
2545fi
2546CC=$ac_cv_prog_CC
2547if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 { echo "$as_me:$LINENO: result: $CC" >&5
2549echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 { echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553fi
2554
Reid Spencera773bd52006-08-04 18:18:08 +00002555
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556fi
2557if test -z "$CC"; then
2558 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002559 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002560 do
2561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2562set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565if test "${ac_cv_prog_CC+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002567else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002570else
2571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 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 +00002578 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002580 break 2
2581 fi
2582done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002583done
Reid Spencera773bd52006-08-04 18:18:08 +00002584IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002585
2586fi
2587fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588CC=$ac_cv_prog_CC
2589if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590 { echo "$as_me:$LINENO: result: $CC" >&5
2591echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002592else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593 { echo "$as_me:$LINENO: result: no" >&5
2594echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002595fi
2596
Reid Spencera773bd52006-08-04 18:18:08 +00002597
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002599 done
2600fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601if test -z "$CC"; then
2602 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002603 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002604do
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002611else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612 if test -n "$ac_ct_CC"; then
2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 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 +00002622 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002624 break 2
2625 fi
2626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627done
Reid Spencera773bd52006-08-04 18:18:08 +00002628IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002629
2630fi
2631fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002637 { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002639fi
2640
Reid Spencera773bd52006-08-04 18:18:08 +00002641
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002643done
John Criswell7a73b802003-06-30 21:59:07 +00002644
Reid Spencera773bd52006-08-04 18:18:08 +00002645 if test "x$ac_ct_CC" = x; then
2646 CC=""
2647 else
2648 case $cross_compiling:$ac_tool_warned in
2649yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651whose name does not start with the host triplet. If you think this
2652configuration is useful to you, please write to autoconf@gnu.org." >&5
2653echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2654whose name does not start with the host triplet. If you think this
2655configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002656ac_tool_warned=yes ;;
2657esac
2658 CC=$ac_ct_CC
2659 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660fi
2661
John Criswell7a73b802003-06-30 21:59:07 +00002662fi
2663
2664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002665test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2666See \`config.log' for more details." >&5
2667echo "$as_me: error: no acceptable C compiler found in \$PATH
2668See \`config.log' for more details." >&2;}
2669 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670
John Criswell7a73b802003-06-30 21:59:07 +00002671# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002672echo "$as_me:$LINENO: checking for C compiler version" >&5
2673ac_compiler=`set X $ac_compile; echo $2`
2674{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002675case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002681 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }
2684{ (ac_try="$ac_compiler -v >&5"
2685case "(($ac_try" in
2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2688esac
2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_compiler -v >&5") 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }
2694{ (ac_try="$ac_compiler -V >&5"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler -V >&5") 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705cat >conftest.$ac_ext <<_ACEOF
2706/* confdefs.h. */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002711
John Criswell7a73b802003-06-30 21:59:07 +00002712int
2713main ()
2714{
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002721ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002722# Try to create an executable without -o first, disregard a.out.
2723# It will help us diagnose broken compilers, and finding out an intuition
2724# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002725{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2726echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2727ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2728#
2729# List of possible output files, starting from the most likely.
2730# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2731# only as a last resort. b.out is created by i960 compilers.
2732ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2733#
2734# The IRIX 6 linker writes into existing files which may not be
2735# executable, retaining their permissions. Remove them first so a
2736# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002737ac_rmfiles=
2738for ac_file in $ac_files
2739do
2740 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002742 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2743 esac
2744done
2745rm -f $ac_rmfiles
2746
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002748case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002753 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002754 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2758# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2759# in a Makefile. We should not override ac_cv_exeext if it was cached,
2760# so that the user can short-circuit this test for compilers unknown to
2761# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002762for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002763do
2764 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002765 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002767 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002768 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002769 # We found the default executable, but exeext='' is most
2770 # certainly right.
2771 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002772 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002774 then :; else
2775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2776 fi
2777 # We set ac_cv_exeext here because the later test for it is not
2778 # safe: cross compilers may not add the suffix if given an `-o'
2779 # argument, so we may need to know it at that point already.
2780 # Even if this section looks crufty: it has the advantage of
2781 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002782 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002783 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002784 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002785 esac
2786done
Reid Spencera773bd52006-08-04 18:18:08 +00002787test "$ac_cv_exeext" = no && ac_cv_exeext=
2788
John Criswell7a73b802003-06-30 21:59:07 +00002789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002791sed 's/^/| /' conftest.$ac_ext >&5
2792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002793{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2794See \`config.log' for more details." >&5
2795echo "$as_me: error: C compiler cannot create executables
2796See \`config.log' for more details." >&2;}
2797 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002798fi
John Criswell7a73b802003-06-30 21:59:07 +00002799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800ac_exeext=$ac_cv_exeext
2801{ echo "$as_me:$LINENO: result: $ac_file" >&5
2802echo "${ECHO_T}$ac_file" >&6; }
2803
2804# Check that the compiler produces executables we can run. If not, either
2805# the compiler is broken, or we cross compile.
2806{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2807echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2808# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2809# If not cross compiling, check that we can run a simple program.
2810if test "$cross_compiling" != yes; then
2811 if { ac_try='./$ac_file'
2812 { (case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
2816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_try") 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; }; then
2821 cross_compiling=no
2822 else
2823 if test "$cross_compiling" = maybe; then
2824 cross_compiling=yes
2825 else
2826 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2827If you meant to cross compile, use \`--host'.
2828See \`config.log' for more details." >&5
2829echo "$as_me: error: cannot run C compiled programs.
2830If you meant to cross compile, use \`--host'.
2831See \`config.log' for more details." >&2;}
2832 { (exit 1); exit 1; }; }
2833 fi
2834 fi
2835fi
2836{ echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6; }
2838
2839rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002840ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002841# Check that the compiler produces executables we can run. If not, either
2842# the compiler is broken, or we cross compile.
2843{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2844echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2845{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2846echo "${ECHO_T}$cross_compiling" >&6; }
2847
2848{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2849echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2850if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002851case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002856 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002857 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2861# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2862# work properly (i.e., refer to `conftest.exe'), while it won't with
2863# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002864for ac_file in conftest.exe conftest conftest.*; do
2865 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002866 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002869 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002870 * ) break;;
2871 esac
2872done
2873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2875See \`config.log' for more details." >&5
2876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2877See \`config.log' for more details." >&2;}
2878 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002879fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002880
2881rm -f conftest$ac_cv_exeext
2882{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2883echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002884
2885rm -f conftest.$ac_ext
2886EXEEXT=$ac_cv_exeext
2887ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002888{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2890if test "${ac_cv_objext+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002893 cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h. */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002899
John Criswell7a73b802003-06-30 21:59:07 +00002900int
2901main ()
2902{
2903
2904 ;
2905 return 0;
2906}
2907_ACEOF
2908rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002909if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002910case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002915 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002916 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002919 for ac_file in conftest.o conftest.obj conftest.*; do
2920 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002921 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002923 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2924 break;;
2925 esac
2926done
2927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002928 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002929sed 's/^/| /' conftest.$ac_ext >&5
2930
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002931{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2932See \`config.log' for more details." >&5
2933echo "$as_me: error: cannot compute suffix of object files: cannot compile
2934See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937
John Criswell7a73b802003-06-30 21:59:07 +00002938rm -f conftest.$ac_cv_objext conftest.$ac_ext
2939fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2941echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002942OBJEXT=$ac_cv_objext
2943ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2945echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2946if test "${ac_cv_c_compiler_gnu+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 cat >conftest.$ac_ext <<_ACEOF
2950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002954/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002955
John Criswell7a73b802003-06-30 21:59:07 +00002956int
2957main ()
2958{
2959#ifndef __GNUC__
2960 choke me
2961#endif
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002967rm -f conftest.$ac_objext
2968if { (ac_try="$ac_compile"
2969case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995esac
2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003001 ac_compiler_gnu=yes
3002else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003003 echo "$as_me: failed program was:" >&5
3004sed 's/^/| /' conftest.$ac_ext >&5
3005
3006 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003007fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003008
Reid Spencera773bd52006-08-04 18:18:08 +00003009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003010ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003011
3012fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003013{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3014echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3015GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003016ac_test_CFLAGS=${CFLAGS+set}
3017ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003018{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3019echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3020if test "${ac_cv_prog_cc_g+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003022else
Reid Spencera773bd52006-08-04 18:18:08 +00003023 ac_save_c_werror_flag=$ac_c_werror_flag
3024 ac_c_werror_flag=yes
3025 ac_cv_prog_cc_g=no
3026 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003027 cat >conftest.$ac_ext <<_ACEOF
3028/* confdefs.h. */
3029_ACEOF
3030cat confdefs.h >>conftest.$ac_ext
3031cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003033
John Criswell7a73b802003-06-30 21:59:07 +00003034int
3035main ()
3036{
3037
3038 ;
3039 return 0;
3040}
3041_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003042rm -f conftest.$ac_objext
3043if { (ac_try="$ac_compile"
3044case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
3071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003076 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003077else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003078 echo "$as_me: failed program was:" >&5
3079sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 CFLAGS=""
3082 cat >conftest.$ac_ext <<_ACEOF
3083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003087/* end confdefs.h. */
3088
3089int
3090main ()
3091{
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003097rm -f conftest.$ac_objext
3098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3105 ac_status=$?
3106 grep -v '^ *+' conftest.er1 >conftest.err
3107 rm -f conftest.er1
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115esac
3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125esac
3126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_try") 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3131 :
Torok Edwin871384f2010-01-26 08:50:50 +00003132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003133 echo "$as_me: failed program was:" >&5
3134sed 's/^/| /' conftest.$ac_ext >&5
3135
3136 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003137 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003138 cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h. */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003143/* end confdefs.h. */
3144
3145int
3146main ()
3147{
3148
3149 ;
3150 return 0;
3151}
3152_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003153rm -f conftest.$ac_objext
3154if { (ac_try="$ac_compile"
3155case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compile") 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171esac
3172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3184 ac_status=$?
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003187 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003188else
3189 echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
John Criswell7a73b802003-06-30 21:59:07 +00003193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003194
Reid Spencera773bd52006-08-04 18:18:08 +00003195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003197
Reid Spencera773bd52006-08-04 18:18:08 +00003198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003200
Reid Spencera773bd52006-08-04 18:18:08 +00003201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3203fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003204{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003206if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3210 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003211 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003213 fi
3214else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215 if test "$GCC" = yes; then
3216 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003217 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003218 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003219 fi
3220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223if test "${ac_cv_prog_cc_c89+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003225else
Reid Spencera773bd52006-08-04 18:18:08 +00003226 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003227ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003228cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h. */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233/* end confdefs.h. */
3234#include <stdarg.h>
3235#include <stdio.h>
3236#include <sys/types.h>
3237#include <sys/stat.h>
3238/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239struct buf { int x; };
3240FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241static char *e (p, i)
3242 char **p;
3243 int i;
3244{
3245 return p[i];
3246}
3247static char *f (char * (*g) (char **, int), char **p, ...)
3248{
3249 char *s;
3250 va_list v;
3251 va_start (v,p);
3252 s = g (p, va_arg (v,int));
3253 va_end (v);
3254 return s;
3255}
3256
3257/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003260 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003263 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3265
Reid Spencera773bd52006-08-04 18:18:08 +00003266/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3268#define FOO(x) 'x'
3269int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3270
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271int test (int i, double x);
3272struct s1 {int (*f) (int a);};
3273struct s2 {int (*f) (double a);};
3274int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275int argc;
3276char **argv;
3277int
3278main ()
3279{
3280return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 ;
3282 return 0;
3283}
3284_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003285for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287do
3288 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003289 rm -f conftest.$ac_objext
3290if { (ac_try="$ac_compile"
3291case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294esac
3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304 { (case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307esac
3308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_try") 2>&5
3310 ac_status=$?
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); }; } &&
3313 { ac_try='test -s conftest.$ac_objext'
3314 { (case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_try") 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003323 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003324else
3325 echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
3328
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003330
Reid Spencera773bd52006-08-04 18:18:08 +00003331rm -f core conftest.err conftest.$ac_objext
3332 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333done
Reid Spencera773bd52006-08-04 18:18:08 +00003334rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335CC=$ac_save_CC
3336
3337fi
Reid Spencera773bd52006-08-04 18:18:08 +00003338# AC_CACHE_VAL
3339case "x$ac_cv_prog_cc_c89" in
3340 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003341 { echo "$as_me:$LINENO: result: none needed" >&5
3342echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003343 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003344 { echo "$as_me:$LINENO: result: unsupported" >&5
3345echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003346 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003347 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003348 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3349echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350esac
3351
John Criswell0c38eaf2003-09-10 15:17:25 +00003352
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003353ac_ext=c
3354ac_cpp='$CPP $CPPFLAGS'
3355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003365{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3366echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367# On Suns, sometimes $CPP names a directory.
3368if test -n "$CPP" && test -d "$CPP"; then
3369 CPP=
3370fi
3371if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003372 if test "${ac_cv_prog_CPP+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374else
3375 # Double quotes because CPP needs to be expanded
3376 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3377 do
3378 ac_preproc_ok=false
3379for ac_c_preproc_warn_flag in '' yes
3380do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003387 cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h. */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392/* end confdefs.h. */
3393#ifdef __STDC__
3394# include <limits.h>
3395#else
3396# include <assert.h>
3397#endif
3398 Syntax error
3399_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003400if { (ac_try="$ac_cpp conftest.$ac_ext"
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3416 else
3417 ac_cpp_err=
3418 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003420 ac_cpp_err=yes
3421fi
3422if test -z "$ac_cpp_err"; then
3423 :
3424else
3425 echo "$as_me: failed program was:" >&5
3426sed 's/^/| /' conftest.$ac_ext >&5
3427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003428 # Broken: fails on valid input.
3429continue
3430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432rm -f conftest.err conftest.$ac_ext
3433
Reid Spencera773bd52006-08-04 18:18:08 +00003434 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003435 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003441/* end confdefs.h. */
3442#include <ac_nonexistent.h>
3443_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463else
3464 ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 # Broken: success on invalid input.
3468continue
3469else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003470 echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473 # Passes both tests.
3474ac_preproc_ok=:
3475break
3476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003477
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003478rm -f conftest.err conftest.$ac_ext
3479
3480done
3481# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3482rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003483if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003484 break
3485fi
3486
3487 done
3488 ac_cv_prog_CPP=$CPP
3489
3490fi
3491 CPP=$ac_cv_prog_CPP
3492else
3493 ac_cv_prog_CPP=$CPP
3494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003495{ echo "$as_me:$LINENO: result: $CPP" >&5
3496echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003497ac_preproc_ok=false
3498for ac_c_preproc_warn_flag in '' yes
3499do
3500 # Use a header file that comes with gcc, so configuring glibc
3501 # with a fresh cross-compiler works.
3502 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3503 # <limits.h> exists even on freestanding compilers.
3504 # On the NeXT, cc -E runs the code through the compiler's parser,
3505 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511/* end confdefs.h. */
3512#ifdef __STDC__
3513# include <limits.h>
3514#else
3515# include <assert.h>
3516#endif
3517 Syntax error
3518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003519if { (ac_try="$ac_cpp conftest.$ac_ext"
3520case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523esac
3524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null; then
3532 if test -s conftest.err; then
3533 ac_cpp_err=$ac_c_preproc_warn_flag
3534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535 else
3536 ac_cpp_err=
3537 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003538else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003539 ac_cpp_err=yes
3540fi
3541if test -z "$ac_cpp_err"; then
3542 :
3543else
3544 echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003547 # Broken: fails on valid input.
3548continue
3549fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003550
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003551rm -f conftest.err conftest.$ac_ext
3552
Reid Spencera773bd52006-08-04 18:18:08 +00003553 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003554 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003555 cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h. */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003560/* end confdefs.h. */
3561#include <ac_nonexistent.h>
3562_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 else
3580 ac_cpp_err=
3581 fi
3582else
3583 ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 # Broken: success on invalid input.
3587continue
3588else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003589 echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592 # Passes both tests.
3593ac_preproc_ok=:
3594break
3595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003596
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003597rm -f conftest.err conftest.$ac_ext
3598
3599done
3600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3601rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003602if $ac_preproc_ok; then
3603 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003605 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3606See \`config.log' for more details." >&5
3607echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3608See \`config.log' for more details." >&2;}
3609 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003610fi
3611
John Criswell7a73b802003-06-30 21:59:07 +00003612ac_ext=c
3613ac_cpp='$CPP $CPPFLAGS'
3614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
John Criswell7a73b802003-06-30 21:59:07 +00003618
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003619{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3620echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3621if test "${ac_cv_path_GREP+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003624 # Extract the first word of "grep ggrep" to use in msg output
3625if test -z "$GREP"; then
3626set dummy grep ggrep; ac_prog_name=$2
3627if test "${ac_cv_path_GREP+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
Reid Spencera773bd52006-08-04 18:18:08 +00003630 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003631# Loop through the user's path and test for each of PROGNAME-LIST
3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003634do
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003637 for ac_prog in grep ggrep; do
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3640 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3641 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003642 # Check for GNU $ac_path_GREP
3643case `"$ac_path_GREP" --version 2>&1` in
3644*GNU*)
3645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3646*)
3647 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003648 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003649 while :
3650 do
3651 cat "conftest.in" "conftest.in" >"conftest.tmp"
3652 mv "conftest.tmp" "conftest.in"
3653 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003654 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003658 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3659 # Best one so far, save it but keep looking for a better one
3660 ac_cv_path_GREP="$ac_path_GREP"
3661 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003662 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003663 # 10*(2^10) chars as input seems more than enough
3664 test $ac_count -gt 10 && break
3665 done
3666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3667esac
3668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003669
3670 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003671 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003672done
3673
3674done
Reid Spencera773bd52006-08-04 18:18:08 +00003675IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003676
3677
3678fi
3679
3680GREP="$ac_cv_path_GREP"
3681if test -z "$GREP"; then
3682 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3683echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3684 { (exit 1); exit 1; }; }
3685fi
3686
Reid Spencera773bd52006-08-04 18:18:08 +00003687else
3688 ac_cv_path_GREP=$GREP
3689fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003691
Reid Spencera773bd52006-08-04 18:18:08 +00003692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003693{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3694echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003695 GREP="$ac_cv_path_GREP"
3696
3697
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698{ echo "$as_me:$LINENO: checking for egrep" >&5
3699echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3700if test "${ac_cv_path_EGREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003702else
3703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3704 then ac_cv_path_EGREP="$GREP -E"
3705 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003706 # Extract the first word of "egrep" to use in msg output
3707if test -z "$EGREP"; then
3708set dummy egrep; ac_prog_name=$2
3709if test "${ac_cv_path_EGREP+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
Reid Spencera773bd52006-08-04 18:18:08 +00003712 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003713# Loop through the user's path and test for each of PROGNAME-LIST
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003715for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719 for ac_prog in egrep; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3722 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3723 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003724 # Check for GNU $ac_path_EGREP
3725case `"$ac_path_EGREP" --version 2>&1` in
3726*GNU*)
3727 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3728*)
3729 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003730 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003731 while :
3732 do
3733 cat "conftest.in" "conftest.in" >"conftest.tmp"
3734 mv "conftest.tmp" "conftest.in"
3735 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003737 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003740 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3741 # Best one so far, save it but keep looking for a better one
3742 ac_cv_path_EGREP="$ac_path_EGREP"
3743 ac_path_EGREP_max=$ac_count
3744 fi
3745 # 10*(2^10) chars as input seems more than enough
3746 test $ac_count -gt 10 && break
3747 done
3748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3749esac
3750
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751
3752 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003753 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003754done
3755
3756done
Reid Spencera773bd52006-08-04 18:18:08 +00003757IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003758
3759
3760fi
3761
3762EGREP="$ac_cv_path_EGREP"
3763if test -z "$EGREP"; then
3764 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3765echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3766 { (exit 1); exit 1; }; }
3767fi
3768
Reid Spencera773bd52006-08-04 18:18:08 +00003769else
3770 ac_cv_path_EGREP=$EGREP
3771fi
3772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003773
Reid Spencera773bd52006-08-04 18:18:08 +00003774 fi
3775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003776{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3777echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003778 EGREP="$ac_cv_path_EGREP"
3779
3780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3782echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3783if test "${ac_cv_header_stdc+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003785else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003786 cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h. */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003792#include <stdlib.h>
3793#include <stdarg.h>
3794#include <string.h>
3795#include <float.h>
3796
John Criswell0c38eaf2003-09-10 15:17:25 +00003797int
3798main ()
3799{
3800
3801 ;
3802 return 0;
3803}
John Criswell7a73b802003-06-30 21:59:07 +00003804_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003805rm -f conftest.$ac_objext
3806if { (ac_try="$ac_compile"
3807case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810esac
3811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3820 { (case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823esac
3824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_try") 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest.$ac_objext'
3830 { (case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833esac
3834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_try") 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003839 ac_cv_header_stdc=yes
3840else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003841 echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
3844 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003845fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003846
Reid Spencera773bd52006-08-04 18:18:08 +00003847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003848
3849if test $ac_cv_header_stdc = yes; then
3850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003851 cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h. */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003857#include <string.h>
3858
3859_ACEOF
3860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003861 $EGREP "memchr" >/dev/null 2>&1; then
3862 :
John Criswell7a73b802003-06-30 21:59:07 +00003863else
3864 ac_cv_header_stdc=no
3865fi
3866rm -f conftest*
3867
3868fi
3869
3870if test $ac_cv_header_stdc = yes; then
3871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003877/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003878#include <stdlib.h>
3879
3880_ACEOF
3881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003882 $EGREP "free" >/dev/null 2>&1; then
3883 :
John Criswell7a73b802003-06-30 21:59:07 +00003884else
3885 ac_cv_header_stdc=no
3886fi
3887rm -f conftest*
3888
3889fi
3890
3891if test $ac_cv_header_stdc = yes; then
3892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003893 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003894 :
3895else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003896 cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h. */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003902#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003903#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003904#if ((' ' & 0x0FF) == 0x020)
3905# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3906# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3907#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003908# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003909 (('a' <= (c) && (c) <= 'i') \
3910 || ('j' <= (c) && (c) <= 'r') \
3911 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003912# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3913#endif
3914
3915#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3916int
3917main ()
3918{
3919 int i;
3920 for (i = 0; i < 256; i++)
3921 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003922 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003923 return 2;
3924 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003925}
3926_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003927rm -f conftest$ac_exeext
3928if { (ac_try="$ac_link"
3929case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932esac
3933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_link") 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3938 { (case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941esac
3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3943 (eval "$ac_try") 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 :
John Criswell7a73b802003-06-30 21:59:07 +00003948else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003949 echo "$as_me: program exited with status $ac_status" >&5
3950echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953( exit $ac_status )
3954ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003955fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956rm -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 +00003957fi
3958
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959
John Criswell7a73b802003-06-30 21:59:07 +00003960fi
3961fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003962{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3963echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003964if test $ac_cv_header_stdc = yes; then
3965
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003966cat >>confdefs.h <<\_ACEOF
3967#define STDC_HEADERS 1
3968_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003969
3970fi
3971
Reid Spencera773bd52006-08-04 18:18:08 +00003972# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003973
3974
3975
3976
3977
3978
3979
3980
3981
Reid Spencera773bd52006-08-04 18:18:08 +00003982for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3983 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003984do
3985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3990else
3991 cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h. */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h. */
3997$ac_includes_default
3998
3999#include <$ac_header>
4000_ACEOF
4001rm -f conftest.$ac_objext
4002if { (ac_try="$ac_compile"
4003case "(($ac_try" in
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4006esac
4007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4009 ac_status=$?
4010 grep -v '^ *+' conftest.er1 >conftest.err
4011 rm -f conftest.er1
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016 { (case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_try") 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try='test -s conftest.$ac_objext'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 eval "$as_ac_Header=yes"
4036else
4037 echo "$as_me: failed program was:" >&5
4038sed 's/^/| /' conftest.$ac_ext >&5
4039
4040 eval "$as_ac_Header=no"
4041fi
4042
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044fi
4045ac_res=`eval echo '${'$as_ac_Header'}'`
4046 { echo "$as_me:$LINENO: result: $ac_res" >&5
4047echo "${ECHO_T}$ac_res" >&6; }
4048if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004049 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004051_ACEOF
4052
4053fi
4054
4055done
4056
4057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004058{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4059echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4060if test "${ac_cv_c_bigendian+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004062else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004063 # See if sys/param.h defines the BYTE_ORDER macro.
4064cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004066_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004069/* end confdefs.h. */
4070#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004071#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004072
4073int
4074main ()
4075{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4077 bogus endian macros
4078#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004079
4080 ;
4081 return 0;
4082}
4083_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084rm -f conftest.$ac_objext
4085if { (ac_try="$ac_compile"
4086case "(($ac_try" in
4087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4089esac
4090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compile") 2>conftest.er1
4092 ac_status=$?
4093 grep -v '^ *+' conftest.er1 >conftest.err
4094 rm -f conftest.er1
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } &&
4098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4099 { (case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4104 (eval "$ac_try") 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try='test -s conftest.$ac_objext'
4109 { (case "(($ac_try" in
4110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4111 *) ac_try_echo=$ac_try;;
4112esac
4113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4114 (eval "$ac_try") 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004118 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004119cat >conftest.$ac_ext <<_ACEOF
4120/* confdefs.h. */
4121_ACEOF
4122cat confdefs.h >>conftest.$ac_ext
4123cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004124/* end confdefs.h. */
4125#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004126#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004127
4128int
4129main ()
4130{
4131#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004132 not big endian
4133#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004134
4135 ;
4136 return 0;
4137}
4138_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004139rm -f conftest.$ac_objext
4140if { (ac_try="$ac_compile"
4141case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4154 { (case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157esac
4158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_try") 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166 *) ac_try_echo=$ac_try;;
4167esac
4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004173 ac_cv_c_bigendian=yes
4174else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004175 echo "$as_me: failed program was:" >&5
4176sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004177
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004178 ac_cv_c_bigendian=no
4179fi
4180
4181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182else
4183 echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 # It does not; compile a test program.
4187if test "$cross_compiling" = yes; then
4188 # try to guess the endianness by grepping values into an object file
4189 ac_cv_c_bigendian=unknown
4190 cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
4196short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4197short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4198void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4199short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4200short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4201void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004202int
4203main ()
4204{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004206 ;
4207 return 0;
4208}
4209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004210rm -f conftest.$ac_objext
4211if { (ac_try="$ac_compile"
4212case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237 *) ac_try_echo=$ac_try;;
4238esac
4239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004245 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004246fi
4247if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4248 if test "$ac_cv_c_bigendian" = unknown; then
4249 ac_cv_c_bigendian=no
4250 else
4251 # finding both strings is unlikely to happen, but who knows?
4252 ac_cv_c_bigendian=unknown
4253 fi
4254fi
Reid Spencera773bd52006-08-04 18:18:08 +00004255else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004256 echo "$as_me: failed program was:" >&5
4257sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004258
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004259
Torok Edwin871384f2010-01-26 08:50:50 +00004260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004261
Reid Spencera773bd52006-08-04 18:18:08 +00004262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004264 cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h. */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004269/* end confdefs.h. */
4270$ac_includes_default
4271int
4272main ()
4273{
4274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004275 /* Are we little or big endian? From Harbison&Steele. */
4276 union
4277 {
4278 long int l;
4279 char c[sizeof (long int)];
4280 } u;
4281 u.l = 1;
4282 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004283
4284 ;
4285 return 0;
4286}
4287_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288rm -f conftest$ac_exeext
4289if { (ac_try="$ac_link"
4290case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293esac
4294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_link") 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4299 { (case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_try") 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004308 ac_cv_c_bigendian=no
4309else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004310 echo "$as_me: program exited with status $ac_status" >&5
4311echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314( exit $ac_status )
4315ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004317rm -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 +00004318fi
4319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004320
Reid Spencera773bd52006-08-04 18:18:08 +00004321fi
4322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324fi
4325{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4326echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4327case $ac_cv_c_bigendian in
4328 yes)
4329 ENDIAN=big
4330 ;;
4331 no)
4332 ENDIAN=little
4333 ;;
4334 *)
4335 { { echo "$as_me:$LINENO: error: unknown endianness
4336presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4337echo "$as_me: error: unknown endianness
4338presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4339 { (exit 1); exit 1; }; } ;;
4340esac
Reid Spencera773bd52006-08-04 18:18:08 +00004341
4342
4343if test "$cross_compiling" = yes; then
4344 LLVM_CROSS_COMPILING=1
4345
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4348echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4349if test "${ac_cv_build_exeext+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004351else
4352 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4353 ac_cv_build_exeext=.exe
4354else
4355 ac_build_prefix=${build_alias}-
4356
4357 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4358set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004363else
4364 if test -n "$BUILD_CC"; then
4365 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 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 +00004374 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004376 break 2
4377 fi
4378done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004379done
Reid Spencera773bd52006-08-04 18:18:08 +00004380IFS=$as_save_IFS
4381
4382fi
4383fi
4384BUILD_CC=$ac_cv_prog_BUILD_CC
4385if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4387echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004389 { echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004391fi
4392
4393
4394 if test -z "$BUILD_CC"; then
4395 # Extract the first word of "gcc", so it can be a program name with args.
4396set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004401else
4402 if test -n "$BUILD_CC"; then
4403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 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 +00004412 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004414 break 2
4415 fi
4416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004417done
Reid Spencera773bd52006-08-04 18:18:08 +00004418IFS=$as_save_IFS
4419
4420fi
4421fi
4422BUILD_CC=$ac_cv_prog_BUILD_CC
4423if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4425echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004427 { echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004429fi
4430
4431
4432 if test -z "$BUILD_CC"; then
4433 # Extract the first word of "cc", so it can be a program name with args.
4434set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004439else
4440 if test -n "$BUILD_CC"; then
4441 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442else
4443 ac_prog_rejected=no
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 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 +00004451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4452 ac_prog_rejected=yes
4453 continue
4454 fi
4455 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004457 break 2
4458 fi
4459done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004460done
Reid Spencera773bd52006-08-04 18:18:08 +00004461IFS=$as_save_IFS
4462
4463if test $ac_prog_rejected = yes; then
4464 # We found a bogon in the path, so make sure we never use it.
4465 set dummy $ac_cv_prog_BUILD_CC
4466 shift
4467 if test $# != 0; then
4468 # We chose a different compiler from the bogus one.
4469 # However, it has the same basename, so the bogon will be chosen
4470 # first if we set BUILD_CC to just the basename; use the full file name.
4471 shift
4472 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4473 fi
4474fi
4475fi
4476fi
4477BUILD_CC=$ac_cv_prog_BUILD_CC
4478if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4480echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 { echo "$as_me:$LINENO: result: no" >&5
4483echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004484fi
4485
4486
4487 fi
4488 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004489 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4490echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4491 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004492 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4493 rm -f conftest*
4494 echo 'int main () { return 0; }' > conftest.$ac_ext
4495 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004496 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004497 (eval $ac_build_link) 2>&5
4498 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004501 for file in conftest.*; do
4502 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004503 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004504 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4505 esac
4506 done
4507 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4509echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4510 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004511 fi
4512 rm -f conftest*
4513 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4514fi
4515fi
4516
4517BUILD_EXEEXT=""
4518test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004519{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4520echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004521ac_build_exeext=$BUILD_EXEEXT
4522
Jim Grosbach673612e2008-10-02 22:56:44 +00004523 ac_build_prefix=${build_alias}-
4524 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4525set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004530else
4531 if test -n "$BUILD_CXX"; then
4532 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 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 +00004541 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004543 break 2
4544 fi
4545done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546done
Jim Grosbach673612e2008-10-02 22:56:44 +00004547IFS=$as_save_IFS
4548
4549fi
4550fi
4551BUILD_CXX=$ac_cv_prog_BUILD_CXX
4552if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4554echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004555else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004556 { echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004558fi
4559
4560
4561 if test -z "$BUILD_CXX"; then
4562 # Extract the first word of "g++", so it can be a program name with args.
4563set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004568else
4569 if test -n "$BUILD_CXX"; then
4570 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 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 +00004579 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004581 break 2
4582 fi
4583done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004584done
Jim Grosbach673612e2008-10-02 22:56:44 +00004585IFS=$as_save_IFS
4586
4587fi
4588fi
4589BUILD_CXX=$ac_cv_prog_BUILD_CXX
4590if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4592echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004594 { echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004596fi
4597
4598
4599 if test -z "$BUILD_CXX"; then
4600 # Extract the first word of "c++", so it can be a program name with args.
4601set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004606else
4607 if test -n "$BUILD_CXX"; then
4608 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609else
4610 ac_prog_rejected=no
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 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 +00004618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4619 ac_prog_rejected=yes
4620 continue
4621 fi
4622 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004624 break 2
4625 fi
4626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004627done
Jim Grosbach673612e2008-10-02 22:56:44 +00004628IFS=$as_save_IFS
4629
4630if test $ac_prog_rejected = yes; then
4631 # We found a bogon in the path, so make sure we never use it.
4632 set dummy $ac_cv_prog_BUILD_CXX
4633 shift
4634 if test $# != 0; then
4635 # We chose a different compiler from the bogus one.
4636 # However, it has the same basename, so the bogon will be chosen
4637 # first if we set BUILD_CXX to just the basename; use the full file name.
4638 shift
4639 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4640 fi
4641fi
4642fi
4643fi
4644BUILD_CXX=$ac_cv_prog_BUILD_CXX
4645if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4647echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004648else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649 { echo "$as_me:$LINENO: result: no" >&5
4650echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004651fi
4652
4653
4654 fi
4655 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004656else
4657 LLVM_CROSS_COMPILING=0
4658
4659fi
4660
Nick Lewycky5b28f862009-04-10 05:18:27 +00004661if 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 +00004662 cvsbuild="yes"
4663 optimize="no"
4664 CVSBUILD=CVSBUILD=1
4665
4666else
4667 cvsbuild="no"
4668 optimize="yes"
4669fi
4670
4671
4672# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004674 enableval=$enable_optimized;
4675else
4676 enableval=$optimize
4677fi
4678
4679if test ${enableval} = "no" ; then
4680 ENABLE_OPTIMIZED=
4681
4682else
4683 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4684
4685fi
4686
David Greene2a5a12c2009-04-17 14:50:39 +00004687# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004688if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004689 enableval=$enable_profiling;
4690else
4691 enableval="no"
4692fi
4693
4694if test ${enableval} = "no" ; then
4695 ENABLE_PROFILING=
4696
4697else
4698 ENABLE_PROFILING=ENABLE_PROFILING=1
4699
4700fi
4701
Reid Spencera773bd52006-08-04 18:18:08 +00004702# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004703if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004704 enableval=$enable_assertions;
4705else
4706 enableval="yes"
4707fi
4708
4709if test ${enableval} = "yes" ; then
4710 DISABLE_ASSERTIONS=
4711
4712else
4713 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4714
4715fi
4716
David Greenea696d242007-06-28 19:36:08 +00004717# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004718if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004719 enableval=$enable_expensive_checks;
4720else
4721 enableval="no"
4722fi
4723
4724if test ${enableval} = "yes" ; then
4725 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4726
4727 EXPENSIVE_CHECKS=yes
4728
4729else
4730 ENABLE_EXPENSIVE_CHECKS=
4731
4732 EXPENSIVE_CHECKS=no
4733
4734fi
4735
Reid Spencer8b2e1412006-11-17 03:32:33 +00004736# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004738 enableval=$enable_debug_runtime;
4739else
4740 enableval=no
4741fi
4742
4743if test ${enableval} = "no" ; then
4744 DEBUG_RUNTIME=
4745
4746else
4747 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4748
4749fi
4750
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004751# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004753 enableval=$enable_debug_symbols;
4754else
4755 enableval=no
4756fi
4757
4758if test ${enableval} = "no" ; then
4759 DEBUG_SYMBOLS=
4760
4761else
4762 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4763
4764fi
4765
Reid Spencera773bd52006-08-04 18:18:08 +00004766# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004768 enableval=$enable_jit;
4769else
4770 enableval=default
4771fi
4772
4773if test ${enableval} = "no"
4774then
4775 JIT=
4776
4777else
4778 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004779 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004780 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004781 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004782 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004783 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004784 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004785 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004786 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004787 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004788 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004789 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004790 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004791 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004792 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004793 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004794 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004795 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004796 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004797 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004798 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004799 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004800 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004801 Blackfin) TARGET_HAS_JIT=0
4802 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004803 MBlaze) TARGET_HAS_JIT=0
4804 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004805 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004806 ;;
4807 esac
4808fi
4809
4810# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004811if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004812 enableval=$enable_doxygen;
4813else
4814 enableval=default
4815fi
4816
4817case "$enableval" in
4818 yes) ENABLE_DOXYGEN=1
4819 ;;
4820 no) ENABLE_DOXYGEN=0
4821 ;;
4822 default) ENABLE_DOXYGEN=0
4823 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004824 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4825echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4826 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004827esac
4828
4829# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004830if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004831 enableval=$enable_threads;
4832else
Reid Spencer65c5d752006-11-05 17:08:18 +00004833 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004834fi
4835
4836case "$enableval" in
4837 yes) ENABLE_THREADS=1
4838 ;;
4839 no) ENABLE_THREADS=0
4840 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004841 default) ENABLE_THREADS=1
4842 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004843 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4844echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4845 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004846esac
4847
Owen Andersona8603702009-05-19 22:18:56 +00004848cat >>confdefs.h <<_ACEOF
4849#define ENABLE_THREADS $ENABLE_THREADS
4850_ACEOF
4851
4852
Reid Spencer89b0d992006-12-16 22:07:52 +00004853# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004854if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004855 enableval=$enable_pic;
4856else
4857 enableval=default
4858fi
4859
4860case "$enableval" in
4861 yes) ENABLE_PIC=1
4862 ;;
4863 no) ENABLE_PIC=0
4864 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004865 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004866 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004867 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4868echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4869 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004870esac
4871
4872cat >>confdefs.h <<_ACEOF
4873#define ENABLE_PIC $ENABLE_PIC
4874_ACEOF
4875
4876
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004877# Check whether --enable-shared was given.
4878if test "${enable_shared+set}" = set; then
4879 enableval=$enable_shared;
4880else
4881 enableval=default
4882fi
4883
4884case "$enableval" in
4885 yes) ENABLE_SHARED=1
4886 ;;
4887 no) ENABLE_SHARED=0
4888 ;;
4889 default) ENABLE_SHARED=0
4890 ;;
4891 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4892echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4893 { (exit 1); exit 1; }; } ;;
4894esac
4895
Reid Spencera773bd52006-08-04 18:18:08 +00004896TARGETS_TO_BUILD=""
4897# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004898if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004899 enableval=$enable_targets;
4900else
4901 enableval=all
4902fi
4903
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004904if test "$enableval" = host-only ; then
4905 enableval=host
4906fi
Reid Spencera773bd52006-08-04 18:18:08 +00004907case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004908 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 +00004909 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4910 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004911 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4913 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4914 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4915 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4916 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4917 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4918 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4919 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4920 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4921 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4922 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4923 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4924 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4925 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4926 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004927 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004928 host) case "$llvm_cv_target_arch" in
4929 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4930 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4931 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4932 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4933 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4934 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4935 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004936 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004937 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4938 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4939 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4940 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004941 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004942 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004943 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4944echo "$as_me: error: Can not set target to build" >&2;}
4945 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004946 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004947 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4948echo "$as_me: error: Unrecognized target $a_target" >&2;}
4949 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004950 esac
4951 done
4952 ;;
4953esac
Reid Spencera773bd52006-08-04 18:18:08 +00004954TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4955
4956
Douglas Gregor0711c302009-06-17 00:43:20 +00004957# Determine whether we are building LLVM support for the native architecture.
4958# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4959for a_target in $TARGETS_TO_BUILD; do
4960 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004961 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004962
4963cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004964#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004965_ACEOF
4966
4967 fi
4968done
4969
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004970# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4971# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004972LLVM_ENUM_TARGETS=""
4973LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004974LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004975LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004976for target_to_build in $TARGETS_TO_BUILD; do
4977 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4978 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4979 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4980 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004981 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4982 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4983 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004984 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4985 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4986 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004987done
4988
4989
4990
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004991
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004992
Reid Spencer65c5d752006-11-05 17:08:18 +00004993# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004994if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00004995 enableval=$enable_cbe_printf_a;
4996else
4997 enableval=default
4998fi
4999
5000case "$enableval" in
5001 yes) ENABLE_CBE_PRINTF_A=1
5002 ;;
5003 no) ENABLE_CBE_PRINTF_A=0
5004 ;;
5005 default) ENABLE_CBE_PRINTF_A=1
5006 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005007 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5008echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5009 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005010esac
5011
5012cat >>confdefs.h <<_ACEOF
5013#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5014_ACEOF
5015
5016
Reid Spencera773bd52006-08-04 18:18:08 +00005017
5018# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005019if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005020 withval=$with_llvmgccdir;
5021else
5022 withval=default
5023fi
5024
5025case "$withval" in
5026 default) WITH_LLVMGCCDIR=default ;;
5027 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005028 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5029echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5030 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005031esac
5032
5033
Devang Patel5d28b882007-12-04 22:54:47 +00005034# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005035if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005036 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5037 WITH_LLVMGCCDIR=""
5038fi
5039
5040
5041
5042# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005043if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005044 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5045 WITH_LLVMGCCDIR=""
5046fi
5047
Douglas Gregor01746742009-05-11 18:05:52 +00005048
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005049if test -n "$LLVMGCC"; then
5050 LLVMGCCCOMMAND="$LLVMGCC"
5051fi
5052
5053if test -n "$LLVMGXX"; then
5054 LLVMGXXCOMMAND="$LLVMGXX"
5055fi
Devang Patel5d28b882007-12-04 22:54:47 +00005056
5057if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005058 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5059echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5060 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005061fi
5062
5063if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005064 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5065echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5066 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005067fi
5068
5069
Daniel Dunbar98515672010-02-23 10:00:49 +00005070# Check whether --with-clang was given.
5071if test "${with_clang+set}" = set; then
5072 withval=$with_clang;
5073else
5074 with_clang=default
5075fi
5076
5077
5078
5079# Check whether --with-built-clang was given.
5080if test "${with_built_clang+set}" = set; then
5081 withval=$with_built_clang;
5082else
5083 with_built_clang=check
5084fi
5085
5086
5087{ echo "$as_me:$LINENO: checking clang compiler" >&5
5088echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5089WITH_CLANGPATH=""
5090WITH_BUILT_CLANG=0
5091if test "$with_clang" != "default"; then
5092 WITH_CLANGPATH="$with_clang"
5093 if ! test -x "$WITH_CLANGPATH"; then
5094 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5095echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5096 { (exit 1); exit 1; }; }
5097 fi
5098elif test "$with_built_clang" = "yes"; then
5099 WITH_BUILT_CLANG=1
5100elif test "$with_built_clang" = "no"; then
5101 WITH_BUILT_CLANG=0
5102else
5103 if test "$with_built_clang" != "check"; then
5104 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5105echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5106 { (exit 1); exit 1; }; }
5107 fi
5108
5109 if test -f ${srcdir}/tools/clang/README.txt; then
5110 WITH_BUILT_CLANG=1
5111 fi
5112fi
5113
5114if ! test -z "$WITH_CLANGPATH"; then
5115 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5116echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5117 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5118elif test "$WITH_BUILT_CLANG" = "1"; then
5119 { echo "$as_me:$LINENO: result: built" >&5
5120echo "${ECHO_T}built" >&6; }
5121else
5122 { echo "$as_me:$LINENO: result: none" >&5
5123echo "${ECHO_T}none" >&6; }
5124fi
5125CLANGPATH=$WITH_CLANGPATH
5126
5127CLANGXXPATH=$WITH_CLANGXXPATH
5128
5129ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5130
5131
5132
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005133# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005134if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005135 withval=$with_optimize_option;
5136else
5137 withval=default
5138fi
5139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005140{ echo "$as_me:$LINENO: checking optimization flags" >&5
5141echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005142case "$withval" in
5143 default)
5144 case "$llvm_cv_os_type" in
5145 MingW) optimize_option=-O3 ;;
5146 *) optimize_option=-O2 ;;
5147 esac ;;
5148 *) optimize_option="$withval" ;;
5149esac
5150OPTIMIZE_OPTION=$optimize_option
5151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005152{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5153echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005154
5155
Reid Spencera773bd52006-08-04 18:18:08 +00005156# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005157if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005158 withval=$with_extra_options;
5159else
5160 withval=default
5161fi
5162
5163case "$withval" in
5164 default) EXTRA_OPTIONS= ;;
5165 *) EXTRA_OPTIONS=$withval ;;
5166esac
5167EXTRA_OPTIONS=$EXTRA_OPTIONS
5168
5169
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005170# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005171if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005172 enableval=$enable_bindings;
5173else
5174 enableval=default
5175fi
5176
5177BINDINGS_TO_BUILD=""
5178case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005179 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005180 all ) BINDINGS_TO_BUILD="ocaml" ;;
5181 none | no) BINDINGS_TO_BUILD="" ;;
5182 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5183 case "$a_binding" in
5184 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005185 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5186echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5187 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005188 esac
5189 done
5190 ;;
5191esac
5192
Reid Spencera773bd52006-08-04 18:18:08 +00005193
Gordon Henriksenf0915682007-10-02 16:42:22 +00005194# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005195if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005196 withval=$with_ocaml_libdir;
5197else
5198 withval=auto
5199fi
5200
5201case "$withval" in
5202 auto) with_ocaml_libdir="$withval" ;;
5203 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005204 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5205echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5206 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005207esac
5208
5209
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005210# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005212 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005213else
5214 withval=""
5215fi
5216
5217
5218cat >>confdefs.h <<_ACEOF
5219#define C_INCLUDE_DIRS "$withval"
5220_ACEOF
5221
5222
5223
Rafael Espindola420d23c2009-11-16 19:46:55 +00005224# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005225if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005226 withval=$with_cxx_include_root;
5227else
5228 withval=""
5229fi
5230
5231
5232cat >>confdefs.h <<_ACEOF
5233#define CXX_INCLUDE_ROOT "$withval"
5234_ACEOF
5235
5236
5237
5238# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005239if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005240 withval=$with_cxx_include_arch;
5241else
5242 withval=""
5243fi
5244
5245
5246cat >>confdefs.h <<_ACEOF
5247#define CXX_INCLUDE_ARCH "$withval"
5248_ACEOF
5249
5250
5251
5252# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005253if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005254 withval=$with_cxx_include_32bit_dir;
5255else
5256 withval=""
5257fi
5258
5259
5260cat >>confdefs.h <<_ACEOF
5261#define CXX_INCLUDE_32BIT_DIR "$withval"
5262_ACEOF
5263
5264
5265
5266# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005268 withval=$with_cxx_include_64bit_dir;
5269else
5270 withval=""
5271fi
5272
5273
5274cat >>confdefs.h <<_ACEOF
5275#define CXX_INCLUDE_64BIT_DIR "$withval"
5276_ACEOF
5277
5278
5279
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005280# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005281if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005282 withval=$with_binutils_include;
5283else
5284 withval=default
5285fi
5286
5287case "$withval" in
5288 default) WITH_BINUTILS_INCDIR=default ;;
5289 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005290 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5291echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5292 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005293esac
5294if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5295 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5296
5297 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5298 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005299 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5300echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5301 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005302 fi
5303fi
5304
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005305# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005306if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005307 enableval=$enable_libffi; case "$enableval" in
5308 yes) llvm_cv_enable_libffi="yes" ;;
5309 no) llvm_cv_enable_libffi="no" ;;
5310 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005311echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5312 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005313 esac
5314else
5315 llvm_cv_enable_libffi=no
5316fi
5317
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005318
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005319if test "$llvm_cv_os_type" = "Win32" ; then
5320 llvmc_dynamic="yes"
5321else
5322 llvmc_dynamic="no"
5323fi
5324
5325# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005326if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005327 enableval=$enable_llvmc_dynamic;
5328else
5329 enableval=$llvmc_dynamic
5330fi
5331
5332if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5333 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5334
5335else
5336 ENABLE_LLVMC_DYNAMIC=
5337
5338fi
5339
5340# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005341if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005342 enableval=$enable_llvmc_dynamic_plugins;
5343else
5344 enableval=yes
5345fi
5346
5347if test ${enableval} = "yes" ; then
5348 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5349
5350else
5351 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5352
5353fi
5354
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005355
Reid Spencera773bd52006-08-04 18:18:08 +00005356ac_ext=c
5357ac_cpp='$CPP $CPPFLAGS'
5358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005361{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5362echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005363# On Suns, sometimes $CPP names a directory.
5364if test -n "$CPP" && test -d "$CPP"; then
5365 CPP=
5366fi
5367if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005368 if test "${ac_cv_prog_CPP+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005370else
5371 # Double quotes because CPP needs to be expanded
5372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5373 do
5374 ac_preproc_ok=false
5375for ac_c_preproc_warn_flag in '' yes
5376do
5377 # Use a header file that comes with gcc, so configuring glibc
5378 # with a fresh cross-compiler works.
5379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5380 # <limits.h> exists even on freestanding compilers.
5381 # On the NeXT, cc -E runs the code through the compiler's parser,
5382 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383 cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h. */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005388/* end confdefs.h. */
5389#ifdef __STDC__
5390# include <limits.h>
5391#else
5392# include <assert.h>
5393#endif
5394 Syntax error
5395_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005396if { (ac_try="$ac_cpp conftest.$ac_ext"
5397case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } >/dev/null; then
5409 if test -s conftest.err; then
5410 ac_cpp_err=$ac_c_preproc_warn_flag
5411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5412 else
5413 ac_cpp_err=
5414 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416 ac_cpp_err=yes
5417fi
5418if test -z "$ac_cpp_err"; then
5419 :
5420else
5421 echo "$as_me: failed program was:" >&5
5422sed 's/^/| /' conftest.$ac_ext >&5
5423
Reid Spencera773bd52006-08-04 18:18:08 +00005424 # Broken: fails on valid input.
5425continue
5426fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005427
Reid Spencera773bd52006-08-04 18:18:08 +00005428rm -f conftest.err conftest.$ac_ext
5429
5430 # OK, works on sane cases. Now check whether nonexistent headers
5431 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005432 cat >conftest.$ac_ext <<_ACEOF
5433/* confdefs.h. */
5434_ACEOF
5435cat confdefs.h >>conftest.$ac_ext
5436cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005437/* end confdefs.h. */
5438#include <ac_nonexistent.h>
5439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005440if { (ac_try="$ac_cpp conftest.$ac_ext"
5441case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444esac
5445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null; then
5453 if test -s conftest.err; then
5454 ac_cpp_err=$ac_c_preproc_warn_flag
5455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5456 else
5457 ac_cpp_err=
5458 fi
5459else
5460 ac_cpp_err=yes
5461fi
5462if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005463 # Broken: success on invalid input.
5464continue
5465else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005466 echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
Reid Spencera773bd52006-08-04 18:18:08 +00005469 # Passes both tests.
5470ac_preproc_ok=:
5471break
5472fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005473
Reid Spencera773bd52006-08-04 18:18:08 +00005474rm -f conftest.err conftest.$ac_ext
5475
5476done
5477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5478rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005479if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005480 break
5481fi
5482
5483 done
5484 ac_cv_prog_CPP=$CPP
5485
5486fi
5487 CPP=$ac_cv_prog_CPP
5488else
5489 ac_cv_prog_CPP=$CPP
5490fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005491{ echo "$as_me:$LINENO: result: $CPP" >&5
5492echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005493ac_preproc_ok=false
5494for ac_c_preproc_warn_flag in '' yes
5495do
5496 # Use a header file that comes with gcc, so configuring glibc
5497 # with a fresh cross-compiler works.
5498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499 # <limits.h> exists even on freestanding compilers.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005507/* end confdefs.h. */
5508#ifdef __STDC__
5509# include <limits.h>
5510#else
5511# include <assert.h>
5512#endif
5513 Syntax error
5514_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515if { (ac_try="$ac_cpp conftest.$ac_ext"
5516case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } >/dev/null; then
5528 if test -s conftest.err; then
5529 ac_cpp_err=$ac_c_preproc_warn_flag
5530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5531 else
5532 ac_cpp_err=
5533 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005534else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535 ac_cpp_err=yes
5536fi
5537if test -z "$ac_cpp_err"; then
5538 :
5539else
5540 echo "$as_me: failed program was:" >&5
5541sed 's/^/| /' conftest.$ac_ext >&5
5542
Reid Spencera773bd52006-08-04 18:18:08 +00005543 # Broken: fails on valid input.
5544continue
5545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005546
Reid Spencera773bd52006-08-04 18:18:08 +00005547rm -f conftest.err conftest.$ac_ext
5548
5549 # OK, works on sane cases. Now check whether nonexistent headers
5550 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551 cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h. */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005556/* end confdefs.h. */
5557#include <ac_nonexistent.h>
5558_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005559if { (ac_try="$ac_cpp conftest.$ac_ext"
5560case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } >/dev/null; then
5572 if test -s conftest.err; then
5573 ac_cpp_err=$ac_c_preproc_warn_flag
5574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5575 else
5576 ac_cpp_err=
5577 fi
5578else
5579 ac_cpp_err=yes
5580fi
5581if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005582 # Broken: success on invalid input.
5583continue
5584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005585 echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
Reid Spencera773bd52006-08-04 18:18:08 +00005588 # Passes both tests.
5589ac_preproc_ok=:
5590break
5591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005592
Reid Spencera773bd52006-08-04 18:18:08 +00005593rm -f conftest.err conftest.$ac_ext
5594
5595done
5596# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5597rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005598if $ac_preproc_ok; then
5599 :
Reid Spencera773bd52006-08-04 18:18:08 +00005600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005601 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5602See \`config.log' for more details." >&5
5603echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5604See \`config.log' for more details." >&2;}
5605 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005606fi
5607
5608ac_ext=c
5609ac_cpp='$CPP $CPPFLAGS'
5610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613
5614ac_ext=c
5615ac_cpp='$CPP $CPPFLAGS'
5616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618ac_compiler_gnu=$ac_cv_c_compiler_gnu
5619if test -n "$ac_tool_prefix"; then
5620 for ac_prog in gcc
5621 do
5622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5626if test "${ac_cv_prog_CC+set}" = set; then
5627 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005628else
5629 if test -n "$CC"; then
5630 ac_cv_prog_CC="$CC" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 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 +00005639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005641 break 2
5642 fi
5643done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644done
Reid Spencera773bd52006-08-04 18:18:08 +00005645IFS=$as_save_IFS
5646
5647fi
5648fi
5649CC=$ac_cv_prog_CC
5650if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005651 { echo "$as_me:$LINENO: result: $CC" >&5
5652echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005654 { echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005656fi
5657
5658
5659 test -n "$CC" && break
5660 done
5661fi
5662if test -z "$CC"; then
5663 ac_ct_CC=$CC
5664 for ac_prog in gcc
5665do
5666 # Extract the first word of "$ac_prog", so it can be a program name with args.
5667set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005672else
5673 if test -n "$ac_ct_CC"; then
5674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5675else
5676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH
5678do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 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 +00005683 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005685 break 2
5686 fi
5687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688done
Reid Spencera773bd52006-08-04 18:18:08 +00005689IFS=$as_save_IFS
5690
5691fi
5692fi
5693ac_ct_CC=$ac_cv_prog_ac_ct_CC
5694if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005695 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5696echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005697else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005698 { echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005700fi
5701
5702
5703 test -n "$ac_ct_CC" && break
5704done
5705
5706 if test "x$ac_ct_CC" = x; then
5707 CC=""
5708 else
5709 case $cross_compiling:$ac_tool_warned in
5710yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005711{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5712whose name does not start with the host triplet. If you think this
5713configuration is useful to you, please write to autoconf@gnu.org." >&5
5714echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5715whose name does not start with the host triplet. If you think this
5716configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005717ac_tool_warned=yes ;;
5718esac
5719 CC=$ac_ct_CC
5720 fi
5721fi
5722
5723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5725See \`config.log' for more details." >&5
5726echo "$as_me: error: no acceptable C compiler found in \$PATH
5727See \`config.log' for more details." >&2;}
5728 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005729
5730# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731echo "$as_me:$LINENO: checking for C compiler version" >&5
5732ac_compiler=`set X $ac_compile; echo $2`
5733{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005734case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005740 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }
5743{ (ac_try="$ac_compiler -v >&5"
5744case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747esac
5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_compiler -v >&5") 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }
5753{ (ac_try="$ac_compiler -V >&5"
5754case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757esac
5758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler -V >&5") 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005763
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005764{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5765echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5766if test "${ac_cv_c_compiler_gnu+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005768else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005769 cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h. */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005774/* end confdefs.h. */
5775
5776int
5777main ()
5778{
5779#ifndef __GNUC__
5780 choke me
5781#endif
5782
5783 ;
5784 return 0;
5785}
5786_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005787rm -f conftest.$ac_objext
5788if { (ac_try="$ac_compile"
5789case "(($ac_try" in
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5792esac
5793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5795 ac_status=$?
5796 grep -v '^ *+' conftest.er1 >conftest.err
5797 rm -f conftest.er1
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } &&
5801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5802 { (case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805esac
5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_try") 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (case "(($ac_try" in
5813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5814 *) ac_try_echo=$ac_try;;
5815esac
5816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5817 (eval "$ac_try") 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005821 ac_compiler_gnu=yes
5822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823 echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005827fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828
Reid Spencera773bd52006-08-04 18:18:08 +00005829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830ac_cv_c_compiler_gnu=$ac_compiler_gnu
5831
5832fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005833{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5834echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5835GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005836ac_test_CFLAGS=${CFLAGS+set}
5837ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005838{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5839echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5840if test "${ac_cv_prog_cc_g+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005842else
5843 ac_save_c_werror_flag=$ac_c_werror_flag
5844 ac_c_werror_flag=yes
5845 ac_cv_prog_cc_g=no
5846 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005847 cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h. */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005852/* end confdefs.h. */
5853
5854int
5855main ()
5856{
5857
5858 ;
5859 return 0;
5860}
5861_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005862rm -f conftest.$ac_objext
5863if { (ac_try="$ac_compile"
5864case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5877 { (case "(($ac_try" in
5878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879 *) ac_try_echo=$ac_try;;
5880esac
5881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882 (eval "$ac_try") 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890esac
5891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_try") 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005896 ac_cv_prog_cc_g=yes
5897else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898 echo "$as_me: failed program was:" >&5
5899sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 CFLAGS=""
5902 cat >conftest.$ac_ext <<_ACEOF
5903/* confdefs.h. */
5904_ACEOF
5905cat confdefs.h >>conftest.$ac_ext
5906cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005907/* end confdefs.h. */
5908
5909int
5910main ()
5911{
5912
5913 ;
5914 return 0;
5915}
5916_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005917rm -f conftest.$ac_objext
5918if { (ac_try="$ac_compile"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5932 { (case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935esac
5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_try") 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 :
Torok Edwin871384f2010-01-26 08:50:50 +00005952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953 echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005957 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005963/* end confdefs.h. */
5964
5965int
5966main ()
5967{
5968
5969 ;
5970 return 0;
5971}
5972_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973rm -f conftest.$ac_objext
5974if { (ac_try="$ac_compile"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_compile") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5991esac
5992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_try") 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001esac
6002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_try") 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006007 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006008else
6009 echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012
Reid Spencera773bd52006-08-04 18:18:08 +00006013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006014
Reid Spencera773bd52006-08-04 18:18:08 +00006015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006017
Reid Spencera773bd52006-08-04 18:18:08 +00006018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006020
Reid Spencera773bd52006-08-04 18:18:08 +00006021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 ac_c_werror_flag=$ac_save_c_werror_flag
6023fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006024{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6025echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006026if test "$ac_test_CFLAGS" = set; then
6027 CFLAGS=$ac_save_CFLAGS
6028elif test $ac_cv_prog_cc_g = yes; then
6029 if test "$GCC" = yes; then
6030 CFLAGS="-g -O2"
6031 else
6032 CFLAGS="-g"
6033 fi
6034else
6035 if test "$GCC" = yes; then
6036 CFLAGS="-O2"
6037 else
6038 CFLAGS=
6039 fi
6040fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006041{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6042echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6043if test "${ac_cv_prog_cc_c89+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006045else
6046 ac_cv_prog_cc_c89=no
6047ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006048cat >conftest.$ac_ext <<_ACEOF
6049/* confdefs.h. */
6050_ACEOF
6051cat confdefs.h >>conftest.$ac_ext
6052cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006053/* end confdefs.h. */
6054#include <stdarg.h>
6055#include <stdio.h>
6056#include <sys/types.h>
6057#include <sys/stat.h>
6058/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6059struct buf { int x; };
6060FILE * (*rcsopen) (struct buf *, struct stat *, int);
6061static char *e (p, i)
6062 char **p;
6063 int i;
6064{
6065 return p[i];
6066}
6067static char *f (char * (*g) (char **, int), char **p, ...)
6068{
6069 char *s;
6070 va_list v;
6071 va_start (v,p);
6072 s = g (p, va_arg (v,int));
6073 va_end (v);
6074 return s;
6075}
6076
6077/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6078 function prototypes and stuff, but not '\xHH' hex character constants.
6079 These don't provoke an error unfortunately, instead are silently treated
6080 as 'x'. The following induces an error, until -std is added to get
6081 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6082 array size at least. It's necessary to write '\x00'==0 to get something
6083 that's true only with -std. */
6084int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6085
6086/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6087 inside strings and character constants. */
6088#define FOO(x) 'x'
6089int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6090
6091int test (int i, double x);
6092struct s1 {int (*f) (int a);};
6093struct s2 {int (*f) (double a);};
6094int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6095int argc;
6096char **argv;
6097int
6098main ()
6099{
6100return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6106 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6107do
6108 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006109 rm -f conftest.$ac_objext
6110if { (ac_try="$ac_compile"
6111case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6124 { (case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_try") 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137esac
6138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_try") 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006143 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006144else
6145 echo "$as_me: failed program was:" >&5
6146sed 's/^/| /' conftest.$ac_ext >&5
6147
6148
Reid Spencera773bd52006-08-04 18:18:08 +00006149fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006150
Reid Spencera773bd52006-08-04 18:18:08 +00006151rm -f core conftest.err conftest.$ac_objext
6152 test "x$ac_cv_prog_cc_c89" != "xno" && break
6153done
6154rm -f conftest.$ac_ext
6155CC=$ac_save_CC
6156
6157fi
6158# AC_CACHE_VAL
6159case "x$ac_cv_prog_cc_c89" in
6160 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161 { echo "$as_me:$LINENO: result: none needed" >&5
6162echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006163 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164 { echo "$as_me:$LINENO: result: unsupported" >&5
6165echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006166 *)
6167 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006168 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6169echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006170esac
6171
6172
6173ac_ext=c
6174ac_cpp='$CPP $CPPFLAGS'
6175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6177ac_compiler_gnu=$ac_cv_c_compiler_gnu
6178
6179ac_ext=cpp
6180ac_cpp='$CXXCPP $CPPFLAGS'
6181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6184if test -z "$CXX"; then
6185 if test -n "$CCC"; then
6186 CXX=$CCC
6187 else
6188 if test -n "$ac_tool_prefix"; then
6189 for ac_prog in g++
6190 do
6191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6192set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6195if test "${ac_cv_prog_CXX+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006197else
6198 if test -n "$CXX"; then
6199 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 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 +00006208 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006210 break 2
6211 fi
6212done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213done
Reid Spencera773bd52006-08-04 18:18:08 +00006214IFS=$as_save_IFS
6215
6216fi
6217fi
6218CXX=$ac_cv_prog_CXX
6219if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006220 { echo "$as_me:$LINENO: result: $CXX" >&5
6221echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006222else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006223 { echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006225fi
6226
6227
6228 test -n "$CXX" && break
6229 done
6230fi
6231if test -z "$CXX"; then
6232 ac_ct_CXX=$CXX
6233 for ac_prog in g++
6234do
6235 # Extract the first word of "$ac_prog", so it can be a program name with args.
6236set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006237{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6239if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006241else
6242 if test -n "$ac_ct_CXX"; then
6243 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 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 +00006252 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006254 break 2
6255 fi
6256done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257done
Reid Spencera773bd52006-08-04 18:18:08 +00006258IFS=$as_save_IFS
6259
6260fi
6261fi
6262ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6263if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6265echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006266else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006267 { echo "$as_me:$LINENO: result: no" >&5
6268echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006269fi
6270
6271
6272 test -n "$ac_ct_CXX" && break
6273done
6274
6275 if test "x$ac_ct_CXX" = x; then
6276 CXX="g++"
6277 else
6278 case $cross_compiling:$ac_tool_warned in
6279yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006280{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6281whose name does not start with the host triplet. If you think this
6282configuration is useful to you, please write to autoconf@gnu.org." >&5
6283echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6284whose name does not start with the host triplet. If you think this
6285configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006286ac_tool_warned=yes ;;
6287esac
6288 CXX=$ac_ct_CXX
6289 fi
6290fi
6291
6292 fi
6293fi
6294# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006295echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6296ac_compiler=`set X $ac_compile; echo $2`
6297{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006298case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006304 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }
6307{ (ac_try="$ac_compiler -v >&5"
6308case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_compiler -v >&5") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }
6317{ (ac_try="$ac_compiler -V >&5"
6318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler -V >&5") 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006328{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6329echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6330if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006332else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006333 cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006338/* end confdefs.h. */
6339
6340int
6341main ()
6342{
6343#ifndef __GNUC__
6344 choke me
6345#endif
6346
6347 ;
6348 return 0;
6349}
6350_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351rm -f conftest.$ac_objext
6352if { (ac_try="$ac_compile"
6353case "(($ac_try" in
6354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6355 *) ac_try_echo=$ac_try;;
6356esac
6357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6358 (eval "$ac_compile") 2>conftest.er1
6359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
6363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364 (exit $ac_status); } &&
6365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6366 { (case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369esac
6370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_try") 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; } &&
6375 { ac_try='test -s conftest.$ac_objext'
6376 { (case "(($ac_try" in
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6379esac
6380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_try") 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006385 ac_compiler_gnu=yes
6386else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387 echo "$as_me: failed program was:" >&5
6388sed 's/^/| /' conftest.$ac_ext >&5
6389
6390 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006391fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392
Reid Spencera773bd52006-08-04 18:18:08 +00006393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6395
6396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006397{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6398echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6399GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006400ac_test_CXXFLAGS=${CXXFLAGS+set}
6401ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006402{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6403echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6404if test "${ac_cv_prog_cxx_g+set}" = set; then
6405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006406else
6407 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6408 ac_cxx_werror_flag=yes
6409 ac_cv_prog_cxx_g=no
6410 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006411 cat >conftest.$ac_ext <<_ACEOF
6412/* confdefs.h. */
6413_ACEOF
6414cat confdefs.h >>conftest.$ac_ext
6415cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006416/* end confdefs.h. */
6417
6418int
6419main ()
6420{
6421
6422 ;
6423 return 0;
6424}
6425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006426rm -f conftest.$ac_objext
6427if { (ac_try="$ac_compile"
6428case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431esac
6432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_compile") 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6441 { (case "(($ac_try" in
6442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6443 *) ac_try_echo=$ac_try;;
6444esac
6445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6446 (eval "$ac_try") 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454esac
6455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_try") 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006460 ac_cv_prog_cxx_g=yes
6461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 CXXFLAGS=""
6466 cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h. */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006471/* end confdefs.h. */
6472
6473int
6474main ()
6475{
6476
6477 ;
6478 return 0;
6479}
6480_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006481rm -f conftest.$ac_objext
6482if { (ac_try="$ac_compile"
6483case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compile") 2>conftest.er1
6489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6496 { (case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
6500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6501 (eval "$ac_try") 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (case "(($ac_try" in
6507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6509esac
6510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_try") 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 :
Torok Edwin871384f2010-01-26 08:50:50 +00006516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517 echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006521 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006522 cat >conftest.$ac_ext <<_ACEOF
6523/* confdefs.h. */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006527/* end confdefs.h. */
6528
6529int
6530main ()
6531{
6532
6533 ;
6534 return 0;
6535}
6536_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537rm -f conftest.$ac_objext
6538if { (ac_try="$ac_compile"
6539case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6552 { (case "(($ac_try" in
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6555esac
6556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_try") 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565esac
6566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_try") 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006571 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006572else
6573 echo "$as_me: failed program was:" >&5
6574sed 's/^/| /' conftest.$ac_ext >&5
6575
6576
Reid Spencera773bd52006-08-04 18:18:08 +00006577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006578
Reid Spencera773bd52006-08-04 18:18:08 +00006579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006581
Reid Spencera773bd52006-08-04 18:18:08 +00006582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006584
Reid Spencera773bd52006-08-04 18:18:08 +00006585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6587fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006588{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6589echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006590if test "$ac_test_CXXFLAGS" = set; then
6591 CXXFLAGS=$ac_save_CXXFLAGS
6592elif test $ac_cv_prog_cxx_g = yes; then
6593 if test "$GXX" = yes; then
6594 CXXFLAGS="-g -O2"
6595 else
6596 CXXFLAGS="-g"
6597 fi
6598else
6599 if test "$GXX" = yes; then
6600 CXXFLAGS="-O2"
6601 else
6602 CXXFLAGS=
6603 fi
6604fi
6605ac_ext=c
6606ac_cpp='$CPP $CPPFLAGS'
6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6609ac_compiler_gnu=$ac_cv_c_compiler_gnu
6610
Reid Spencera773bd52006-08-04 18:18:08 +00006611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006612{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6613echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6614if test "${lt_cv_path_NM+set}" = set; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006616else
6617 if test -n "$NM"; then
6618 # Let the user override the test.
6619 lt_cv_path_NM="$NM"
6620else
6621 lt_nm_to_check="${ac_tool_prefix}nm"
6622 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6623 lt_nm_to_check="$lt_nm_to_check nm"
6624 fi
6625 for lt_tmp_nm in $lt_nm_to_check; do
6626 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6627 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6628 IFS="$lt_save_ifs"
6629 test -z "$ac_dir" && ac_dir=.
6630 tmp_nm="$ac_dir/$lt_tmp_nm"
6631 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6632 # Check to see if the nm accepts a BSD-compat flag.
6633 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6634 # nm: unknown option "B" ignored
6635 # Tru64's nm complains that /dev/null is an invalid object file
6636 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6637 */dev/null* | *'Invalid file or object type'*)
6638 lt_cv_path_NM="$tmp_nm -B"
6639 break
6640 ;;
6641 *)
6642 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6643 */dev/null*)
6644 lt_cv_path_NM="$tmp_nm -p"
6645 break
6646 ;;
6647 *)
6648 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6649 continue # so that we can try to find one that supports BSD flags
6650 ;;
6651 esac
6652 ;;
6653 esac
6654 fi
6655 done
6656 IFS="$lt_save_ifs"
6657 done
6658 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6659fi
6660fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006661{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6662echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006663NM="$lt_cv_path_NM"
6664
6665
6666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006667{ echo "$as_me:$LINENO: checking for GNU make" >&5
6668echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6669if test "${llvm_cv_gnu_make_command+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006671else
6672 llvm_cv_gnu_make_command=''
6673 for a in "$MAKE" make gmake gnumake ; do
6674 if test -z "$a" ; then continue ; fi ;
6675 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6676 then
6677 llvm_cv_gnu_make_command=$a ;
6678 break;
6679 fi
6680 done
6681fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006682{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6683echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006684 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6685 ifGNUmake='' ;
6686 else
6687 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006688 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6689echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006690 fi
6691
6692
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006693{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6694echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006695LN_S=$as_ln_s
6696if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697 { echo "$as_me:$LINENO: result: yes" >&5
6698echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006700 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6701echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006702fi
6703
6704# Extract the first word of "cmp", so it can be a program name with args.
6705set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_CMP+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006710else
6711 case $CMP in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 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 +00006723 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006725 break 2
6726 fi
6727done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006728done
Reid Spencera773bd52006-08-04 18:18:08 +00006729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6732 ;;
6733esac
6734fi
6735CMP=$ac_cv_path_CMP
6736if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737 { echo "$as_me:$LINENO: result: $CMP" >&5
6738echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006739else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006742fi
6743
6744
6745# Extract the first word of "cp", so it can be a program name with args.
6746set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749if test "${ac_cv_path_CP+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006751else
6752 case $CP in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 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 +00006764 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006766 break 2
6767 fi
6768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769done
Reid Spencera773bd52006-08-04 18:18:08 +00006770IFS=$as_save_IFS
6771
6772 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6773 ;;
6774esac
6775fi
6776CP=$ac_cv_path_CP
6777if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778 { echo "$as_me:$LINENO: result: $CP" >&5
6779echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006781 { echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006783fi
6784
6785
6786# Extract the first word of "date", so it can be a program name with args.
6787set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_path_DATE+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006792else
6793 case $DATE in
6794 [\\/]* | ?:[\\/]*)
6795 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6796 ;;
6797 *)
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799for as_dir in $PATH
6800do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 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 +00006805 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006807 break 2
6808 fi
6809done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006810done
Reid Spencera773bd52006-08-04 18:18:08 +00006811IFS=$as_save_IFS
6812
6813 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6814 ;;
6815esac
6816fi
6817DATE=$ac_cv_path_DATE
6818if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819 { echo "$as_me:$LINENO: result: $DATE" >&5
6820echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006821else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006822 { echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006824fi
6825
6826
6827# Extract the first word of "find", so it can be a program name with args.
6828set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831if test "${ac_cv_path_FIND+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006833else
6834 case $FIND in
6835 [\\/]* | ?:[\\/]*)
6836 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6837 ;;
6838 *)
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842 IFS=$as_save_IFS
6843 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 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 +00006846 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006848 break 2
6849 fi
6850done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006851done
Reid Spencera773bd52006-08-04 18:18:08 +00006852IFS=$as_save_IFS
6853
6854 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6855 ;;
6856esac
6857fi
6858FIND=$ac_cv_path_FIND
6859if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006860 { echo "$as_me:$LINENO: result: $FIND" >&5
6861echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006863 { echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006865fi
6866
6867
6868# Extract the first word of "grep", so it can be a program name with args.
6869set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6872if test "${ac_cv_path_GREP+set}" = set; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006874else
6875 case $GREP in
6876 [\\/]* | ?:[\\/]*)
6877 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6878 ;;
6879 *)
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881for as_dir in $PATH
6882do
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 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 +00006887 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006889 break 2
6890 fi
6891done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006892done
Reid Spencera773bd52006-08-04 18:18:08 +00006893IFS=$as_save_IFS
6894
6895 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6896 ;;
6897esac
6898fi
6899GREP=$ac_cv_path_GREP
6900if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901 { echo "$as_me:$LINENO: result: $GREP" >&5
6902echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006903else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006904 { echo "$as_me:$LINENO: result: no" >&5
6905echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006906fi
6907
6908
6909# Extract the first word of "mkdir", so it can be a program name with args.
6910set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6913if test "${ac_cv_path_MKDIR+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006915else
6916 case $MKDIR in
6917 [\\/]* | ?:[\\/]*)
6918 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6919 ;;
6920 *)
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922for as_dir in $PATH
6923do
6924 IFS=$as_save_IFS
6925 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926 for ac_exec_ext in '' $ac_executable_extensions; do
6927 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 +00006928 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006930 break 2
6931 fi
6932done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006933done
Reid Spencera773bd52006-08-04 18:18:08 +00006934IFS=$as_save_IFS
6935
6936 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6937 ;;
6938esac
6939fi
6940MKDIR=$ac_cv_path_MKDIR
6941if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6943echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006944else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006945 { echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006947fi
6948
6949
6950# Extract the first word of "mv", so it can be a program name with args.
6951set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6954if test "${ac_cv_path_MV+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006956else
6957 case $MV in
6958 [\\/]* | ?:[\\/]*)
6959 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6960 ;;
6961 *)
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965 IFS=$as_save_IFS
6966 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 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 +00006969 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006971 break 2
6972 fi
6973done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006974done
Reid Spencera773bd52006-08-04 18:18:08 +00006975IFS=$as_save_IFS
6976
6977 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6978 ;;
6979esac
6980fi
6981MV=$ac_cv_path_MV
6982if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006983 { echo "$as_me:$LINENO: result: $MV" >&5
6984echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006985else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006986 { echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006988fi
6989
6990
6991if test -n "$ac_tool_prefix"; then
6992 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996if test "${ac_cv_prog_RANLIB+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006998else
6999 if test -n "$RANLIB"; then
7000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 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 +00007009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007011 break 2
7012 fi
7013done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014done
Reid Spencera773bd52006-08-04 18:18:08 +00007015IFS=$as_save_IFS
7016
7017fi
7018fi
7019RANLIB=$ac_cv_prog_RANLIB
7020if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7022echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007024 { echo "$as_me:$LINENO: result: no" >&5
7025echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_RANLIB"; then
7031 ac_ct_RANLIB=$RANLIB
7032 # Extract the first word of "ranlib", so it can be a program name with args.
7033set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007038else
7039 if test -n "$ac_ct_RANLIB"; then
7040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047 for ac_exec_ext in '' $ac_executable_extensions; do
7048 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 +00007049 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007051 break 2
7052 fi
7053done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054done
Reid Spencera773bd52006-08-04 18:18:08 +00007055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7060if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7062echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007064 { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007066fi
7067
7068 if test "x$ac_ct_RANLIB" = x; then
7069 RANLIB=":"
7070 else
7071 case $cross_compiling:$ac_tool_warned in
7072yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7074whose name does not start with the host triplet. If you think this
7075configuration is useful to you, please write to autoconf@gnu.org." >&5
7076echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7077whose name does not start with the host triplet. If you think this
7078configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007079ac_tool_warned=yes ;;
7080esac
7081 RANLIB=$ac_ct_RANLIB
7082 fi
7083else
7084 RANLIB="$ac_cv_prog_RANLIB"
7085fi
7086
Torok Edwin871384f2010-01-26 08:50:50 +00007087if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7089set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_prog_AR+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007094else
7095 if test -n "$AR"; then
7096 ac_cv_prog_AR="$AR" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 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 +00007105 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007107 break 2
7108 fi
7109done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110done
Torok Edwin871384f2010-01-26 08:50:50 +00007111IFS=$as_save_IFS
7112
7113fi
7114fi
7115AR=$ac_cv_prog_AR
7116if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 { echo "$as_me:$LINENO: result: $AR" >&5
7118echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007119else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007120 { echo "$as_me:$LINENO: result: no" >&5
7121echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007122fi
7123
7124
7125fi
7126if test -z "$ac_cv_prog_AR"; then
7127 ac_ct_AR=$AR
7128 # Extract the first word of "ar", so it can be a program name with args.
7129set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7132if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007134else
7135 if test -n "$ac_ct_AR"; then
7136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 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 +00007145 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007147 break 2
7148 fi
7149done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150done
Torok Edwin871384f2010-01-26 08:50:50 +00007151IFS=$as_save_IFS
7152
7153fi
7154fi
7155ac_ct_AR=$ac_cv_prog_ac_ct_AR
7156if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7158echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160 { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007162fi
7163
7164 if test "x$ac_ct_AR" = x; then
7165 AR="false"
7166 else
7167 case $cross_compiling:$ac_tool_warned in
7168yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007169{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7170whose name does not start with the host triplet. If you think this
7171configuration is useful to you, please write to autoconf@gnu.org." >&5
7172echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7173whose name does not start with the host triplet. If you think this
7174configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007175ac_tool_warned=yes ;;
7176esac
7177 AR=$ac_ct_AR
7178 fi
7179else
7180 AR="$ac_cv_prog_AR"
7181fi
7182
Reid Spencera773bd52006-08-04 18:18:08 +00007183# Extract the first word of "rm", so it can be a program name with args.
7184set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187if test "${ac_cv_path_RM+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007189else
7190 case $RM in
7191 [\\/]* | ?:[\\/]*)
7192 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7193 ;;
7194 *)
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 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 +00007202 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007204 break 2
7205 fi
7206done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207done
Reid Spencera773bd52006-08-04 18:18:08 +00007208IFS=$as_save_IFS
7209
7210 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7211 ;;
7212esac
7213fi
7214RM=$ac_cv_path_RM
7215if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216 { echo "$as_me:$LINENO: result: $RM" >&5
7217echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007219 { echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007221fi
7222
7223
7224# Extract the first word of "sed", so it can be a program name with args.
7225set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228if test "${ac_cv_path_SED+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007230else
7231 case $SED in
7232 [\\/]* | ?:[\\/]*)
7233 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7234 ;;
7235 *)
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 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 +00007243 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007245 break 2
7246 fi
7247done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007248done
Reid Spencera773bd52006-08-04 18:18:08 +00007249IFS=$as_save_IFS
7250
7251 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7252 ;;
7253esac
7254fi
7255SED=$ac_cv_path_SED
7256if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257 { echo "$as_me:$LINENO: result: $SED" >&5
7258echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007259else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007260 { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007262fi
7263
7264
7265# Extract the first word of "tar", so it can be a program name with args.
7266set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269if test "${ac_cv_path_TAR+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007271else
7272 case $TAR in
7273 [\\/]* | ?:[\\/]*)
7274 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7275 ;;
7276 *)
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 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 +00007284 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007286 break 2
7287 fi
7288done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007289done
Reid Spencera773bd52006-08-04 18:18:08 +00007290IFS=$as_save_IFS
7291
7292 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7293 ;;
7294esac
7295fi
7296TAR=$ac_cv_path_TAR
7297if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298 { echo "$as_me:$LINENO: result: $TAR" >&5
7299echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007300else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007301 { echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007303fi
7304
7305
7306# Extract the first word of "pwd", so it can be a program name with args.
7307set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310if test "${ac_cv_path_BINPWD+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007312else
7313 case $BINPWD in
7314 [\\/]* | ?:[\\/]*)
7315 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7316 ;;
7317 *)
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 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 +00007325 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007327 break 2
7328 fi
7329done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007330done
Reid Spencera773bd52006-08-04 18:18:08 +00007331IFS=$as_save_IFS
7332
7333 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7334 ;;
7335esac
7336fi
7337BINPWD=$ac_cv_path_BINPWD
7338if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7340echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007342 { echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007344fi
7345
7346
7347
7348# Extract the first word of "Graphviz", so it can be a program name with args.
7349set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007354else
7355 case $GRAPHVIZ in
7356 [\\/]* | ?:[\\/]*)
7357 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7358 ;;
7359 *)
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365 for ac_exec_ext in '' $ac_executable_extensions; do
7366 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 +00007367 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007369 break 2
7370 fi
7371done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007372done
Reid Spencera773bd52006-08-04 18:18:08 +00007373IFS=$as_save_IFS
7374
7375 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7376 ;;
7377esac
7378fi
7379GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7380if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7382echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007384 { echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007386fi
7387
7388
7389if test "$GRAPHVIZ" != "echo Graphviz" ; then
7390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007391cat >>confdefs.h <<\_ACEOF
7392#define HAVE_GRAPHVIZ 1
7393_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007394
Jeff Cohen28783c32007-01-12 18:22:38 +00007395 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007396 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7397 fi
7398
7399cat >>confdefs.h <<_ACEOF
7400#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7401_ACEOF
7402
7403fi
7404# Extract the first word of "dot", so it can be a program name with args.
7405set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408if test "${ac_cv_path_DOT+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007410else
7411 case $DOT in
7412 [\\/]* | ?:[\\/]*)
7413 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7414 ;;
7415 *)
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 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 +00007423 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007425 break 2
7426 fi
7427done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007428done
Reid Spencera773bd52006-08-04 18:18:08 +00007429IFS=$as_save_IFS
7430
7431 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7432 ;;
7433esac
7434fi
7435DOT=$ac_cv_path_DOT
7436if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 { echo "$as_me:$LINENO: result: $DOT" >&5
7438echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007439else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007440 { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007442fi
7443
7444
7445if test "$DOT" != "echo dot" ; then
7446
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007447cat >>confdefs.h <<\_ACEOF
7448#define HAVE_DOT 1
7449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007450
Jeff Cohen28783c32007-01-12 18:22:38 +00007451 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007452 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7453 fi
7454
7455cat >>confdefs.h <<_ACEOF
7456#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7457_ACEOF
7458
7459fi
David Greenef0b9eff2009-07-09 17:16:26 +00007460# Extract the first word of "fdp", so it can be a program name with args.
7461set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7464if test "${ac_cv_path_FDP+set}" = set; then
7465 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007466else
7467 case $FDP in
7468 [\\/]* | ?:[\\/]*)
7469 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7470 ;;
7471 *)
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473for as_dir in $PATH
7474do
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 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 +00007479 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007481 break 2
7482 fi
7483done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007484done
David Greenef0b9eff2009-07-09 17:16:26 +00007485IFS=$as_save_IFS
7486
7487 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7488 ;;
7489esac
7490fi
7491FDP=$ac_cv_path_FDP
7492if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 { echo "$as_me:$LINENO: result: $FDP" >&5
7494echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007496 { echo "$as_me:$LINENO: result: no" >&5
7497echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007498fi
7499
7500
7501if test "$FDP" != "echo fdp" ; then
7502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007503cat >>confdefs.h <<\_ACEOF
7504#define HAVE_FDP 1
7505_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007506
7507 if test "$llvm_cv_os_type" = "MingW" ; then
7508 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7509 fi
7510
7511cat >>confdefs.h <<_ACEOF
7512#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7513_ACEOF
7514
7515fi
7516# Extract the first word of "neato", so it can be a program name with args.
7517set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520if test "${ac_cv_path_NEATO+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007522else
7523 case $NEATO in
7524 [\\/]* | ?:[\\/]*)
7525 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7526 ;;
7527 *)
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 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 +00007535 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007537 break 2
7538 fi
7539done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007540done
David Greenef0b9eff2009-07-09 17:16:26 +00007541IFS=$as_save_IFS
7542
7543 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7544 ;;
7545esac
7546fi
7547NEATO=$ac_cv_path_NEATO
7548if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549 { echo "$as_me:$LINENO: result: $NEATO" >&5
7550echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007551else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007552 { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007554fi
7555
7556
7557if test "$NEATO" != "echo neato" ; then
7558
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007559cat >>confdefs.h <<\_ACEOF
7560#define HAVE_NEATO 1
7561_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007562
7563 if test "$llvm_cv_os_type" = "MingW" ; then
7564 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7565 fi
7566
7567cat >>confdefs.h <<_ACEOF
7568#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7569_ACEOF
7570
7571fi
7572# Extract the first word of "twopi", so it can be a program name with args.
7573set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576if test "${ac_cv_path_TWOPI+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007578else
7579 case $TWOPI in
7580 [\\/]* | ?:[\\/]*)
7581 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7582 ;;
7583 *)
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 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 +00007591 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007593 break 2
7594 fi
7595done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007596done
David Greenef0b9eff2009-07-09 17:16:26 +00007597IFS=$as_save_IFS
7598
7599 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7600 ;;
7601esac
7602fi
7603TWOPI=$ac_cv_path_TWOPI
7604if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7606echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007607else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007608 { echo "$as_me:$LINENO: result: no" >&5
7609echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007610fi
7611
7612
7613if test "$TWOPI" != "echo twopi" ; then
7614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007615cat >>confdefs.h <<\_ACEOF
7616#define HAVE_TWOPI 1
7617_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007618
7619 if test "$llvm_cv_os_type" = "MingW" ; then
7620 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7621 fi
7622
7623cat >>confdefs.h <<_ACEOF
7624#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7625_ACEOF
7626
7627fi
7628# Extract the first word of "circo", so it can be a program name with args.
7629set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7632if test "${ac_cv_path_CIRCO+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007634else
7635 case $CIRCO in
7636 [\\/]* | ?:[\\/]*)
7637 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7638 ;;
7639 *)
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 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 +00007647 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007649 break 2
7650 fi
7651done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007652done
David Greenef0b9eff2009-07-09 17:16:26 +00007653IFS=$as_save_IFS
7654
7655 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7656 ;;
7657esac
7658fi
7659CIRCO=$ac_cv_path_CIRCO
7660if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7662echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007664 { echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007666fi
7667
7668
7669if test "$CIRCO" != "echo circo" ; then
7670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007671cat >>confdefs.h <<\_ACEOF
7672#define HAVE_CIRCO 1
7673_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007674
7675 if test "$llvm_cv_os_type" = "MingW" ; then
7676 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7677 fi
7678
7679cat >>confdefs.h <<_ACEOF
7680#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7681_ACEOF
7682
7683fi
Reid Spencera773bd52006-08-04 18:18:08 +00007684for ac_prog in gv gsview32
7685do
7686 # Extract the first word of "$ac_prog", so it can be a program name with args.
7687set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7690if test "${ac_cv_path_GV+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007692else
7693 case $GV in
7694 [\\/]* | ?:[\\/]*)
7695 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7696 ;;
7697 *)
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 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 +00007705 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007707 break 2
7708 fi
7709done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007710done
Reid Spencera773bd52006-08-04 18:18:08 +00007711IFS=$as_save_IFS
7712
7713 ;;
7714esac
7715fi
7716GV=$ac_cv_path_GV
7717if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 { echo "$as_me:$LINENO: result: $GV" >&5
7719echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007721 { echo "$as_me:$LINENO: result: no" >&5
7722echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007723fi
7724
7725
7726 test -n "$GV" && break
7727done
7728test -n "$GV" || GV="echo gv"
7729
7730if test "$GV" != "echo gv" ; then
7731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732cat >>confdefs.h <<\_ACEOF
7733#define HAVE_GV 1
7734_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007735
Jeff Cohen28783c32007-01-12 18:22:38 +00007736 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007737 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7738 fi
7739
7740cat >>confdefs.h <<_ACEOF
7741#define LLVM_PATH_GV "$GV${EXEEXT}"
7742_ACEOF
7743
7744fi
7745# Extract the first word of "dotty", so it can be a program name with args.
7746set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7749if test "${ac_cv_path_DOTTY+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007751else
7752 case $DOTTY in
7753 [\\/]* | ?:[\\/]*)
7754 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7755 ;;
7756 *)
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 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 +00007764 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007766 break 2
7767 fi
7768done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007769done
Reid Spencera773bd52006-08-04 18:18:08 +00007770IFS=$as_save_IFS
7771
7772 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7773 ;;
7774esac
7775fi
7776DOTTY=$ac_cv_path_DOTTY
7777if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7779echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007780else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007781 { echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007783fi
7784
7785
7786if test "$DOTTY" != "echo dotty" ; then
7787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007788cat >>confdefs.h <<\_ACEOF
7789#define HAVE_DOTTY 1
7790_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007791
Jeff Cohen28783c32007-01-12 18:22:38 +00007792 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007793 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7794 fi
7795
7796cat >>confdefs.h <<_ACEOF
7797#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7798_ACEOF
7799
7800fi
7801
7802
7803# Extract the first word of "perl", so it can be a program name with args.
7804set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7807if test "${ac_cv_path_PERL+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007809else
7810 case $PERL in
7811 [\\/]* | ?:[\\/]*)
7812 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7813 ;;
7814 *)
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816for as_dir in $PATH
7817do
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 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 +00007822 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007824 break 2
7825 fi
7826done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007827done
Reid Spencera773bd52006-08-04 18:18:08 +00007828IFS=$as_save_IFS
7829
7830 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7831 ;;
7832esac
7833fi
7834PERL=$ac_cv_path_PERL
7835if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836 { echo "$as_me:$LINENO: result: $PERL" >&5
7837echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007839 { echo "$as_me:$LINENO: result: no" >&5
7840echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007841fi
7842
7843
7844if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007845 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7846echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007847 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007848 { echo "$as_me:$LINENO: result: yes" >&5
7849echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007850 else
7851 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852 { echo "$as_me:$LINENO: result: not found" >&5
7853echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007854 fi
7855fi
7856
7857
7858if test x"$PERL" = xnone; then
7859 HAVE_PERL=0
7860
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007861 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7862echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7863 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007864else
7865 HAVE_PERL=1
7866
7867fi
7868
7869# Find a good install program. We prefer a C program (faster),
7870# so one script is as good as another. But avoid the broken or
7871# incompatible versions:
7872# SysV /etc/install, /usr/sbin/install
7873# SunOS /usr/etc/install
7874# IRIX /sbin/install
7875# AIX /bin/install
7876# AmigaOS /C/install, which installs bootblocks on floppy discs
7877# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7878# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7879# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7880# OS/2's system install, which has a completely different semantic
7881# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7883echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007884if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007885if test "${ac_cv_path_install+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007887else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007893 # Account for people who put trailing slashes in PATH elements.
7894case $as_dir/ in
7895 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007896 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007898 /usr/ucb/* ) ;;
7899 *)
7900 # OSF1 and SCO ODT 3.0 have their own names for install.
7901 # Don't use installbsd from OSF since it installs stuff as root
7902 # by default.
7903 for ac_prog in ginstall scoinst install; do
7904 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905 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 +00007906 if test $ac_prog = install &&
7907 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7908 # AIX install. It has an incompatible calling convention.
7909 :
7910 elif test $ac_prog = install &&
7911 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7912 # program-specific install script used by HP pwplus--don't use.
7913 :
7914 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007915 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7916 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007917 fi
7918 fi
7919 done
7920 done
7921 ;;
7922esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007923done
Reid Spencera773bd52006-08-04 18:18:08 +00007924IFS=$as_save_IFS
7925
7926
7927fi
7928 if test "${ac_cv_path_install+set}" = set; then
7929 INSTALL=$ac_cv_path_install
7930 else
7931 # As a last resort, use the slow shell script. Don't cache a
7932 # value for INSTALL within a source directory, because that will
7933 # break other packages using the cache if that directory is
7934 # removed, or if the value is a relative name.
7935 INSTALL=$ac_install_sh
7936 fi
7937fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007938{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7939echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007940
7941# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7942# It thinks the first close brace ends the variable substitution.
7943test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7944
7945test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7946
7947test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7948
7949
7950# Extract the first word of "bzip2", so it can be a program name with args.
7951set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954if test "${ac_cv_path_BZIP2+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007956else
7957 case $BZIP2 in
7958 [\\/]* | ?:[\\/]*)
7959 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7960 ;;
7961 *)
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 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 +00007969 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007971 break 2
7972 fi
7973done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974done
Reid Spencera773bd52006-08-04 18:18:08 +00007975IFS=$as_save_IFS
7976
Reid Spencera773bd52006-08-04 18:18:08 +00007977 ;;
7978esac
7979fi
7980BZIP2=$ac_cv_path_BZIP2
7981if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7983echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007985 { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007987fi
7988
7989
7990# Extract the first word of "doxygen", so it can be a program name with args.
7991set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994if test "${ac_cv_path_DOXYGEN+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007996else
7997 case $DOXYGEN in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8000 ;;
8001 *)
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 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 +00008009 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008011 break 2
8012 fi
8013done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014done
Reid Spencera773bd52006-08-04 18:18:08 +00008015IFS=$as_save_IFS
8016
Reid Spencera773bd52006-08-04 18:18:08 +00008017 ;;
8018esac
8019fi
8020DOXYGEN=$ac_cv_path_DOXYGEN
8021if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8023echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025 { echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008027fi
8028
8029
Reid Spencera773bd52006-08-04 18:18:08 +00008030# Extract the first word of "groff", so it can be a program name with args.
8031set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034if test "${ac_cv_path_GROFF+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008036else
8037 case $GROFF in
8038 [\\/]* | ?:[\\/]*)
8039 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 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 +00008049 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008051 break 2
8052 fi
8053done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008054done
Reid Spencera773bd52006-08-04 18:18:08 +00008055IFS=$as_save_IFS
8056
Reid Spencera773bd52006-08-04 18:18:08 +00008057 ;;
8058esac
8059fi
8060GROFF=$ac_cv_path_GROFF
8061if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062 { echo "$as_me:$LINENO: result: $GROFF" >&5
8063echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008064else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008065 { echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008067fi
8068
8069
8070# Extract the first word of "gzip", so it can be a program name with args.
8071set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074if test "${ac_cv_path_GZIP+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008076else
8077 case $GZIP in
8078 [\\/]* | ?:[\\/]*)
8079 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8080 ;;
8081 *)
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 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 +00008089 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008091 break 2
8092 fi
8093done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094done
Reid Spencera773bd52006-08-04 18:18:08 +00008095IFS=$as_save_IFS
8096
Reid Spencera773bd52006-08-04 18:18:08 +00008097 ;;
8098esac
8099fi
8100GZIP=$ac_cv_path_GZIP
8101if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102 { echo "$as_me:$LINENO: result: $GZIP" >&5
8103echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 { echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008107fi
8108
8109
8110# Extract the first word of "pod2html", so it can be a program name with args.
8111set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114if test "${ac_cv_path_POD2HTML+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008116else
8117 case $POD2HTML in
8118 [\\/]* | ?:[\\/]*)
8119 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8120 ;;
8121 *)
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 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 +00008129 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008131 break 2
8132 fi
8133done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134done
Reid Spencera773bd52006-08-04 18:18:08 +00008135IFS=$as_save_IFS
8136
Reid Spencera773bd52006-08-04 18:18:08 +00008137 ;;
8138esac
8139fi
8140POD2HTML=$ac_cv_path_POD2HTML
8141if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8143echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008144else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145 { echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008147fi
8148
8149
8150# Extract the first word of "pod2man", so it can be a program name with args.
8151set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154if test "${ac_cv_path_POD2MAN+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008156else
8157 case $POD2MAN in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8160 ;;
8161 *)
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 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 +00008169 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008171 break 2
8172 fi
8173done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174done
Reid Spencera773bd52006-08-04 18:18:08 +00008175IFS=$as_save_IFS
8176
Reid Spencera773bd52006-08-04 18:18:08 +00008177 ;;
8178esac
8179fi
8180POD2MAN=$ac_cv_path_POD2MAN
8181if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8183echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185 { echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008187fi
8188
8189
8190# Extract the first word of "runtest", so it can be a program name with args.
8191set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194if test "${ac_cv_path_RUNTEST+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008196else
8197 case $RUNTEST in
8198 [\\/]* | ?:[\\/]*)
8199 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8200 ;;
8201 *)
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 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 +00008209 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008211 break 2
8212 fi
8213done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214done
Reid Spencera773bd52006-08-04 18:18:08 +00008215IFS=$as_save_IFS
8216
Reid Spencera773bd52006-08-04 18:18:08 +00008217 ;;
8218esac
8219fi
8220RUNTEST=$ac_cv_path_RUNTEST
8221if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8223echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225 { echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008227fi
8228
8229
8230
8231no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8233echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008234
8235# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008236if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008237 withval=$with_tclinclude; with_tclinclude=${withval}
8238else
8239 with_tclinclude=''
8240fi
8241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008242if test "${ac_cv_path_tclsh+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008244else
8245
8246if test x"${with_tclinclude}" != x ; then
8247 if test -f ${with_tclinclude}/tclsh ; then
8248 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8249 elif test -f ${with_tclinclude}/src/tclsh ; then
8250 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8251 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008252 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8253echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8254 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008255 fi
8256fi
Torok Edwin871384f2010-01-26 08:50:50 +00008257fi
8258
Reid Spencera773bd52006-08-04 18:18:08 +00008259
8260if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008261 { echo "$as_me:$LINENO: result: none" >&5
8262echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008263 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
8264do
8265 # Extract the first word of "$ac_prog", so it can be a program name with args.
8266set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269if 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 case $TCLSH in
8273 [\\/]* | ?:[\\/]*)
8274 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8275 ;;
8276 *)
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 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 +00008284 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008286 break 2
8287 fi
8288done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289done
Reid Spencera773bd52006-08-04 18:18:08 +00008290IFS=$as_save_IFS
8291
8292 ;;
8293esac
8294fi
8295TCLSH=$ac_cv_path_TCLSH
8296if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8298echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008299else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008300 { echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008302fi
8303
8304
8305 test -n "$TCLSH" && break
8306done
8307
8308 if test x"${TCLSH}" = x ; then
8309 ac_cv_path_tclsh='';
8310 else
8311 ac_cv_path_tclsh="${TCLSH}";
8312 fi
8313else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8315echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008316 TCLSH="${ac_cv_path_tclsh}"
8317
8318fi
8319
Reid Spencera773bd52006-08-04 18:18:08 +00008320# Extract the first word of "zip", so it can be a program name with args.
8321set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8324if test "${ac_cv_path_ZIP+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008326else
8327 case $ZIP in
8328 [\\/]* | ?:[\\/]*)
8329 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8330 ;;
8331 *)
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 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 +00008339 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008341 break 2
8342 fi
8343done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008344done
Reid Spencera773bd52006-08-04 18:18:08 +00008345IFS=$as_save_IFS
8346
Reid Spencera773bd52006-08-04 18:18:08 +00008347 ;;
8348esac
8349fi
8350ZIP=$ac_cv_path_ZIP
8351if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 { echo "$as_me:$LINENO: result: $ZIP" >&5
8353echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008354else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008355 { echo "$as_me:$LINENO: result: no" >&5
8356echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008357fi
8358
8359
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008360for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008361do
8362 # Extract the first word of "$ac_prog", so it can be a program name with args.
8363set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8366if test "${ac_cv_path_OCAMLC+set}" = set; then
8367 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008368else
8369 case $OCAMLC in
8370 [\\/]* | ?:[\\/]*)
8371 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8372 ;;
8373 *)
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 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 +00008381 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008383 break 2
8384 fi
8385done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008387IFS=$as_save_IFS
8388
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008389 ;;
8390esac
8391fi
8392OCAMLC=$ac_cv_path_OCAMLC
8393if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8395echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008396else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008397 { echo "$as_me:$LINENO: result: no" >&5
8398echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008399fi
8400
8401
Gordon Henriksene7072162008-03-07 18:20:01 +00008402 test -n "$OCAMLC" && break
8403done
8404
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008405for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008406do
8407 # Extract the first word of "$ac_prog", so it can be a program name with args.
8408set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008413else
8414 case $OCAMLOPT in
8415 [\\/]* | ?:[\\/]*)
8416 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8417 ;;
8418 *)
8419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 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 +00008426 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008428 break 2
8429 fi
8430done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008431done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008432IFS=$as_save_IFS
8433
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008434 ;;
8435esac
8436fi
8437OCAMLOPT=$ac_cv_path_OCAMLOPT
8438if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8440echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008441else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442 { echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008444fi
8445
8446
Gordon Henriksene7072162008-03-07 18:20:01 +00008447 test -n "$OCAMLOPT" && break
8448done
8449
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008450for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008451do
8452 # Extract the first word of "$ac_prog", so it can be a program name with args.
8453set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8456if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008458else
8459 case $OCAMLDEP in
8460 [\\/]* | ?:[\\/]*)
8461 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8462 ;;
8463 *)
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 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 +00008471 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008473 break 2
8474 fi
8475done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008476done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008477IFS=$as_save_IFS
8478
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008479 ;;
8480esac
8481fi
8482OCAMLDEP=$ac_cv_path_OCAMLDEP
8483if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8485echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008487 { echo "$as_me:$LINENO: result: no" >&5
8488echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008489fi
8490
8491
Gordon Henriksene7072162008-03-07 18:20:01 +00008492 test -n "$OCAMLDEP" && break
8493done
8494
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008495for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008496do
8497 # Extract the first word of "$ac_prog", so it can be a program name with args.
8498set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008503else
8504 case $OCAMLDOC in
8505 [\\/]* | ?:[\\/]*)
8506 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8507 ;;
8508 *)
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510for as_dir in $PATH
8511do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 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 +00008516 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008518 break 2
8519 fi
8520done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008521done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008522IFS=$as_save_IFS
8523
8524 ;;
8525esac
8526fi
8527OCAMLDOC=$ac_cv_path_OCAMLDOC
8528if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8530echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008532 { echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008534fi
8535
8536
8537 test -n "$OCAMLDOC" && break
8538done
8539
Torok Edwincc499a42008-10-22 09:56:27 +00008540for ac_prog in gas as
8541do
8542 # Extract the first word of "$ac_prog", so it can be a program name with args.
8543set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8546if test "${ac_cv_path_GAS+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008548else
8549 case $GAS in
8550 [\\/]* | ?:[\\/]*)
8551 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8552 ;;
8553 *)
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555for as_dir in $PATH
8556do
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 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 +00008561 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008563 break 2
8564 fi
8565done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008566done
Torok Edwincc499a42008-10-22 09:56:27 +00008567IFS=$as_save_IFS
8568
8569 ;;
8570esac
8571fi
8572GAS=$ac_cv_path_GAS
8573if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574 { echo "$as_me:$LINENO: result: $GAS" >&5
8575echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008577 { echo "$as_me:$LINENO: result: no" >&5
8578echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008579fi
8580
8581
8582 test -n "$GAS" && break
8583done
8584
Reid Spencera773bd52006-08-04 18:18:08 +00008585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008586{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8587echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8588if test "${llvm_cv_link_use_r+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008590else
8591 ac_ext=c
8592ac_cpp='$CPP $CPPFLAGS'
8593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597 oldcflags="$CFLAGS"
8598 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008599 cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h. */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008604/* end confdefs.h. */
8605
8606int
8607main ()
8608{
8609int main() { return 0; }
8610 ;
8611 return 0;
8612}
8613_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008614rm -f conftest.$ac_objext conftest$ac_exeext
8615if { (ac_try="$ac_link"
8616case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619esac
8620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_link") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8629 { (case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_try") 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642esac
8643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8645 ac_status=$?
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008648 llvm_cv_link_use_r=yes
8649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008654fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008655
Bill Wendlingebcceee2009-04-18 11:20:33 +00008656rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008657 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008658 CFLAGS="$oldcflags"
8659 ac_ext=c
8660ac_cpp='$CPP $CPPFLAGS'
8661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8663ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664
8665
8666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008667{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8668echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008669if test "$llvm_cv_link_use_r" = yes ; then
8670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008671cat >>confdefs.h <<\_ACEOF
8672#define HAVE_LINK_R 1
8673_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008674
8675 fi
8676
8677
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8679echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8680if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8681 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008682else
8683 ac_ext=c
8684ac_cpp='$CPP $CPPFLAGS'
8685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687ac_compiler_gnu=$ac_cv_c_compiler_gnu
8688
8689 oldcflags="$CFLAGS"
8690 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008691 cat >conftest.$ac_ext <<_ACEOF
8692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008696/* end confdefs.h. */
8697
8698int
8699main ()
8700{
8701int main() { return 0; }
8702 ;
8703 return 0;
8704}
8705_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008706rm -f conftest.$ac_objext conftest$ac_exeext
8707if { (ac_try="$ac_link"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_link") 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8721 { (case "(($ac_try" in
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8724esac
8725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_try") 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008740 llvm_cv_link_use_export_dynamic=yes
8741else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008742 echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008746fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008747
Bill Wendlingebcceee2009-04-18 11:20:33 +00008748rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008749 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008750 CFLAGS="$oldcflags"
8751 ac_ext=c
8752ac_cpp='$CPP $CPPFLAGS'
8753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8755ac_compiler_gnu=$ac_cv_c_compiler_gnu
8756
8757
8758fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8760echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008761if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8762
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008763cat >>confdefs.h <<\_ACEOF
8764#define HAVE_LINK_EXPORT_DYNAMIC 1
8765_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008766
8767 fi
8768
8769
Reid Spencera773bd52006-08-04 18:18:08 +00008770
8771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008772{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8773echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8774if test "${ac_cv_c_const+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008776else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008777 cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h. */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008782/* end confdefs.h. */
8783
8784int
8785main ()
8786{
8787/* FIXME: Include the comments suggested by Paul. */
8788#ifndef __cplusplus
8789 /* Ultrix mips cc rejects this. */
8790 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008791 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008792 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008793 char const *const *ccp;
8794 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008795 /* NEC SVR4.0.2 mips cc rejects this. */
8796 struct point {int x, y;};
8797 static struct point const zero = {0,0};
8798 /* AIX XL C 1.02.0.0 rejects this.
8799 It does not let you subtract one const X* pointer from another in
8800 an arm of an if-expression whose if-part is not a constant
8801 expression */
8802 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008803 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008804 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008805 ++ccp;
8806 p = (char**) ccp;
8807 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008808 { /* SCO 3.2v4 cc rejects this. */
8809 char *t;
8810 char const *s = 0 ? (char *) 0 : (char const *) 0;
8811
8812 *t++ = 0;
8813 if (s) return 0;
8814 }
8815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8816 int x[] = {25, 17};
8817 const int *foo = &x[0];
8818 ++foo;
8819 }
8820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8821 typedef const int *iptr;
8822 iptr p = 0;
8823 ++p;
8824 }
8825 { /* AIX XL C 1.02.0.0 rejects this saying
8826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8827 struct s { int j; const int *ap[3]; };
8828 struct s *b; b->j = 5;
8829 }
8830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8831 const int foo = 10;
8832 if (!foo) return 0;
8833 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008834 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008835#endif
8836
8837 ;
8838 return 0;
8839}
8840_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008841rm -f conftest.$ac_objext
8842if { (ac_try="$ac_compile"
8843case "(($ac_try" in
8844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845 *) ac_try_echo=$ac_try;;
8846esac
8847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8849 ac_status=$?
8850 grep -v '^ *+' conftest.er1 >conftest.err
8851 rm -f conftest.er1
8852 cat conftest.err >&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } &&
8855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856 { (case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8859esac
8860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861 (eval "$ac_try") 2>&5
8862 ac_status=$?
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; } &&
8865 { ac_try='test -s conftest.$ac_objext'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869esac
8870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008875 ac_cv_c_const=yes
8876else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008877 echo "$as_me: failed program was:" >&5
8878sed 's/^/| /' conftest.$ac_ext >&5
8879
8880 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008882
Reid Spencera773bd52006-08-04 18:18:08 +00008883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008885{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8886echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008887if test $ac_cv_c_const = no; then
8888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008889cat >>confdefs.h <<\_ACEOF
8890#define const
8891_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008892
8893fi
8894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008895
8896
8897
8898
8899
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008900ac_header_dirent=no
8901for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008902 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8903{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8904echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008908 cat >conftest.$ac_ext <<_ACEOF
8909/* confdefs.h. */
8910_ACEOF
8911cat confdefs.h >>conftest.$ac_ext
8912cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008913/* end confdefs.h. */
8914#include <sys/types.h>
8915#include <$ac_hdr>
8916
8917int
8918main ()
8919{
8920if ((DIR *) 0)
8921return 0;
8922 ;
8923 return 0;
8924}
8925_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008926rm -f conftest.$ac_objext
8927if { (ac_try="$ac_compile"
8928case "(($ac_try" in
8929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8931esac
8932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8934 ac_status=$?
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944esac
8945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try='test -s conftest.$ac_objext'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008960 eval "$as_ac_Header=yes"
8961else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008967
Reid Spencera773bd52006-08-04 18:18:08 +00008968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008969fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008970ac_res=`eval echo '${'$as_ac_Header'}'`
8971 { echo "$as_me:$LINENO: result: $ac_res" >&5
8972echo "${ECHO_T}$ac_res" >&6; }
8973if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008974 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008975#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008976_ACEOF
8977
8978ac_header_dirent=$ac_hdr; break
8979fi
8980
8981done
8982# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8983if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008984 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8985echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8986if test "${ac_cv_search_opendir+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008988else
8989 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008990cat >conftest.$ac_ext <<_ACEOF
8991/* confdefs.h. */
8992_ACEOF
8993cat confdefs.h >>conftest.$ac_ext
8994cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008995/* end confdefs.h. */
8996
Reid Spencera773bd52006-08-04 18:18:08 +00008997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000#ifdef __cplusplus
9001extern "C"
9002#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009003char opendir ();
9004int
9005main ()
9006{
Reid Spencera773bd52006-08-04 18:18:08 +00009007return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009008 ;
9009 return 0;
9010}
9011_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009012for ac_lib in '' dir; do
9013 if test -z "$ac_lib"; then
9014 ac_res="none required"
9015 else
9016 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009018 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009019 rm -f conftest.$ac_objext conftest$ac_exeext
9020if { (ac_try="$ac_link"
9021case "(($ac_try" in
9022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023 *) ac_try_echo=$ac_try;;
9024esac
9025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026 (eval "$ac_link") 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034 { (case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_try") 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; } &&
9043 { ac_try='test -s conftest$ac_exeext'
9044 { (case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047esac
9048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_try") 2>&5
9050 ac_status=$?
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009053 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009054else
9055 echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009060
Bill Wendlingebcceee2009-04-18 11:20:33 +00009061rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009062 conftest$ac_exeext
9063 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009064 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009065fi
John Criswell7a73b802003-06-30 21:59:07 +00009066done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009067if test "${ac_cv_search_opendir+set}" = set; then
9068 :
Reid Spencera773bd52006-08-04 18:18:08 +00009069else
9070 ac_cv_search_opendir=no
9071fi
9072rm conftest.$ac_ext
9073LIBS=$ac_func_search_save_LIBS
9074fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9076echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009077ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009078if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009079 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009080
Reid Spencera773bd52006-08-04 18:18:08 +00009081fi
9082
9083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009084 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9085echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9086if test "${ac_cv_search_opendir+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009088else
9089 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009090cat >conftest.$ac_ext <<_ACEOF
9091/* confdefs.h. */
9092_ACEOF
9093cat confdefs.h >>conftest.$ac_ext
9094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009095/* end confdefs.h. */
9096
9097/* Override any GCC internal prototype to avoid an error.
9098 Use char because int might match the return type of a GCC
9099 builtin and then its argument prototype would still apply. */
9100#ifdef __cplusplus
9101extern "C"
9102#endif
9103char opendir ();
9104int
9105main ()
9106{
9107return opendir ();
9108 ;
9109 return 0;
9110}
9111_ACEOF
9112for ac_lib in '' x; do
9113 if test -z "$ac_lib"; then
9114 ac_res="none required"
9115 else
9116 ac_res=-l$ac_lib
9117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9118 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009119 rm -f conftest.$ac_objext conftest$ac_exeext
9120if { (ac_try="$ac_link"
9121case "(($ac_try" in
9122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9123 *) ac_try_echo=$ac_try;;
9124esac
9125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9126 (eval "$ac_link") 2>conftest.er1
9127 ac_status=$?
9128 grep -v '^ *+' conftest.er1 >conftest.err
9129 rm -f conftest.er1
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9134 { (case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_try") 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; } &&
9143 { ac_try='test -s conftest$ac_exeext'
9144 { (case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_try") 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009153 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009154else
9155 echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158
Reid Spencera773bd52006-08-04 18:18:08 +00009159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009160
Bill Wendlingebcceee2009-04-18 11:20:33 +00009161rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009162 conftest$ac_exeext
9163 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009164 break
9165fi
9166done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009167if test "${ac_cv_search_opendir+set}" = set; then
9168 :
Reid Spencera773bd52006-08-04 18:18:08 +00009169else
9170 ac_cv_search_opendir=no
9171fi
9172rm conftest.$ac_ext
9173LIBS=$ac_func_search_save_LIBS
9174fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009175{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9176echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009177ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009178if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9180
9181fi
9182
9183fi
John Criswell7a73b802003-06-30 21:59:07 +00009184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009185
John Criswell7a73b802003-06-30 21:59:07 +00009186for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009187do
9188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194fi
9195ac_res=`eval echo '${'$as_ac_Header'}'`
9196 { echo "$as_me:$LINENO: result: $ac_res" >&5
9197echo "${ECHO_T}$ac_res" >&6; }
9198else
9199 # Is the header compilable?
9200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9202cat >conftest.$ac_ext <<_ACEOF
9203/* confdefs.h. */
9204_ACEOF
9205cat confdefs.h >>conftest.$ac_ext
9206cat >>conftest.$ac_ext <<_ACEOF
9207/* end confdefs.h. */
9208$ac_includes_default
9209#include <$ac_header>
9210_ACEOF
9211rm -f conftest.$ac_objext
9212if { (ac_try="$ac_compile"
9213case "(($ac_try" in
9214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9216esac
9217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_compile") 2>conftest.er1
9219 ac_status=$?
9220 grep -v '^ *+' conftest.er1 >conftest.err
9221 rm -f conftest.er1
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9226 { (case "(($ac_try" in
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9229esac
9230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_try") 2>&5
9232 ac_status=$?
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); }; } &&
9235 { ac_try='test -s conftest.$ac_objext'
9236 { (case "(($ac_try" in
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9239esac
9240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_try") 2>&5
9242 ac_status=$?
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 ac_header_compiler=yes
9246else
9247 echo "$as_me: failed program was:" >&5
9248sed 's/^/| /' conftest.$ac_ext >&5
9249
9250 ac_header_compiler=no
9251fi
9252
9253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255echo "${ECHO_T}$ac_header_compiler" >&6; }
9256
9257# Is the header present?
9258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9260cat >conftest.$ac_ext <<_ACEOF
9261/* confdefs.h. */
9262_ACEOF
9263cat confdefs.h >>conftest.$ac_ext
9264cat >>conftest.$ac_ext <<_ACEOF
9265/* end confdefs.h. */
9266#include <$ac_header>
9267_ACEOF
9268if { (ac_try="$ac_cpp conftest.$ac_ext"
9269case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272esac
9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } >/dev/null; then
9281 if test -s conftest.err; then
9282 ac_cpp_err=$ac_c_preproc_warn_flag
9283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9284 else
9285 ac_cpp_err=
9286 fi
9287else
9288 ac_cpp_err=yes
9289fi
9290if test -z "$ac_cpp_err"; then
9291 ac_header_preproc=yes
9292else
9293 echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296 ac_header_preproc=no
9297fi
9298
9299rm -f conftest.err conftest.$ac_ext
9300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9301echo "${ECHO_T}$ac_header_preproc" >&6; }
9302
9303# So? What about this header?
9304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9305 yes:no: )
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9310 ac_header_preproc=yes
9311 ;;
9312 no:yes:* )
9313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9325 ( cat <<\_ASBOX
9326## ----------------------------------- ##
9327## Report this to llvmbugs@cs.uiuc.edu ##
9328## ----------------------------------- ##
9329_ASBOX
9330 ) | sed "s/^/$as_me: WARNING: /" >&2
9331 ;;
9332esac
9333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338 eval "$as_ac_Header=\$ac_header_preproc"
9339fi
9340ac_res=`eval echo '${'$as_ac_Header'}'`
9341 { echo "$as_me:$LINENO: result: $ac_res" >&5
9342echo "${ECHO_T}$ac_res" >&6; }
9343
9344fi
9345if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009346 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009348_ACEOF
9349
9350fi
9351
9352done
9353
Reid Spencera773bd52006-08-04 18:18:08 +00009354# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009356 enableval=$enable_ltdl_install;
9357fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009358
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009360
9361
9362if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009363 INSTALL_LTDL_TRUE=
9364 INSTALL_LTDL_FALSE='#'
9365else
9366 INSTALL_LTDL_TRUE='#'
9367 INSTALL_LTDL_FALSE=
9368fi
9369
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009370
9371
9372if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373 CONVENIENCE_LTDL_TRUE=
9374 CONVENIENCE_LTDL_FALSE='#'
9375else
9376 CONVENIENCE_LTDL_TRUE='#'
9377 CONVENIENCE_LTDL_FALSE=
9378fi
9379
9380
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009381{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9382echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009383library_names_spec=
9384libname_spec='lib$name'
9385soname_spec=
9386shrext_cmds=".so"
9387postinstall_cmds=
9388postuninstall_cmds=
9389finish_cmds=
9390finish_eval=
9391shlibpath_var=
9392shlibpath_overrides_runpath=unknown
9393version_type=none
9394dynamic_linker="$host_os ld.so"
9395sys_lib_dlsearch_path_spec="/lib /usr/lib"
9396if test "$GCC" = yes; then
9397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9398 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9399 # if the path contains ";" then we assume it to be the separator
9400 # otherwise default to the standard path separator (i.e. ":") - it is
9401 # assumed that no part of a normal pathname contains ";" but that should
9402 # okay in the real world where ";" in dirpaths is itself problematic.
9403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9404 else
9405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9406 fi
9407else
9408 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9409fi
9410need_lib_prefix=unknown
9411hardcode_into_libs=no
9412
9413# when you set need_version to no, make sure it does not cause -set_version
9414# flags to be left without arguments
9415need_version=unknown
9416
9417case $host_os in
9418aix3*)
9419 version_type=linux
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9421 shlibpath_var=LIBPATH
9422
9423 # AIX 3 has no versioning support, so we append a major version to the name.
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 ;;
9426
9427aix4* | aix5*)
9428 version_type=linux
9429 need_lib_prefix=no
9430 need_version=no
9431 hardcode_into_libs=yes
9432 if test "$host_cpu" = ia64; then
9433 # AIX 5 supports IA64
9434 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 else
9437 # With GCC up to 2.95.x, collect2 would create an import file
9438 # for dependence libraries. The import file would start with
9439 # the line `#! .'. This would cause the generated library to
9440 # depend on `.', always an invalid library. This was fixed in
9441 # development snapshots of GCC prior to 3.0.
9442 case $host_os in
9443 aix4 | aix4.[01] | aix4.[01].*)
9444 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9445 echo ' yes '
9446 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9447 :
9448 else
9449 can_build_shared=no
9450 fi
9451 ;;
9452 esac
9453 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9454 # soname into executable. Probably we can add versioning support to
9455 # collect2, so additional links can be useful in future.
9456 if test "$aix_use_runtimelinking" = yes; then
9457 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9458 # instead of lib<name>.a to let people know that these are not
9459 # typical AIX shared libraries.
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 else
9462 # We preserve .a as extension for shared libraries through AIX4.2
9463 # and later when we are not doing run time linking.
9464 library_names_spec='${libname}${release}.a $libname.a'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 fi
9467 shlibpath_var=LIBPATH
9468 fi
9469 ;;
9470
9471amigaos*)
9472 library_names_spec='$libname.ixlibrary $libname.a'
9473 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474 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'
9475 ;;
9476
9477beos*)
9478 library_names_spec='${libname}${shared_ext}'
9479 dynamic_linker="$host_os ld.so"
9480 shlibpath_var=LIBRARY_PATH
9481 ;;
9482
9483bsdi[45]*)
9484 version_type=linux
9485 need_version=no
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9489 shlibpath_var=LD_LIBRARY_PATH
9490 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9491 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9492 # the default ld.so.conf also contains /usr/contrib/lib and
9493 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9494 # libtool to hard-code these into programs
9495 ;;
9496
9497cygwin* | mingw* | pw32*)
9498 version_type=windows
9499 shrext_cmds=".dll"
9500 need_version=no
9501 need_lib_prefix=no
9502
9503 case $GCC,$host_os in
9504 yes,cygwin* | yes,mingw* | yes,pw32*)
9505 library_names_spec='$libname.dll.a'
9506 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9507 postinstall_cmds='base_file=`basename \${file}`~
9508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9509 dldir=$destdir/`dirname \$dlpath`~
9510 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009511 $install_prog $dir/$dlname \$dldir/$dlname~
9512 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9514 dlpath=$dir/\$dldll~
9515 $rm \$dlpath'
9516 shlibpath_overrides_runpath=yes
9517
9518 case $host_os in
9519 cygwin*)
9520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9521 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9523 ;;
9524 mingw*)
9525 # MinGW DLLs use traditional 'lib' prefix
9526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9529 # It is most probably a Windows format PATH printed by
9530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9531 # path with ; separators, and with drive letters. We can handle the
9532 # drive letters (cygwin fileutils understands them), so leave them,
9533 # especially as we might pass files found there to a mingw objdump,
9534 # which wouldn't understand a cygwinified path. Ahh.
9535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9536 else
9537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9538 fi
9539 ;;
9540 pw32*)
9541 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009542 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 +00009543 ;;
9544 esac
9545 ;;
9546
9547 *)
9548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9549 ;;
9550 esac
9551 dynamic_linker='Win32 ld.exe'
9552 # FIXME: first we should search . and the directory the executable is in
9553 shlibpath_var=PATH
9554 ;;
9555
9556darwin* | rhapsody*)
9557 dynamic_linker="$host_os dyld"
9558 version_type=darwin
9559 need_lib_prefix=no
9560 need_version=no
9561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9562 soname_spec='${libname}${release}${major}$shared_ext'
9563 shlibpath_overrides_runpath=yes
9564 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009565 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9567 if test "$GCC" = yes; then
9568 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"`
9569 else
9570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9571 fi
9572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9573 ;;
9574
9575dgux*)
9576 version_type=linux
9577 need_lib_prefix=no
9578 need_version=no
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9580 soname_spec='${libname}${release}${shared_ext}$major'
9581 shlibpath_var=LD_LIBRARY_PATH
9582 ;;
9583
9584freebsd1*)
9585 dynamic_linker=no
9586 ;;
9587
9588kfreebsd*-gnu)
9589 version_type=linux
9590 need_lib_prefix=no
9591 need_version=no
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9593 soname_spec='${libname}${release}${shared_ext}$major'
9594 shlibpath_var=LD_LIBRARY_PATH
9595 shlibpath_overrides_runpath=no
9596 hardcode_into_libs=yes
9597 dynamic_linker='GNU ld.so'
9598 ;;
9599
Reid Spencera773bd52006-08-04 18:18:08 +00009600freebsd* | dragonfly*)
9601 # DragonFly does not have aout. When/if they implement a new
9602 # versioning mechanism, adjust this.
9603 if test -x /usr/bin/objformat; then
9604 objformat=`/usr/bin/objformat`
9605 else
9606 case $host_os in
9607 freebsd[123]*) objformat=aout ;;
9608 *) objformat=elf ;;
9609 esac
9610 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611 version_type=freebsd-$objformat
9612 case $version_type in
9613 freebsd-elf*)
9614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9615 need_version=no
9616 need_lib_prefix=no
9617 ;;
9618 freebsd-*)
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9620 need_version=yes
9621 ;;
9622 esac
9623 shlibpath_var=LD_LIBRARY_PATH
9624 case $host_os in
9625 freebsd2*)
9626 shlibpath_overrides_runpath=yes
9627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009628 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009629 shlibpath_overrides_runpath=yes
9630 hardcode_into_libs=yes
9631 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009634 shlibpath_overrides_runpath=no
9635 hardcode_into_libs=yes
9636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009637 freebsd*) # from 4.6 on
9638 shlibpath_overrides_runpath=yes
9639 hardcode_into_libs=yes
9640 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641 esac
9642 ;;
9643
9644gnu*)
9645 version_type=linux
9646 need_lib_prefix=no
9647 need_version=no
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 shlibpath_var=LD_LIBRARY_PATH
9651 hardcode_into_libs=yes
9652 ;;
9653
9654hpux9* | hpux10* | hpux11*)
9655 # Give a soname corresponding to the major version so that dld.sl refuses to
9656 # link against other versions.
9657 version_type=sunos
9658 need_lib_prefix=no
9659 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009660 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009661 ia64*)
9662 shrext_cmds='.so'
9663 hardcode_into_libs=yes
9664 dynamic_linker="$host_os dld.so"
9665 shlibpath_var=LD_LIBRARY_PATH
9666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 if test "X$HPUX_IA64_MODE" = X32; then
9670 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9671 else
9672 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9673 fi
9674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9675 ;;
9676 hppa*64*)
9677 shrext_cmds='.sl'
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.sl"
9680 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9686 ;;
9687 *)
9688 shrext_cmds='.sl'
9689 dynamic_linker="$host_os dld.sl"
9690 shlibpath_var=SHLIB_PATH
9691 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 ;;
9695 esac
9696 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9697 postinstall_cmds='chmod 555 $lib'
9698 ;;
9699
Reid Spencera773bd52006-08-04 18:18:08 +00009700interix3*)
9701 version_type=linux
9702 need_lib_prefix=no
9703 need_version=no
9704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9705 soname_spec='${libname}${release}${shared_ext}$major'
9706 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=no
9709 hardcode_into_libs=yes
9710 ;;
9711
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009712irix5* | irix6* | nonstopux*)
9713 case $host_os in
9714 nonstopux*) version_type=nonstopux ;;
9715 *)
9716 if test "$lt_cv_prog_gnu_ld" = yes; then
9717 version_type=linux
9718 else
9719 version_type=irix
9720 fi ;;
9721 esac
9722 need_lib_prefix=no
9723 need_version=no
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9726 case $host_os in
9727 irix5* | nonstopux*)
9728 libsuff= shlibsuff=
9729 ;;
9730 *)
9731 case $LD in # libtool.m4 will add one of these switches to LD
9732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9733 libsuff= shlibsuff= libmagic=32-bit;;
9734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9735 libsuff=32 shlibsuff=N32 libmagic=N32;;
9736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9738 *) libsuff= shlibsuff= libmagic=never-match;;
9739 esac
9740 ;;
9741 esac
9742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9743 shlibpath_overrides_runpath=no
9744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9746 hardcode_into_libs=yes
9747 ;;
9748
9749# No shared lib support for Linux oldld, aout, or coff.
9750linux*oldld* | linux*aout* | linux*coff*)
9751 dynamic_linker=no
9752 ;;
9753
9754# This must be Linux ELF.
9755linux*)
9756 version_type=linux
9757 need_lib_prefix=no
9758 need_version=no
9759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9760 soname_spec='${libname}${release}${shared_ext}$major'
9761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9762 shlibpath_var=LD_LIBRARY_PATH
9763 shlibpath_overrides_runpath=no
9764 # This implies no fast_install, which is unacceptable.
9765 # Some rework will be needed to allow for fast_install
9766 # before this can be enabled.
9767 hardcode_into_libs=yes
9768
9769 # Append ld.so.conf contents to the search path
9770 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009771 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 +00009772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9773 fi
9774
9775 # We used to test for /lib/ld.so.1 and disable shared libraries on
9776 # powerpc, because MkLinux only supported shared libraries with the
9777 # GNU dynamic linker. Since this was broken with cross compilers,
9778 # most powerpc-linux boxes support dynamic linking these days and
9779 # people can always --disable-shared, the test was removed, and we
9780 # assume the GNU/Linux dynamic linker is in use.
9781 dynamic_linker='GNU/Linux ld.so'
9782 ;;
9783
9784knetbsd*-gnu)
9785 version_type=linux
9786 need_lib_prefix=no
9787 need_version=no
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=no
9792 hardcode_into_libs=yes
9793 dynamic_linker='GNU ld.so'
9794 ;;
9795
9796netbsd*)
9797 version_type=sunos
9798 need_lib_prefix=no
9799 need_version=no
9800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9803 dynamic_linker='NetBSD (a.out) ld.so'
9804 else
9805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9806 soname_spec='${libname}${release}${shared_ext}$major'
9807 dynamic_linker='NetBSD ld.elf_so'
9808 fi
9809 shlibpath_var=LD_LIBRARY_PATH
9810 shlibpath_overrides_runpath=yes
9811 hardcode_into_libs=yes
9812 ;;
9813
9814newsos6)
9815 version_type=linux
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=yes
9819 ;;
9820
9821nto-qnx*)
9822 version_type=linux
9823 need_lib_prefix=no
9824 need_version=no
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 shlibpath_var=LD_LIBRARY_PATH
9828 shlibpath_overrides_runpath=yes
9829 ;;
9830
9831openbsd*)
9832 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009833 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009835 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9836 case $host_os in
9837 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9838 *) need_version=no ;;
9839 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9844 case $host_os in
9845 openbsd2.[89] | openbsd2.[89].*)
9846 shlibpath_overrides_runpath=no
9847 ;;
9848 *)
9849 shlibpath_overrides_runpath=yes
9850 ;;
9851 esac
9852 else
9853 shlibpath_overrides_runpath=yes
9854 fi
9855 ;;
9856
9857os2*)
9858 libname_spec='$name'
9859 shrext_cmds=".dll"
9860 need_lib_prefix=no
9861 library_names_spec='$libname${shared_ext} $libname.a'
9862 dynamic_linker='OS/2 ld.exe'
9863 shlibpath_var=LIBPATH
9864 ;;
9865
9866osf3* | osf4* | osf5*)
9867 version_type=osf
9868 need_lib_prefix=no
9869 need_version=no
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9874 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9875 ;;
9876
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009877solaris*)
9878 version_type=linux
9879 need_lib_prefix=no
9880 need_version=no
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 shlibpath_var=LD_LIBRARY_PATH
9884 shlibpath_overrides_runpath=yes
9885 hardcode_into_libs=yes
9886 # ldd complains unless libraries are executable
9887 postinstall_cmds='chmod +x $lib'
9888 ;;
9889
9890sunos4*)
9891 version_type=sunos
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9894 shlibpath_var=LD_LIBRARY_PATH
9895 shlibpath_overrides_runpath=yes
9896 if test "$with_gnu_ld" = yes; then
9897 need_lib_prefix=no
9898 fi
9899 need_version=yes
9900 ;;
9901
Reid Spencera773bd52006-08-04 18:18:08 +00009902sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903 version_type=linux
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905 soname_spec='${libname}${release}${shared_ext}$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9907 case $host_vendor in
9908 sni)
9909 shlibpath_overrides_runpath=no
9910 need_lib_prefix=no
9911 export_dynamic_flag_spec='${wl}-Blargedynsym'
9912 runpath_var=LD_RUN_PATH
9913 ;;
9914 siemens)
9915 need_lib_prefix=no
9916 ;;
9917 motorola)
9918 need_lib_prefix=no
9919 need_version=no
9920 shlibpath_overrides_runpath=no
9921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9922 ;;
9923 esac
9924 ;;
9925
9926sysv4*MP*)
9927 if test -d /usr/nec ;then
9928 version_type=linux
9929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9930 soname_spec='$libname${shared_ext}.$major'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 fi
9933 ;;
9934
Reid Spencera773bd52006-08-04 18:18:08 +00009935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9936 version_type=freebsd-elf
9937 need_lib_prefix=no
9938 need_version=no
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9940 soname_spec='${libname}${release}${shared_ext}$major'
9941 shlibpath_var=LD_LIBRARY_PATH
9942 hardcode_into_libs=yes
9943 if test "$with_gnu_ld" = yes; then
9944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9945 shlibpath_overrides_runpath=no
9946 else
9947 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9948 shlibpath_overrides_runpath=yes
9949 case $host_os in
9950 sco3.2v5*)
9951 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9952 ;;
9953 esac
9954 fi
9955 sys_lib_dlsearch_path_spec='/usr/lib'
9956 ;;
9957
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958uts4*)
9959 version_type=linux
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 ;;
9964
9965*)
9966 dynamic_linker=no
9967 ;;
9968esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009969{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9970echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971test "$dynamic_linker" = no && can_build_shared=no
9972
Reid Spencera773bd52006-08-04 18:18:08 +00009973variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9974if test "$GCC" = yes; then
9975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9976fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009977
Reid Spencera773bd52006-08-04 18:18:08 +00009978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009979{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9980echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9981if test "${libltdl_cv_shlibext+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009983else
9984
9985module=yes
9986eval libltdl_cv_shlibext=$shrext_cmds
9987
9988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009989{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9990echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991if test -n "$libltdl_cv_shlibext"; then
9992
9993cat >>confdefs.h <<_ACEOF
9994#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9995_ACEOF
9996
9997fi
9998
9999
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010000{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10001echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10002if test "${libltdl_cv_shlibpath_var+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004else
10005 libltdl_cv_shlibpath_var="$shlibpath_var"
10006fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010007{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10008echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009if test -n "$libltdl_cv_shlibpath_var"; then
10010
10011cat >>confdefs.h <<_ACEOF
10012#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10013_ACEOF
10014
10015fi
10016
10017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010018{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10019echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10020if test "${libltdl_cv_sys_search_path+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022else
10023 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10024fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010025{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10026echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027if test -n "$libltdl_cv_sys_search_path"; then
10028 sys_search_path=
10029 for dir in $libltdl_cv_sys_search_path; do
10030 if test -z "$sys_search_path"; then
10031 sys_search_path="$dir"
10032 else
10033 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10034 fi
10035 done
10036
10037cat >>confdefs.h <<_ACEOF
10038#define LTDL_SYSSEARCHPATH "$sys_search_path"
10039_ACEOF
10040
10041fi
10042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010043{ echo "$as_me:$LINENO: checking for objdir" >&5
10044echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10045if test "${libltdl_cv_objdir+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047else
10048 libltdl_cv_objdir="$objdir"
10049 if test -n "$objdir"; then
10050 :
10051 else
10052 rm -f .libs 2>/dev/null
10053 mkdir .libs 2>/dev/null
10054 if test -d .libs; then
10055 libltdl_cv_objdir=.libs
10056 else
10057 # MS-DOS does not allow filenames that begin with a dot.
10058 libltdl_cv_objdir=_libs
10059 fi
10060 rmdir .libs 2>/dev/null
10061 fi
10062
10063fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010064{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10065echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066
10067cat >>confdefs.h <<_ACEOF
10068#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10069_ACEOF
10070
10071
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072
10073
10074
10075
10076# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010077{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10078echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10079if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081else
10082
10083# These are sane defaults that work on at least a few old systems.
10084# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10085
10086# Character class describing NM global symbol codes.
10087symcode='[BCDEGRST]'
10088
10089# Regexp to match symbols that can be accessed directly from C.
10090sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10091
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092# Transform an extracted symbol line into a proper C declaration
10093lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10094
10095# Transform an extracted symbol line into symbol name and symbol address
10096lt_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'"
10097
10098# Define system-specific variables.
10099case $host_os in
10100aix*)
10101 symcode='[BCDT]'
10102 ;;
10103cygwin* | mingw* | pw32*)
10104 symcode='[ABCDGISTW]'
10105 ;;
10106hpux*) # Its linker distinguishes data from code symbols
10107 if test "$host_cpu" = ia64; then
10108 symcode='[ABCDEGRST]'
10109 fi
10110 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10111 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'"
10112 ;;
10113linux*)
10114 if test "$host_cpu" = ia64; then
10115 symcode='[ABCDGIRSTW]'
10116 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10117 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'"
10118 fi
10119 ;;
10120irix* | nonstopux*)
10121 symcode='[BCDEGRST]'
10122 ;;
10123osf*)
10124 symcode='[BCDEGQRST]'
10125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010126solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127 symcode='[BDRT]'
10128 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010129sco3.2v5*)
10130 symcode='[DT]'
10131 ;;
10132sysv4.2uw2*)
10133 symcode='[DT]'
10134 ;;
10135sysv5* | sco5v6* | unixware* | OpenUNIX*)
10136 symcode='[ABDT]'
10137 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138sysv4)
10139 symcode='[DFNSTU]'
10140 ;;
10141esac
10142
10143# Handle CRLF in mingw tool chain
10144opt_cr=
10145case $build_os in
10146mingw*)
10147 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10148 ;;
10149esac
10150
10151# If we're using GNU nm, then use its standard symbol codes.
10152case `$NM -V 2>&1` in
10153*GNU* | *'with BFD'*)
10154 symcode='[ABCDGIRSTW]' ;;
10155esac
10156
10157# Try without a prefix undercore, then with it.
10158for ac_symprfx in "" "_"; do
10159
Reid Spencera773bd52006-08-04 18:18:08 +000010160 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10161 symxfrm="\\1 $ac_symprfx\\2 \\2"
10162
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010164 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 +000010165
10166 # Check to see that the pipe works correctly.
10167 pipe_works=no
10168
10169 rm -f conftest*
10170 cat > conftest.$ac_ext <<EOF
10171#ifdef __cplusplus
10172extern "C" {
10173#endif
10174char nm_test_var;
10175void nm_test_func(){}
10176#ifdef __cplusplus
10177}
10178#endif
10179int main(){nm_test_var='a';nm_test_func();return(0);}
10180EOF
10181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010183 (eval $ac_compile) 2>&5
10184 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 # Now try to grab the symbols.
10188 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010189 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 +000010190 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10191 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194 # Try sorting and uniquifying the output.
10195 if sort "$nlist" | uniq > "$nlist"T; then
10196 mv -f "$nlist"T "$nlist"
10197 else
10198 rm -f "$nlist"T
10199 fi
10200
10201 # Make sure that we snagged all the symbols we need.
10202 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10203 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10204 cat <<EOF > conftest.$ac_ext
10205#ifdef __cplusplus
10206extern "C" {
10207#endif
10208
10209EOF
10210 # Now generate the symbol file.
10211 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10212
10213 cat <<EOF >> conftest.$ac_ext
10214#if defined (__STDC__) && __STDC__
10215# define lt_ptr_t void *
10216#else
10217# define lt_ptr_t char *
10218# define const
10219#endif
10220
10221/* The mapping between symbol names and symbols. */
10222const struct {
10223 const char *name;
10224 lt_ptr_t address;
10225}
10226lt_preloaded_symbols[] =
10227{
10228EOF
10229 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10230 cat <<\EOF >> conftest.$ac_ext
10231 {0, (lt_ptr_t) 0}
10232};
10233
10234#ifdef __cplusplus
10235}
10236#endif
10237EOF
10238 # Now try linking the two files.
10239 mv conftest.$ac_objext conftstm.$ac_objext
10240 lt_save_LIBS="$LIBS"
10241 lt_save_CFLAGS="$CFLAGS"
10242 LIBS="conftstm.$ac_objext"
10243 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010245 (eval $ac_link) 2>&5
10246 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010249 pipe_works=yes
10250 fi
10251 LIBS="$lt_save_LIBS"
10252 CFLAGS="$lt_save_CFLAGS"
10253 else
10254 echo "cannot find nm_test_func in $nlist" >&5
10255 fi
10256 else
10257 echo "cannot find nm_test_var in $nlist" >&5
10258 fi
10259 else
10260 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10261 fi
10262 else
10263 echo "$progname: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10265 fi
10266 rm -f conftest* conftst*
10267
10268 # Do not use the global_symbol_pipe unless it works.
10269 if test "$pipe_works" = yes; then
10270 break
10271 else
10272 lt_cv_sys_global_symbol_pipe=
10273 fi
10274done
10275
10276fi
10277
10278if test -z "$lt_cv_sys_global_symbol_pipe"; then
10279 lt_cv_sys_global_symbol_to_cdecl=
10280fi
10281if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010282 { echo "$as_me:$LINENO: result: failed" >&5
10283echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010284else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010285 { echo "$as_me:$LINENO: result: ok" >&5
10286echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010287fi
10288
10289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010290{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10291echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10292if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010294else
10295 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10296 libltdl_cv_preloaded_symbols=yes
10297 else
10298 libltdl_cv_preloaded_symbols=no
10299 fi
10300
10301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010302{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10303echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10305
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306cat >>confdefs.h <<\_ACEOF
10307#define HAVE_PRELOADED_SYMBOLS 1
10308_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309
10310fi
10311
10312LIBADD_DL=
10313
10314ac_ext=c
10315ac_cpp='$CPP $CPPFLAGS'
10316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10318ac_compiler_gnu=$ac_cv_c_compiler_gnu
10319
10320
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010321{ echo "$as_me:$LINENO: checking for shl_load" >&5
10322echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10323if test "${ac_cv_func_shl_load+set}" = set; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325else
10326 cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h. */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
10332/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010335
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010336/* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char shl_load (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10340
10341#ifdef __STDC__
10342# include <limits.h>
10343#else
10344# include <assert.h>
10345#endif
10346
10347#undef shl_load
10348
10349/* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352#ifdef __cplusplus
10353extern "C"
10354#endif
10355char shl_load ();
10356/* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359#if defined __stub_shl_load || defined __stub___shl_load
10360choke me
10361#endif
10362
10363int
10364main ()
10365{
10366return shl_load ();
10367 ;
10368 return 0;
10369}
10370_ACEOF
10371rm -f conftest.$ac_objext conftest$ac_exeext
10372if { (ac_try="$ac_link"
10373case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10376esac
10377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10379 ac_status=$?
10380 grep -v '^ *+' conftest.er1 >conftest.err
10381 rm -f conftest.er1
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389esac
10390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 ac_cv_func_shl_load=yes
10406else
10407 echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410 ac_cv_func_shl_load=no
10411fi
10412
10413rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415fi
10416{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10417echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10418if test $ac_cv_func_shl_load = yes; then
10419
10420cat >>confdefs.h <<\_ACEOF
10421#define HAVE_SHL_LOAD 1
10422_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010423
10424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010425 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10426echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10427if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429else
10430 ac_check_lib_save_LIBS=$LIBS
10431LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010432cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h. */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437/* end confdefs.h. */
10438
Reid Spencera773bd52006-08-04 18:18:08 +000010439/* Override any GCC internal prototype to avoid an error.
10440 Use char because int might match the return type of a GCC
10441 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442#ifdef __cplusplus
10443extern "C"
10444#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445char shl_load ();
10446int
10447main ()
10448{
Reid Spencera773bd52006-08-04 18:18:08 +000010449return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450 ;
10451 return 0;
10452}
10453_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010454rm -f conftest.$ac_objext conftest$ac_exeext
10455if { (ac_try="$ac_link"
10456case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459esac
10460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>conftest.er1
10462 ac_status=$?
10463 grep -v '^ *+' conftest.er1 >conftest.err
10464 rm -f conftest.er1
10465 cat conftest.err >&5
10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10469 { (case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_try") 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; } &&
10478 { ac_try='test -s conftest$ac_exeext'
10479 { (case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482esac
10483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_try") 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488 ac_cv_lib_dld_shl_load=yes
10489else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010495
Bill Wendlingebcceee2009-04-18 11:20:33 +000010496rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498LIBS=$ac_check_lib_save_LIBS
10499fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010500{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10501echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10502if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010504cat >>confdefs.h <<\_ACEOF
10505#define HAVE_SHL_LOAD 1
10506_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507
10508 LIBADD_DL="$LIBADD_DL -ldld"
10509else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010510 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10511echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10512if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514else
10515 ac_check_lib_save_LIBS=$LIBS
10516LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010517cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h. */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010522/* end confdefs.h. */
10523
Reid Spencera773bd52006-08-04 18:18:08 +000010524/* Override any GCC internal prototype to avoid an error.
10525 Use char because int might match the return type of a GCC
10526 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527#ifdef __cplusplus
10528extern "C"
10529#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530char dlopen ();
10531int
10532main ()
10533{
Reid Spencera773bd52006-08-04 18:18:08 +000010534return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535 ;
10536 return 0;
10537}
10538_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010539rm -f conftest.$ac_objext conftest$ac_exeext
10540if { (ac_try="$ac_link"
10541case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10544esac
10545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_link") 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10554 { (case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557esac
10558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_try") 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10567esac
10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_try") 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010573 ac_cv_lib_dl_dlopen=yes
10574else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010580
Bill Wendlingebcceee2009-04-18 11:20:33 +000010581rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010582 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583LIBS=$ac_check_lib_save_LIBS
10584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010585{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010589cat >>confdefs.h <<\_ACEOF
10590#define HAVE_LIBDL 1
10591_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592
10593 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10594else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010595 cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600/* end confdefs.h. */
10601#if HAVE_DLFCN_H
10602# include <dlfcn.h>
10603#endif
10604
10605int
10606main ()
10607{
10608dlopen(0, 0);
10609 ;
10610 return 0;
10611}
10612_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (ac_try="$ac_link"
10615case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618esac
10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631esac
10632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_try") 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641esac
10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_try") 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010648cat >>confdefs.h <<\_ACEOF
10649#define HAVE_LIBDL 1
10650_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651 libltdl_cv_func_dlopen="yes"
10652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010653 echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10657echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10658if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660else
10661 ac_check_lib_save_LIBS=$LIBS
10662LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010663cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h. */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668/* end confdefs.h. */
10669
Reid Spencera773bd52006-08-04 18:18:08 +000010670/* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673#ifdef __cplusplus
10674extern "C"
10675#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010676char dlopen ();
10677int
10678main ()
10679{
Reid Spencera773bd52006-08-04 18:18:08 +000010680return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681 ;
10682 return 0;
10683}
10684_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010685rm -f conftest.$ac_objext conftest$ac_exeext
10686if { (ac_try="$ac_link"
10687case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690esac
10691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } &&
10699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700 { (case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10703esac
10704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_try") 2>&5
10706 ac_status=$?
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; } &&
10709 { ac_try='test -s conftest$ac_exeext'
10710 { (case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
10714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_try") 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719 ac_cv_lib_svld_dlopen=yes
10720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010721 echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010726
Bill Wendlingebcceee2009-04-18 11:20:33 +000010727rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010728 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729LIBS=$ac_check_lib_save_LIBS
10730fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010731{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10732echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10733if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010735cat >>confdefs.h <<\_ACEOF
10736#define HAVE_LIBDL 1
10737_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738
10739 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010741 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10742echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10743if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745else
10746 ac_check_lib_save_LIBS=$LIBS
10747LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748cat >conftest.$ac_ext <<_ACEOF
10749/* confdefs.h. */
10750_ACEOF
10751cat confdefs.h >>conftest.$ac_ext
10752cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010753/* end confdefs.h. */
10754
Reid Spencera773bd52006-08-04 18:18:08 +000010755/* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758#ifdef __cplusplus
10759extern "C"
10760#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761char dld_link ();
10762int
10763main ()
10764{
Reid Spencera773bd52006-08-04 18:18:08 +000010765return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766 ;
10767 return 0;
10768}
10769_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010770rm -f conftest.$ac_objext conftest$ac_exeext
10771if { (ac_try="$ac_link"
10772case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775esac
10776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } &&
10784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10785 { (case "(($ac_try" in
10786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787 *) ac_try_echo=$ac_try;;
10788esac
10789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790 (eval "$ac_try") 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (case "(($ac_try" in
10796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10797 *) ac_try_echo=$ac_try;;
10798esac
10799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10800 (eval "$ac_try") 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804 ac_cv_lib_dld_dld_link=yes
10805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010806 echo "$as_me: failed program was:" >&5
10807sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010811
Bill Wendlingebcceee2009-04-18 11:20:33 +000010812rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010813 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010814LIBS=$ac_check_lib_save_LIBS
10815fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010816{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10817echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10818if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010820cat >>confdefs.h <<\_ACEOF
10821#define HAVE_DLD 1
10822_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823
10824 LIBADD_DL="$LIBADD_DL -ldld"
10825else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010826 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10827echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10828if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
10837/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10839#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010841/* System header to define __stub macros and hopefully few prototypes,
10842 which can conflict with char _dyld_func_lookup (); below.
10843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10844 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010846#ifdef __STDC__
10847# include <limits.h>
10848#else
10849# include <assert.h>
10850#endif
10851
10852#undef _dyld_func_lookup
10853
10854/* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857#ifdef __cplusplus
10858extern "C"
10859#endif
10860char _dyld_func_lookup ();
10861/* The GNU C library defines this for functions which it implements
10862 to always fail with ENOSYS. Some functions are actually named
10863 something starting with __ and the normal name is an alias. */
10864#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10865choke me
10866#endif
10867
10868int
10869main ()
10870{
10871return _dyld_func_lookup ();
10872 ;
10873 return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext conftest$ac_exeext
10877if { (ac_try="$ac_link"
10878case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
10882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_link") 2>conftest.er1
10884 ac_status=$?
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
10890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest$ac_exeext'
10901 { (case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904esac
10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_try") 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_cv_func__dyld_func_lookup=yes
10911else
10912 echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916fi
Reid Spencera773bd52006-08-04 18:18:08 +000010917
Bill Wendlingebcceee2009-04-18 11:20:33 +000010918rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010919 conftest$ac_exeext conftest.$ac_ext
10920fi
10921{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10922echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10923if test $ac_cv_func__dyld_func_lookup = yes; then
10924
10925cat >>confdefs.h <<\_ACEOF
10926#define HAVE_DYLD 1
10927_ACEOF
10928
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937
10938fi
10939
10940rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942
10943fi
10944
10945
10946fi
10947
10948
10949fi
10950
10951
10952if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10953then
10954 lt_save_LIBS="$LIBS"
10955 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010956
10957for ac_func in dlerror
10958do
10959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10964else
10965 cat >conftest.$ac_ext <<_ACEOF
10966/* confdefs.h. */
10967_ACEOF
10968cat confdefs.h >>conftest.$ac_ext
10969cat >>conftest.$ac_ext <<_ACEOF
10970/* end confdefs.h. */
10971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10973#define $ac_func innocuous_$ac_func
10974
10975/* System header to define __stub macros and hopefully few prototypes,
10976 which can conflict with char $ac_func (); below.
10977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10978 <limits.h> exists even on freestanding compilers. */
10979
10980#ifdef __STDC__
10981# include <limits.h>
10982#else
10983# include <assert.h>
10984#endif
10985
10986#undef $ac_func
10987
10988/* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10991#ifdef __cplusplus
10992extern "C"
10993#endif
10994char $ac_func ();
10995/* The GNU C library defines this for functions which it implements
10996 to always fail with ENOSYS. Some functions are actually named
10997 something starting with __ and the normal name is an alias. */
10998#if defined __stub_$ac_func || defined __stub___$ac_func
10999choke me
11000#endif
11001
11002int
11003main ()
11004{
11005return $ac_func ();
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext conftest$ac_exeext
11011if { (ac_try="$ac_link"
11012case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015esac
11016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_link") 2>conftest.er1
11018 ac_status=$?
11019 grep -v '^ *+' conftest.er1 >conftest.err
11020 rm -f conftest.er1
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } &&
11024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11025 { (case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_try") 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }; } &&
11034 { ac_try='test -s conftest$ac_exeext'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11044 eval "$as_ac_var=yes"
11045else
11046 echo "$as_me: failed program was:" >&5
11047sed 's/^/| /' conftest.$ac_ext >&5
11048
11049 eval "$as_ac_var=no"
11050fi
11051
11052rm -f core conftest.err conftest.$ac_objext \
11053 conftest$ac_exeext conftest.$ac_ext
11054fi
11055ac_res=`eval echo '${'$as_ac_var'}'`
11056 { echo "$as_me:$LINENO: result: $ac_res" >&5
11057echo "${ECHO_T}$ac_res" >&6; }
11058if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061_ACEOF
11062
11063fi
11064done
11065
11066 LIBS="$lt_save_LIBS"
11067fi
11068ac_ext=c
11069ac_cpp='$CPP $CPPFLAGS'
11070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11072ac_compiler_gnu=$ac_cv_c_compiler_gnu
11073
11074
11075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011076{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11077echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11078if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080else
11081 ac_cv_sys_symbol_underscore=no
11082 cat > conftest.$ac_ext <<EOF
11083void nm_test_func(){}
11084int main(){nm_test_func;return 0;}
11085EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087 (eval $ac_compile) 2>&5
11088 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091 # Now try to grab the symbols.
11092 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011093 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 +000011094 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11095 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098 # See whether the symbols have a leading underscore.
11099 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11100 ac_cv_sys_symbol_underscore=yes
11101 else
11102 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11103 :
11104 else
11105 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11106 fi
11107 fi
11108 else
11109 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11110 fi
11111 else
11112 echo "configure: failed program was:" >&5
11113 cat conftest.c >&5
11114 fi
11115 rm -rf conftest*
11116
11117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011118{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11119echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120
11121
11122if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11123 if test x"$libltdl_cv_func_dlopen" = xyes ||
11124 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011125 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11126echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11127if test "${libltdl_cv_need_uscore+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129else
11130 libltdl_cv_need_uscore=unknown
11131 save_LIBS="$LIBS"
11132 LIBS="$LIBS $LIBADD_DL"
11133 if test "$cross_compiling" = yes; then :
11134 libltdl_cv_need_uscore=cross
11135else
11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137 lt_status=$lt_dlunknown
11138 cat > conftest.$ac_ext <<EOF
John Criswell7def2932010-02-25 22:57:19 +000011139#line 11139 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140#include "confdefs.h"
11141
11142#if HAVE_DLFCN_H
11143#include <dlfcn.h>
11144#endif
11145
11146#include <stdio.h>
11147
11148#ifdef RTLD_GLOBAL
11149# define LT_DLGLOBAL RTLD_GLOBAL
11150#else
11151# ifdef DL_GLOBAL
11152# define LT_DLGLOBAL DL_GLOBAL
11153# else
11154# define LT_DLGLOBAL 0
11155# endif
11156#endif
11157
11158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160#ifndef LT_DLLAZY_OR_NOW
11161# ifdef RTLD_LAZY
11162# define LT_DLLAZY_OR_NOW RTLD_LAZY
11163# else
11164# ifdef DL_LAZY
11165# define LT_DLLAZY_OR_NOW DL_LAZY
11166# else
11167# ifdef RTLD_NOW
11168# define LT_DLLAZY_OR_NOW RTLD_NOW
11169# else
11170# ifdef DL_NOW
11171# define LT_DLLAZY_OR_NOW DL_NOW
11172# else
11173# define LT_DLLAZY_OR_NOW 0
11174# endif
11175# endif
11176# endif
11177# endif
11178#endif
11179
11180#ifdef __cplusplus
11181extern "C" void exit (int);
11182#endif
11183
11184void fnord() { int i=42;}
11185int main ()
11186{
11187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11188 int status = $lt_dlunknown;
11189
11190 if (self)
11191 {
11192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11194 /* dlclose (self); */
11195 }
Reid Spencera773bd52006-08-04 18:18:08 +000011196 else
11197 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011198
11199 exit (status);
11200}
11201EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011203 (eval $ac_link) 2>&5
11204 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011207 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011208 lt_status=$?
11209 case x$lt_status in
11210 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11211 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011212 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213 esac
11214 else :
11215 # compilation failed
11216
11217 fi
11218fi
11219rm -fr conftest*
11220
11221 LIBS="$save_LIBS"
11222
11223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011224{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11225echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226 fi
11227fi
11228
11229if test x"$libltdl_cv_need_uscore" = xyes; then
11230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011231cat >>confdefs.h <<\_ACEOF
11232#define NEED_USCORE 1
11233_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234
11235fi
11236
11237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011238{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11239echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11240if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242else
11243 # PORTME does your system automatically load deplibs for dlopen?
11244 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11245 # For now, we just catch OSes we know something about -- in the
11246 # future, we'll try test this programmatically.
11247 libltdl_cv_sys_dlopen_deplibs=unknown
11248 case "$host_os" in
11249 aix3*|aix4.1.*|aix4.2.*)
11250 # Unknown whether this is true for these versions of AIX, but
11251 # we want this `case' here to explicitly catch those versions.
11252 libltdl_cv_sys_dlopen_deplibs=unknown
11253 ;;
11254 aix[45]*)
11255 libltdl_cv_sys_dlopen_deplibs=yes
11256 ;;
11257 darwin*)
11258 # Assuming the user has installed a libdl from somewhere, this is true
11259 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11260 libltdl_cv_sys_dlopen_deplibs=yes
11261 ;;
11262 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11263 # GNU and its variants, using gnu ld.so (Glibc)
11264 libltdl_cv_sys_dlopen_deplibs=yes
11265 ;;
11266 hpux10*|hpux11*)
11267 libltdl_cv_sys_dlopen_deplibs=yes
11268 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011269 interix*)
11270 libltdl_cv_sys_dlopen_deplibs=yes
11271 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272 irix[12345]*|irix6.[01]*)
11273 # Catch all versions of IRIX before 6.2, and indicate that we don't
11274 # know how it worked for any of those versions.
11275 libltdl_cv_sys_dlopen_deplibs=unknown
11276 ;;
11277 irix*)
11278 # The case above catches anything before 6.2, and it's known that
11279 # at 6.2 and later dlopen does load deplibs.
11280 libltdl_cv_sys_dlopen_deplibs=yes
11281 ;;
11282 netbsd*)
11283 libltdl_cv_sys_dlopen_deplibs=yes
11284 ;;
11285 openbsd*)
11286 libltdl_cv_sys_dlopen_deplibs=yes
11287 ;;
11288 osf[1234]*)
11289 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11290 # it did *not* use an RPATH in a shared library to find objects the
11291 # library depends on, so we explictly say `no'.
11292 libltdl_cv_sys_dlopen_deplibs=no
11293 ;;
11294 osf5.0|osf5.0a|osf5.1)
11295 # dlopen *does* load deplibs and with the right loader patch applied
11296 # it even uses RPATH in a shared library to search for shared objects
11297 # that the library depends on, but there's no easy way to know if that
11298 # patch is installed. Since this is the case, all we can really
11299 # say is unknown -- it depends on the patch being installed. If
11300 # it is, this changes to `yes'. Without it, it would be `no'.
11301 libltdl_cv_sys_dlopen_deplibs=unknown
11302 ;;
11303 osf*)
11304 # the two cases above should catch all versions of osf <= 5.1. Read
11305 # the comments above for what we know about them.
11306 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11307 # is used to find them so we can finally say `yes'.
11308 libltdl_cv_sys_dlopen_deplibs=yes
11309 ;;
11310 solaris*)
11311 libltdl_cv_sys_dlopen_deplibs=yes
11312 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011313 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11314 libltdl_cv_sys_dlopen_deplibs=yes
11315 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316 esac
11317
11318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011319{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11320echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011323cat >>confdefs.h <<\_ACEOF
11324#define LTDL_DLOPEN_DEPLIBS 1
11325_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326
11327fi
11328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011331do
11332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
11338fi
11339ac_res=`eval echo '${'$as_ac_Header'}'`
11340 { echo "$as_me:$LINENO: result: $ac_res" >&5
11341echo "${ECHO_T}$ac_res" >&6; }
11342else
11343 # Is the header compilable?
11344{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11346cat >conftest.$ac_ext <<_ACEOF
11347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
11352$ac_includes_default
11353#include <$ac_header>
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (ac_try="$ac_compile"
11357case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360esac
11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_compile") 2>conftest.er1
11363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (case "(($ac_try" in
11371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372 *) ac_try_echo=$ac_try;;
11373esac
11374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375 (eval "$ac_try") 2>&5
11376 ac_status=$?
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; } &&
11379 { ac_try='test -s conftest.$ac_objext'
11380 { (case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383esac
11384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_try") 2>&5
11386 ac_status=$?
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); }; }; then
11389 ac_header_compiler=yes
11390else
11391 echo "$as_me: failed program was:" >&5
11392sed 's/^/| /' conftest.$ac_ext >&5
11393
11394 ac_header_compiler=no
11395fi
11396
11397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11399echo "${ECHO_T}$ac_header_compiler" >&6; }
11400
11401# Is the header present?
11402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11404cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410#include <$ac_header>
11411_ACEOF
11412if { (ac_try="$ac_cpp conftest.$ac_ext"
11413case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416esac
11417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } >/dev/null; then
11425 if test -s conftest.err; then
11426 ac_cpp_err=$ac_c_preproc_warn_flag
11427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11428 else
11429 ac_cpp_err=
11430 fi
11431else
11432 ac_cpp_err=yes
11433fi
11434if test -z "$ac_cpp_err"; then
11435 ac_header_preproc=yes
11436else
11437 echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
11439
11440 ac_header_preproc=no
11441fi
11442
11443rm -f conftest.err conftest.$ac_ext
11444{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445echo "${ECHO_T}$ac_header_preproc" >&6; }
11446
11447# So? What about this header?
11448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449 yes:no: )
11450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454 ac_header_preproc=yes
11455 ;;
11456 no:yes:* )
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11469 ( cat <<\_ASBOX
11470## ----------------------------------- ##
11471## Report this to llvmbugs@cs.uiuc.edu ##
11472## ----------------------------------- ##
11473_ASBOX
11474 ) | sed "s/^/$as_me: WARNING: /" >&2
11475 ;;
11476esac
11477{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11481else
11482 eval "$as_ac_Header=\$ac_header_preproc"
11483fi
11484ac_res=`eval echo '${'$as_ac_Header'}'`
11485 { echo "$as_me:$LINENO: result: $ac_res" >&5
11486echo "${ECHO_T}$ac_res" >&6; }
11487
11488fi
11489if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492_ACEOF
11493
11494fi
11495
11496done
11497
11498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011499{ echo "$as_me:$LINENO: checking for error_t" >&5
11500echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11501if test "${ac_cv_type_error_t+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11503else
11504 cat >conftest.$ac_ext <<_ACEOF
11505/* confdefs.h. */
11506_ACEOF
11507cat confdefs.h >>conftest.$ac_ext
11508cat >>conftest.$ac_ext <<_ACEOF
11509/* end confdefs.h. */
11510#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011511# include <argz.h>
11512#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011513
11514typedef error_t ac__type_new_;
11515int
11516main ()
11517{
11518if ((ac__type_new_ *) 0)
11519 return 0;
11520if (sizeof (ac__type_new_))
11521 return 0;
11522 ;
11523 return 0;
11524}
11525_ACEOF
11526rm -f conftest.$ac_objext
11527if { (ac_try="$ac_compile"
11528case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11531esac
11532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_compile") 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11544esac
11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11547 ac_status=$?
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest.$ac_objext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 ac_cv_type_error_t=yes
11561else
11562 echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_cv_type_error_t=no
11566fi
11567
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569fi
11570{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11571echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11572if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573
11574cat >>confdefs.h <<_ACEOF
11575#define HAVE_ERROR_T 1
11576_ACEOF
11577
11578
11579else
11580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011581cat >>confdefs.h <<\_ACEOF
11582#define error_t int
11583_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584
11585fi
11586
11587
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011588
11589
11590
11591
11592
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011594do
11595as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11596{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600else
11601 cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h. */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h. */
11607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11609#define $ac_func innocuous_$ac_func
11610
11611/* System header to define __stub macros and hopefully few prototypes,
11612 which can conflict with char $ac_func (); below.
11613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11614 <limits.h> exists even on freestanding compilers. */
11615
11616#ifdef __STDC__
11617# include <limits.h>
11618#else
11619# include <assert.h>
11620#endif
11621
11622#undef $ac_func
11623
11624/* Override any GCC internal prototype to avoid an error.
11625 Use char because int might match the return type of a GCC
11626 builtin and then its argument prototype would still apply. */
11627#ifdef __cplusplus
11628extern "C"
11629#endif
11630char $ac_func ();
11631/* The GNU C library defines this for functions which it implements
11632 to always fail with ENOSYS. Some functions are actually named
11633 something starting with __ and the normal name is an alias. */
11634#if defined __stub_$ac_func || defined __stub___$ac_func
11635choke me
11636#endif
11637
11638int
11639main ()
11640{
11641return $ac_func ();
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (ac_try="$ac_link"
11648case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651esac
11652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_link") 2>conftest.er1
11654 ac_status=$?
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11661 { (case "(($ac_try" in
11662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 *) ac_try_echo=$ac_try;;
11664esac
11665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666 (eval "$ac_try") 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; } &&
11670 { ac_try='test -s conftest$ac_exeext'
11671 { (case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_try") 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 eval "$as_ac_var=yes"
11681else
11682 echo "$as_me: failed program was:" >&5
11683sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 eval "$as_ac_var=no"
11686fi
11687
11688rm -f core conftest.err conftest.$ac_objext \
11689 conftest$ac_exeext conftest.$ac_ext
11690fi
11691ac_res=`eval echo '${'$as_ac_var'}'`
11692 { echo "$as_me:$LINENO: result: $ac_res" >&5
11693echo "${ECHO_T}$ac_res" >&6; }
11694if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011696#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697_ACEOF
11698
11699fi
11700done
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011721
11722
11723
11724
11725
11726
11727
11728
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11730 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011731do
11732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738fi
11739ac_res=`eval echo '${'$as_ac_Header'}'`
11740 { echo "$as_me:$LINENO: result: $ac_res" >&5
11741echo "${ECHO_T}$ac_res" >&6; }
11742else
11743 # Is the header compilable?
11744{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11746cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752$ac_includes_default
11753#include <$ac_header>
11754_ACEOF
11755rm -f conftest.$ac_objext
11756if { (ac_try="$ac_compile"
11757case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760esac
11761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11762 (eval "$ac_compile") 2>conftest.er1
11763 ac_status=$?
11764 grep -v '^ *+' conftest.er1 >conftest.err
11765 rm -f conftest.er1
11766 cat conftest.err >&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); } &&
11769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11770 { (case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_try") 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; } &&
11779 { ac_try='test -s conftest.$ac_objext'
11780 { (case "(($ac_try" in
11781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11782 *) ac_try_echo=$ac_try;;
11783esac
11784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11785 (eval "$ac_try") 2>&5
11786 ac_status=$?
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); }; }; then
11789 ac_header_compiler=yes
11790else
11791 echo "$as_me: failed program was:" >&5
11792sed 's/^/| /' conftest.$ac_ext >&5
11793
11794 ac_header_compiler=no
11795fi
11796
11797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11798{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11799echo "${ECHO_T}$ac_header_compiler" >&6; }
11800
11801# Is the header present?
11802{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11804cat >conftest.$ac_ext <<_ACEOF
11805/* confdefs.h. */
11806_ACEOF
11807cat confdefs.h >>conftest.$ac_ext
11808cat >>conftest.$ac_ext <<_ACEOF
11809/* end confdefs.h. */
11810#include <$ac_header>
11811_ACEOF
11812if { (ac_try="$ac_cpp conftest.$ac_ext"
11813case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11819 ac_status=$?
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } >/dev/null; then
11825 if test -s conftest.err; then
11826 ac_cpp_err=$ac_c_preproc_warn_flag
11827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11828 else
11829 ac_cpp_err=
11830 fi
11831else
11832 ac_cpp_err=yes
11833fi
11834if test -z "$ac_cpp_err"; then
11835 ac_header_preproc=yes
11836else
11837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840 ac_header_preproc=no
11841fi
11842
11843rm -f conftest.err conftest.$ac_ext
11844{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845echo "${ECHO_T}$ac_header_preproc" >&6; }
11846
11847# So? What about this header?
11848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11849 yes:no: )
11850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11851echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11853echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc=yes
11855 ;;
11856 no:yes:* )
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11858echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11860echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11862echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11864echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11866echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11868echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11869 ( cat <<\_ASBOX
11870## ----------------------------------- ##
11871## Report this to llvmbugs@cs.uiuc.edu ##
11872## ----------------------------------- ##
11873_ASBOX
11874 ) | sed "s/^/$as_me: WARNING: /" >&2
11875 ;;
11876esac
11877{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881else
11882 eval "$as_ac_Header=\$ac_header_preproc"
11883fi
11884ac_res=`eval echo '${'$as_ac_Header'}'`
11885 { echo "$as_me:$LINENO: result: $ac_res" >&5
11886echo "${ECHO_T}$ac_res" >&6; }
11887
11888fi
11889if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892_ACEOF
11893
11894fi
11895
11896done
11897
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011898
11899
11900
11901
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011903do
11904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910fi
11911ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913echo "${ECHO_T}$ac_res" >&6; }
11914else
11915 # Is the header compilable?
11916{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11918cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924$ac_includes_default
11925#include <$ac_header>
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (ac_try="$ac_compile"
11929case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_compile") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945esac
11946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest.$ac_objext'
11952 { (case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11955esac
11956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_header_compiler=yes
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_header_compiler=no
11967fi
11968
11969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11971echo "${ECHO_T}$ac_header_compiler" >&6; }
11972
11973# Is the header present?
11974{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11975echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11976cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h. */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h. */
11982#include <$ac_header>
11983_ACEOF
11984if { (ac_try="$ac_cpp conftest.$ac_ext"
11985case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988esac
11989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } >/dev/null; then
11997 if test -s conftest.err; then
11998 ac_cpp_err=$ac_c_preproc_warn_flag
11999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12000 else
12001 ac_cpp_err=
12002 fi
12003else
12004 ac_cpp_err=yes
12005fi
12006if test -z "$ac_cpp_err"; then
12007 ac_header_preproc=yes
12008else
12009 echo "$as_me: failed program was:" >&5
12010sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ac_header_preproc=no
12013fi
12014
12015rm -f conftest.err conftest.$ac_ext
12016{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12017echo "${ECHO_T}$ac_header_preproc" >&6; }
12018
12019# So? What about this header?
12020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12021 yes:no: )
12022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12023echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12025echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12026 ac_header_preproc=yes
12027 ;;
12028 no:yes:* )
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12030echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12032echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12034echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12036echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12038echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12040echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12041 ( cat <<\_ASBOX
12042## ----------------------------------- ##
12043## Report this to llvmbugs@cs.uiuc.edu ##
12044## ----------------------------------- ##
12045_ASBOX
12046 ) | sed "s/^/$as_me: WARNING: /" >&2
12047 ;;
12048esac
12049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 eval "$as_ac_Header=\$ac_header_preproc"
12055fi
12056ac_res=`eval echo '${'$as_ac_Header'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058echo "${ECHO_T}$ac_res" >&6; }
12059
12060fi
12061if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012064_ACEOF
12065
12066fi
12067
12068done
12069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070
12071
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012072for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012073do
12074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
12080fi
12081ac_res=`eval echo '${'$as_ac_Header'}'`
12082 { echo "$as_me:$LINENO: result: $ac_res" >&5
12083echo "${ECHO_T}$ac_res" >&6; }
12084else
12085 # Is the header compilable?
12086{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12088cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094$ac_includes_default
12095#include <$ac_header>
12096_ACEOF
12097rm -f conftest.$ac_objext
12098if { (ac_try="$ac_compile"
12099case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12102esac
12103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_compile") 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12112 { (case "(($ac_try" in
12113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12114 *) ac_try_echo=$ac_try;;
12115esac
12116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_try") 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; } &&
12121 { ac_try='test -s conftest.$ac_objext'
12122 { (case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125esac
12126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_try") 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; }; then
12131 ac_header_compiler=yes
12132else
12133 echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 ac_header_compiler=no
12137fi
12138
12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141echo "${ECHO_T}$ac_header_compiler" >&6; }
12142
12143# Is the header present?
12144{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12146cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152#include <$ac_header>
12153_ACEOF
12154if { (ac_try="$ac_cpp conftest.$ac_ext"
12155case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12158esac
12159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } >/dev/null; then
12167 if test -s conftest.err; then
12168 ac_cpp_err=$ac_c_preproc_warn_flag
12169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12170 else
12171 ac_cpp_err=
12172 fi
12173else
12174 ac_cpp_err=yes
12175fi
12176if test -z "$ac_cpp_err"; then
12177 ac_header_preproc=yes
12178else
12179 echo "$as_me: failed program was:" >&5
12180sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 ac_header_preproc=no
12183fi
12184
12185rm -f conftest.err conftest.$ac_ext
12186{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12187echo "${ECHO_T}$ac_header_preproc" >&6; }
12188
12189# So? What about this header?
12190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12191 yes:no: )
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12193echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12195echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12196 ac_header_preproc=yes
12197 ;;
12198 no:yes:* )
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12200echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12202echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12204echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12206echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12210echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12211 ( cat <<\_ASBOX
12212## ----------------------------------- ##
12213## Report this to llvmbugs@cs.uiuc.edu ##
12214## ----------------------------------- ##
12215_ASBOX
12216 ) | sed "s/^/$as_me: WARNING: /" >&2
12217 ;;
12218esac
12219{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12221if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223else
12224 eval "$as_ac_Header=\$ac_header_preproc"
12225fi
12226ac_res=`eval echo '${'$as_ac_Header'}'`
12227 { echo "$as_me:$LINENO: result: $ac_res" >&5
12228echo "${ECHO_T}$ac_res" >&6; }
12229
12230fi
12231if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234_ACEOF
12235 break
12236fi
12237
12238done
12239
12240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012241
12242
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012244do
12245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12246{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12248if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12250else
12251 cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
12257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12259#define $ac_func innocuous_$ac_func
12260
12261/* System header to define __stub macros and hopefully few prototypes,
12262 which can conflict with char $ac_func (); below.
12263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12264 <limits.h> exists even on freestanding compilers. */
12265
12266#ifdef __STDC__
12267# include <limits.h>
12268#else
12269# include <assert.h>
12270#endif
12271
12272#undef $ac_func
12273
12274/* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply. */
12277#ifdef __cplusplus
12278extern "C"
12279#endif
12280char $ac_func ();
12281/* The GNU C library defines this for functions which it implements
12282 to always fail with ENOSYS. Some functions are actually named
12283 something starting with __ and the normal name is an alias. */
12284#if defined __stub_$ac_func || defined __stub___$ac_func
12285choke me
12286#endif
12287
12288int
12289main ()
12290{
12291return $ac_func ();
12292 ;
12293 return 0;
12294}
12295_ACEOF
12296rm -f conftest.$ac_objext conftest$ac_exeext
12297if { (ac_try="$ac_link"
12298case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12301esac
12302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } &&
12310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12311 { (case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12314esac
12315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_try") 2>&5
12317 ac_status=$?
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest$ac_exeext'
12321 { (case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324esac
12325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12326 (eval "$ac_try") 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; }; then
12330 eval "$as_ac_var=yes"
12331else
12332 echo "$as_me: failed program was:" >&5
12333sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 eval "$as_ac_var=no"
12336fi
12337
12338rm -f core conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340fi
12341ac_res=`eval echo '${'$as_ac_var'}'`
12342 { echo "$as_me:$LINENO: result: $ac_res" >&5
12343echo "${ECHO_T}$ac_res" >&6; }
12344if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012345 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012346#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012347_ACEOF
12348 break
12349fi
12350done
12351
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012352
12353
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012354for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012355do
12356as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12357{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12358echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12359if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361else
12362 cat >conftest.$ac_ext <<_ACEOF
12363/* confdefs.h. */
12364_ACEOF
12365cat confdefs.h >>conftest.$ac_ext
12366cat >>conftest.$ac_ext <<_ACEOF
12367/* end confdefs.h. */
12368/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12370#define $ac_func innocuous_$ac_func
12371
12372/* System header to define __stub macros and hopefully few prototypes,
12373 which can conflict with char $ac_func (); below.
12374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375 <limits.h> exists even on freestanding compilers. */
12376
12377#ifdef __STDC__
12378# include <limits.h>
12379#else
12380# include <assert.h>
12381#endif
12382
12383#undef $ac_func
12384
12385/* Override any GCC internal prototype to avoid an error.
12386 Use char because int might match the return type of a GCC
12387 builtin and then its argument prototype would still apply. */
12388#ifdef __cplusplus
12389extern "C"
12390#endif
12391char $ac_func ();
12392/* The GNU C library defines this for functions which it implements
12393 to always fail with ENOSYS. Some functions are actually named
12394 something starting with __ and the normal name is an alias. */
12395#if defined __stub_$ac_func || defined __stub___$ac_func
12396choke me
12397#endif
12398
12399int
12400main ()
12401{
12402return $ac_func ();
12403 ;
12404 return 0;
12405}
12406_ACEOF
12407rm -f conftest.$ac_objext conftest$ac_exeext
12408if { (ac_try="$ac_link"
12409case "(($ac_try" in
12410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411 *) ac_try_echo=$ac_try;;
12412esac
12413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414 (eval "$ac_link") 2>conftest.er1
12415 ac_status=$?
12416 grep -v '^ *+' conftest.er1 >conftest.err
12417 rm -f conftest.er1
12418 cat conftest.err >&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422 { (case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425esac
12426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_try") 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12435esac
12436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 eval "$as_ac_var=yes"
12442else
12443 echo "$as_me: failed program was:" >&5
12444sed 's/^/| /' conftest.$ac_ext >&5
12445
12446 eval "$as_ac_var=no"
12447fi
12448
12449rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12451fi
12452ac_res=`eval echo '${'$as_ac_var'}'`
12453 { echo "$as_me:$LINENO: result: $ac_res" >&5
12454echo "${ECHO_T}$ac_res" >&6; }
12455if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012458_ACEOF
12459 break
12460fi
12461done
12462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012463
12464
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012466do
12467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481#define $ac_func innocuous_$ac_func
12482
12483/* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char $ac_func (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12487
12488#ifdef __STDC__
12489# include <limits.h>
12490#else
12491# include <assert.h>
12492#endif
12493
12494#undef $ac_func
12495
12496/* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
12499#ifdef __cplusplus
12500extern "C"
12501#endif
12502char $ac_func ();
12503/* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506#if defined __stub_$ac_func || defined __stub___$ac_func
12507choke me
12508#endif
12509
12510int
12511main ()
12512{
12513return $ac_func ();
12514 ;
12515 return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext conftest$ac_exeext
12519if { (ac_try="$ac_link"
12520case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12523esac
12524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_link") 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12536esac
12537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest$ac_exeext'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
12547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 eval "$as_ac_var=yes"
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 eval "$as_ac_var=no"
12558fi
12559
12560rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562fi
12563ac_res=`eval echo '${'$as_ac_var'}'`
12564 { echo "$as_me:$LINENO: result: $ac_res" >&5
12565echo "${ECHO_T}$ac_res" >&6; }
12566if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012569_ACEOF
12570 break
12571fi
12572done
12573
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012574
12575
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012576for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012577do
12578as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12580echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12581if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584 cat >conftest.$ac_ext <<_ACEOF
12585/* confdefs.h. */
12586_ACEOF
12587cat confdefs.h >>conftest.$ac_ext
12588cat >>conftest.$ac_ext <<_ACEOF
12589/* end confdefs.h. */
12590/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12592#define $ac_func innocuous_$ac_func
12593
12594/* System header to define __stub macros and hopefully few prototypes,
12595 which can conflict with char $ac_func (); below.
12596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12597 <limits.h> exists even on freestanding compilers. */
12598
12599#ifdef __STDC__
12600# include <limits.h>
12601#else
12602# include <assert.h>
12603#endif
12604
12605#undef $ac_func
12606
12607/* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12610#ifdef __cplusplus
12611extern "C"
12612#endif
12613char $ac_func ();
12614/* The GNU C library defines this for functions which it implements
12615 to always fail with ENOSYS. Some functions are actually named
12616 something starting with __ and the normal name is an alias. */
12617#if defined __stub_$ac_func || defined __stub___$ac_func
12618choke me
12619#endif
12620
12621int
12622main ()
12623{
12624return $ac_func ();
12625 ;
12626 return 0;
12627}
12628_ACEOF
12629rm -f conftest.$ac_objext conftest$ac_exeext
12630if { (ac_try="$ac_link"
12631case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634esac
12635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_link") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12644 { (case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12647esac
12648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_try") 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest$ac_exeext'
12654 { (case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657esac
12658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_try") 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; }; then
12663 eval "$as_ac_var=yes"
12664else
12665 echo "$as_me: failed program was:" >&5
12666sed 's/^/| /' conftest.$ac_ext >&5
12667
12668 eval "$as_ac_var=no"
12669fi
12670
12671rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673fi
12674ac_res=`eval echo '${'$as_ac_var'}'`
12675 { echo "$as_me:$LINENO: result: $ac_res" >&5
12676echo "${ECHO_T}$ac_res" >&6; }
12677if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012680_ACEOF
12681
12682fi
12683done
12684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012685
12686
12687
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012689do
12690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12695else
12696 cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12704#define $ac_func innocuous_$ac_func
12705
12706/* System header to define __stub macros and hopefully few prototypes,
12707 which can conflict with char $ac_func (); below.
12708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709 <limits.h> exists even on freestanding compilers. */
12710
12711#ifdef __STDC__
12712# include <limits.h>
12713#else
12714# include <assert.h>
12715#endif
12716
12717#undef $ac_func
12718
12719/* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12722#ifdef __cplusplus
12723extern "C"
12724#endif
12725char $ac_func ();
12726/* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729#if defined __stub_$ac_func || defined __stub___$ac_func
12730choke me
12731#endif
12732
12733int
12734main ()
12735{
12736return $ac_func ();
12737 ;
12738 return 0;
12739}
12740_ACEOF
12741rm -f conftest.$ac_objext conftest$ac_exeext
12742if { (ac_try="$ac_link"
12743case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12746esac
12747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_link") 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12756 { (case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759esac
12760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_try") 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest$ac_exeext'
12766 { (case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769esac
12770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_try") 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 eval "$as_ac_var=yes"
12776else
12777 echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 eval "$as_ac_var=no"
12781fi
12782
12783rm -f core conftest.err conftest.$ac_objext \
12784 conftest$ac_exeext conftest.$ac_ext
12785fi
12786ac_res=`eval echo '${'$as_ac_var'}'`
12787 { echo "$as_me:$LINENO: result: $ac_res" >&5
12788echo "${ECHO_T}$ac_res" >&6; }
12789if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012790 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012792_ACEOF
12793
12794fi
12795done
12796
12797
Douglas Gregor01746742009-05-11 18:05:52 +000012798
Reid Spencer7931a782004-12-27 06:15:02 +000012799if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012800 LLVMGCC="llvm-gcc${EXEEXT}"
12801 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012802 LLVMGCCCOMMAND="$LLVMGCC"
12803 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012804 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12805
12806 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12807
Reid Spencerc84492c2005-06-02 22:34:49 +000012808 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12809set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12812if test "${ac_cv_path_LLVMGCC+set}" = set; then
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012814else
12815 case $LLVMGCC in
12816 [\\/]* | ?:[\\/]*)
12817 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12818 ;;
12819 *)
12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 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 +000012827 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012829 break 2
12830 fi
12831done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012832done
Reid Spencera773bd52006-08-04 18:18:08 +000012833IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012834
Reid Spencer59473af2004-12-25 07:31:29 +000012835 ;;
12836esac
12837fi
12838LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012839if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12841echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012843 { echo "$as_me:$LINENO: result: no" >&5
12844echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012845fi
12846
Reid Spencera773bd52006-08-04 18:18:08 +000012847
Reid Spencerc84492c2005-06-02 22:34:49 +000012848 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12849set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12852if test "${ac_cv_path_LLVMGXX+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012854else
12855 case $LLVMGXX in
12856 [\\/]* | ?:[\\/]*)
12857 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12858 ;;
12859 *)
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 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 +000012867 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012869 break 2
12870 fi
12871done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012872done
Reid Spencera773bd52006-08-04 18:18:08 +000012873IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012874
Reid Spencer59473af2004-12-25 07:31:29 +000012875 ;;
12876esac
12877fi
12878LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012879if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12881echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012883 { echo "$as_me:$LINENO: result: no" >&5
12884echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012885fi
12886
Reid Spencera773bd52006-08-04 18:18:08 +000012887
Reid Spencer59473af2004-12-25 07:31:29 +000012888else
Devang Patel5d28b882007-12-04 22:54:47 +000012889 if test -z "$LLVMGCC"; then
12890 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012891 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012892 fi
12893 if test -z "$LLVMGXX"; then
12894 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012895 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012896 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012897
Reid Spencer59473af2004-12-25 07:31:29 +000012898 LLVMGCC=$LLVMGCC
12899
12900 LLVMGXX=$LLVMGXX
12901
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012902 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12903
12904 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12905
Reid Spencer59473af2004-12-25 07:31:29 +000012906fi
12907
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012908
Daniel Dunbar98515672010-02-23 10:00:49 +000012909# Check whether --with-llvmcc was given.
12910if test "${with_llvmcc+set}" = set; then
12911 withval=$with_llvmcc;
12912else
12913 with_llvmcc=check
12914fi
12915
12916{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12917echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12918if test "$with_llvmcc" != "check"; then
12919 if (test "$with_llvmcc" != "llvm-gcc" &&
12920 test "$with_llvmcc" != "clang" &&
12921 test "$with_llvmcc" != "none"); then
12922 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12923echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12924 { (exit 1); exit 1; }; }
12925 fi
12926 WITH_LLVMCC="$with_llvmcc"
12927elif test -n "$LLVMGCC"; then
12928 WITH_LLVMCC=llvm-gcc
12929elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12930 WITH_LLVMCC=clang
12931else
12932 WITH_LLVMCC=none
12933fi
12934{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12935echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12936LLVMCC_OPTION=$WITH_LLVMCC
12937
12938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12940echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012941
Reid Spencer86901802004-12-08 23:07:27 +000012942ICC=no
12943IXX=no
12944case $CC in
12945 icc*|icpc*)
12946 ICC=yes
12947 IXX=yes
12948 ;;
12949 *)
12950 ;;
12951esac
12952
Duraid Madina937c60a2006-02-15 07:57:42 +000012953if test "$GCC" != "yes" && test "$ICC" != "yes"
12954then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012955 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12956echo "$as_me: error: gcc|icc required but not found" >&2;}
12957 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012958fi
12959
12960if test "$GXX" != "yes" && test "$IXX" != "yes"
12961then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012962 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12963echo "$as_me: error: g++|icc required but not found" >&2;}
12964 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012965fi
12966
Reid Spencer86901802004-12-08 23:07:27 +000012967if test "$GCC" = "yes"
12968then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012969 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012970#if !defined(__GNUC__) || __GNUC__ < 3
12971#error Unsupported GCC version
12972#endif
12973
12974_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012975rm -f conftest.$ac_objext
12976if { (ac_try="$ac_compile"
12977case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12980esac
12981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_compile") 2>conftest.er1
12983 ac_status=$?
12984 grep -v '^ *+' conftest.er1 >conftest.err
12985 rm -f conftest.er1
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993esac
12994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13003esac
13004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013011 echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13015echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13016 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013017fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013018
Chris Lattner399c7c72008-02-05 19:43:53 +000013019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013020fi
13021
13022if test -z "$llvm_cv_gnu_make_command"
13023then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013024 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13025echo "$as_me: error: GNU Make required but not found" >&2;}
13026 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013027fi
13028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029{ echo "$as_me:$LINENO: result: ok" >&5
13030echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013032{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13033echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013034NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13035
13036NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013038{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13039echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013040
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013042
13043{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13044echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13045if test "${ac_cv_lib_m_sin+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013047else
13048 ac_check_lib_save_LIBS=$LIBS
13049LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050cat >conftest.$ac_ext <<_ACEOF
13051/* confdefs.h. */
13052_ACEOF
13053cat confdefs.h >>conftest.$ac_ext
13054cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013055/* end confdefs.h. */
13056
Reid Spencera773bd52006-08-04 18:18:08 +000013057/* Override any GCC internal prototype to avoid an error.
13058 Use char because int might match the return type of a GCC
13059 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013060#ifdef __cplusplus
13061extern "C"
13062#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013063char sin ();
13064int
13065main ()
13066{
Reid Spencera773bd52006-08-04 18:18:08 +000013067return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013068 ;
13069 return 0;
13070}
13071_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013072rm -f conftest.$ac_objext conftest$ac_exeext
13073if { (ac_try="$ac_link"
13074case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13077esac
13078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13080 ac_status=$?
13081 grep -v '^ *+' conftest.er1 >conftest.err
13082 rm -f conftest.er1
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13100esac
13101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013106 ac_cv_lib_m_sin=yes
13107else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108 echo "$as_me: failed program was:" >&5
13109sed 's/^/| /' conftest.$ac_ext >&5
13110
13111 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013113
Bill Wendlingebcceee2009-04-18 11:20:33 +000013114rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013116LIBS=$ac_check_lib_save_LIBS
13117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013118{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13119echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13120if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013121 cat >>confdefs.h <<_ACEOF
13122#define HAVE_LIBM 1
13123_ACEOF
13124
13125 LIBS="-lm $LIBS"
13126
13127fi
13128
Jeff Cohen28783c32007-01-12 18:22:38 +000013129if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013130
13131{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13132echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13133if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013135else
13136 ac_check_lib_save_LIBS=$LIBS
13137LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138cat >conftest.$ac_ext <<_ACEOF
13139/* confdefs.h. */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013143/* end confdefs.h. */
13144
Reid Spencer48fdf912006-06-01 19:03:21 +000013145
Reid Spencer484fc8e2006-06-01 16:55:59 +000013146int
13147main ()
13148{
Reid Spencera773bd52006-08-04 18:18:08 +000013149return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013150 ;
13151 return 0;
13152}
13153_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013154rm -f conftest.$ac_objext conftest$ac_exeext
13155if { (ac_try="$ac_link"
13156case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
13175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13182esac
13183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013188 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013189else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190 echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013194fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013195
Bill Wendlingebcceee2009-04-18 11:20:33 +000013196rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013198LIBS=$ac_check_lib_save_LIBS
13199fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013200{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13201echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13202if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013203 cat >>confdefs.h <<_ACEOF
13204#define HAVE_LIBIMAGEHLP 1
13205_ACEOF
13206
13207 LIBS="-limagehlp $LIBS"
13208
13209fi
13210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211
13212{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13213echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13214if test "${ac_cv_lib_psapi_main+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013216else
13217 ac_check_lib_save_LIBS=$LIBS
13218LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013219cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013224/* end confdefs.h. */
13225
Reid Spencer48fdf912006-06-01 19:03:21 +000013226
Reid Spencer484fc8e2006-06-01 16:55:59 +000013227int
13228main ()
13229{
Reid Spencera773bd52006-08-04 18:18:08 +000013230return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013231 ;
13232 return 0;
13233}
13234_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013235rm -f conftest.$ac_objext conftest$ac_exeext
13236if { (ac_try="$ac_link"
13237case "(($ac_try" in
13238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13239 *) ac_try_echo=$ac_try;;
13240esac
13241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13242 (eval "$ac_link") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253esac
13254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_try") 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest$ac_exeext'
13260 { (case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263esac
13264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_try") 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013269 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013270else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271 echo "$as_me: failed program was:" >&5
13272sed 's/^/| /' conftest.$ac_ext >&5
13273
13274 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276
Bill Wendlingebcceee2009-04-18 11:20:33 +000013277rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013279LIBS=$ac_check_lib_save_LIBS
13280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013281{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13282echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13283if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013284 cat >>confdefs.h <<_ACEOF
13285#define HAVE_LIBPSAPI 1
13286_ACEOF
13287
13288 LIBS="-lpsapi $LIBS"
13289
13290fi
13291
13292fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013294{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13295echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13296if test "${ac_cv_search_dlopen+set}" = set; then
13297 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013298else
13299 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h. */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013305/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013306
Reid Spencera773bd52006-08-04 18:18:08 +000013307/* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013310#ifdef __cplusplus
13311extern "C"
13312#endif
John Criswell7a73b802003-06-30 21:59:07 +000013313char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013314int
13315main ()
13316{
Reid Spencera773bd52006-08-04 18:18:08 +000013317return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013318 ;
13319 return 0;
13320}
13321_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013322for ac_lib in '' dl; do
13323 if test -z "$ac_lib"; then
13324 ac_res="none required"
13325 else
13326 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013328 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013329 rm -f conftest.$ac_objext conftest$ac_exeext
13330if { (ac_try="$ac_link"
13331case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334esac
13335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_link") 2>conftest.er1
13337 ac_status=$?
13338 grep -v '^ *+' conftest.er1 >conftest.err
13339 rm -f conftest.er1
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13344 { (case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347esac
13348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_try") 2>&5
13350 ac_status=$?
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; } &&
13353 { ac_try='test -s conftest$ac_exeext'
13354 { (case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357esac
13358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_try") 2>&5
13360 ac_status=$?
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013363 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013364else
13365 echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368
John Criswell7a73b802003-06-30 21:59:07 +000013369fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013370
Bill Wendlingebcceee2009-04-18 11:20:33 +000013371rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013372 conftest$ac_exeext
13373 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013374 break
John Criswell7a73b802003-06-30 21:59:07 +000013375fi
Reid Spencera773bd52006-08-04 18:18:08 +000013376done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013377if test "${ac_cv_search_dlopen+set}" = set; then
13378 :
Reid Spencera773bd52006-08-04 18:18:08 +000013379else
13380 ac_cv_search_dlopen=no
13381fi
13382rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013383LIBS=$ac_func_search_save_LIBS
13384fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013385{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13386echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013387ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013388if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013391cat >>confdefs.h <<\_ACEOF
13392#define HAVE_DLOPEN 1
13393_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013394
13395else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013396 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13397echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013398fi
13399
13400
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013401if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013402 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13403echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13404if test "${ac_cv_search_ffi_call+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013406else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013407 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013408cat >conftest.$ac_ext <<_ACEOF
13409/* confdefs.h. */
13410_ACEOF
13411cat confdefs.h >>conftest.$ac_ext
13412cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013413/* end confdefs.h. */
13414
13415/* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13418#ifdef __cplusplus
13419extern "C"
13420#endif
13421char ffi_call ();
13422int
13423main ()
13424{
13425return ffi_call ();
13426 ;
13427 return 0;
13428}
13429_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013430for ac_lib in '' ffi; do
13431 if test -z "$ac_lib"; then
13432 ac_res="none required"
13433 else
13434 ac_res=-l$ac_lib
13435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13436 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013437 rm -f conftest.$ac_objext conftest$ac_exeext
13438if { (ac_try="$ac_link"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013471 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478
Bill Wendlingebcceee2009-04-18 11:20:33 +000013479rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013480 conftest$ac_exeext
13481 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013482 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013483fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013484done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013485if test "${ac_cv_search_ffi_call+set}" = set; then
13486 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013487else
13488 ac_cv_search_ffi_call=no
13489fi
13490rm conftest.$ac_ext
13491LIBS=$ac_func_search_save_LIBS
13492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13494echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013495ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013496if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013499cat >>confdefs.h <<\_ACEOF
13500#define HAVE_FFI_CALL 1
13501_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013502
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013503else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013504 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13505echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13506 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013507fi
13508
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013509fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013510
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013511{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13512echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13513if test "${ac_cv_search_mallinfo+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013515else
13516 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013517cat >conftest.$ac_ext <<_ACEOF
13518/* confdefs.h. */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013523
Reid Spencera773bd52006-08-04 18:18:08 +000013524/* Override any GCC internal prototype to avoid an error.
13525 Use char because int might match the return type of a GCC
13526 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013527#ifdef __cplusplus
13528extern "C"
13529#endif
John Criswell7a73b802003-06-30 21:59:07 +000013530char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013531int
13532main ()
13533{
Reid Spencera773bd52006-08-04 18:18:08 +000013534return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013535 ;
13536 return 0;
13537}
13538_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013539for ac_lib in '' malloc; do
13540 if test -z "$ac_lib"; then
13541 ac_res="none required"
13542 else
13543 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013545 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013546 rm -f conftest.$ac_objext conftest$ac_exeext
13547if { (ac_try="$ac_link"
13548case "(($ac_try" in
13549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13550 *) ac_try_echo=$ac_try;;
13551esac
13552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13553 (eval "$ac_link") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13561 { (case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564esac
13565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_try") 2>&5
13567 ac_status=$?
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; } &&
13570 { ac_try='test -s conftest$ac_exeext'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013580 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013581else
13582 echo "$as_me: failed program was:" >&5
13583sed 's/^/| /' conftest.$ac_ext >&5
13584
13585
John Criswell7a73b802003-06-30 21:59:07 +000013586fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013587
Bill Wendlingebcceee2009-04-18 11:20:33 +000013588rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013589 conftest$ac_exeext
13590 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013591 break
John Criswell7a73b802003-06-30 21:59:07 +000013592fi
Reid Spencera773bd52006-08-04 18:18:08 +000013593done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013594if test "${ac_cv_search_mallinfo+set}" = set; then
13595 :
Reid Spencera773bd52006-08-04 18:18:08 +000013596else
13597 ac_cv_search_mallinfo=no
13598fi
13599rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013600LIBS=$ac_func_search_save_LIBS
13601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013602{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13603echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013604ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013605if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013608cat >>confdefs.h <<\_ACEOF
13609#define HAVE_MALLINFO 1
13610_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013611
13612fi
13613
13614
Reid Spencer0a262ba2005-08-24 10:07:20 +000013615if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013616
13617{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13618echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13619if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013621else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013622 ac_check_lib_save_LIBS=$LIBS
13623LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013624cat >conftest.$ac_ext <<_ACEOF
13625/* confdefs.h. */
13626_ACEOF
13627cat confdefs.h >>conftest.$ac_ext
13628cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013629/* end confdefs.h. */
13630
Reid Spencera773bd52006-08-04 18:18:08 +000013631/* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013634#ifdef __cplusplus
13635extern "C"
13636#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013637char pthread_mutex_init ();
13638int
13639main ()
13640{
Reid Spencera773bd52006-08-04 18:18:08 +000013641return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013642 ;
13643 return 0;
13644}
13645_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013646rm -f conftest.$ac_objext conftest$ac_exeext
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13661 { (case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13664esac
13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_try") 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest$ac_exeext'
13671 { (case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13674esac
13675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_try") 2>&5
13677 ac_status=$?
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013680 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013681else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013682 echo "$as_me: failed program was:" >&5
13683sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013686fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013687
Bill Wendlingebcceee2009-04-18 11:20:33 +000013688rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013689 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013690LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013692{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13693echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13694if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013695 cat >>confdefs.h <<_ACEOF
13696#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013697_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013698
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013699 LIBS="-lpthread $LIBS"
13700
Reid Spencer22177fe2005-07-12 15:24:20 +000013701fi
13702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013703 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13704echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13705if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013707else
13708 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013709cat >conftest.$ac_ext <<_ACEOF
13710/* confdefs.h. */
13711_ACEOF
13712cat confdefs.h >>conftest.$ac_ext
13713cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013714/* end confdefs.h. */
13715
Reid Spencera773bd52006-08-04 18:18:08 +000013716/* Override any GCC internal prototype to avoid an error.
13717 Use char because int might match the return type of a GCC
13718 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013719#ifdef __cplusplus
13720extern "C"
13721#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013722char pthread_mutex_lock ();
13723int
13724main ()
13725{
Reid Spencera773bd52006-08-04 18:18:08 +000013726return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013727 ;
13728 return 0;
13729}
13730_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013731for ac_lib in '' pthread; do
13732 if test -z "$ac_lib"; then
13733 ac_res="none required"
13734 else
13735 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013737 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738 rm -f conftest.$ac_objext conftest$ac_exeext
13739if { (ac_try="$ac_link"
13740case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743esac
13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_link") 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13753 { (case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13756esac
13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_try") 2>&5
13759 ac_status=$?
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; } &&
13762 { ac_try='test -s conftest$ac_exeext'
13763 { (case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766esac
13767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_try") 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013772 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013773else
13774 echo "$as_me: failed program was:" >&5
13775sed 's/^/| /' conftest.$ac_ext >&5
13776
13777
Brian Gaeke5f268f72003-12-05 19:29:01 +000013778fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013779
Bill Wendlingebcceee2009-04-18 11:20:33 +000013780rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013781 conftest$ac_exeext
13782 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013783 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013784fi
Reid Spencera773bd52006-08-04 18:18:08 +000013785done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013786if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13787 :
Reid Spencera773bd52006-08-04 18:18:08 +000013788else
13789 ac_cv_search_pthread_mutex_lock=no
13790fi
13791rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013792LIBS=$ac_func_search_save_LIBS
13793fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13795echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013796ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013800cat >>confdefs.h <<\_ACEOF
13801#define HAVE_PTHREAD_MUTEX_LOCK 1
13802_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013803
13804fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013806 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13807echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13808if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013810else
13811 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013812cat >conftest.$ac_ext <<_ACEOF
13813/* confdefs.h. */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013817/* end confdefs.h. */
13818
13819/* Override any GCC internal prototype to avoid an error.
13820 Use char because int might match the return type of a GCC
13821 builtin and then its argument prototype would still apply. */
13822#ifdef __cplusplus
13823extern "C"
13824#endif
13825char pthread_rwlock_init ();
13826int
13827main ()
13828{
13829return pthread_rwlock_init ();
13830 ;
13831 return 0;
13832}
13833_ACEOF
13834for ac_lib in '' pthread; do
13835 if test -z "$ac_lib"; then
13836 ac_res="none required"
13837 else
13838 ac_res=-l$ac_lib
13839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13840 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013841 rm -f conftest.$ac_objext conftest$ac_exeext
13842if { (ac_try="$ac_link"
13843case "(($ac_try" in
13844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13845 *) ac_try_echo=$ac_try;;
13846esac
13847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13848 (eval "$ac_link") 2>conftest.er1
13849 ac_status=$?
13850 grep -v '^ *+' conftest.er1 >conftest.err
13851 rm -f conftest.er1
13852 cat conftest.err >&5
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13856 { (case "(($ac_try" in
13857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858 *) ac_try_echo=$ac_try;;
13859esac
13860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861 (eval "$ac_try") 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
13866 { (case "(($ac_try" in
13867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868 *) ac_try_echo=$ac_try;;
13869esac
13870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871 (eval "$ac_try") 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013875 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013876else
13877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
13880
Owen Andersonde8aed22009-06-16 18:20:20 +000013881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882
Owen Andersonde8aed22009-06-16 18:20:20 +000013883rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013884 conftest$ac_exeext
13885 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013886 break
13887fi
13888done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013889if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13890 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013891else
13892 ac_cv_search_pthread_rwlock_init=no
13893fi
13894rm conftest.$ac_ext
13895LIBS=$ac_func_search_save_LIBS
13896fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13898echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013899ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013900if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013903cat >>confdefs.h <<\_ACEOF
13904#define HAVE_PTHREAD_RWLOCK_INIT 1
13905_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013906
13907fi
13908
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013909 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13910echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13911if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13912 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013913else
13914 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013915cat >conftest.$ac_ext <<_ACEOF
13916/* confdefs.h. */
13917_ACEOF
13918cat confdefs.h >>conftest.$ac_ext
13919cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013920/* end confdefs.h. */
13921
13922/* Override any GCC internal prototype to avoid an error.
13923 Use char because int might match the return type of a GCC
13924 builtin and then its argument prototype would still apply. */
13925#ifdef __cplusplus
13926extern "C"
13927#endif
13928char pthread_getspecific ();
13929int
13930main ()
13931{
13932return pthread_getspecific ();
13933 ;
13934 return 0;
13935}
13936_ACEOF
13937for ac_lib in '' pthread; do
13938 if test -z "$ac_lib"; then
13939 ac_res="none required"
13940 else
13941 ac_res=-l$ac_lib
13942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13943 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013944 rm -f conftest.$ac_objext conftest$ac_exeext
13945if { (ac_try="$ac_link"
13946case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_link") 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
13958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest$ac_exeext'
13969 { (case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972esac
13973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_try") 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013978 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013979else
13980 echo "$as_me: failed program was:" >&5
13981sed 's/^/| /' conftest.$ac_ext >&5
13982
13983
Owen Anderson27fcfe12009-06-25 23:10:26 +000013984fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013985
Owen Anderson27fcfe12009-06-25 23:10:26 +000013986rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013987 conftest$ac_exeext
13988 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013989 break
13990fi
13991done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013992if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13993 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013994else
13995 ac_cv_search_pthread_getspecific=no
13996fi
13997rm conftest.$ac_ext
13998LIBS=$ac_func_search_save_LIBS
13999fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14001echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014002ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014003if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014006cat >>confdefs.h <<\_ACEOF
14007#define HAVE_PTHREAD_GETSPECIFIC 1
14008_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014009
14010fi
14011
Reid Spencer0a262ba2005-08-24 10:07:20 +000014012fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014013
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014014
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014015# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014016if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014017 withval=$with_udis86;
14018 USE_UDIS86=1
14019
14020 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014021 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014022 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14023 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014024
14025{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14026echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14027if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014029else
14030 ac_check_lib_save_LIBS=$LIBS
14031LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014032cat >conftest.$ac_ext <<_ACEOF
14033/* confdefs.h. */
14034_ACEOF
14035cat confdefs.h >>conftest.$ac_ext
14036cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014037/* end confdefs.h. */
14038
14039/* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14042#ifdef __cplusplus
14043extern "C"
14044#endif
14045char ud_init ();
14046int
14047main ()
14048{
14049return ud_init ();
14050 ;
14051 return 0;
14052}
14053_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054rm -f conftest.$ac_objext conftest$ac_exeext
14055if { (ac_try="$ac_link"
14056case "(($ac_try" in
14057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14058 *) ac_try_echo=$ac_try;;
14059esac
14060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14061 (eval "$ac_link") 2>conftest.er1
14062 ac_status=$?
14063 grep -v '^ *+' conftest.er1 >conftest.err
14064 rm -f conftest.er1
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072esac
14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_try") 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; } &&
14078 { ac_try='test -s conftest$ac_exeext'
14079 { (case "(($ac_try" in
14080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081 *) ac_try_echo=$ac_try;;
14082esac
14083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14084 (eval "$ac_try") 2>&5
14085 ac_status=$?
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014088 ac_cv_lib_udis86_ud_init=yes
14089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014090 echo "$as_me: failed program was:" >&5
14091sed 's/^/| /' conftest.$ac_ext >&5
14092
14093 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014094fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014095
Bill Wendlingebcceee2009-04-18 11:20:33 +000014096rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014097 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014098LIBS=$ac_check_lib_save_LIBS
14099fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014100{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14101echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14102if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014103 cat >>confdefs.h <<_ACEOF
14104#define HAVE_LIBUDIS86 1
14105_ACEOF
14106
14107 LIBS="-ludis86 $LIBS"
14108
14109else
14110
14111 echo "Error! You need to have libudis86 around."
14112 exit -1
14113
14114fi
14115
14116
14117else
14118 USE_UDIS86=0
14119
14120fi
14121
14122
14123cat >>confdefs.h <<_ACEOF
14124#define USE_UDIS86 $USE_UDIS86
14125_ACEOF
14126
14127
14128
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014129# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014130if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014131 withval=$with_oprofile;
14132 USE_OPROFILE=1
14133
14134 case "$withval" in
14135 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014136 no) llvm_cv_oppath=
14137 USE_OPROFILE=0
14138 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014139 *) llvm_cv_oppath="${withval}/lib/oprofile"
14140 CPPFLAGS="-I${withval}/include";;
14141 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014142 if test -n "$llvm_cv_oppath" ; then
14143 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14145echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14146if test "${ac_cv_search_bfd_init+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014148else
14149 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014155/* end confdefs.h. */
14156
14157/* Override any GCC internal prototype to avoid an error.
14158 Use char because int might match the return type of a GCC
14159 builtin and then its argument prototype would still apply. */
14160#ifdef __cplusplus
14161extern "C"
14162#endif
14163char bfd_init ();
14164int
14165main ()
14166{
14167return bfd_init ();
14168 ;
14169 return 0;
14170}
14171_ACEOF
14172for ac_lib in '' bfd; do
14173 if test -z "$ac_lib"; then
14174 ac_res="none required"
14175 else
14176 ac_res=-l$ac_lib
14177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14178 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014179 rm -f conftest.$ac_objext conftest$ac_exeext
14180if { (ac_try="$ac_link"
14181case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184esac
14185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_link") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14197esac
14198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest$ac_exeext'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014213 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014214else
14215 echo "$as_me: failed program was:" >&5
14216sed 's/^/| /' conftest.$ac_ext >&5
14217
14218
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014220
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014221rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014222 conftest$ac_exeext
14223 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014224 break
14225fi
14226done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227if test "${ac_cv_search_bfd_init+set}" = set; then
14228 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014229else
14230 ac_cv_search_bfd_init=no
14231fi
14232rm conftest.$ac_ext
14233LIBS=$ac_func_search_save_LIBS
14234fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14236echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014237ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014238if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14240
14241fi
14242
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14244echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14245if test "${ac_cv_search_op_open_agent+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014247else
14248 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249cat >conftest.$ac_ext <<_ACEOF
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014254/* end confdefs.h. */
14255
14256/* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14259#ifdef __cplusplus
14260extern "C"
14261#endif
14262char op_open_agent ();
14263int
14264main ()
14265{
14266return op_open_agent ();
14267 ;
14268 return 0;
14269}
14270_ACEOF
14271for ac_lib in '' opagent; do
14272 if test -z "$ac_lib"; then
14273 ac_res="none required"
14274 else
14275 ac_res=-l$ac_lib
14276 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14277 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014278 rm -f conftest.$ac_objext conftest$ac_exeext
14279if { (ac_try="$ac_link"
14280case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14283esac
14284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_link") 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14293 { (case "(($ac_try" in
14294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14295 *) ac_try_echo=$ac_try;;
14296esac
14297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14298 (eval "$ac_try") 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest$ac_exeext'
14303 { (case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306esac
14307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_try") 2>&5
14309 ac_status=$?
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014312 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014313else
14314 echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014319
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014320rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014321 conftest$ac_exeext
14322 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014323 break
14324fi
14325done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014326if test "${ac_cv_search_op_open_agent+set}" = set; then
14327 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014328else
14329 ac_cv_search_op_open_agent=no
14330fi
14331rm conftest.$ac_ext
14332LIBS=$ac_func_search_save_LIBS
14333fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14335echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014336ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14339
14340else
14341
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014342 echo "Error! You need to have libopagent around."
14343 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014344
14345fi
14346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014347 if test "${ac_cv_header_opagent_h+set}" = set; then
14348 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14349echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14350if test "${ac_cv_header_opagent_h+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352fi
14353{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14354echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14355else
14356 # Is the header compilable?
14357{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14358echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14359cat >conftest.$ac_ext <<_ACEOF
14360/* confdefs.h. */
14361_ACEOF
14362cat confdefs.h >>conftest.$ac_ext
14363cat >>conftest.$ac_ext <<_ACEOF
14364/* end confdefs.h. */
14365$ac_includes_default
14366#include <opagent.h>
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (ac_try="$ac_compile"
14370case "(($ac_try" in
14371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14373esac
14374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_compile") 2>conftest.er1
14376 ac_status=$?
14377 grep -v '^ *+' conftest.er1 >conftest.err
14378 rm -f conftest.er1
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } &&
14382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383 { (case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386esac
14387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_try") 2>&5
14389 ac_status=$?
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); }; } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (case "(($ac_try" in
14394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395 *) ac_try_echo=$ac_try;;
14396esac
14397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398 (eval "$ac_try") 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 ac_header_compiler=yes
14403else
14404 echo "$as_me: failed program was:" >&5
14405sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014407 ac_header_compiler=no
14408fi
14409
14410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14412echo "${ECHO_T}$ac_header_compiler" >&6; }
14413
14414# Is the header present?
14415{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14416echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14417cat >conftest.$ac_ext <<_ACEOF
14418/* confdefs.h. */
14419_ACEOF
14420cat confdefs.h >>conftest.$ac_ext
14421cat >>conftest.$ac_ext <<_ACEOF
14422/* end confdefs.h. */
14423#include <opagent.h>
14424_ACEOF
14425if { (ac_try="$ac_cpp conftest.$ac_ext"
14426case "(($ac_try" in
14427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428 *) ac_try_echo=$ac_try;;
14429esac
14430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14432 ac_status=$?
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } >/dev/null; then
14438 if test -s conftest.err; then
14439 ac_cpp_err=$ac_c_preproc_warn_flag
14440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14441 else
14442 ac_cpp_err=
14443 fi
14444else
14445 ac_cpp_err=yes
14446fi
14447if test -z "$ac_cpp_err"; then
14448 ac_header_preproc=yes
14449else
14450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453 ac_header_preproc=no
14454fi
14455
14456rm -f conftest.err conftest.$ac_ext
14457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458echo "${ECHO_T}$ac_header_preproc" >&6; }
14459
14460# So? What about this header?
14461case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14462 yes:no: )
14463 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14464echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14466echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14467 ac_header_preproc=yes
14468 ;;
14469 no:yes:* )
14470 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14471echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14473echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14475echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14477echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14479echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14481echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14482 ( cat <<\_ASBOX
14483## ----------------------------------- ##
14484## Report this to llvmbugs@cs.uiuc.edu ##
14485## ----------------------------------- ##
14486_ASBOX
14487 ) | sed "s/^/$as_me: WARNING: /" >&2
14488 ;;
14489esac
14490{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14491echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14492if test "${ac_cv_header_opagent_h+set}" = set; then
14493 echo $ECHO_N "(cached) $ECHO_C" >&6
14494else
14495 ac_cv_header_opagent_h=$ac_header_preproc
14496fi
14497{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14498echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14499
14500fi
14501if test $ac_cv_header_opagent_h = yes; then
14502 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014503else
14504
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014505 echo "Error! You need to have opagent.h around."
14506 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014507
14508fi
14509
14510
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014511 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014512
14513else
14514
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014515 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014516
14517
14518fi
14519
14520
14521cat >>confdefs.h <<_ACEOF
14522#define USE_OPROFILE $USE_OPROFILE
14523_ACEOF
14524
14525
14526
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014527
14528
14529
14530
14531
Reid Spencer59473af2004-12-25 07:31:29 +000014532ac_header_dirent=no
14533for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014534 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14535{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14536echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014539else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014540 cat >conftest.$ac_ext <<_ACEOF
14541/* confdefs.h. */
14542_ACEOF
14543cat confdefs.h >>conftest.$ac_ext
14544cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014545/* end confdefs.h. */
14546#include <sys/types.h>
14547#include <$ac_hdr>
14548
14549int
14550main ()
14551{
14552if ((DIR *) 0)
14553return 0;
14554 ;
14555 return 0;
14556}
14557_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014558rm -f conftest.$ac_objext
14559if { (ac_try="$ac_compile"
14560case "(($ac_try" in
14561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14562 *) ac_try_echo=$ac_try;;
14563esac
14564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14565 (eval "$ac_compile") 2>conftest.er1
14566 ac_status=$?
14567 grep -v '^ *+' conftest.er1 >conftest.err
14568 rm -f conftest.er1
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14576esac
14577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586esac
14587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588 (eval "$ac_try") 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014592 eval "$as_ac_Header=yes"
14593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014594 echo "$as_me: failed program was:" >&5
14595sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014599
Reid Spencera773bd52006-08-04 18:18:08 +000014600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014601fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014602ac_res=`eval echo '${'$as_ac_Header'}'`
14603 { echo "$as_me:$LINENO: result: $ac_res" >&5
14604echo "${ECHO_T}$ac_res" >&6; }
14605if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014606 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014607#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014608_ACEOF
14609
14610ac_header_dirent=$ac_hdr; break
14611fi
14612
14613done
14614# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14615if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014616 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14617echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14618if test "${ac_cv_search_opendir+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014620else
14621 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014622cat >conftest.$ac_ext <<_ACEOF
14623/* confdefs.h. */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014627/* end confdefs.h. */
14628
Reid Spencera773bd52006-08-04 18:18:08 +000014629/* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014632#ifdef __cplusplus
14633extern "C"
14634#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014635char opendir ();
14636int
14637main ()
14638{
Reid Spencera773bd52006-08-04 18:18:08 +000014639return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014640 ;
14641 return 0;
14642}
14643_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014644for ac_lib in '' dir; do
14645 if test -z "$ac_lib"; then
14646 ac_res="none required"
14647 else
14648 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014650 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014651 rm -f conftest.$ac_objext conftest$ac_exeext
14652if { (ac_try="$ac_link"
14653case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656esac
14657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
14659 ac_status=$?
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } &&
14665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14666 { (case "(($ac_try" in
14667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14668 *) ac_try_echo=$ac_try;;
14669esac
14670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14671 (eval "$ac_try") 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest$ac_exeext'
14676 { (case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14679esac
14680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_try") 2>&5
14682 ac_status=$?
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014685 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014686else
14687 echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
14689
14690
Reid Spencer59473af2004-12-25 07:31:29 +000014691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014692
Bill Wendlingebcceee2009-04-18 11:20:33 +000014693rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014694 conftest$ac_exeext
14695 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014696 break
Reid Spencer59473af2004-12-25 07:31:29 +000014697fi
Reid Spencera773bd52006-08-04 18:18:08 +000014698done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699if test "${ac_cv_search_opendir+set}" = set; then
14700 :
Reid Spencera773bd52006-08-04 18:18:08 +000014701else
14702 ac_cv_search_opendir=no
14703fi
14704rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014705LIBS=$ac_func_search_save_LIBS
14706fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014707{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14708echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014709ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014710if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014712
14713fi
14714
14715else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014716 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14717echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14718if test "${ac_cv_search_opendir+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014720else
14721 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014722cat >conftest.$ac_ext <<_ACEOF
14723/* confdefs.h. */
14724_ACEOF
14725cat confdefs.h >>conftest.$ac_ext
14726cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014727/* end confdefs.h. */
14728
Reid Spencera773bd52006-08-04 18:18:08 +000014729/* Override any GCC internal prototype to avoid an error.
14730 Use char because int might match the return type of a GCC
14731 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014732#ifdef __cplusplus
14733extern "C"
14734#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014735char opendir ();
14736int
14737main ()
14738{
Reid Spencera773bd52006-08-04 18:18:08 +000014739return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014740 ;
14741 return 0;
14742}
14743_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014744for ac_lib in '' x; do
14745 if test -z "$ac_lib"; then
14746 ac_res="none required"
14747 else
14748 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014750 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014751 rm -f conftest.$ac_objext conftest$ac_exeext
14752if { (ac_try="$ac_link"
14753case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756esac
14757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14758 (eval "$ac_link") 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14766 { (case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769esac
14770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_try") 2>&5
14772 ac_status=$?
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); }; } &&
14775 { ac_try='test -s conftest$ac_exeext'
14776 { (case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14779esac
14780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781 (eval "$ac_try") 2>&5
14782 ac_status=$?
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014785 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014786else
14787 echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
14790
Reid Spencer59473af2004-12-25 07:31:29 +000014791fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014792
Bill Wendlingebcceee2009-04-18 11:20:33 +000014793rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014794 conftest$ac_exeext
14795 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014796 break
Reid Spencer59473af2004-12-25 07:31:29 +000014797fi
Reid Spencera773bd52006-08-04 18:18:08 +000014798done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014799if test "${ac_cv_search_opendir+set}" = set; then
14800 :
Reid Spencera773bd52006-08-04 18:18:08 +000014801else
14802 ac_cv_search_opendir=no
14803fi
14804rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014805LIBS=$ac_func_search_save_LIBS
14806fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014807{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14808echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014809ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014810if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014812
14813fi
14814
14815fi
14816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014817{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14818echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14819if test "${ac_cv_header_mmap_anon+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014821else
14822 ac_ext=c
14823ac_cpp='$CPP $CPPFLAGS'
14824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14826ac_compiler_gnu=$ac_cv_c_compiler_gnu
14827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014828 cat >conftest.$ac_ext <<_ACEOF
14829/* confdefs.h. */
14830_ACEOF
14831cat confdefs.h >>conftest.$ac_ext
14832cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014833/* end confdefs.h. */
14834#include <sys/mman.h>
14835#include <unistd.h>
14836#include <fcntl.h>
14837int
14838main ()
14839{
14840mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14841 ;
14842 return 0;
14843}
14844_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014845rm -f conftest.$ac_objext
14846if { (ac_try="$ac_compile"
14847case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14850esac
14851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852 (eval "$ac_compile") 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860 { (case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14863esac
14864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_try") 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; } &&
14869 { ac_try='test -s conftest.$ac_objext'
14870 { (case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14873esac
14874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_try") 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014879 ac_cv_header_mmap_anon=yes
14880else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014881 echo "$as_me: failed program was:" >&5
14882sed 's/^/| /' conftest.$ac_ext >&5
14883
14884 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014885fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014886
Reid Spencera773bd52006-08-04 18:18:08 +000014887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014888 ac_ext=c
14889ac_cpp='$CPP $CPPFLAGS'
14890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894
14895fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014896{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14897echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014898if test "$ac_cv_header_mmap_anon" = yes; then
14899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014900cat >>confdefs.h <<\_ACEOF
14901#define HAVE_MMAP_ANONYMOUS 1
14902_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014903
14904fi
14905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014906{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14907echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14908if test "${ac_cv_header_stat_broken+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014911 cat >conftest.$ac_ext <<_ACEOF
14912/* confdefs.h. */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014916/* end confdefs.h. */
14917#include <sys/types.h>
14918#include <sys/stat.h>
14919
Reid Spencera773bd52006-08-04 18:18:08 +000014920#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014921# if S_ISBLK (S_IFDIR)
14922You lose.
14923# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014924#endif
14925
Reid Spencera773bd52006-08-04 18:18:08 +000014926#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014927# if S_ISBLK (S_IFCHR)
14928You lose.
14929# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014930#endif
14931
Reid Spencera773bd52006-08-04 18:18:08 +000014932#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014933# if S_ISLNK (S_IFREG)
14934You lose.
14935# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014936#endif
14937
Reid Spencera773bd52006-08-04 18:18:08 +000014938#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014939# if S_ISSOCK (S_IFREG)
14940You lose.
14941# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014942#endif
14943
14944_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14946 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014947 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948else
14949 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014951rm -f conftest*
14952
Reid Spencer59473af2004-12-25 07:31:29 +000014953fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014954{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14955echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014956if test $ac_cv_header_stat_broken = yes; then
14957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014958cat >>confdefs.h <<\_ACEOF
14959#define STAT_MACROS_BROKEN 1
14960_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014961
14962fi
14963
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014964{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14965echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14966if test "${ac_cv_header_stdc+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014968else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014969 cat >conftest.$ac_ext <<_ACEOF
14970/* confdefs.h. */
14971_ACEOF
14972cat confdefs.h >>conftest.$ac_ext
14973cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014975#include <stdlib.h>
14976#include <stdarg.h>
14977#include <string.h>
14978#include <float.h>
14979
John Criswell0c38eaf2003-09-10 15:17:25 +000014980int
14981main ()
14982{
14983
14984 ;
14985 return 0;
14986}
John Criswell7a73b802003-06-30 21:59:07 +000014987_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014988rm -f conftest.$ac_objext
14989if { (ac_try="$ac_compile"
14990case "(($ac_try" in
14991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14993esac
14994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_compile") 2>conftest.er1
14996 ac_status=$?
14997 grep -v '^ *+' conftest.er1 >conftest.err
14998 rm -f conftest.er1
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003 { (case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006esac
15007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_try") 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; } &&
15012 { ac_try='test -s conftest.$ac_objext'
15013 { (case "(($ac_try" in
15014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015 *) ac_try_echo=$ac_try;;
15016esac
15017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018 (eval "$ac_try") 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015022 ac_cv_header_stdc=yes
15023else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015024 echo "$as_me: failed program was:" >&5
15025sed 's/^/| /' conftest.$ac_ext >&5
15026
15027 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015028fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015029
Reid Spencera773bd52006-08-04 18:18:08 +000015030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015031
15032if test $ac_cv_header_stdc = yes; then
15033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015034 cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h. */
15036_ACEOF
15037cat confdefs.h >>conftest.$ac_ext
15038cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015039/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015040#include <string.h>
15041
15042_ACEOF
15043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015044 $EGREP "memchr" >/dev/null 2>&1; then
15045 :
John Criswell7a73b802003-06-30 21:59:07 +000015046else
15047 ac_cv_header_stdc=no
15048fi
15049rm -f conftest*
15050
15051fi
15052
15053if test $ac_cv_header_stdc = yes; then
15054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015055 cat >conftest.$ac_ext <<_ACEOF
15056/* confdefs.h. */
15057_ACEOF
15058cat confdefs.h >>conftest.$ac_ext
15059cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015061#include <stdlib.h>
15062
15063_ACEOF
15064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015065 $EGREP "free" >/dev/null 2>&1; then
15066 :
John Criswell7a73b802003-06-30 21:59:07 +000015067else
15068 ac_cv_header_stdc=no
15069fi
15070rm -f conftest*
15071
15072fi
15073
15074if test $ac_cv_header_stdc = yes; then
15075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015077 :
15078else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015079 cat >conftest.$ac_ext <<_ACEOF
15080/* confdefs.h. */
15081_ACEOF
15082cat confdefs.h >>conftest.$ac_ext
15083cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015085#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015086#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015087#if ((' ' & 0x0FF) == 0x020)
15088# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15089# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15090#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015091# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015092 (('a' <= (c) && (c) <= 'i') \
15093 || ('j' <= (c) && (c) <= 'r') \
15094 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015095# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15096#endif
15097
15098#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15099int
15100main ()
15101{
15102 int i;
15103 for (i = 0; i < 256; i++)
15104 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015105 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015106 return 2;
15107 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015108}
15109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015110rm -f conftest$ac_exeext
15111if { (ac_try="$ac_link"
15112case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115esac
15116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_link") 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15121 { (case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124esac
15125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_try") 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 :
John Criswell7a73b802003-06-30 21:59:07 +000015131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015132 echo "$as_me: program exited with status $ac_status" >&5
15133echo "$as_me: failed program was:" >&5
15134sed 's/^/| /' conftest.$ac_ext >&5
15135
15136( exit $ac_status )
15137ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015139rm -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 +000015140fi
15141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015142
John Criswell7a73b802003-06-30 21:59:07 +000015143fi
15144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015145{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15146echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015147if test $ac_cv_header_stdc = yes; then
15148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015149cat >>confdefs.h <<\_ACEOF
15150#define STDC_HEADERS 1
15151_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015152
15153fi
15154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015155{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15156echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15157if test "${ac_cv_header_sys_wait_h+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015160 cat >conftest.$ac_ext <<_ACEOF
15161/* confdefs.h. */
15162_ACEOF
15163cat confdefs.h >>conftest.$ac_ext
15164cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015166#include <sys/types.h>
15167#include <sys/wait.h>
15168#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015169# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015170#endif
15171#ifndef WIFEXITED
15172# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15173#endif
15174
John Criswell7a73b802003-06-30 21:59:07 +000015175int
15176main ()
15177{
15178 int s;
15179 wait (&s);
15180 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15181 ;
15182 return 0;
15183}
15184_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015185rm -f conftest.$ac_objext
15186if { (ac_try="$ac_compile"
15187case "(($ac_try" in
15188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15189 *) ac_try_echo=$ac_try;;
15190esac
15191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15192 (eval "$ac_compile") 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } &&
15199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15200 { (case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203esac
15204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15205 (eval "$ac_try") 2>&5
15206 ac_status=$?
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; } &&
15209 { ac_try='test -s conftest.$ac_objext'
15210 { (case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15213esac
15214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_try") 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015219 ac_cv_header_sys_wait_h=yes
15220else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015221 echo "$as_me: failed program was:" >&5
15222sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015226
Reid Spencera773bd52006-08-04 18:18:08 +000015227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015229{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15230echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015231if test $ac_cv_header_sys_wait_h = yes; then
15232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015233cat >>confdefs.h <<\_ACEOF
15234#define HAVE_SYS_WAIT_H 1
15235_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015236
15237fi
15238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015239{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15240echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15241if test "${ac_cv_header_time+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015243else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015244 cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015249/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015250#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015251#include <sys/time.h>
15252#include <time.h>
15253
15254int
15255main ()
15256{
15257if ((struct tm *) 0)
15258return 0;
15259 ;
15260 return 0;
15261}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015262_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015263rm -f conftest.$ac_objext
15264if { (ac_try="$ac_compile"
15265case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15268esac
15269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_compile") 2>conftest.er1
15271 ac_status=$?
15272 grep -v '^ *+' conftest.er1 >conftest.err
15273 rm -f conftest.er1
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 (exit $ac_status); } &&
15277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15278 { (case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281esac
15282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_try") 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest.$ac_objext'
15288 { (case "(($ac_try" in
15289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15290 *) ac_try_echo=$ac_try;;
15291esac
15292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15293 (eval "$ac_try") 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015297 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015298else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015299 echo "$as_me: failed program was:" >&5
15300sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015304
Reid Spencera773bd52006-08-04 18:18:08 +000015305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015306fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015307{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15308echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015309if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015311cat >>confdefs.h <<\_ACEOF
15312#define TIME_WITH_SYS_TIME 1
15313_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015314
15315fi
15316
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015318
15319
15320
15321
15322
15323
Reid Spencer59473af2004-12-25 07:31:29 +000015324for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015325do
15326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15332fi
15333ac_res=`eval echo '${'$as_ac_Header'}'`
15334 { echo "$as_me:$LINENO: result: $ac_res" >&5
15335echo "${ECHO_T}$ac_res" >&6; }
15336else
15337 # Is the header compilable?
15338{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15340cat >conftest.$ac_ext <<_ACEOF
15341/* confdefs.h. */
15342_ACEOF
15343cat confdefs.h >>conftest.$ac_ext
15344cat >>conftest.$ac_ext <<_ACEOF
15345/* end confdefs.h. */
15346$ac_includes_default
15347#include <$ac_header>
15348_ACEOF
15349rm -f conftest.$ac_objext
15350if { (ac_try="$ac_compile"
15351case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354esac
15355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_compile") 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377esac
15378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_header_compiler=yes
15384else
15385 echo "$as_me: failed program was:" >&5
15386sed 's/^/| /' conftest.$ac_ext >&5
15387
15388 ac_header_compiler=no
15389fi
15390
15391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15393echo "${ECHO_T}$ac_header_compiler" >&6; }
15394
15395# Is the header present?
15396{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15398cat >conftest.$ac_ext <<_ACEOF
15399/* confdefs.h. */
15400_ACEOF
15401cat confdefs.h >>conftest.$ac_ext
15402cat >>conftest.$ac_ext <<_ACEOF
15403/* end confdefs.h. */
15404#include <$ac_header>
15405_ACEOF
15406if { (ac_try="$ac_cpp conftest.$ac_ext"
15407case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15410esac
15411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15413 ac_status=$?
15414 grep -v '^ *+' conftest.er1 >conftest.err
15415 rm -f conftest.er1
15416 cat conftest.err >&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); } >/dev/null; then
15419 if test -s conftest.err; then
15420 ac_cpp_err=$ac_c_preproc_warn_flag
15421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15422 else
15423 ac_cpp_err=
15424 fi
15425else
15426 ac_cpp_err=yes
15427fi
15428if test -z "$ac_cpp_err"; then
15429 ac_header_preproc=yes
15430else
15431 echo "$as_me: failed program was:" >&5
15432sed 's/^/| /' conftest.$ac_ext >&5
15433
15434 ac_header_preproc=no
15435fi
15436
15437rm -f conftest.err conftest.$ac_ext
15438{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15439echo "${ECHO_T}$ac_header_preproc" >&6; }
15440
15441# So? What about this header?
15442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15443 yes:no: )
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15445echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15447echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15448 ac_header_preproc=yes
15449 ;;
15450 no:yes:* )
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15452echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15454echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15456echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15458echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15460echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15462echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15463 ( cat <<\_ASBOX
15464## ----------------------------------- ##
15465## Report this to llvmbugs@cs.uiuc.edu ##
15466## ----------------------------------- ##
15467_ASBOX
15468 ) | sed "s/^/$as_me: WARNING: /" >&2
15469 ;;
15470esac
15471{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475else
15476 eval "$as_ac_Header=\$ac_header_preproc"
15477fi
15478ac_res=`eval echo '${'$as_ac_Header'}'`
15479 { echo "$as_me:$LINENO: result: $ac_res" >&5
15480echo "${ECHO_T}$ac_res" >&6; }
15481
15482fi
15483if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015484 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015485#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015486_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015487
15488fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015489
Reid Spencer59473af2004-12-25 07:31:29 +000015490done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015491
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015492
15493
15494
15495
15496
15497
Douglas Gregor071d73d2009-05-18 17:21:34 +000015498for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015499do
15500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506fi
15507ac_res=`eval echo '${'$as_ac_Header'}'`
15508 { echo "$as_me:$LINENO: result: $ac_res" >&5
15509echo "${ECHO_T}$ac_res" >&6; }
15510else
15511 # Is the header compilable?
15512{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15514cat >conftest.$ac_ext <<_ACEOF
15515/* confdefs.h. */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h. */
15520$ac_includes_default
15521#include <$ac_header>
15522_ACEOF
15523rm -f conftest.$ac_objext
15524if { (ac_try="$ac_compile"
15525case "(($ac_try" in
15526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527 *) ac_try_echo=$ac_try;;
15528esac
15529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15531 ac_status=$?
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
15537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15538 { (case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15541esac
15542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_try") 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; } &&
15547 { ac_try='test -s conftest.$ac_objext'
15548 { (case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15551esac
15552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_try") 2>&5
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15557 ac_header_compiler=yes
15558else
15559 echo "$as_me: failed program was:" >&5
15560sed 's/^/| /' conftest.$ac_ext >&5
15561
15562 ac_header_compiler=no
15563fi
15564
15565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15567echo "${ECHO_T}$ac_header_compiler" >&6; }
15568
15569# Is the header present?
15570{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15572cat >conftest.$ac_ext <<_ACEOF
15573/* confdefs.h. */
15574_ACEOF
15575cat confdefs.h >>conftest.$ac_ext
15576cat >>conftest.$ac_ext <<_ACEOF
15577/* end confdefs.h. */
15578#include <$ac_header>
15579_ACEOF
15580if { (ac_try="$ac_cpp conftest.$ac_ext"
15581case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15584esac
15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15587 ac_status=$?
15588 grep -v '^ *+' conftest.er1 >conftest.err
15589 rm -f conftest.er1
15590 cat conftest.err >&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } >/dev/null; then
15593 if test -s conftest.err; then
15594 ac_cpp_err=$ac_c_preproc_warn_flag
15595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15596 else
15597 ac_cpp_err=
15598 fi
15599else
15600 ac_cpp_err=yes
15601fi
15602if test -z "$ac_cpp_err"; then
15603 ac_header_preproc=yes
15604else
15605 echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 ac_header_preproc=no
15609fi
15610
15611rm -f conftest.err conftest.$ac_ext
15612{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15613echo "${ECHO_T}$ac_header_preproc" >&6; }
15614
15615# So? What about this header?
15616case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15617 yes:no: )
15618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15621echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15622 ac_header_preproc=yes
15623 ;;
15624 no:yes:* )
15625 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15626echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15627 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15628echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15629 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15630echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15632echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15636echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15637 ( cat <<\_ASBOX
15638## ----------------------------------- ##
15639## Report this to llvmbugs@cs.uiuc.edu ##
15640## ----------------------------------- ##
15641_ASBOX
15642 ) | sed "s/^/$as_me: WARNING: /" >&2
15643 ;;
15644esac
15645{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15649else
15650 eval "$as_ac_Header=\$ac_header_preproc"
15651fi
15652ac_res=`eval echo '${'$as_ac_Header'}'`
15653 { echo "$as_me:$LINENO: result: $ac_res" >&5
15654echo "${ECHO_T}$ac_res" >&6; }
15655
15656fi
15657if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015658 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015660_ACEOF
15661
15662fi
15663
15664done
15665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015666
15667
Douglas Gregor071d73d2009-05-18 17:21:34 +000015668for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015669do
15670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
15676fi
15677ac_res=`eval echo '${'$as_ac_Header'}'`
15678 { echo "$as_me:$LINENO: result: $ac_res" >&5
15679echo "${ECHO_T}$ac_res" >&6; }
15680else
15681 # Is the header compilable?
15682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15684cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690$ac_includes_default
15691#include <$ac_header>
15692_ACEOF
15693rm -f conftest.$ac_objext
15694if { (ac_try="$ac_compile"
15695case "(($ac_try" in
15696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697 *) ac_try_echo=$ac_try;;
15698esac
15699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_compile") 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
15707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15708 { (case "(($ac_try" in
15709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15710 *) ac_try_echo=$ac_try;;
15711esac
15712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15713 (eval "$ac_try") 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest.$ac_objext'
15718 { (case "(($ac_try" in
15719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15721esac
15722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15723 (eval "$ac_try") 2>&5
15724 ac_status=$?
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); }; }; then
15727 ac_header_compiler=yes
15728else
15729 echo "$as_me: failed program was:" >&5
15730sed 's/^/| /' conftest.$ac_ext >&5
15731
15732 ac_header_compiler=no
15733fi
15734
15735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15737echo "${ECHO_T}$ac_header_compiler" >&6; }
15738
15739# Is the header present?
15740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15742cat >conftest.$ac_ext <<_ACEOF
15743/* confdefs.h. */
15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
15748#include <$ac_header>
15749_ACEOF
15750if { (ac_try="$ac_cpp conftest.$ac_ext"
15751case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15754esac
15755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } >/dev/null; then
15763 if test -s conftest.err; then
15764 ac_cpp_err=$ac_c_preproc_warn_flag
15765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15766 else
15767 ac_cpp_err=
15768 fi
15769else
15770 ac_cpp_err=yes
15771fi
15772if test -z "$ac_cpp_err"; then
15773 ac_header_preproc=yes
15774else
15775 echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778 ac_header_preproc=no
15779fi
15780
15781rm -f conftest.err conftest.$ac_ext
15782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15783echo "${ECHO_T}$ac_header_preproc" >&6; }
15784
15785# So? What about this header?
15786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15787 yes:no: )
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15792 ac_header_preproc=yes
15793 ;;
15794 no:yes:* )
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15807 ( cat <<\_ASBOX
15808## ----------------------------------- ##
15809## Report this to llvmbugs@cs.uiuc.edu ##
15810## ----------------------------------- ##
15811_ASBOX
15812 ) | sed "s/^/$as_me: WARNING: /" >&2
15813 ;;
15814esac
15815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 eval "$as_ac_Header=\$ac_header_preproc"
15821fi
15822ac_res=`eval echo '${'$as_ac_Header'}'`
15823 { echo "$as_me:$LINENO: result: $ac_res" >&5
15824echo "${ECHO_T}$ac_res" >&6; }
15825
15826fi
15827if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015828 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015830_ACEOF
15831
15832fi
15833
15834done
Reid Spencer59473af2004-12-25 07:31:29 +000015835
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015836
15837
15838
15839
Reid Spencerbe3e4192007-08-17 05:45:26 +000015840for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015841do
15842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15848fi
15849ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851echo "${ECHO_T}$ac_res" >&6; }
15852else
15853 # Is the header compilable?
15854{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15856cat >conftest.$ac_ext <<_ACEOF
15857/* confdefs.h. */
15858_ACEOF
15859cat confdefs.h >>conftest.$ac_ext
15860cat >>conftest.$ac_ext <<_ACEOF
15861/* end confdefs.h. */
15862$ac_includes_default
15863#include <$ac_header>
15864_ACEOF
15865rm -f conftest.$ac_objext
15866if { (ac_try="$ac_compile"
15867case "(($ac_try" in
15868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869 *) ac_try_echo=$ac_try;;
15870esac
15871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872 (eval "$ac_compile") 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15880 { (case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15883esac
15884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885 (eval "$ac_try") 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_try") 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_header_compiler=yes
15900else
15901 echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 ac_header_compiler=no
15905fi
15906
15907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15908{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15909echo "${ECHO_T}$ac_header_compiler" >&6; }
15910
15911# Is the header present?
15912{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15913echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15914cat >conftest.$ac_ext <<_ACEOF
15915/* confdefs.h. */
15916_ACEOF
15917cat confdefs.h >>conftest.$ac_ext
15918cat >>conftest.$ac_ext <<_ACEOF
15919/* end confdefs.h. */
15920#include <$ac_header>
15921_ACEOF
15922if { (ac_try="$ac_cpp conftest.$ac_ext"
15923case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15926esac
15927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } >/dev/null; then
15935 if test -s conftest.err; then
15936 ac_cpp_err=$ac_c_preproc_warn_flag
15937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15938 else
15939 ac_cpp_err=
15940 fi
15941else
15942 ac_cpp_err=yes
15943fi
15944if test -z "$ac_cpp_err"; then
15945 ac_header_preproc=yes
15946else
15947 echo "$as_me: failed program was:" >&5
15948sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ac_header_preproc=no
15951fi
15952
15953rm -f conftest.err conftest.$ac_ext
15954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15955echo "${ECHO_T}$ac_header_preproc" >&6; }
15956
15957# So? What about this header?
15958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959 yes:no: )
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15963echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15964 ac_header_preproc=yes
15965 ;;
15966 no:yes:* )
15967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15972echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15974echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15976echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15978echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15979 ( cat <<\_ASBOX
15980## ----------------------------------- ##
15981## Report this to llvmbugs@cs.uiuc.edu ##
15982## ----------------------------------- ##
15983_ASBOX
15984 ) | sed "s/^/$as_me: WARNING: /" >&2
15985 ;;
15986esac
15987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15991else
15992 eval "$as_ac_Header=\$ac_header_preproc"
15993fi
15994ac_res=`eval echo '${'$as_ac_Header'}'`
15995 { echo "$as_me:$LINENO: result: $ac_res" >&5
15996echo "${ECHO_T}$ac_res" >&6; }
15997
15998fi
15999if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016000 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016002_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016003
16004fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016005
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016006done
16007
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016008
16009
16010
16011
Douglas Gregor01746742009-05-11 18:05:52 +000016012for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016013do
16014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020fi
16021ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023echo "${ECHO_T}$ac_res" >&6; }
16024else
16025 # Is the header compilable?
16026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16028cat >conftest.$ac_ext <<_ACEOF
16029/* confdefs.h. */
16030_ACEOF
16031cat confdefs.h >>conftest.$ac_ext
16032cat >>conftest.$ac_ext <<_ACEOF
16033/* end confdefs.h. */
16034$ac_includes_default
16035#include <$ac_header>
16036_ACEOF
16037rm -f conftest.$ac_objext
16038if { (ac_try="$ac_compile"
16039case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16042esac
16043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_compile") 2>conftest.er1
16045 ac_status=$?
16046 grep -v '^ *+' conftest.er1 >conftest.err
16047 rm -f conftest.er1
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
16051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055esac
16056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest.$ac_objext'
16062 { (case "(($ac_try" in
16063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064 *) ac_try_echo=$ac_try;;
16065esac
16066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067 (eval "$ac_try") 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; }; then
16071 ac_header_compiler=yes
16072else
16073 echo "$as_me: failed program was:" >&5
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
16076 ac_header_compiler=no
16077fi
16078
16079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16081echo "${ECHO_T}$ac_header_compiler" >&6; }
16082
16083# Is the header present?
16084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16086cat >conftest.$ac_ext <<_ACEOF
16087/* confdefs.h. */
16088_ACEOF
16089cat confdefs.h >>conftest.$ac_ext
16090cat >>conftest.$ac_ext <<_ACEOF
16091/* end confdefs.h. */
16092#include <$ac_header>
16093_ACEOF
16094if { (ac_try="$ac_cpp conftest.$ac_ext"
16095case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16098esac
16099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } >/dev/null; then
16107 if test -s conftest.err; then
16108 ac_cpp_err=$ac_c_preproc_warn_flag
16109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16110 else
16111 ac_cpp_err=
16112 fi
16113else
16114 ac_cpp_err=yes
16115fi
16116if test -z "$ac_cpp_err"; then
16117 ac_header_preproc=yes
16118else
16119 echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122 ac_header_preproc=no
16123fi
16124
16125rm -f conftest.err conftest.$ac_ext
16126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16127echo "${ECHO_T}$ac_header_preproc" >&6; }
16128
16129# So? What about this header?
16130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16131 yes:no: )
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16136 ac_header_preproc=yes
16137 ;;
16138 no:yes:* )
16139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16151 ( cat <<\_ASBOX
16152## ----------------------------------- ##
16153## Report this to llvmbugs@cs.uiuc.edu ##
16154## ----------------------------------- ##
16155_ASBOX
16156 ) | sed "s/^/$as_me: WARNING: /" >&2
16157 ;;
16158esac
16159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16163else
16164 eval "$as_ac_Header=\$ac_header_preproc"
16165fi
16166ac_res=`eval echo '${'$as_ac_Header'}'`
16167 { echo "$as_me:$LINENO: result: $ac_res" >&5
16168echo "${ECHO_T}$ac_res" >&6; }
16169
16170fi
16171if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016172 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016174_ACEOF
16175
16176fi
16177
16178done
16179
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016180
16181for ac_header in valgrind/valgrind.h
16182do
16183as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16186echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16188 echo $ECHO_N "(cached) $ECHO_C" >&6
16189fi
16190ac_res=`eval echo '${'$as_ac_Header'}'`
16191 { echo "$as_me:$LINENO: result: $ac_res" >&5
16192echo "${ECHO_T}$ac_res" >&6; }
16193else
16194 # Is the header compilable?
16195{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16196echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16197cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */
16199_ACEOF
16200cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */
16203$ac_includes_default
16204#include <$ac_header>
16205_ACEOF
16206rm -f conftest.$ac_objext
16207if { (ac_try="$ac_compile"
16208case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211esac
16212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_compile") 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16221 { (case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224esac
16225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_try") 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest.$ac_objext'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_header_compiler=yes
16241else
16242 echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
16245 ac_header_compiler=no
16246fi
16247
16248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16249{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16250echo "${ECHO_T}$ac_header_compiler" >&6; }
16251
16252# Is the header present?
16253{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16255cat >conftest.$ac_ext <<_ACEOF
16256/* confdefs.h. */
16257_ACEOF
16258cat confdefs.h >>conftest.$ac_ext
16259cat >>conftest.$ac_ext <<_ACEOF
16260/* end confdefs.h. */
16261#include <$ac_header>
16262_ACEOF
16263if { (ac_try="$ac_cpp conftest.$ac_ext"
16264case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267esac
16268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } >/dev/null; then
16276 if test -s conftest.err; then
16277 ac_cpp_err=$ac_c_preproc_warn_flag
16278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16279 else
16280 ac_cpp_err=
16281 fi
16282else
16283 ac_cpp_err=yes
16284fi
16285if test -z "$ac_cpp_err"; then
16286 ac_header_preproc=yes
16287else
16288 echo "$as_me: failed program was:" >&5
16289sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 ac_header_preproc=no
16292fi
16293
16294rm -f conftest.err conftest.$ac_ext
16295{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16296echo "${ECHO_T}$ac_header_preproc" >&6; }
16297
16298# So? What about this header?
16299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16300 yes:no: )
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16305 ac_header_preproc=yes
16306 ;;
16307 no:yes:* )
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16315echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16320 ( cat <<\_ASBOX
16321## ----------------------------------- ##
16322## Report this to llvmbugs@cs.uiuc.edu ##
16323## ----------------------------------- ##
16324_ASBOX
16325 ) | sed "s/^/$as_me: WARNING: /" >&2
16326 ;;
16327esac
16328{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16332else
16333 eval "$as_ac_Header=\$ac_header_preproc"
16334fi
16335ac_res=`eval echo '${'$as_ac_Header'}'`
16336 { echo "$as_me:$LINENO: result: $ac_res" >&5
16337echo "${ECHO_T}$ac_res" >&6; }
16338
16339fi
16340if test `eval echo '${'$as_ac_Header'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343_ACEOF
16344
16345fi
16346
16347done
16348
Reid Spencer0a262ba2005-08-24 10:07:20 +000016349if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016350
16351for ac_header in pthread.h
16352do
16353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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
16359fi
16360ac_res=`eval echo '${'$as_ac_Header'}'`
16361 { echo "$as_me:$LINENO: result: $ac_res" >&5
16362echo "${ECHO_T}$ac_res" >&6; }
16363else
16364 # Is the header compilable?
16365{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16367cat >conftest.$ac_ext <<_ACEOF
16368/* confdefs.h. */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
16372/* end confdefs.h. */
16373$ac_includes_default
16374#include <$ac_header>
16375_ACEOF
16376rm -f conftest.$ac_objext
16377if { (ac_try="$ac_compile"
16378case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381esac
16382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383 (eval "$ac_compile") 2>conftest.er1
16384 ac_status=$?
16385 grep -v '^ *+' conftest.er1 >conftest.err
16386 rm -f conftest.er1
16387 cat conftest.err >&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16391 { (case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16394esac
16395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_try") 2>&5
16397 ac_status=$?
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); }; } &&
16400 { ac_try='test -s conftest.$ac_objext'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16404esac
16405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler=yes
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_header_compiler=no
16416fi
16417
16418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16420echo "${ECHO_T}$ac_header_compiler" >&6; }
16421
16422# Is the header present?
16423{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16424echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16425cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431#include <$ac_header>
16432_ACEOF
16433if { (ac_try="$ac_cpp conftest.$ac_ext"
16434case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } >/dev/null; then
16446 if test -s conftest.err; then
16447 ac_cpp_err=$ac_c_preproc_warn_flag
16448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16449 else
16450 ac_cpp_err=
16451 fi
16452else
16453 ac_cpp_err=yes
16454fi
16455if test -z "$ac_cpp_err"; then
16456 ac_header_preproc=yes
16457else
16458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461 ac_header_preproc=no
16462fi
16463
16464rm -f conftest.err conftest.$ac_ext
16465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16466echo "${ECHO_T}$ac_header_preproc" >&6; }
16467
16468# So? What about this header?
16469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16470 yes:no: )
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16475 ac_header_preproc=yes
16476 ;;
16477 no:yes:* )
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16490 ( cat <<\_ASBOX
16491## ----------------------------------- ##
16492## Report this to llvmbugs@cs.uiuc.edu ##
16493## ----------------------------------- ##
16494_ASBOX
16495 ) | sed "s/^/$as_me: WARNING: /" >&2
16496 ;;
16497esac
16498{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502else
16503 eval "$as_ac_Header=\$ac_header_preproc"
16504fi
16505ac_res=`eval echo '${'$as_ac_Header'}'`
16506 { echo "$as_me:$LINENO: result: $ac_res" >&5
16507echo "${ECHO_T}$ac_res" >&6; }
16508
16509fi
16510if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016511 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016512#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016513_ACEOF
16514 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016515
16516else
16517 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016518
16519fi
16520
Reid Spencerbe3e4192007-08-17 05:45:26 +000016521done
Reid Spencer1000b732006-12-01 00:37:14 +000016522
16523else
16524 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016525
16526fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016527
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016528if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016529
16530
16531for ac_header in ffi.h ffi/ffi.h
16532do
16533as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16538 echo $ECHO_N "(cached) $ECHO_C" >&6
16539fi
16540ac_res=`eval echo '${'$as_ac_Header'}'`
16541 { echo "$as_me:$LINENO: result: $ac_res" >&5
16542echo "${ECHO_T}$ac_res" >&6; }
16543else
16544 # Is the header compilable?
16545{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16547cat >conftest.$ac_ext <<_ACEOF
16548/* confdefs.h. */
16549_ACEOF
16550cat confdefs.h >>conftest.$ac_ext
16551cat >>conftest.$ac_ext <<_ACEOF
16552/* end confdefs.h. */
16553$ac_includes_default
16554#include <$ac_header>
16555_ACEOF
16556rm -f conftest.$ac_objext
16557if { (ac_try="$ac_compile"
16558case "(($ac_try" in
16559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560 *) ac_try_echo=$ac_try;;
16561esac
16562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563 (eval "$ac_compile") 2>conftest.er1
16564 ac_status=$?
16565 grep -v '^ *+' conftest.er1 >conftest.err
16566 rm -f conftest.er1
16567 cat conftest.err >&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571 { (case "(($ac_try" in
16572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573 *) ac_try_echo=$ac_try;;
16574esac
16575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576 (eval "$ac_try") 2>&5
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); }; } &&
16580 { ac_try='test -s conftest.$ac_objext'
16581 { (case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16584esac
16585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_try") 2>&5
16587 ac_status=$?
16588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589 (exit $ac_status); }; }; then
16590 ac_header_compiler=yes
16591else
16592 echo "$as_me: failed program was:" >&5
16593sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ac_header_compiler=no
16596fi
16597
16598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16599{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16600echo "${ECHO_T}$ac_header_compiler" >&6; }
16601
16602# Is the header present?
16603{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16604echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16605cat >conftest.$ac_ext <<_ACEOF
16606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
16610/* end confdefs.h. */
16611#include <$ac_header>
16612_ACEOF
16613if { (ac_try="$ac_cpp conftest.$ac_ext"
16614case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16617esac
16618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16620 ac_status=$?
16621 grep -v '^ *+' conftest.er1 >conftest.err
16622 rm -f conftest.er1
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } >/dev/null; then
16626 if test -s conftest.err; then
16627 ac_cpp_err=$ac_c_preproc_warn_flag
16628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16629 else
16630 ac_cpp_err=
16631 fi
16632else
16633 ac_cpp_err=yes
16634fi
16635if test -z "$ac_cpp_err"; then
16636 ac_header_preproc=yes
16637else
16638 echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 ac_header_preproc=no
16642fi
16643
16644rm -f conftest.err conftest.$ac_ext
16645{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16646echo "${ECHO_T}$ac_header_preproc" >&6; }
16647
16648# So? What about this header?
16649case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16650 yes:no: )
16651 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16652echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16654echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16655 ac_header_preproc=yes
16656 ;;
16657 no:yes:* )
16658 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16659echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16660 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16661echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16662 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16663echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16665echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16667echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16669echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16670 ( cat <<\_ASBOX
16671## ----------------------------------- ##
16672## Report this to llvmbugs@cs.uiuc.edu ##
16673## ----------------------------------- ##
16674_ASBOX
16675 ) | sed "s/^/$as_me: WARNING: /" >&2
16676 ;;
16677esac
16678{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16682else
16683 eval "$as_ac_Header=\$ac_header_preproc"
16684fi
16685ac_res=`eval echo '${'$as_ac_Header'}'`
16686 { echo "$as_me:$LINENO: result: $ac_res" >&5
16687echo "${ECHO_T}$ac_res" >&6; }
16688
16689fi
16690if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016691 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016693_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016694
16695fi
16696
16697done
16698
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016699fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016700
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016701
Reid Spencer8085cff2005-01-16 02:58:39 +000016702
Torok Edwin871384f2010-01-26 08:50:50 +000016703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016704 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16705echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16706if test "${ac_cv_huge_val_sanity+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016708else
16709
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016710 ac_ext=cpp
16711ac_cpp='$CXXCPP $CPPFLAGS'
16712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016715
Eric Christopherc7718502010-03-02 05:06:54 +000016716 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016717 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016718 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016719 ac_cv_huge_val_sanity=yes
16720else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016721 cat >conftest.$ac_ext <<_ACEOF
16722/* confdefs.h. */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016726/* end confdefs.h. */
16727#include <math.h>
16728int
16729main ()
16730{
16731double x = HUGE_VAL; return x != x;
16732 ;
16733 return 0;
16734}
16735_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016736rm -f conftest$ac_exeext
16737if { (ac_try="$ac_link"
16738case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16741esac
16742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16750esac
16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16753 ac_status=$?
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016756 ac_cv_huge_val_sanity=yes
16757else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016758 echo "$as_me: program exited with status $ac_status" >&5
16759echo "$as_me: failed program was:" >&5
16760sed 's/^/| /' conftest.$ac_ext >&5
16761
16762( exit $ac_status )
16763ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016764fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016765rm -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 +000016766fi
16767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016768
Eric Christopherc7718502010-03-02 05:06:54 +000016769 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000016770 ac_ext=c
16771ac_cpp='$CPP $CPPFLAGS'
16772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16774ac_compiler_gnu=$ac_cv_c_compiler_gnu
16775
16776
16777fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016778{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16779echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016780 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16781
16782
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016783{ echo "$as_me:$LINENO: checking for pid_t" >&5
16784echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16785if test "${ac_cv_type_pid_t+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787else
16788 cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794$ac_includes_default
16795typedef pid_t ac__type_new_;
16796int
16797main ()
16798{
16799if ((ac__type_new_ *) 0)
16800 return 0;
16801if (sizeof (ac__type_new_))
16802 return 0;
16803 ;
16804 return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext
16808if { (ac_try="$ac_compile"
16809case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16812esac
16813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16815 ac_status=$?
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16825esac
16826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835esac
16836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_try") 2>&5
16838 ac_status=$?
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_type_pid_t=yes
16842else
16843 echo "$as_me: failed program was:" >&5
16844sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016846 ac_cv_type_pid_t=no
16847fi
16848
16849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850fi
16851{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16852echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16853if test $ac_cv_type_pid_t = yes; then
16854 :
John Criswell7a73b802003-06-30 21:59:07 +000016855else
16856
16857cat >>confdefs.h <<_ACEOF
16858#define pid_t int
16859_ACEOF
16860
16861fi
16862
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016863{ echo "$as_me:$LINENO: checking for size_t" >&5
16864echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16865if test "${ac_cv_type_size_t+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867else
16868 cat >conftest.$ac_ext <<_ACEOF
16869/* confdefs.h. */
16870_ACEOF
16871cat confdefs.h >>conftest.$ac_ext
16872cat >>conftest.$ac_ext <<_ACEOF
16873/* end confdefs.h. */
16874$ac_includes_default
16875typedef size_t ac__type_new_;
16876int
16877main ()
16878{
16879if ((ac__type_new_ *) 0)
16880 return 0;
16881if (sizeof (ac__type_new_))
16882 return 0;
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest.$ac_objext
16888if { (ac_try="$ac_compile"
16889case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16892esac
16893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_compile") 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16902 { (case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16905esac
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_try") 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest.$ac_objext'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16918 ac_status=$?
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; }; then
16921 ac_cv_type_size_t=yes
16922else
16923 echo "$as_me: failed program was:" >&5
16924sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016925
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016926 ac_cv_type_size_t=no
16927fi
16928
16929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16930fi
16931{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16932echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16933if test $ac_cv_type_size_t = yes; then
16934 :
John Criswell7a73b802003-06-30 21:59:07 +000016935else
16936
16937cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016938#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016939_ACEOF
16940
16941fi
16942
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016943
16944cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016945#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016946_ACEOF
16947
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016948{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16949echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16950if test "${ac_cv_struct_tm+set}" = set; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016952else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016953 cat >conftest.$ac_ext <<_ACEOF
16954/* confdefs.h. */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016958/* end confdefs.h. */
16959#include <sys/types.h>
16960#include <time.h>
16961
16962int
16963main ()
16964{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016965struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016966 ;
16967 return 0;
16968}
16969_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016970rm -f conftest.$ac_objext
16971if { (ac_try="$ac_compile"
16972case "(($ac_try" in
16973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16975esac
16976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_compile") 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988esac
16989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017004 ac_cv_struct_tm=time.h
17005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017006 echo "$as_me: failed program was:" >&5
17007sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017011
Reid Spencera773bd52006-08-04 18:18:08 +000017012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017013fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017014{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17015echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017016if test $ac_cv_struct_tm = sys/time.h; then
17017
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017018cat >>confdefs.h <<\_ACEOF
17019#define TM_IN_SYS_TIME 1
17020_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017021
17022fi
17023
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017024{ echo "$as_me:$LINENO: checking for int64_t" >&5
17025echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17026if test "${ac_cv_type_int64_t+set}" = set; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17028else
17029 cat >conftest.$ac_ext <<_ACEOF
17030/* confdefs.h. */
17031_ACEOF
17032cat confdefs.h >>conftest.$ac_ext
17033cat >>conftest.$ac_ext <<_ACEOF
17034/* end confdefs.h. */
17035$ac_includes_default
17036typedef int64_t ac__type_new_;
17037int
17038main ()
17039{
17040if ((ac__type_new_ *) 0)
17041 return 0;
17042if (sizeof (ac__type_new_))
17043 return 0;
17044 ;
17045 return 0;
17046}
17047_ACEOF
17048rm -f conftest.$ac_objext
17049if { (ac_try="$ac_compile"
17050case "(($ac_try" in
17051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17052 *) ac_try_echo=$ac_try;;
17053esac
17054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17055 (eval "$ac_compile") 2>conftest.er1
17056 ac_status=$?
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
17062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17063 { (case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_try") 2>&5
17069 ac_status=$?
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); }; } &&
17072 { ac_try='test -s conftest.$ac_objext'
17073 { (case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076esac
17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_try") 2>&5
17079 ac_status=$?
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; }; then
17082 ac_cv_type_int64_t=yes
17083else
17084 echo "$as_me: failed program was:" >&5
17085sed 's/^/| /' conftest.$ac_ext >&5
17086
17087 ac_cv_type_int64_t=no
17088fi
17089
17090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17091fi
17092{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17093echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17094if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017095
17096cat >>confdefs.h <<_ACEOF
17097#define HAVE_INT64_T 1
17098_ACEOF
17099
17100
17101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017102 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17103echo "$as_me: error: Type int64_t required but not found" >&2;}
17104 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017105fi
17106
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017107{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17108echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17109if test "${ac_cv_type_uint64_t+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
17117/* end confdefs.h. */
17118$ac_includes_default
17119typedef uint64_t ac__type_new_;
17120int
17121main ()
17122{
17123if ((ac__type_new_ *) 0)
17124 return 0;
17125if (sizeof (ac__type_new_))
17126 return 0;
17127 ;
17128 return 0;
17129}
17130_ACEOF
17131rm -f conftest.$ac_objext
17132if { (ac_try="$ac_compile"
17133case "(($ac_try" in
17134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17135 *) ac_try_echo=$ac_try;;
17136esac
17137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17138 (eval "$ac_compile") 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17146 { (case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149esac
17150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_try") 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; } &&
17155 { ac_try='test -s conftest.$ac_objext'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159esac
17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_cv_type_uint64_t=yes
17166else
17167 echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_cv_type_uint64_t=no
17171fi
17172
17173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17174fi
17175{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17176echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17177if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017178
17179cat >>confdefs.h <<_ACEOF
17180#define HAVE_UINT64_T 1
17181_ACEOF
17182
17183
17184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017185 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17186echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17187if test "${ac_cv_type_u_int64_t+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189else
17190 cat >conftest.$ac_ext <<_ACEOF
17191/* confdefs.h. */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h. */
17196$ac_includes_default
17197typedef u_int64_t ac__type_new_;
17198int
17199main ()
17200{
17201if ((ac__type_new_ *) 0)
17202 return 0;
17203if (sizeof (ac__type_new_))
17204 return 0;
17205 ;
17206 return 0;
17207}
17208_ACEOF
17209rm -f conftest.$ac_objext
17210if { (ac_try="$ac_compile"
17211case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214esac
17215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_compile") 2>conftest.er1
17217 ac_status=$?
17218 grep -v '^ *+' conftest.er1 >conftest.err
17219 rm -f conftest.er1
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); } &&
17223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17224 { (case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227esac
17228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_try") 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237esac
17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ac_cv_type_u_int64_t=yes
17244else
17245 echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ac_cv_type_u_int64_t=no
17249fi
17250
17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252fi
17253{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17254echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17255if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017256
17257cat >>confdefs.h <<_ACEOF
17258#define HAVE_U_INT64_T 1
17259_ACEOF
17260
17261
Misha Brukmanceca9042004-09-02 23:02:30 +000017262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017263 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17264echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17265 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017266fi
17267
John Criswell679ff312004-09-02 18:44:44 +000017268fi
17269
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017270
17271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017272
17273
17274
17275
17276
17277
17278
Reid Spencerdf3be822006-01-23 08:15:53 +000017279for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017280do
17281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17282{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17284if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286else
17287 cat >conftest.$ac_ext <<_ACEOF
17288/* confdefs.h. */
17289_ACEOF
17290cat confdefs.h >>conftest.$ac_ext
17291cat >>conftest.$ac_ext <<_ACEOF
17292/* end confdefs.h. */
17293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17295#define $ac_func innocuous_$ac_func
17296
17297/* System header to define __stub macros and hopefully few prototypes,
17298 which can conflict with char $ac_func (); below.
17299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17300 <limits.h> exists even on freestanding compilers. */
17301
17302#ifdef __STDC__
17303# include <limits.h>
17304#else
17305# include <assert.h>
17306#endif
17307
17308#undef $ac_func
17309
17310/* Override any GCC internal prototype to avoid an error.
17311 Use char because int might match the return type of a GCC
17312 builtin and then its argument prototype would still apply. */
17313#ifdef __cplusplus
17314extern "C"
17315#endif
17316char $ac_func ();
17317/* The GNU C library defines this for functions which it implements
17318 to always fail with ENOSYS. Some functions are actually named
17319 something starting with __ and the normal name is an alias. */
17320#if defined __stub_$ac_func || defined __stub___$ac_func
17321choke me
17322#endif
17323
17324int
17325main ()
17326{
17327return $ac_func ();
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext conftest$ac_exeext
17333if { (ac_try="$ac_link"
17334case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337esac
17338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_link") 2>conftest.er1
17340 ac_status=$?
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17347 { (case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17350esac
17351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17352 (eval "$ac_try") 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest$ac_exeext'
17357 { (case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17360esac
17361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_try") 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 eval "$as_ac_var=yes"
17367else
17368 echo "$as_me: failed program was:" >&5
17369sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 eval "$as_ac_var=no"
17372fi
17373
17374rm -f core conftest.err conftest.$ac_objext \
17375 conftest$ac_exeext conftest.$ac_ext
17376fi
17377ac_res=`eval echo '${'$as_ac_var'}'`
17378 { echo "$as_me:$LINENO: result: $ac_res" >&5
17379echo "${ECHO_T}$ac_res" >&6; }
17380if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017381 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017382#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017383_ACEOF
17384
17385fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017386done
John Criswell7a73b802003-06-30 21:59:07 +000017387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017388
17389
17390
17391
Reid Spencer96cf5872007-07-13 10:05:30 +000017392for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017393do
17394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17395{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17397if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400 cat >conftest.$ac_ext <<_ACEOF
17401/* confdefs.h. */
17402_ACEOF
17403cat confdefs.h >>conftest.$ac_ext
17404cat >>conftest.$ac_ext <<_ACEOF
17405/* end confdefs.h. */
17406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17408#define $ac_func innocuous_$ac_func
17409
17410/* System header to define __stub macros and hopefully few prototypes,
17411 which can conflict with char $ac_func (); below.
17412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17413 <limits.h> exists even on freestanding compilers. */
17414
17415#ifdef __STDC__
17416# include <limits.h>
17417#else
17418# include <assert.h>
17419#endif
17420
17421#undef $ac_func
17422
17423/* Override any GCC internal prototype to avoid an error.
17424 Use char because int might match the return type of a GCC
17425 builtin and then its argument prototype would still apply. */
17426#ifdef __cplusplus
17427extern "C"
17428#endif
17429char $ac_func ();
17430/* The GNU C library defines this for functions which it implements
17431 to always fail with ENOSYS. Some functions are actually named
17432 something starting with __ and the normal name is an alias. */
17433#if defined __stub_$ac_func || defined __stub___$ac_func
17434choke me
17435#endif
17436
17437int
17438main ()
17439{
17440return $ac_func ();
17441 ;
17442 return 0;
17443}
17444_ACEOF
17445rm -f conftest.$ac_objext conftest$ac_exeext
17446if { (ac_try="$ac_link"
17447case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17450esac
17451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_link") 2>conftest.er1
17453 ac_status=$?
17454 grep -v '^ *+' conftest.er1 >conftest.err
17455 rm -f conftest.er1
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } &&
17459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17460 { (case "(($ac_try" in
17461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462 *) ac_try_echo=$ac_try;;
17463esac
17464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465 (eval "$ac_try") 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; } &&
17469 { ac_try='test -s conftest$ac_exeext'
17470 { (case "(($ac_try" in
17471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17472 *) ac_try_echo=$ac_try;;
17473esac
17474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17475 (eval "$ac_try") 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 eval "$as_ac_var=yes"
17480else
17481 echo "$as_me: failed program was:" >&5
17482sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 eval "$as_ac_var=no"
17485fi
17486
17487rm -f core conftest.err conftest.$ac_objext \
17488 conftest$ac_exeext conftest.$ac_ext
17489fi
17490ac_res=`eval echo '${'$as_ac_var'}'`
17491 { echo "$as_me:$LINENO: result: $ac_res" >&5
17492echo "${ECHO_T}$ac_res" >&6; }
17493if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017494 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017496_ACEOF
17497
17498fi
17499done
17500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017501
17502
17503
17504
17505
Reid Spencerb90645c2007-02-16 19:17:20 +000017506for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017507do
17508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17509{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17511if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513else
17514 cat >conftest.$ac_ext <<_ACEOF
17515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h. */
17520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17522#define $ac_func innocuous_$ac_func
17523
17524/* System header to define __stub macros and hopefully few prototypes,
17525 which can conflict with char $ac_func (); below.
17526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17527 <limits.h> exists even on freestanding compilers. */
17528
17529#ifdef __STDC__
17530# include <limits.h>
17531#else
17532# include <assert.h>
17533#endif
17534
17535#undef $ac_func
17536
17537/* Override any GCC internal prototype to avoid an error.
17538 Use char because int might match the return type of a GCC
17539 builtin and then its argument prototype would still apply. */
17540#ifdef __cplusplus
17541extern "C"
17542#endif
17543char $ac_func ();
17544/* The GNU C library defines this for functions which it implements
17545 to always fail with ENOSYS. Some functions are actually named
17546 something starting with __ and the normal name is an alias. */
17547#if defined __stub_$ac_func || defined __stub___$ac_func
17548choke me
17549#endif
17550
17551int
17552main ()
17553{
17554return $ac_func ();
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext conftest$ac_exeext
17560if { (ac_try="$ac_link"
17561case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_link") 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577esac
17578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest$ac_exeext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587esac
17588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 eval "$as_ac_var=yes"
17594else
17595 echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 eval "$as_ac_var=no"
17599fi
17600
17601rm -f core conftest.err conftest.$ac_objext \
17602 conftest$ac_exeext conftest.$ac_ext
17603fi
17604ac_res=`eval echo '${'$as_ac_var'}'`
17605 { echo "$as_me:$LINENO: result: $ac_res" >&5
17606echo "${ECHO_T}$ac_res" >&6; }
17607if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017608 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017610_ACEOF
17611
17612fi
17613done
17614
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017615
17616
17617
Reid Spencerb90645c2007-02-16 19:17:20 +000017618for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017619do
17620as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17621{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17622echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17623if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
17625else
17626 cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17634#define $ac_func innocuous_$ac_func
17635
17636/* System header to define __stub macros and hopefully few prototypes,
17637 which can conflict with char $ac_func (); below.
17638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17639 <limits.h> exists even on freestanding compilers. */
17640
17641#ifdef __STDC__
17642# include <limits.h>
17643#else
17644# include <assert.h>
17645#endif
17646
17647#undef $ac_func
17648
17649/* Override any GCC internal prototype to avoid an error.
17650 Use char because int might match the return type of a GCC
17651 builtin and then its argument prototype would still apply. */
17652#ifdef __cplusplus
17653extern "C"
17654#endif
17655char $ac_func ();
17656/* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659#if defined __stub_$ac_func || defined __stub___$ac_func
17660choke me
17661#endif
17662
17663int
17664main ()
17665{
17666return $ac_func ();
17667 ;
17668 return 0;
17669}
17670_ACEOF
17671rm -f conftest.$ac_objext conftest$ac_exeext
17672if { (ac_try="$ac_link"
17673case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676esac
17677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_link") 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17686 { (case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17689esac
17690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_try") 2>&5
17692 ac_status=$?
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; } &&
17695 { ac_try='test -s conftest$ac_exeext'
17696 { (case "(($ac_try" in
17697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698 *) ac_try_echo=$ac_try;;
17699esac
17700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701 (eval "$ac_try") 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 eval "$as_ac_var=yes"
17706else
17707 echo "$as_me: failed program was:" >&5
17708sed 's/^/| /' conftest.$ac_ext >&5
17709
17710 eval "$as_ac_var=no"
17711fi
17712
17713rm -f core conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17715fi
17716ac_res=`eval echo '${'$as_ac_var'}'`
17717 { echo "$as_me:$LINENO: result: $ac_res" >&5
17718echo "${ECHO_T}$ac_res" >&6; }
17719if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017720 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017722_ACEOF
17723
17724fi
17725done
17726
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017727
17728
17729
17730
17731
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017732for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017733do
17734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17735{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17738 echo $ECHO_N "(cached) $ECHO_C" >&6
17739else
17740 cat >conftest.$ac_ext <<_ACEOF
17741/* confdefs.h. */
17742_ACEOF
17743cat confdefs.h >>conftest.$ac_ext
17744cat >>conftest.$ac_ext <<_ACEOF
17745/* end confdefs.h. */
17746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17748#define $ac_func innocuous_$ac_func
17749
17750/* System header to define __stub macros and hopefully few prototypes,
17751 which can conflict with char $ac_func (); below.
17752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753 <limits.h> exists even on freestanding compilers. */
17754
17755#ifdef __STDC__
17756# include <limits.h>
17757#else
17758# include <assert.h>
17759#endif
17760
17761#undef $ac_func
17762
17763/* Override any GCC internal prototype to avoid an error.
17764 Use char because int might match the return type of a GCC
17765 builtin and then its argument prototype would still apply. */
17766#ifdef __cplusplus
17767extern "C"
17768#endif
17769char $ac_func ();
17770/* The GNU C library defines this for functions which it implements
17771 to always fail with ENOSYS. Some functions are actually named
17772 something starting with __ and the normal name is an alias. */
17773#if defined __stub_$ac_func || defined __stub___$ac_func
17774choke me
17775#endif
17776
17777int
17778main ()
17779{
17780return $ac_func ();
17781 ;
17782 return 0;
17783}
17784_ACEOF
17785rm -f conftest.$ac_objext conftest$ac_exeext
17786if { (ac_try="$ac_link"
17787case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17790esac
17791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792 (eval "$ac_link") 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17800 { (case "(($ac_try" in
17801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802 *) ac_try_echo=$ac_try;;
17803esac
17804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805 (eval "$ac_try") 2>&5
17806 ac_status=$?
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; } &&
17809 { ac_try='test -s conftest$ac_exeext'
17810 { (case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813esac
17814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_try") 2>&5
17816 ac_status=$?
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 eval "$as_ac_var=yes"
17820else
17821 echo "$as_me: failed program was:" >&5
17822sed 's/^/| /' conftest.$ac_ext >&5
17823
17824 eval "$as_ac_var=no"
17825fi
17826
17827rm -f core conftest.err conftest.$ac_objext \
17828 conftest$ac_exeext conftest.$ac_ext
17829fi
17830ac_res=`eval echo '${'$as_ac_var'}'`
17831 { echo "$as_me:$LINENO: result: $ac_res" >&5
17832echo "${ECHO_T}$ac_res" >&6; }
17833if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017834 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017836_ACEOF
17837
17838fi
17839done
Reid Spencerdf3be822006-01-23 08:15:53 +000017840
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017841
17842
17843
17844
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017845for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017846do
17847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17848{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17850if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17852else
17853 cat >conftest.$ac_ext <<_ACEOF
17854/* confdefs.h. */
17855_ACEOF
17856cat confdefs.h >>conftest.$ac_ext
17857cat >>conftest.$ac_ext <<_ACEOF
17858/* end confdefs.h. */
17859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17861#define $ac_func innocuous_$ac_func
17862
17863/* System header to define __stub macros and hopefully few prototypes,
17864 which can conflict with char $ac_func (); below.
17865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866 <limits.h> exists even on freestanding compilers. */
17867
17868#ifdef __STDC__
17869# include <limits.h>
17870#else
17871# include <assert.h>
17872#endif
17873
17874#undef $ac_func
17875
17876/* Override any GCC internal prototype to avoid an error.
17877 Use char because int might match the return type of a GCC
17878 builtin and then its argument prototype would still apply. */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882char $ac_func ();
17883/* The GNU C library defines this for functions which it implements
17884 to always fail with ENOSYS. Some functions are actually named
17885 something starting with __ and the normal name is an alias. */
17886#if defined __stub_$ac_func || defined __stub___$ac_func
17887choke me
17888#endif
17889
17890int
17891main ()
17892{
17893return $ac_func ();
17894 ;
17895 return 0;
17896}
17897_ACEOF
17898rm -f conftest.$ac_objext conftest$ac_exeext
17899if { (ac_try="$ac_link"
17900case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_link") 2>conftest.er1
17906 ac_status=$?
17907 grep -v '^ *+' conftest.er1 >conftest.err
17908 rm -f conftest.er1
17909 cat conftest.err >&5
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } &&
17912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17913 { (case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916esac
17917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_try") 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; } &&
17922 { ac_try='test -s conftest$ac_exeext'
17923 { (case "(($ac_try" in
17924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17925 *) ac_try_echo=$ac_try;;
17926esac
17927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17928 (eval "$ac_try") 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 eval "$as_ac_var=yes"
17933else
17934 echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 eval "$as_ac_var=no"
17938fi
17939
17940rm -f core conftest.err conftest.$ac_objext \
17941 conftest$ac_exeext conftest.$ac_ext
17942fi
17943ac_res=`eval echo '${'$as_ac_var'}'`
17944 { echo "$as_me:$LINENO: result: $ac_res" >&5
17945echo "${ECHO_T}$ac_res" >&6; }
17946if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017947 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017949_ACEOF
17950
17951fi
17952done
17953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017954
17955
17956
17957
Chris Lattner511f11d2005-11-14 07:25:50 +000017958for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017959do
17960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17964 echo $ECHO_N "(cached) $ECHO_C" >&6
17965else
17966 cat >conftest.$ac_ext <<_ACEOF
17967/* confdefs.h. */
17968_ACEOF
17969cat confdefs.h >>conftest.$ac_ext
17970cat >>conftest.$ac_ext <<_ACEOF
17971/* end confdefs.h. */
17972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17974#define $ac_func innocuous_$ac_func
17975
17976/* System header to define __stub macros and hopefully few prototypes,
17977 which can conflict with char $ac_func (); below.
17978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17979 <limits.h> exists even on freestanding compilers. */
17980
17981#ifdef __STDC__
17982# include <limits.h>
17983#else
17984# include <assert.h>
17985#endif
17986
17987#undef $ac_func
17988
17989/* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17992#ifdef __cplusplus
17993extern "C"
17994#endif
17995char $ac_func ();
17996/* The GNU C library defines this for functions which it implements
17997 to always fail with ENOSYS. Some functions are actually named
17998 something starting with __ and the normal name is an alias. */
17999#if defined __stub_$ac_func || defined __stub___$ac_func
18000choke me
18001#endif
18002
18003int
18004main ()
18005{
18006return $ac_func ();
18007 ;
18008 return 0;
18009}
18010_ACEOF
18011rm -f conftest.$ac_objext conftest$ac_exeext
18012if { (ac_try="$ac_link"
18013case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016esac
18017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_link") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } &&
18025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18026 { (case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18029esac
18030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_try") 2>&5
18032 ac_status=$?
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039esac
18040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_try") 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 eval "$as_ac_var=yes"
18046else
18047 echo "$as_me: failed program was:" >&5
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
18050 eval "$as_ac_var=no"
18051fi
18052
18053rm -f core conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18055fi
18056ac_res=`eval echo '${'$as_ac_var'}'`
18057 { echo "$as_me:$LINENO: result: $ac_res" >&5
18058echo "${ECHO_T}$ac_res" >&6; }
18059if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018062_ACEOF
18063
18064fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018065done
John Criswell7a73b802003-06-30 21:59:07 +000018066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018067
18068
18069
18070
Reid Spencerafa22e22006-12-10 23:29:19 +000018071for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018072do
18073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18074{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18076if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18077 echo $ECHO_N "(cached) $ECHO_C" >&6
18078else
18079 cat >conftest.$ac_ext <<_ACEOF
18080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18087#define $ac_func innocuous_$ac_func
18088
18089/* System header to define __stub macros and hopefully few prototypes,
18090 which can conflict with char $ac_func (); below.
18091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18092 <limits.h> exists even on freestanding compilers. */
18093
18094#ifdef __STDC__
18095# include <limits.h>
18096#else
18097# include <assert.h>
18098#endif
18099
18100#undef $ac_func
18101
18102/* Override any GCC internal prototype to avoid an error.
18103 Use char because int might match the return type of a GCC
18104 builtin and then its argument prototype would still apply. */
18105#ifdef __cplusplus
18106extern "C"
18107#endif
18108char $ac_func ();
18109/* The GNU C library defines this for functions which it implements
18110 to always fail with ENOSYS. Some functions are actually named
18111 something starting with __ and the normal name is an alias. */
18112#if defined __stub_$ac_func || defined __stub___$ac_func
18113choke me
18114#endif
18115
18116int
18117main ()
18118{
18119return $ac_func ();
18120 ;
18121 return 0;
18122}
18123_ACEOF
18124rm -f conftest.$ac_objext conftest$ac_exeext
18125if { (ac_try="$ac_link"
18126case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129esac
18130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_link") 2>conftest.er1
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } &&
18138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18139 { (case "(($ac_try" in
18140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141 *) ac_try_echo=$ac_try;;
18142esac
18143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144 (eval "$ac_try") 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; } &&
18148 { ac_try='test -s conftest$ac_exeext'
18149 { (case "(($ac_try" in
18150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18151 *) ac_try_echo=$ac_try;;
18152esac
18153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18154 (eval "$ac_try") 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }; }; then
18158 eval "$as_ac_var=yes"
18159else
18160 echo "$as_me: failed program was:" >&5
18161sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 eval "$as_ac_var=no"
18164fi
18165
18166rm -f core conftest.err conftest.$ac_objext \
18167 conftest$ac_exeext conftest.$ac_ext
18168fi
18169ac_res=`eval echo '${'$as_ac_var'}'`
18170 { echo "$as_me:$LINENO: result: $ac_res" >&5
18171echo "${ECHO_T}$ac_res" >&6; }
18172if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018173 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018174#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018175_ACEOF
18176
18177fi
18178done
18179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018180{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18181echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18182if test "${llvm_cv_c_printf_a+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018184else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018185 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018186ac_cpp='$CPP $CPPFLAGS'
18187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18189ac_compiler_gnu=$ac_cv_c_compiler_gnu
18190
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018191 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018192 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018193else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018194 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018196 /* confdefs.h. */
18197_ACEOF
18198cat confdefs.h >>conftest.$ac_ext
18199cat >>conftest.$ac_ext <<_ACEOF
18200/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018201
John Criswella0137d32003-10-13 16:22:01 +000018202#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018203#include <stdlib.h>
18204
John Criswella0137d32003-10-13 16:22:01 +000018205int
18206main ()
18207{
18208
Reid Spencer2706f8c2004-09-19 23:53:36 +000018209volatile double A, B;
18210char Buffer[100];
18211A = 1;
18212A /= 10.0;
18213sprintf(Buffer, "%a", A);
18214B = atof(Buffer);
18215if (A != B)
18216 return (1);
18217if (A != 0x1.999999999999ap-4)
18218 return (1);
18219return (0);
John Criswella0137d32003-10-13 16:22:01 +000018220 ;
18221 return 0;
18222}
18223_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018224rm -f conftest$ac_exeext
18225if { (ac_try="$ac_link"
18226case "(($ac_try" in
18227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228 *) ac_try_echo=$ac_try;;
18229esac
18230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18231 (eval "$ac_link") 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
18241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018244 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018246 echo "$as_me: program exited with status $ac_status" >&5
18247echo "$as_me: failed program was:" >&5
18248sed 's/^/| /' conftest.$ac_ext >&5
18249
18250( exit $ac_status )
18251llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018253rm -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 +000018254fi
Reid Spencera773bd52006-08-04 18:18:08 +000018255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018256
Reid Spencer2706f8c2004-09-19 23:53:36 +000018257 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018258ac_cpp='$CPP $CPPFLAGS'
18259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018264{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18265echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018266 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018268cat >>confdefs.h <<\_ACEOF
18269#define HAVE_PRINTF_A 1
18270_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018271
Reid Spencer2706f8c2004-09-19 23:53:36 +000018272 fi
John Criswella0137d32003-10-13 16:22:01 +000018273
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018275{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18276echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18277if test "${ac_cv_func_rand48+set}" = set; then
18278 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018279else
Reid Spencera773bd52006-08-04 18:18:08 +000018280 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018281ac_cpp='$CXXCPP $CPPFLAGS'
18282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018286 cat >conftest.$ac_ext <<_ACEOF
18287/* confdefs.h. */
18288_ACEOF
18289cat confdefs.h >>conftest.$ac_ext
18290cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018291/* end confdefs.h. */
18292#include <stdlib.h>
18293int
18294main ()
18295{
18296srand48(0);lrand48();drand48();
18297 ;
18298 return 0;
18299}
18300_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018301rm -f conftest.$ac_objext
18302if { (ac_try="$ac_compile"
18303case "(($ac_try" in
18304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305 *) ac_try_echo=$ac_try;;
18306esac
18307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308 (eval "$ac_compile") 2>conftest.er1
18309 ac_status=$?
18310 grep -v '^ *+' conftest.er1 >conftest.err
18311 rm -f conftest.er1
18312 cat conftest.err >&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); } &&
18315 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18316 { (case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319esac
18320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_try") 2>&5
18322 ac_status=$?
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); }; } &&
18325 { ac_try='test -s conftest.$ac_objext'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018335 ac_cv_func_rand48=yes
18336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018342
Reid Spencera773bd52006-08-04 18:18:08 +000018343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018344 ac_ext=c
18345ac_cpp='$CPP $CPPFLAGS'
18346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18348ac_compiler_gnu=$ac_cv_c_compiler_gnu
18349
18350fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018351{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18352echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018353
18354if test "$ac_cv_func_rand48" = "yes" ; then
18355
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018356cat >>confdefs.h <<\_ACEOF
18357#define HAVE_RAND48 1
18358_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018359
18360fi
John Criswell0021c312004-02-13 21:57:29 +000018361
18362
Torok Edwin871384f2010-01-26 08:50:50 +000018363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018364{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18365echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18366if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18367 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018368else
Reid Spencera773bd52006-08-04 18:18:08 +000018369 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018370ac_cpp='$CXXCPP $CPPFLAGS'
18371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018375 cat >conftest.$ac_ext <<_ACEOF
18376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018380/* end confdefs.h. */
18381#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018382int
18383main ()
18384{
18385float f; isnan(f);
18386 ;
18387 return 0;
18388}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018389_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018390rm -f conftest.$ac_objext
18391if { (ac_try="$ac_compile"
18392case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395esac
18396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_compile") 2>conftest.er1
18398 ac_status=$?
18399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405 { (case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408esac
18409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_try") 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest.$ac_objext'
18415 { (case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418esac
18419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_try") 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018424 ac_cv_func_isnan_in_math_h=yes
18425else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018426 echo "$as_me: failed program was:" >&5
18427sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018430fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018431
Reid Spencera773bd52006-08-04 18:18:08 +000018432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018433 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018434ac_cpp='$CPP $CPPFLAGS'
18435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18437ac_compiler_gnu=$ac_cv_c_compiler_gnu
18438
18439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018440{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18441echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018442
18443
18444if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018446cat >>confdefs.h <<\_ACEOF
18447#define HAVE_ISNAN_IN_MATH_H 1
18448_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018449
Reid Spencerabec8f92004-10-27 23:03:44 +000018450fi
18451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018452{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18453echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18454if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018456else
Reid Spencera773bd52006-08-04 18:18:08 +000018457 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018458ac_cpp='$CXXCPP $CPPFLAGS'
18459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018463 cat >conftest.$ac_ext <<_ACEOF
18464/* confdefs.h. */
18465_ACEOF
18466cat confdefs.h >>conftest.$ac_ext
18467cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018468/* end confdefs.h. */
18469#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018470int
18471main ()
18472{
18473float f; isnan(f);
18474 ;
18475 return 0;
18476}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018477_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018478rm -f conftest.$ac_objext
18479if { (ac_try="$ac_compile"
18480case "(($ac_try" in
18481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18482 *) ac_try_echo=$ac_try;;
18483esac
18484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
18492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18493 { (case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18496esac
18497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_try") 2>&5
18499 ac_status=$?
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); }; } &&
18502 { ac_try='test -s conftest.$ac_objext'
18503 { (case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18506esac
18507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_try") 2>&5
18509 ac_status=$?
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018512 ac_cv_func_isnan_in_cmath=yes
18513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018514 echo "$as_me: failed program was:" >&5
18515sed 's/^/| /' conftest.$ac_ext >&5
18516
18517 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018518fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018519
Reid Spencera773bd52006-08-04 18:18:08 +000018520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018521 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018522ac_cpp='$CPP $CPPFLAGS'
18523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525ac_compiler_gnu=$ac_cv_c_compiler_gnu
18526
18527fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018528{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18529echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018530
18531if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018532
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018533cat >>confdefs.h <<\_ACEOF
18534#define HAVE_ISNAN_IN_CMATH 1
18535_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018536
Reid Spencerabec8f92004-10-27 23:03:44 +000018537fi
18538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018539{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18540echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18541if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18542 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018543else
Reid Spencera773bd52006-08-04 18:18:08 +000018544 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018545ac_cpp='$CXXCPP $CPPFLAGS'
18546ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18547ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18548ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018550 cat >conftest.$ac_ext <<_ACEOF
18551/* confdefs.h. */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018555/* end confdefs.h. */
18556#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018557int
18558main ()
18559{
18560float f; std::isnan(f);
18561 ;
18562 return 0;
18563}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018564_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018565rm -f conftest.$ac_objext
18566if { (ac_try="$ac_compile"
18567case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570esac
18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_compile") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
18579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18580 { (case "(($ac_try" in
18581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18582 *) ac_try_echo=$ac_try;;
18583esac
18584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18585 (eval "$ac_try") 2>&5
18586 ac_status=$?
18587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588 (exit $ac_status); }; } &&
18589 { ac_try='test -s conftest.$ac_objext'
18590 { (case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593esac
18594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_try") 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018599 ac_cv_func_std_isnan_in_cmath=yes
18600else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018605fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018606
Reid Spencera773bd52006-08-04 18:18:08 +000018607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018608 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018609ac_cpp='$CPP $CPPFLAGS'
18610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18612ac_compiler_gnu=$ac_cv_c_compiler_gnu
18613
18614fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018615{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18616echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018617
18618if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018620cat >>confdefs.h <<\_ACEOF
18621#define HAVE_STD_ISNAN_IN_CMATH 1
18622_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018623
Reid Spencerabec8f92004-10-27 23:03:44 +000018624fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018625
18626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018627{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18628echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18629if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018631else
Reid Spencera773bd52006-08-04 18:18:08 +000018632 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018633ac_cpp='$CXXCPP $CPPFLAGS'
18634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018638 cat >conftest.$ac_ext <<_ACEOF
18639/* confdefs.h. */
18640_ACEOF
18641cat confdefs.h >>conftest.$ac_ext
18642cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018643/* end confdefs.h. */
18644#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018645int
18646main ()
18647{
18648float f; isinf(f);
18649 ;
18650 return 0;
18651}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018652_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018653rm -f conftest.$ac_objext
18654if { (ac_try="$ac_compile"
18655case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_compile") 2>conftest.er1
18661 ac_status=$?
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
18667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18671esac
18672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18674 ac_status=$?
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; } &&
18677 { ac_try='test -s conftest.$ac_objext'
18678 { (case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681esac
18682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_try") 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018687 ac_cv_func_isinf_in_math_h=yes
18688else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018689 echo "$as_me: failed program was:" >&5
18690sed 's/^/| /' conftest.$ac_ext >&5
18691
18692 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018693fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018694
Reid Spencera773bd52006-08-04 18:18:08 +000018695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018696 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018697ac_cpp='$CPP $CPPFLAGS'
18698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700ac_compiler_gnu=$ac_cv_c_compiler_gnu
18701
18702fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018703{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18704echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018705
18706if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018708cat >>confdefs.h <<\_ACEOF
18709#define HAVE_ISINF_IN_MATH_H 1
18710_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018711
Reid Spencerabec8f92004-10-27 23:03:44 +000018712fi
18713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018714{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18715echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18716if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018718else
Reid Spencera773bd52006-08-04 18:18:08 +000018719 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018720ac_cpp='$CXXCPP $CPPFLAGS'
18721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018725 cat >conftest.$ac_ext <<_ACEOF
18726/* confdefs.h. */
18727_ACEOF
18728cat confdefs.h >>conftest.$ac_ext
18729cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018730/* end confdefs.h. */
18731#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018732int
18733main ()
18734{
18735float f; isinf(f);
18736 ;
18737 return 0;
18738}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018739_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018740rm -f conftest.$ac_objext
18741if { (ac_try="$ac_compile"
18742case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18745esac
18746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_compile") 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18755 { (case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18758esac
18759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_try") 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; } &&
18764 { ac_try='test -s conftest.$ac_objext'
18765 { (case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18768esac
18769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_try") 2>&5
18771 ac_status=$?
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018774 ac_cv_func_isinf_in_cmath=yes
18775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018776 echo "$as_me: failed program was:" >&5
18777sed 's/^/| /' conftest.$ac_ext >&5
18778
18779 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018780fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018781
Reid Spencera773bd52006-08-04 18:18:08 +000018782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018783 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018784ac_cpp='$CPP $CPPFLAGS'
18785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18787ac_compiler_gnu=$ac_cv_c_compiler_gnu
18788
18789fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018790{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18791echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018792
18793if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018795cat >>confdefs.h <<\_ACEOF
18796#define HAVE_ISINF_IN_CMATH 1
18797_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018798
Reid Spencerabec8f92004-10-27 23:03:44 +000018799fi
18800
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018801{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18802echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18803if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018805else
Reid Spencera773bd52006-08-04 18:18:08 +000018806 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018807ac_cpp='$CXXCPP $CPPFLAGS'
18808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18811
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018812 cat >conftest.$ac_ext <<_ACEOF
18813/* confdefs.h. */
18814_ACEOF
18815cat confdefs.h >>conftest.$ac_ext
18816cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018817/* end confdefs.h. */
18818#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018819int
18820main ()
18821{
18822float f; std::isinf(f)}
18823 ;
18824 return 0;
18825}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018826_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018827rm -f conftest.$ac_objext
18828if { (ac_try="$ac_compile"
18829case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832esac
18833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_compile") 2>conftest.er1
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); } &&
18841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18842 { (case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18845esac
18846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_try") 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest.$ac_objext'
18852 { (case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18855esac
18856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_try") 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018861 ac_cv_func_std_isinf_in_cmath=yes
18862else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018863 echo "$as_me: failed program was:" >&5
18864sed 's/^/| /' conftest.$ac_ext >&5
18865
18866 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018867fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018868
Reid Spencera773bd52006-08-04 18:18:08 +000018869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018870 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018871ac_cpp='$CPP $CPPFLAGS'
18872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874ac_compiler_gnu=$ac_cv_c_compiler_gnu
18875
18876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018877{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18878echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018879
18880if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018881
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018882cat >>confdefs.h <<\_ACEOF
18883#define HAVE_STD_ISINF_IN_CMATH 1
18884_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018885
Reid Spencerabec8f92004-10-27 23:03:44 +000018886fi
18887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018888{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18889echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18890if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018892else
Reid Spencera773bd52006-08-04 18:18:08 +000018893 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000018894ac_cpp='$CXXCPP $CPPFLAGS'
18895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18898
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018899 cat >conftest.$ac_ext <<_ACEOF
18900/* confdefs.h. */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018904/* end confdefs.h. */
18905#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018906int
18907main ()
18908{
18909float f; finite(f);
18910 ;
18911 return 0;
18912}
Brian Gaeked59a6472004-07-21 03:33:58 +000018913_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018914rm -f conftest.$ac_objext
18915if { (ac_try="$ac_compile"
18916case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919esac
18920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_compile") 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
18928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18929 { (case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18932esac
18933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18934 (eval "$ac_try") 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
18939 { (case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18942esac
18943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_try") 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018948 ac_cv_func_finite_in_ieeefp_h=yes
18949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018950 echo "$as_me: failed program was:" >&5
18951sed 's/^/| /' conftest.$ac_ext >&5
18952
18953 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000018954fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018955
Reid Spencera773bd52006-08-04 18:18:08 +000018956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018957 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000018958ac_cpp='$CPP $CPPFLAGS'
18959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961ac_compiler_gnu=$ac_cv_c_compiler_gnu
18962
18963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018964{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18965echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018966
Brian Gaeke6802b552004-10-28 05:06:45 +000018967if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018968
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018969cat >>confdefs.h <<\_ACEOF
18970#define HAVE_FINITE_IN_IEEEFP_H 1
18971_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018972
Reid Spencerabec8f92004-10-27 23:03:44 +000018973fi
18974
18975
18976
Reid Spencer30fe5262007-01-20 07:48:49 +000018977if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018978
18979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018980for ac_header in stdlib.h unistd.h
18981do
18982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18988fi
18989ac_res=`eval echo '${'$as_ac_Header'}'`
18990 { echo "$as_me:$LINENO: result: $ac_res" >&5
18991echo "${ECHO_T}$ac_res" >&6; }
18992else
18993 # Is the header compilable?
18994{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18996cat >conftest.$ac_ext <<_ACEOF
18997/* confdefs.h. */
18998_ACEOF
18999cat confdefs.h >>conftest.$ac_ext
19000cat >>conftest.$ac_ext <<_ACEOF
19001/* end confdefs.h. */
19002$ac_includes_default
19003#include <$ac_header>
19004_ACEOF
19005rm -f conftest.$ac_objext
19006if { (ac_try="$ac_compile"
19007case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19010esac
19011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_compile") 2>conftest.er1
19013 ac_status=$?
19014 grep -v '^ *+' conftest.er1 >conftest.err
19015 rm -f conftest.er1
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19023esac
19024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest.$ac_objext'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033esac
19034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_header_compiler=yes
19040else
19041 echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019043
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019044 ac_header_compiler=no
19045fi
19046
19047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19048{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19049echo "${ECHO_T}$ac_header_compiler" >&6; }
19050
19051# Is the header present?
19052{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19054cat >conftest.$ac_ext <<_ACEOF
19055/* confdefs.h. */
19056_ACEOF
19057cat confdefs.h >>conftest.$ac_ext
19058cat >>conftest.$ac_ext <<_ACEOF
19059/* end confdefs.h. */
19060#include <$ac_header>
19061_ACEOF
19062if { (ac_try="$ac_cpp conftest.$ac_ext"
19063case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19066esac
19067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19069 ac_status=$?
19070 grep -v '^ *+' conftest.er1 >conftest.err
19071 rm -f conftest.er1
19072 cat conftest.err >&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } >/dev/null; then
19075 if test -s conftest.err; then
19076 ac_cpp_err=$ac_c_preproc_warn_flag
19077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19078 else
19079 ac_cpp_err=
19080 fi
19081else
19082 ac_cpp_err=yes
19083fi
19084if test -z "$ac_cpp_err"; then
19085 ac_header_preproc=yes
19086else
19087 echo "$as_me: failed program was:" >&5
19088sed 's/^/| /' conftest.$ac_ext >&5
19089
19090 ac_header_preproc=no
19091fi
19092
19093rm -f conftest.err conftest.$ac_ext
19094{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19095echo "${ECHO_T}$ac_header_preproc" >&6; }
19096
19097# So? What about this header?
19098case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19099 yes:no: )
19100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19101echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19103echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19104 ac_header_preproc=yes
19105 ;;
19106 no:yes:* )
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19108echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19110echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19112echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19114echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19116echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19118echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19119 ( cat <<\_ASBOX
19120## ----------------------------------- ##
19121## Report this to llvmbugs@cs.uiuc.edu ##
19122## ----------------------------------- ##
19123_ASBOX
19124 ) | sed "s/^/$as_me: WARNING: /" >&2
19125 ;;
19126esac
19127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131else
19132 eval "$as_ac_Header=\$ac_header_preproc"
19133fi
19134ac_res=`eval echo '${'$as_ac_Header'}'`
19135 { echo "$as_me:$LINENO: result: $ac_res" >&5
19136echo "${ECHO_T}$ac_res" >&6; }
19137
19138fi
19139if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019140 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019142_ACEOF
19143
19144fi
19145
19146done
19147
19148
19149for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019150do
19151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19152{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19155 echo $ECHO_N "(cached) $ECHO_C" >&6
19156else
19157 cat >conftest.$ac_ext <<_ACEOF
19158/* confdefs.h. */
19159_ACEOF
19160cat confdefs.h >>conftest.$ac_ext
19161cat >>conftest.$ac_ext <<_ACEOF
19162/* end confdefs.h. */
19163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19165#define $ac_func innocuous_$ac_func
19166
19167/* System header to define __stub macros and hopefully few prototypes,
19168 which can conflict with char $ac_func (); below.
19169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19170 <limits.h> exists even on freestanding compilers. */
19171
19172#ifdef __STDC__
19173# include <limits.h>
19174#else
19175# include <assert.h>
19176#endif
19177
19178#undef $ac_func
19179
19180/* Override any GCC internal prototype to avoid an error.
19181 Use char because int might match the return type of a GCC
19182 builtin and then its argument prototype would still apply. */
19183#ifdef __cplusplus
19184extern "C"
19185#endif
19186char $ac_func ();
19187/* The GNU C library defines this for functions which it implements
19188 to always fail with ENOSYS. Some functions are actually named
19189 something starting with __ and the normal name is an alias. */
19190#if defined __stub_$ac_func || defined __stub___$ac_func
19191choke me
19192#endif
19193
19194int
19195main ()
19196{
19197return $ac_func ();
19198 ;
19199 return 0;
19200}
19201_ACEOF
19202rm -f conftest.$ac_objext conftest$ac_exeext
19203if { (ac_try="$ac_link"
19204case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19207esac
19208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_link") 2>conftest.er1
19210 ac_status=$?
19211 grep -v '^ *+' conftest.er1 >conftest.err
19212 rm -f conftest.er1
19213 cat conftest.err >&5
19214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19217 { (case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19220esac
19221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_try") 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; } &&
19226 { ac_try='test -s conftest$ac_exeext'
19227 { (case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230esac
19231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_try") 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; }; then
19236 eval "$as_ac_var=yes"
19237else
19238 echo "$as_me: failed program was:" >&5
19239sed 's/^/| /' conftest.$ac_ext >&5
19240
19241 eval "$as_ac_var=no"
19242fi
19243
19244rm -f core conftest.err conftest.$ac_objext \
19245 conftest$ac_exeext conftest.$ac_ext
19246fi
19247ac_res=`eval echo '${'$as_ac_var'}'`
19248 { echo "$as_me:$LINENO: result: $ac_res" >&5
19249echo "${ECHO_T}$ac_res" >&6; }
19250if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019251 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019253_ACEOF
19254
19255fi
19256done
19257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019258{ echo "$as_me:$LINENO: checking for working mmap" >&5
19259echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19260if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019262else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019263 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019264 ac_cv_func_mmap_fixed_mapped=no
19265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019266 cat >conftest.$ac_ext <<_ACEOF
19267/* confdefs.h. */
19268_ACEOF
19269cat confdefs.h >>conftest.$ac_ext
19270cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019272$ac_includes_default
19273/* malloc might have been renamed as rpl_malloc. */
19274#undef malloc
19275
19276/* Thanks to Mike Haertel and Jim Avera for this test.
19277 Here is a matrix of mmap possibilities:
19278 mmap private not fixed
19279 mmap private fixed at somewhere currently unmapped
19280 mmap private fixed at somewhere already mapped
19281 mmap shared not fixed
19282 mmap shared fixed at somewhere currently unmapped
19283 mmap shared fixed at somewhere already mapped
19284 For private mappings, we should verify that changes cannot be read()
19285 back from the file, nor mmap's back from the file at a different
19286 address. (There have been systems where private was not correctly
19287 implemented like the infamous i386 svr4.0, and systems where the
19288 VM page cache was not coherent with the file system buffer cache
19289 like early versions of FreeBSD and possibly contemporary NetBSD.)
19290 For shared mappings, we should conversely verify that changes get
19291 propagated back to all the places they're supposed to be.
19292
19293 Grep wants private fixed already mapped.
19294 The main things grep needs to know about mmap are:
19295 * does it exist and is it safe to write into the mmap'd area
19296 * how to use it (BSD variants) */
19297
19298#include <fcntl.h>
19299#include <sys/mman.h>
19300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019301#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019302char *malloc ();
19303#endif
19304
19305/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019306#if !HAVE_GETPAGESIZE
19307/* Assume that all systems that can run configure have sys/param.h. */
19308# if !HAVE_SYS_PARAM_H
19309# define HAVE_SYS_PARAM_H 1
19310# endif
19311
John Criswell7a73b802003-06-30 21:59:07 +000019312# ifdef _SC_PAGESIZE
19313# define getpagesize() sysconf(_SC_PAGESIZE)
19314# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019315# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019316# include <sys/param.h>
19317# ifdef EXEC_PAGESIZE
19318# define getpagesize() EXEC_PAGESIZE
19319# else /* no EXEC_PAGESIZE */
19320# ifdef NBPG
19321# define getpagesize() NBPG * CLSIZE
19322# ifndef CLSIZE
19323# define CLSIZE 1
19324# endif /* no CLSIZE */
19325# else /* no NBPG */
19326# ifdef NBPC
19327# define getpagesize() NBPC
19328# else /* no NBPC */
19329# ifdef PAGESIZE
19330# define getpagesize() PAGESIZE
19331# endif /* PAGESIZE */
19332# endif /* no NBPC */
19333# endif /* no NBPG */
19334# endif /* no EXEC_PAGESIZE */
19335# else /* no HAVE_SYS_PARAM_H */
19336# define getpagesize() 8192 /* punt totally */
19337# endif /* no HAVE_SYS_PARAM_H */
19338# endif /* no _SC_PAGESIZE */
19339
19340#endif /* no HAVE_GETPAGESIZE */
19341
19342int
19343main ()
19344{
19345 char *data, *data2, *data3;
19346 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019347 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019348
19349 pagesize = getpagesize ();
19350
19351 /* First, make a file with some known garbage in it. */
19352 data = (char *) malloc (pagesize);
19353 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019354 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019355 for (i = 0; i < pagesize; ++i)
19356 *(data + i) = rand ();
19357 umask (0);
19358 fd = creat ("conftest.mmap", 0600);
19359 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019360 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019361 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019362 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019363 close (fd);
19364
19365 /* Next, try to mmap the file at a fixed address which already has
19366 something else allocated at it. If we can, also make sure that
19367 we see the same garbage. */
19368 fd = open ("conftest.mmap", O_RDWR);
19369 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019370 return 1;
19371 data2 = (char *) malloc (2 * pagesize);
19372 if (!data2)
19373 return 1;
19374 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019375 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019376 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019378 for (i = 0; i < pagesize; ++i)
19379 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019380 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019381
19382 /* Finally, make sure that changes to the mapped area do not
19383 percolate back to the file as seen by read(). (This is a bug on
19384 some variants of i386 svr4.0.) */
19385 for (i = 0; i < pagesize; ++i)
19386 *(data2 + i) = *(data2 + i) + 1;
19387 data3 = (char *) malloc (pagesize);
19388 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019389 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019390 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019391 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019392 for (i = 0; i < pagesize; ++i)
19393 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019394 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019395 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019396 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019397}
19398_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019399rm -f conftest$ac_exeext
19400if { (ac_try="$ac_link"
19401case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19404esac
19405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_link") 2>&5
19407 ac_status=$?
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19413esac
19414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019419 ac_cv_func_mmap_fixed_mapped=yes
19420else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019421 echo "$as_me: program exited with status $ac_status" >&5
19422echo "$as_me: failed program was:" >&5
19423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425( exit $ac_status )
19426ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019428rm -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 +000019429fi
Reid Spencera773bd52006-08-04 18:18:08 +000019430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019431
John Criswell7a73b802003-06-30 21:59:07 +000019432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019433{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19434echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019435if test $ac_cv_func_mmap_fixed_mapped = yes; then
19436
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019437cat >>confdefs.h <<\_ACEOF
19438#define HAVE_MMAP 1
19439_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019440
19441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019442rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019444 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19445echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19446if test "${ac_cv_func_mmap_file+set}" = set; then
19447 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019448else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019449 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019450ac_cpp='$CPP $CPPFLAGS'
19451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019455 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019456 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019457else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019458 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019460 /* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019465
John Criswell7a73b802003-06-30 21:59:07 +000019466#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019467#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019468#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019469
19470int
19471main ()
19472{
John Criswell7a73b802003-06-30 21:59:07 +000019473
19474 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019475 fd = creat ("foo",0777);
19476 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19477 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019478 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019479 ;
19480 return 0;
19481}
John Criswell7a73b802003-06-30 21:59:07 +000019482_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019483rm -f conftest$ac_exeext
19484if { (ac_try="$ac_link"
19485case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19488esac
19489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_link") 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19494 { (case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19497esac
19498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_try") 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019503 ac_cv_func_mmap_file=yes
19504else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019505 echo "$as_me: program exited with status $ac_status" >&5
19506echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
19509( exit $ac_status )
19510ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019511fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019512rm -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 +000019513fi
Reid Spencera773bd52006-08-04 18:18:08 +000019514
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019515
John Criswell7a73b802003-06-30 21:59:07 +000019516 ac_ext=c
19517ac_cpp='$CPP $CPPFLAGS'
19518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19520ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521
19522
19523fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019524{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19525echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019526if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019527
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019528cat >>confdefs.h <<\_ACEOF
19529#define HAVE_MMAP_FILE
19530_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019531
19532 MMAP_FILE=yes
19533
19534fi
19535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019536 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19537echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19538if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019540else
Reid Spencer582a23c2004-12-29 07:07:57 +000019541 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019542 ac_cv_need_dev_zero_for_mmap=yes
19543 else
19544 ac_cv_need_dev_zero_for_mmap=no
19545 fi
19546
19547fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019548{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19549echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019550if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019552cat >>confdefs.h <<\_ACEOF
19553#define NEED_DEV_ZERO_FOR_MMAP 1
19554_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019555
19556fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019557
Reid Spencer30fe5262007-01-20 07:48:49 +000019558 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19559 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019560 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19561echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019562 fi
19563 if test "$ac_cv_func_mmap_file" = "no"
19564 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19566echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019567 fi
John Criswellb13092b2003-07-22 21:00:24 +000019568fi
John Criswell7a73b802003-06-30 21:59:07 +000019569
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19571echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19572cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019577/* end confdefs.h. */
19578int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019579 volatile unsigned long val = 1;
19580 __sync_synchronize();
19581 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019582 __sync_add_and_fetch(&val, 1);
19583 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019584 return 0;
19585 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019586
19587_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019588rm -f conftest.$ac_objext conftest$ac_exeext
19589if { (ac_try="$ac_link"
19590case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593esac
19594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_link") 2>conftest.er1
19596 ac_status=$?
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
19602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19603 { (case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19606esac
19607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_try") 2>&5
19609 ac_status=$?
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); }; } &&
19612 { ac_try='test -s conftest$ac_exeext'
19613 { (case "(($ac_try" in
19614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615 *) ac_try_echo=$ac_try;;
19616esac
19617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618 (eval "$ac_try") 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 { echo "$as_me:$LINENO: result: yes" >&5
19623echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019625cat >>confdefs.h <<\_ACEOF
19626#define LLVM_MULTITHREADED 1
19627_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019628
Owen Andersond4b272b2009-05-18 23:58:51 +000019629else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019630 echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019633 { echo "$as_me:$LINENO: result: no" >&5
19634echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019635
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019636cat >>confdefs.h <<\_ACEOF
19637#define LLVM_MULTITHREADED 0
19638_ACEOF
19639
19640 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19641echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019643
Owen Andersond4b272b2009-05-18 23:58:51 +000019644rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019645 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019646
19647
John Criswell7a73b802003-06-30 21:59:07 +000019648
Nick Lewycky4372e692009-09-29 06:18:23 +000019649if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019650 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19651echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19652if test "${llvm_cv_linux_mixed+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019654else
19655 ac_ext=c
19656ac_cpp='$CPP $CPPFLAGS'
19657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19659ac_compiler_gnu=$ac_cv_c_compiler_gnu
19660
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019661 cat >conftest.$ac_ext <<_ACEOF
19662/* confdefs.h. */
19663_ACEOF
19664cat confdefs.h >>conftest.$ac_ext
19665cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019666/* end confdefs.h. */
19667#ifndef __x86_64__
19668 error: Not x86-64 even if uname says so!
19669 #endif
19670
19671int
19672main ()
19673{
19674
19675 ;
19676 return 0;
19677}
19678_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019679rm -f conftest.$ac_objext
19680if { (ac_try="$ac_compile"
19681case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19684esac
19685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } &&
19693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19694 { (case "(($ac_try" in
19695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696 *) ac_try_echo=$ac_try;;
19697esac
19698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699 (eval "$ac_try") 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19710 ac_status=$?
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019713 llvm_cv_linux_mixed=no
19714else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019715 echo "$as_me: failed program was:" >&5
19716sed 's/^/| /' conftest.$ac_ext >&5
19717
19718 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019720
Nick Lewycky4372e692009-09-29 06:18:23 +000019721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19722 ac_ext=c
19723ac_cpp='$CPP $CPPFLAGS'
19724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19726ac_compiler_gnu=$ac_cv_c_compiler_gnu
19727
19728
19729fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19731echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019732
19733 if test "$llvm_cv_linux_mixed" = "yes"; then
19734 llvm_cv_target_arch="x86"
19735 ARCH="x86"
19736 fi
19737fi
19738
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019739
Reid Spencer9372f152007-07-30 20:13:24 +000019740for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019741do
19742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19743{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19746 echo $ECHO_N "(cached) $ECHO_C" >&6
19747else
19748 cat >conftest.$ac_ext <<_ACEOF
19749/* confdefs.h. */
19750_ACEOF
19751cat confdefs.h >>conftest.$ac_ext
19752cat >>conftest.$ac_ext <<_ACEOF
19753/* end confdefs.h. */
19754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19756#define $ac_func innocuous_$ac_func
19757
19758/* System header to define __stub macros and hopefully few prototypes,
19759 which can conflict with char $ac_func (); below.
19760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19761 <limits.h> exists even on freestanding compilers. */
19762
19763#ifdef __STDC__
19764# include <limits.h>
19765#else
19766# include <assert.h>
19767#endif
19768
19769#undef $ac_func
19770
19771/* Override any GCC internal prototype to avoid an error.
19772 Use char because int might match the return type of a GCC
19773 builtin and then its argument prototype would still apply. */
19774#ifdef __cplusplus
19775extern "C"
19776#endif
19777char $ac_func ();
19778/* The GNU C library defines this for functions which it implements
19779 to always fail with ENOSYS. Some functions are actually named
19780 something starting with __ and the normal name is an alias. */
19781#if defined __stub_$ac_func || defined __stub___$ac_func
19782choke me
19783#endif
19784
19785int
19786main ()
19787{
19788return $ac_func ();
19789 ;
19790 return 0;
19791}
19792_ACEOF
19793rm -f conftest.$ac_objext conftest$ac_exeext
19794if { (ac_try="$ac_link"
19795case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19798esac
19799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_link") 2>conftest.er1
19801 ac_status=$?
19802 grep -v '^ *+' conftest.er1 >conftest.err
19803 rm -f conftest.er1
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } &&
19807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19808 { (case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19811esac
19812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_try") 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest$ac_exeext'
19818 { (case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821esac
19822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_try") 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 eval "$as_ac_var=yes"
19828else
19829 echo "$as_me: failed program was:" >&5
19830sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 eval "$as_ac_var=no"
19833fi
19834
19835rm -f core conftest.err conftest.$ac_objext \
19836 conftest$ac_exeext conftest.$ac_ext
19837fi
19838ac_res=`eval echo '${'$as_ac_var'}'`
19839 { echo "$as_me:$LINENO: result: $ac_res" >&5
19840echo "${ECHO_T}$ac_res" >&6; }
19841if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019842 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019844_ACEOF
19845
19846fi
19847done
19848
19849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19851echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19852if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019854else
19855 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019856if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019857 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019858 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19859 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019860 if test $? -eq 0 ; then
19861 llvm_cv_llvmgcc_sanity="yes"
19862 fi
19863 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019864fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019866{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19867echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019868
19869if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019870 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19871echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019872 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019873 LLVMCC1=$llvmcc1path
19874
Reid Spencer502935f2004-12-22 05:56:56 +000019875 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019876 LLVMCC1PLUS=$llvmcc1pluspath
19877
Reid Spencer502935f2004-12-22 05:56:56 +000019878 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19879 LLVMGCCDIR=$llvmgccdir
19880
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019881 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019882 LLVMGCC_LANGS=$llvmgcclangs
19883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884 { echo "$as_me:$LINENO: result: ok" >&5
19885echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019886fi
19887
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019888SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019889
19890
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000019891SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19892
19893
Reid Spencere9de0912004-08-20 09:03:57 +000019894# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019895# information into substitutions that will end up in Makefile.config.in
19896# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019897if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019898 prefix="/usr/local"
19899fi
Reid Spencere9de0912004-08-20 09:03:57 +000019900eval LLVM_PREFIX="${prefix}";
19901eval LLVM_BINDIR="${prefix}/bin";
19902eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019903eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000019904eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000019905eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019906eval LLVM_INCLUDEDIR="${prefix}/include";
19907eval LLVM_INFODIR="${prefix}/info";
19908eval LLVM_MANDIR="${prefix}/man";
19909LLVM_CONFIGTIME=`date`
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019921# Place the various directores into the config.h file as #defines so that we
19922# can know about the installation paths within LLVM.
19923
Reid Spencere9de0912004-08-20 09:03:57 +000019924cat >>confdefs.h <<_ACEOF
19925#define LLVM_PREFIX "$LLVM_PREFIX"
19926_ACEOF
19927
19928
19929cat >>confdefs.h <<_ACEOF
19930#define LLVM_BINDIR "$LLVM_BINDIR"
19931_ACEOF
19932
19933
19934cat >>confdefs.h <<_ACEOF
19935#define LLVM_LIBDIR "$LLVM_LIBDIR"
19936_ACEOF
19937
19938
19939cat >>confdefs.h <<_ACEOF
19940#define LLVM_DATADIR "$LLVM_DATADIR"
19941_ACEOF
19942
19943
19944cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019945#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019946_ACEOF
19947
19948
19949cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019950#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019951_ACEOF
19952
19953
19954cat >>confdefs.h <<_ACEOF
19955#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19956_ACEOF
19957
19958
19959cat >>confdefs.h <<_ACEOF
19960#define LLVM_INFODIR "$LLVM_INFODIR"
19961_ACEOF
19962
19963
19964cat >>confdefs.h <<_ACEOF
19965#define LLVM_MANDIR "$LLVM_MANDIR"
19966_ACEOF
19967
19968
19969cat >>confdefs.h <<_ACEOF
19970#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19971_ACEOF
19972
19973
Eric Christopher790e11c2007-12-01 00:34:39 +000019974cat >>confdefs.h <<_ACEOF
19975#define LLVM_HOSTTRIPLE "$host"
19976_ACEOF
19977
19978
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019979# Determine which bindings to build.
19980if test "$BINDINGS_TO_BUILD" = auto ; then
19981 BINDINGS_TO_BUILD=""
19982 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19983 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19984 fi
19985fi
19986BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19987
19988
19989# This isn't really configurey, but it avoids having to repeat the list in
19990# other files.
19991ALL_BINDINGS=ocaml
19992
19993
Gordon Henriksenf0915682007-10-02 16:42:22 +000019994# Do any work necessary to ensure that bindings have what they need.
19995binding_prereqs_failed=0
19996for a_binding in $BINDINGS_TO_BUILD ; do
19997 case "$a_binding" in
19998 ocaml)
19999 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020000 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20001echo "$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 +000020002 binding_prereqs_failed=1
20003 fi
20004 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020005 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20006echo "$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 +000020007 binding_prereqs_failed=1
20008 fi
20009 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020010 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20011echo "$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 +000020012 fi
20013 if test "x$with_ocaml_libdir" != xauto ; then
20014 OCAML_LIBDIR=$with_ocaml_libdir
20015
20016 else
20017 ocaml_stdlib="`"$OCAMLC" -where`"
20018 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20019 then
20020 # ocaml stdlib is beneath our prefix; use stdlib
20021 OCAML_LIBDIR=$ocaml_stdlib
20022
20023 else
20024 # ocaml stdlib is outside our prefix; use libdir/ocaml
20025 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20026
20027 fi
20028 fi
20029 ;;
20030 esac
20031done
20032if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020033 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20034echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20035 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020036fi
20037
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020038{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20039echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20040if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020042else
20043 ac_ext=cpp
20044ac_cpp='$CXXCPP $CPPFLAGS'
20045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20048
20049 oldcxxflags="$CXXFLAGS"
20050 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020051 cat >conftest.$ac_ext <<_ACEOF
20052/* confdefs.h. */
20053_ACEOF
20054cat confdefs.h >>conftest.$ac_ext
20055cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020056/* end confdefs.h. */
20057
20058int
20059main ()
20060{
20061
20062 ;
20063 return 0;
20064}
20065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066rm -f conftest.$ac_objext
20067if { (ac_try="$ac_compile"
20068case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071esac
20072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_compile") 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } &&
20080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084esac
20085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest.$ac_objext'
20091 { (case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20094esac
20095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_try") 2>&5
20097 ac_status=$?
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020100 llvm_cv_cxx_visibility_inlines_hidden=yes
20101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020102 echo "$as_me: failed program was:" >&5
20103sed 's/^/| /' conftest.$ac_ext >&5
20104
20105 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020107
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20109 CXXFLAGS="$oldcxxflags"
20110 ac_ext=c
20111ac_cpp='$CPP $CPPFLAGS'
20112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114ac_compiler_gnu=$ac_cv_c_compiler_gnu
20115
20116
20117fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020118{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20119echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020120if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20121 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20122
20123else
20124 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20125
20126fi
20127
Gordon Henriksenf0915682007-10-02 16:42:22 +000020128
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020129if test "$llvm_cv_link_use_r" = "yes" ; then
20130 RPATH="-Wl,-R"
20131else
20132 RPATH="-Wl,-rpath"
20133fi
20134
20135
20136if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20137 RDYNAMIC="-Wl,-export-dynamic"
20138else
20139 RDYNAMIC=""
20140fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020141
20142
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020143
Reid Spencera773bd52006-08-04 18:18:08 +000020144ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020145
Douglas Gregor1555a232009-06-16 20:12:29 +000020146ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20147
20148ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20149
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020150ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20151
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020152ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20153
Chandler Carruth8b67f772009-10-26 01:35:46 +000020154ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020155
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020156
Reid Spencera773bd52006-08-04 18:18:08 +000020157ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020158
20159
Reid Spencerea949cf2006-08-16 00:45:38 +000020160ac_config_files="$ac_config_files llvm.spec"
20161
20162
Reid Spencera773bd52006-08-04 18:18:08 +000020163ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000020164
20165
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020166ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20167
20168
Reid Spencera773bd52006-08-04 18:18:08 +000020169ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020170
20171
Reid Spencera773bd52006-08-04 18:18:08 +000020172ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020173
Reid Spencera773bd52006-08-04 18:18:08 +000020174ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020175
20176
Reid Spencera773bd52006-08-04 18:18:08 +000020177ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020178
20179
Reid Spencera773bd52006-08-04 18:18:08 +000020180ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020181
20182
Reid Spencera773bd52006-08-04 18:18:08 +000020183ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020184
20185
Reid Spencer8b2e1412006-11-17 03:32:33 +000020186ac_config_commands="$ac_config_commands runtime/Makefile"
20187
20188
Reid Spencera773bd52006-08-04 18:18:08 +000020189ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020190
20191
Reid Spencera773bd52006-08-04 18:18:08 +000020192ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020193
20194
Bill Wendlingf24eb392009-01-04 23:12:30 +000020195ac_config_commands="$ac_config_commands unittests/Makefile"
20196
20197
Reid Spencera773bd52006-08-04 18:18:08 +000020198ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020199
20200
Reid Spencera773bd52006-08-04 18:18:08 +000020201ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020202
20203
Reid Spencera773bd52006-08-04 18:18:08 +000020204ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020205
20206
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020207ac_config_commands="$ac_config_commands bindings/Makefile"
20208
20209
20210ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20211
20212
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020213
John Criswell7a73b802003-06-30 21:59:07 +000020214cat >confcache <<\_ACEOF
20215# This file is a shell script that caches the results of configure
20216# tests run on this system so they can be shared between configure
20217# scripts and configure runs, see configure's option --config-cache.
20218# It is not useful on other systems. If it contains results you don't
20219# want to keep, you may remove or edit it.
20220#
20221# config.status only pays attention to the cache file if you give it
20222# the --recheck option to rerun configure.
20223#
John Criswell0c38eaf2003-09-10 15:17:25 +000020224# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020225# loading this file, other *unset* `ac_cv_foo' will be assigned the
20226# following values.
20227
20228_ACEOF
20229
20230# The following way of writing the cache mishandles newlines in values,
20231# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020232# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020233# Ultrix sh set writes to stderr and can't be redirected directly,
20234# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020235(
20236 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20237 eval ac_val=\$$ac_var
20238 case $ac_val in #(
20239 *${as_nl}*)
20240 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20242echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020243 esac
20244 case $ac_var in #(
20245 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020246 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020247 esac ;;
20248 esac
20249 done
20250
John Criswell7a73b802003-06-30 21:59:07 +000020251 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020252 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20253 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020254 # `set' does not quote correctly, so add quotes (double-quote
20255 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020256 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020257 "s/'/'\\\\''/g;
20258 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020259 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020260 *)
20261 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020262 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020263 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020264 esac |
20265 sort
20266) |
John Criswell7a73b802003-06-30 21:59:07 +000020267 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020268 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020269 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020270 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020271 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20272 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020273 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20274 :end' >>confcache
20275if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20276 if test -w "$cache_file"; then
20277 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020278 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20279echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020280 cat confcache >$cache_file
20281 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020282 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20283echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020284 fi
20285fi
20286rm -f confcache
20287
20288test "x$prefix" = xNONE && prefix=$ac_default_prefix
20289# Let make expand exec_prefix.
20290test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20291
John Criswell7a73b802003-06-30 21:59:07 +000020292DEFS=-DHAVE_CONFIG_H
20293
John Criswell0c38eaf2003-09-10 15:17:25 +000020294ac_libobjs=
20295ac_ltlibobjs=
20296for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20297 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020299 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20301 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020302 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20303 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020304done
20305LIBOBJS=$ac_libobjs
20306
20307LTLIBOBJS=$ac_ltlibobjs
20308
20309
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020310if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020311 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20312Usually this means the macro was only invoked conditionally." >&5
20313echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20314Usually this means the macro was only invoked conditionally." >&2;}
20315 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020316fi
20317if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020318 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20319Usually this means the macro was only invoked conditionally." >&5
20320echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20321Usually this means the macro was only invoked conditionally." >&2;}
20322 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020323fi
John Criswell7a73b802003-06-30 21:59:07 +000020324
20325: ${CONFIG_STATUS=./config.status}
20326ac_clean_files_save=$ac_clean_files
20327ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020328{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20329echo "$as_me: creating $CONFIG_STATUS" >&6;}
20330cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020331#! $SHELL
20332# Generated by $as_me.
20333# Run this file to recreate the current configuration.
20334# Compiler output produced by configure, useful for debugging
20335# configure, is in config.log if it exists.
20336
20337debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020338ac_cs_recheck=false
20339ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020340SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020341_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020343cat >>$CONFIG_STATUS <<\_ACEOF
20344## --------------------- ##
20345## M4sh Initialization. ##
20346## --------------------- ##
20347
20348# Be Bourne compatible
20349if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020350 emulate sh
20351 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020352 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020353 # is contrary to our usage. Disable this feature.
20354 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020355 setopt NO_GLOB_SUBST
20356else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020357 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020358fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020359BIN_SH=xpg4; export BIN_SH # for Tru64
20360DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020361
John Criswell7a73b802003-06-30 21:59:07 +000020362
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020363# PATH needs CR
20364# Avoid depending upon Character Ranges.
20365as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20366as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20367as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20368as_cr_digits='0123456789'
20369as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020370
20371# The user is always right.
20372if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020373 echo "#! /bin/sh" >conf$$.sh
20374 echo "exit 0" >>conf$$.sh
20375 chmod +x conf$$.sh
20376 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20377 PATH_SEPARATOR=';'
20378 else
20379 PATH_SEPARATOR=:
20380 fi
20381 rm -f conf$$.sh
20382fi
20383
20384# Support unset when possible.
20385if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20386 as_unset=unset
20387else
20388 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020389fi
John Criswell7a73b802003-06-30 21:59:07 +000020390
Reid Spencera773bd52006-08-04 18:18:08 +000020391
20392# IFS
20393# We need space, tab and new line, in precisely that order. Quoting is
20394# there to prevent editors from complaining about space-tab.
20395# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20396# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020397as_nl='
20398'
Reid Spencera773bd52006-08-04 18:18:08 +000020399IFS=" "" $as_nl"
20400
20401# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020402case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020403 *[\\/]* ) as_myself=$0 ;;
20404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020405for as_dir in $PATH
20406do
20407 IFS=$as_save_IFS
20408 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020409 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20410done
Reid Spencera773bd52006-08-04 18:18:08 +000020411IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020412
Reid Spencera773bd52006-08-04 18:18:08 +000020413 ;;
20414esac
20415# We did not find ourselves, most probably we were run as `sh COMMAND'
20416# in which case we are not to be found in the path.
20417if test "x$as_myself" = x; then
20418 as_myself=$0
20419fi
20420if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020421 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20422 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020423fi
20424
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020425# Work around bugs in pre-3.0 UWIN ksh.
20426for as_var in ENV MAIL MAILPATH
20427do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020428done
20429PS1='$ '
20430PS2='> '
20431PS4='+ '
20432
20433# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434for as_var in \
20435 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20436 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20437 LC_TELEPHONE LC_TIME
20438do
20439 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20440 eval $as_var=C; export $as_var
20441 else
20442 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020443 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020444done
Torok Edwin871384f2010-01-26 08:50:50 +000020445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020446# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020447if expr a : '\(a\)' >/dev/null 2>&1 &&
20448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20449 as_expr=expr
20450else
20451 as_expr=false
20452fi
20453
20454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20455 as_basename=basename
20456else
20457 as_basename=false
20458fi
20459
20460
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020461# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020462as_me=`$as_basename -- "$0" ||
20463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20464 X"$0" : 'X\(//\)$' \| \
20465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020466echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020467 sed '/^.*\/\([^/][^/]*\)\/*$/{
20468 s//\1/
20469 q
20470 }
20471 /^X\/\(\/\/\)$/{
20472 s//\1/
20473 q
20474 }
20475 /^X\/\(\/\).*/{
20476 s//\1/
20477 q
20478 }
20479 s/.*/./; q'`
20480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020481# CDPATH.
20482$as_unset CDPATH
20483
20484
20485
20486 as_lineno_1=$LINENO
20487 as_lineno_2=$LINENO
20488 test "x$as_lineno_1" != "x$as_lineno_2" &&
20489 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20490
20491 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20492 # uniformly replaced by the line number. The first 'sed' inserts a
20493 # line-number line after each line using $LINENO; the second 'sed'
20494 # does the real work. The second script uses 'N' to pair each
20495 # line-number line with the line containing $LINENO, and appends
20496 # trailing '-' during substitution so that $LINENO is not a special
20497 # case at line end.
20498 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20499 # scripts with optimization help from Paolo Bonzini. Blame Lee
20500 # E. McMahon (1931-1989) for sed's syntax. :-)
20501 sed -n '
20502 p
20503 /[$]LINENO/=
20504 ' <$as_myself |
20505 sed '
20506 s/[$]LINENO.*/&-/
20507 t lineno
20508 b
20509 :lineno
20510 N
20511 :loop
20512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20513 t loop
20514 s/-\n.*//
20515 ' >$as_me.lineno &&
20516 chmod +x "$as_me.lineno" ||
20517 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20518 { (exit 1); exit 1; }; }
20519
20520 # Don't try to exec as it changes $[0], causing all sort of problems
20521 # (the dirname of $[0] is not the place where we might find the
20522 # original and so on. Autoconf is especially sensitive to this).
20523 . "./$as_me.lineno"
20524 # Exit status is that of the last command.
20525 exit
20526}
20527
20528
20529if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20530 as_dirname=dirname
20531else
20532 as_dirname=false
20533fi
Reid Spencera773bd52006-08-04 18:18:08 +000020534
20535ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020537-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020538 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020540 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020541 esac;;
20542*)
20543 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020544esac
20545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020546if expr a : '\(a\)' >/dev/null 2>&1 &&
20547 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20548 as_expr=expr
20549else
20550 as_expr=false
20551fi
20552
John Criswell7a73b802003-06-30 21:59:07 +000020553rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020554if test -d conf$$.dir; then
20555 rm -f conf$$.dir/conf$$.file
20556else
20557 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020558 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020560echo >conf$$.file
20561if ln -s conf$$.file conf$$ 2>/dev/null; then
20562 as_ln_s='ln -s'
20563 # ... but there are two gotchas:
20564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20566 # In both cases, we have to default to `cp -p'.
20567 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020568 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569elif ln conf$$.file conf$$ 2>/dev/null; then
20570 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020571else
20572 as_ln_s='cp -p'
20573fi
Reid Spencera773bd52006-08-04 18:18:08 +000020574rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20575rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020576
John Criswell0c38eaf2003-09-10 15:17:25 +000020577if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020579else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020580 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020581 as_mkdir_p=false
20582fi
20583
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020584# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20585# systems may use methods other than mode bits to determine executability.
20586cat >conf$$.file <<_ASEOF
20587#! /bin/sh
20588exit 0
20589_ASEOF
20590chmod +x conf$$.file
20591if test -x conf$$.file >/dev/null 2>&1; then
20592 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020593else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020594 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020596rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020597
20598# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020599as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020600
20601# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020602as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020603
20604
John Criswell7a73b802003-06-30 21:59:07 +000020605exec 6>&1
20606
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020607# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020608# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020609# values after options handling.
20610ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020611This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020612generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020613
20614 CONFIG_FILES = $CONFIG_FILES
20615 CONFIG_HEADERS = $CONFIG_HEADERS
20616 CONFIG_LINKS = $CONFIG_LINKS
20617 CONFIG_COMMANDS = $CONFIG_COMMANDS
20618 $ $0 $@
20619
Reid Spencera773bd52006-08-04 18:18:08 +000020620on `(hostname || uname -n) 2>/dev/null | sed 1q`
20621"
20622
John Criswell7a73b802003-06-30 21:59:07 +000020623_ACEOF
20624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020625cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020626# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020627config_files="$ac_config_files"
20628config_headers="$ac_config_headers"
20629config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020630
Reid Spencera773bd52006-08-04 18:18:08 +000020631_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020633cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020634ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020635\`$as_me' instantiates files from templates according to the
20636current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020637
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020638Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020639
20640 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020641 -V, --version print version number, then exit
20642 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020643 -d, --debug don't remove temporary files
20644 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020645 --file=FILE[:TEMPLATE]
20646 instantiate the configuration file FILE
20647 --header=FILE[:TEMPLATE]
20648 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020649
20650Configuration files:
20651$config_files
20652
20653Configuration headers:
20654$config_headers
20655
John Criswellc764fbc2003-09-06 15:17:13 +000020656Configuration commands:
20657$config_commands
20658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020659Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020660
Reid Spencera773bd52006-08-04 18:18:08 +000020661_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020662cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020663ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000020664llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020665configured by $0, generated by GNU Autoconf 2.60,
20666 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020668Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020669This config.status script is free software; the Free Software Foundation
20670gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020671
20672ac_pwd='$ac_pwd'
20673srcdir='$srcdir'
20674INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020675_ACEOF
20676
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020677cat >>$CONFIG_STATUS <<\_ACEOF
20678# If no file are specified by the user, then we need to provide default
20679# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020680ac_need_defaults=:
20681while test $# != 0
20682do
20683 case $1 in
20684 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020685 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20686 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020687 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020689 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020690 ac_option=$1
20691 ac_optarg=$2
20692 ac_shift=shift
20693 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020694 esac
20695
John Criswell0c38eaf2003-09-10 15:17:25 +000020696 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020697 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20699 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020700 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020701 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020702 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020703 debug=: ;;
20704 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020705 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020706 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020707 ac_need_defaults=false;;
20708 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020709 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020710 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020711 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020712 --he | --h)
20713 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020714 { echo "$as_me: error: ambiguous option: $1
20715Try \`$0 --help' for more information." >&2
20716 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020717 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020718 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20721 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020722
20723 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020724 -*) { echo "$as_me: error: unrecognized option: $1
20725Try \`$0 --help' for more information." >&2
20726 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020728 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020729 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020730
20731 esac
20732 shift
20733done
20734
John Criswell0c38eaf2003-09-10 15:17:25 +000020735ac_configure_extra_args=
20736
20737if $ac_cs_silent; then
20738 exec 6>/dev/null
20739 ac_configure_extra_args="$ac_configure_extra_args --silent"
20740fi
20741
20742_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020743cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020744if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020745 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20746 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020747 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020749fi
20750
John Criswell7a73b802003-06-30 21:59:07 +000020751_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020752cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020753exec 5>>config.log
20754{
20755 echo
20756 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20757## Running $as_me. ##
20758_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020759 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020760} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020761
Reid Spencera773bd52006-08-04 18:18:08 +000020762_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020763cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020764#
Reid Spencera773bd52006-08-04 18:18:08 +000020765# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020766#
Reid Spencerc0682832005-02-24 19:05:19 +000020767llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020768
20769_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020771cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020772
20773# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020774for ac_config_target in $ac_config_targets
20775do
Reid Spencera773bd52006-08-04 18:18:08 +000020776 case $ac_config_target in
20777 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020778 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20779 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020780 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020781 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020782 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020783 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020784 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020785 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020786 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020787 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20788 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20789 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20790 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20791 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20792 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020793 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020794 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20795 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020796 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020797 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20798 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20799 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020800 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20801 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020803 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20804echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20805 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020806 esac
20807done
20808
Reid Spencera773bd52006-08-04 18:18:08 +000020809
John Criswell7a73b802003-06-30 21:59:07 +000020810# If the user did not use the arguments to specify the items to instantiate,
20811# then the envvar interface is used. Set only those that are not.
20812# We use the long form for the default assignment because of an extremely
20813# bizarre bug on SunOS 4.1.3.
20814if $ac_need_defaults; then
20815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020818fi
20819
John Criswell0c38eaf2003-09-10 15:17:25 +000020820# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020821# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020822# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020823# Hook for its removal unless debugging.
20824# Note that there is a small window in which the directory will not be cleaned:
20825# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020826$debug ||
20827{
Reid Spencera773bd52006-08-04 18:18:08 +000020828 tmp=
20829 trap 'exit_status=$?
20830 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20831' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020832 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020833}
John Criswell7a73b802003-06-30 21:59:07 +000020834# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020835
John Criswell7a73b802003-06-30 21:59:07 +000020836{
Reid Spencera773bd52006-08-04 18:18:08 +000020837 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020838 test -n "$tmp" && test -d "$tmp"
20839} ||
20840{
Reid Spencera773bd52006-08-04 18:18:08 +000020841 tmp=./conf$$-$RANDOM
20842 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020843} ||
20844{
20845 echo "$me: cannot create a temporary directory in ." >&2
20846 { (exit 1); exit 1; }
20847}
John Criswell7a73b802003-06-30 21:59:07 +000020848
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020849#
20850# Set up the sed scripts for CONFIG_FILES section.
20851#
20852
20853# No need to generate the scripts if there are no CONFIG_FILES.
20854# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020855if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020856
20857_ACEOF
20858
Reid Spencera773bd52006-08-04 18:18:08 +000020859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860
Reid Spencera773bd52006-08-04 18:18:08 +000020861ac_delim='%!_!# '
20862for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020863 cat >conf$$subs.sed <<_ACEOF
20864SHELL!$SHELL$ac_delim
20865PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20866PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20867PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20868PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20869PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20870PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20871exec_prefix!$exec_prefix$ac_delim
20872prefix!$prefix$ac_delim
20873program_transform_name!$program_transform_name$ac_delim
20874bindir!$bindir$ac_delim
20875sbindir!$sbindir$ac_delim
20876libexecdir!$libexecdir$ac_delim
20877datarootdir!$datarootdir$ac_delim
20878datadir!$datadir$ac_delim
20879sysconfdir!$sysconfdir$ac_delim
20880sharedstatedir!$sharedstatedir$ac_delim
20881localstatedir!$localstatedir$ac_delim
20882includedir!$includedir$ac_delim
20883oldincludedir!$oldincludedir$ac_delim
20884docdir!$docdir$ac_delim
20885infodir!$infodir$ac_delim
20886htmldir!$htmldir$ac_delim
20887dvidir!$dvidir$ac_delim
20888pdfdir!$pdfdir$ac_delim
20889psdir!$psdir$ac_delim
20890libdir!$libdir$ac_delim
20891localedir!$localedir$ac_delim
20892mandir!$mandir$ac_delim
20893DEFS!$DEFS$ac_delim
20894ECHO_C!$ECHO_C$ac_delim
20895ECHO_N!$ECHO_N$ac_delim
20896ECHO_T!$ECHO_T$ac_delim
20897LIBS!$LIBS$ac_delim
20898build_alias!$build_alias$ac_delim
20899host_alias!$host_alias$ac_delim
20900target_alias!$target_alias$ac_delim
20901LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20902subdirs!$subdirs$ac_delim
20903build!$build$ac_delim
20904build_cpu!$build_cpu$ac_delim
20905build_vendor!$build_vendor$ac_delim
20906build_os!$build_os$ac_delim
20907host!$host$ac_delim
20908host_cpu!$host_cpu$ac_delim
20909host_vendor!$host_vendor$ac_delim
20910host_os!$host_os$ac_delim
20911target!$target$ac_delim
20912target_cpu!$target_cpu$ac_delim
20913target_vendor!$target_vendor$ac_delim
20914target_os!$target_os$ac_delim
20915OS!$OS$ac_delim
20916HOST_OS!$HOST_OS$ac_delim
20917TARGET_OS!$TARGET_OS$ac_delim
20918LINKALL!$LINKALL$ac_delim
20919NOLINKALL!$NOLINKALL$ac_delim
20920LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20921LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20922ARCH!$ARCH$ac_delim
20923ENDIAN!$ENDIAN$ac_delim
20924CC!$CC$ac_delim
20925CFLAGS!$CFLAGS$ac_delim
20926LDFLAGS!$LDFLAGS$ac_delim
20927CPPFLAGS!$CPPFLAGS$ac_delim
20928ac_ct_CC!$ac_ct_CC$ac_delim
20929EXEEXT!$EXEEXT$ac_delim
20930OBJEXT!$OBJEXT$ac_delim
20931CPP!$CPP$ac_delim
20932GREP!$GREP$ac_delim
20933EGREP!$EGREP$ac_delim
20934LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20935BUILD_CC!$BUILD_CC$ac_delim
20936BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20937BUILD_CXX!$BUILD_CXX$ac_delim
20938CVSBUILD!$CVSBUILD$ac_delim
20939ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20940ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20941DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20942ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20943EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20944DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20945DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20946JIT!$JIT$ac_delim
20947TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20948ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20949ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20950ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020951ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020952TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20953LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20954LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20955LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20956LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20957ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020958CLANGPATH!$CLANGPATH$ac_delim
20959CLANGXXPATH!$CLANGXXPATH$ac_delim
20960ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020961_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020963 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020964 break
20965 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020966 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20967echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20968 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020969 else
20970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020971 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020972done
20973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020974ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20975if test -n "$ac_eof"; then
20976 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20977 ac_eof=`expr $ac_eof + 1`
20978fi
20979
20980cat >>$CONFIG_STATUS <<_ACEOF
20981cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020983_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984sed '
20985s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20986s/^/s,@/; s/!/@,|#_!!_#|/
20987:n
20988t n
20989s/'"$ac_delim"'$/,g/; t
20990s/$/\\/; p
20991N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20992' >>$CONFIG_STATUS <conf$$subs.sed
20993rm -f conf$$subs.sed
20994cat >>$CONFIG_STATUS <<_ACEOF
20995CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000020996_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020997
20998
20999ac_delim='%!_!# '
21000for ac_last_try in false false false false false :; do
21001 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021002OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021003EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21004BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21005ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021006ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21007CXX!$CXX$ac_delim
21008CXXFLAGS!$CXXFLAGS$ac_delim
21009ac_ct_CXX!$ac_ct_CXX$ac_delim
21010NM!$NM$ac_delim
21011ifGNUmake!$ifGNUmake$ac_delim
21012LN_S!$LN_S$ac_delim
21013CMP!$CMP$ac_delim
21014CP!$CP$ac_delim
21015DATE!$DATE$ac_delim
21016FIND!$FIND$ac_delim
21017MKDIR!$MKDIR$ac_delim
21018MV!$MV$ac_delim
21019RANLIB!$RANLIB$ac_delim
21020AR!$AR$ac_delim
21021RM!$RM$ac_delim
21022SED!$SED$ac_delim
21023TAR!$TAR$ac_delim
21024BINPWD!$BINPWD$ac_delim
21025GRAPHVIZ!$GRAPHVIZ$ac_delim
21026DOT!$DOT$ac_delim
21027FDP!$FDP$ac_delim
21028NEATO!$NEATO$ac_delim
21029TWOPI!$TWOPI$ac_delim
21030CIRCO!$CIRCO$ac_delim
21031GV!$GV$ac_delim
21032DOTTY!$DOTTY$ac_delim
21033PERL!$PERL$ac_delim
21034HAVE_PERL!$HAVE_PERL$ac_delim
21035INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21036INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21037INSTALL_DATA!$INSTALL_DATA$ac_delim
21038BZIP2!$BZIP2$ac_delim
21039DOXYGEN!$DOXYGEN$ac_delim
21040GROFF!$GROFF$ac_delim
21041GZIP!$GZIP$ac_delim
21042POD2HTML!$POD2HTML$ac_delim
21043POD2MAN!$POD2MAN$ac_delim
21044RUNTEST!$RUNTEST$ac_delim
21045TCLSH!$TCLSH$ac_delim
21046ZIP!$ZIP$ac_delim
21047OCAMLC!$OCAMLC$ac_delim
21048OCAMLOPT!$OCAMLOPT$ac_delim
21049OCAMLDEP!$OCAMLDEP$ac_delim
21050OCAMLDOC!$OCAMLDOC$ac_delim
21051GAS!$GAS$ac_delim
21052INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21053INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21054CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21055CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21056LIBADD_DL!$LIBADD_DL$ac_delim
21057LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21058LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21059LLVMGCC!$LLVMGCC$ac_delim
21060LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021061LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021062NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21063NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21064USE_UDIS86!$USE_UDIS86$ac_delim
21065USE_OPROFILE!$USE_OPROFILE$ac_delim
21066HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21067HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21068MMAP_FILE!$MMAP_FILE$ac_delim
21069LLVMCC1!$LLVMCC1$ac_delim
21070LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21071LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021072LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21073SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021074SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021075LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21076LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21077LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21078LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21079LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21080LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21081LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21082LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21083LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21084LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21085BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21086ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21087OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21088ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21089RPATH!$RPATH$ac_delim
21090RDYNAMIC!$RDYNAMIC$ac_delim
21091LIBOBJS!$LIBOBJS$ac_delim
21092LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021093_ACEOF
21094
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021095 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021096 break
21097 elif $ac_last_try; then
21098 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21099echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21100 { (exit 1); exit 1; }; }
21101 else
21102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21103 fi
21104done
21105
21106ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21107if test -n "$ac_eof"; then
21108 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21109 ac_eof=`expr $ac_eof + 1`
21110fi
21111
21112cat >>$CONFIG_STATUS <<_ACEOF
21113cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21114/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21115_ACEOF
21116sed '
21117s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21118s/^/s,@/; s/!/@,|#_!!_#|/
21119:n
21120t n
21121s/'"$ac_delim"'$/,g/; t
21122s/$/\\/; p
21123N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21124' >>$CONFIG_STATUS <conf$$subs.sed
21125rm -f conf$$subs.sed
21126cat >>$CONFIG_STATUS <<_ACEOF
21127:end
21128s/|#_!!_#|//g
21129CEOF$ac_eof
21130_ACEOF
21131
21132
Reid Spencera773bd52006-08-04 18:18:08 +000021133# VPATH may cause trouble with some makes, so we remove $(srcdir),
21134# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21135# trailing colons and then remove the whole line if VPATH becomes empty
21136# (actually we leave an empty line to preserve line numbers).
21137if test "x$srcdir" = x.; then
21138 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21139s/:*\$(srcdir):*/:/
21140s/:*\${srcdir}:*/:/
21141s/:*@srcdir@:*/:/
21142s/^\([^=]*=[ ]*\):*/\1/
21143s/:*$//
21144s/^[^=]*=[ ]*$//
21145}'
21146fi
21147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021149fi # test -n "$CONFIG_FILES"
21150
Reid Spencera773bd52006-08-04 18:18:08 +000021151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021152for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021153do
21154 case $ac_tag in
21155 :[FHLC]) ac_mode=$ac_tag; continue;;
21156 esac
21157 case $ac_mode$ac_tag in
21158 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021159 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21160echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21161 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021162 :[FH]-) ac_tag=-:-;;
21163 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21164 esac
21165 ac_save_IFS=$IFS
21166 IFS=:
21167 set x $ac_tag
21168 IFS=$ac_save_IFS
21169 shift
21170 ac_file=$1
21171 shift
21172
21173 case $ac_mode in
21174 :L) ac_source=$1;;
21175 :[FH])
21176 ac_file_inputs=
21177 for ac_f
21178 do
21179 case $ac_f in
21180 -) ac_f="$tmp/stdin";;
21181 *) # Look for the file first in the build tree, then in the source tree
21182 # (if the path is not absolute). The absolute path cannot be DOS-style,
21183 # because $ac_f cannot contain `:'.
21184 test -f "$ac_f" ||
21185 case $ac_f in
21186 [\\/$]*) false;;
21187 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21188 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21190echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21191 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021192 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021193 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021194 done
21195
21196 # Let's still pretend it is `configure' which instantiates (i.e., don't
21197 # use $as_me), people would be surprised to read:
21198 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021199 configure_input="Generated from "`IFS=:
21200 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021201 if test x"$ac_file" != x-; then
21202 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021203 { echo "$as_me:$LINENO: creating $ac_file" >&5
21204echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021205 fi
21206
21207 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021208 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021209 esac
21210 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021211 esac
21212
Reid Spencera773bd52006-08-04 18:18:08 +000021213 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021214$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021215 X"$ac_file" : 'X\(//\)[^/]' \| \
21216 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021217 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021218echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21220 s//\1/
21221 q
21222 }
21223 /^X\(\/\/\)[^/].*/{
21224 s//\1/
21225 q
21226 }
21227 /^X\(\/\/\)$/{
21228 s//\1/
21229 q
21230 }
21231 /^X\(\/\).*/{
21232 s//\1/
21233 q
21234 }
21235 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021236 { as_dir="$ac_dir"
21237 case $as_dir in #(
21238 -*) as_dir=./$as_dir;;
21239 esac
21240 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21241 as_dirs=
21242 while :; do
21243 case $as_dir in #(
21244 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21245 *) as_qdir=$as_dir;;
21246 esac
21247 as_dirs="'$as_qdir' $as_dirs"
21248 as_dir=`$as_dirname -- "$as_dir" ||
21249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21250 X"$as_dir" : 'X\(//\)[^/]' \| \
21251 X"$as_dir" : 'X\(//\)$' \| \
21252 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21253echo X"$as_dir" |
21254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21255 s//\1/
21256 q
21257 }
21258 /^X\(\/\/\)[^/].*/{
21259 s//\1/
21260 q
21261 }
21262 /^X\(\/\/\)$/{
21263 s//\1/
21264 q
21265 }
21266 /^X\(\/\).*/{
21267 s//\1/
21268 q
21269 }
21270 s/.*/./; q'`
21271 test -d "$as_dir" && break
21272 done
21273 test -z "$as_dirs" || eval "mkdir $as_dirs"
21274 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21275echo "$as_me: error: cannot create directory $as_dir" >&2;}
21276 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021277 ac_builddir=.
21278
Reid Spencera773bd52006-08-04 18:18:08 +000021279case "$ac_dir" in
21280.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21281*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021283 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021284 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021285 case $ac_top_builddir_sub in
21286 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21287 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21288 esac ;;
21289esac
21290ac_abs_top_builddir=$ac_pwd
21291ac_abs_builddir=$ac_pwd$ac_dir_suffix
21292# for backward compatibility:
21293ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021294
21295case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021296 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021297 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021298 ac_top_srcdir=$ac_top_builddir_sub
21299 ac_abs_top_srcdir=$ac_pwd ;;
21300 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021301 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021302 ac_top_srcdir=$srcdir
21303 ac_abs_top_srcdir=$srcdir ;;
21304 *) # Relative name.
21305 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21306 ac_top_srcdir=$ac_top_build_prefix$srcdir
21307 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021308esac
Reid Spencera773bd52006-08-04 18:18:08 +000021309ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021310
John Criswell7a73b802003-06-30 21:59:07 +000021311
Reid Spencera773bd52006-08-04 18:18:08 +000021312 case $ac_mode in
21313 :F)
21314 #
21315 # CONFIG_FILE
21316 #
John Criswell7a73b802003-06-30 21:59:07 +000021317
21318 case $INSTALL in
21319 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021320 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021321 esac
John Criswell7a73b802003-06-30 21:59:07 +000021322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021324cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021325# If the template does not know about datarootdir, expand it.
21326# FIXME: This hack should be removed a few years after 2.60.
21327ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328
21329case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021330 p
21331 q
21332}
21333/@datadir@/p
21334/@docdir@/p
21335/@infodir@/p
21336/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021337/@mandir@/p
21338' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021339*datarootdir*) ac_datarootdir_seen=yes;;
21340*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021341 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21342echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021343_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021345 ac_datarootdir_hack='
21346 s&@datadir@&$datadir&g
21347 s&@docdir@&$docdir&g
21348 s&@infodir@&$infodir&g
21349 s&@localedir@&$localedir&g
21350 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021351 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021352esac
21353_ACEOF
21354
21355# Neutralize VPATH when `$srcdir' = `.'.
21356# Shell code in configure.ac might set extrasub.
21357# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021358cat >>$CONFIG_STATUS <<_ACEOF
21359 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021360$extrasub
21361_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021362cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021363:t
21364/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021365s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021366s&@top_builddir@&$ac_top_builddir_sub&;t t
21367s&@srcdir@&$ac_srcdir&;t t
21368s&@abs_srcdir@&$ac_abs_srcdir&;t t
21369s&@top_srcdir@&$ac_top_srcdir&;t t
21370s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21371s&@builddir@&$ac_builddir&;t t
21372s&@abs_builddir@&$ac_abs_builddir&;t t
21373s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21374s&@INSTALL@&$ac_INSTALL&;t t
21375$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021376" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021377
Reid Spencera773bd52006-08-04 18:18:08 +000021378test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21379 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21380 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021381 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021382which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021384which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021385
Reid Spencera773bd52006-08-04 18:18:08 +000021386 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021387 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388 -) cat "$tmp/out"; rm -f "$tmp/out";;
21389 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21390 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021391 ;;
21392 :H)
21393 #
21394 # CONFIG_HEADER
21395 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021396_ACEOF
21397
21398# Transform confdefs.h into a sed script `conftest.defines', that
21399# substitutes the proper values into config.h.in to produce config.h.
21400rm -f conftest.defines conftest.tail
21401# First, append a space to every undef/define line, to ease matching.
21402echo 's/$/ /' >conftest.defines
21403# Then, protect against being on the right side of a sed subst, or in
21404# an unquoted here document, in config.status. If some macros were
21405# called several times there might be several #defines for the same
21406# symbol, which is useless. But do not sort them, since the last
21407# AC_DEFINE must be honored.
21408ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21409# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21410# NAME is the cpp macro being defined, VALUE is the value it is being given.
21411# PARAMS is the parameter list in the macro definition--in most cases, it's
21412# just an empty string.
21413ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21414ac_dB='\\)[ (].*,\\1define\\2'
21415ac_dC=' '
21416ac_dD=' ,'
21417
21418uniq confdefs.h |
21419 sed -n '
21420 t rset
21421 :rset
21422 s/^[ ]*#[ ]*define[ ][ ]*//
21423 t ok
21424 d
21425 :ok
21426 s/[\\&,]/\\&/g
21427 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21428 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21429 ' >>conftest.defines
21430
21431# Remove the space that was appended to ease matching.
21432# Then replace #undef with comments. This is necessary, for
21433# example, in the case of _POSIX_SOURCE, which is predefined and required
21434# on some systems where configure will not decide to define it.
21435# (The regexp can be short, since the line contains either #define or #undef.)
21436echo 's/ $//
21437s,^[ #]*u.*,/* & */,' >>conftest.defines
21438
21439# Break up conftest.defines:
21440ac_max_sed_lines=50
21441
21442# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21443# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21444# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21445# et cetera.
21446ac_in='$ac_file_inputs'
21447ac_out='"$tmp/out1"'
21448ac_nxt='"$tmp/out2"'
21449
21450while :
21451do
21452 # Write a here document:
21453 cat >>$CONFIG_STATUS <<_ACEOF
21454 # First, check the format of the line:
21455 cat >"\$tmp/defines.sed" <<\\CEOF
21456/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21457/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21458b
21459:def
21460_ACEOF
21461 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21462 echo 'CEOF
21463 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21464 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21465 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21466 grep . conftest.tail >/dev/null || break
21467 rm -f conftest.defines
21468 mv conftest.tail conftest.defines
21469done
21470rm -f conftest.defines conftest.tail
21471
21472echo "ac_result=$ac_in" >>$CONFIG_STATUS
21473cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021474 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021475 echo "/* $configure_input */" >"$tmp/config.h"
21476 cat "$ac_result" >>"$tmp/config.h"
21477 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21478 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21479echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021480 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481 rm -f $ac_file
21482 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021483 fi
21484 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021485 echo "/* $configure_input */"
21486 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021487 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021488 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021489 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021491 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21492echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021493 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021494 esac
John Criswell7a73b802003-06-30 21:59:07 +000021495
Reid Spencera773bd52006-08-04 18:18:08 +000021496
21497 case $ac_file$ac_mode in
21498 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021499 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021500 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021501 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021502 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021503 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021504 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021505 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021506 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021507 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021508 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021510 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021512 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021514 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021516 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021518 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021520 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021522 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021523 ${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 +000021524
21525 esac
21526done # for ac_tag
21527
John Criswell7a73b802003-06-30 21:59:07 +000021528
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021529{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021530_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021531chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021532ac_clean_files=$ac_clean_files_save
21533
21534
21535# configure is writing to config.log, and then calls config.status.
21536# config.status does its own redirection, appending to config.log.
21537# Unfortunately, on DOS this fails, as config.log is still kept open
21538# by configure, so config.status won't be able to write to it; its
21539# output is simply discarded. So we exec the FD to /dev/null,
21540# effectively closing config.log, so it can be properly (re)opened and
21541# appended to by config.status. When coming back to configure, we
21542# need to make the FD available again.
21543if test "$no_create" != yes; then
21544 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021545 ac_config_status_args=
21546 test "$silent" = yes &&
21547 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021548 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021549 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021550 exec 5>>config.log
21551 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21552 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021554fi
21555
John Criswell12399a12003-09-30 15:55:44 +000021556#
21557# CONFIG_SUBDIRS section.
21558#
21559if test "$no_recursion" != yes; then
21560
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021561 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021562 ac_sub_configure_args=
21563 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021564 eval "set x $ac_configure_args"
21565 shift
21566 for ac_arg
21567 do
John Criswell12399a12003-09-30 15:55:44 +000021568 if test -n "$ac_prev"; then
21569 ac_prev=
21570 continue
21571 fi
21572 case $ac_arg in
21573 -cache-file | --cache-file | --cache-fil | --cache-fi \
21574 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21575 ac_prev=cache_file ;;
21576 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21577 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21578 | --c=*)
21579 ;;
21580 --config-cache | -C)
21581 ;;
21582 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21583 ac_prev=srcdir ;;
21584 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21585 ;;
21586 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21587 ac_prev=prefix ;;
21588 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21589 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021590 *)
21591 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021593 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021594 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021595 esac
21596 done
21597
21598 # Always prepend --prefix to ensure using the same prefix
21599 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021600 ac_arg="--prefix=$prefix"
21601 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021602 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021603 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021604 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021605
21606 ac_popdir=`pwd`
21607 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21608
21609 # Do not complain, so a configure script can configure whichever
21610 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021611 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021612
Reid Spencera773bd52006-08-04 18:18:08 +000021613 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021614 echo "$as_me:$LINENO: $ac_msg" >&5
21615 echo "$ac_msg" >&6
21616 { as_dir="$ac_dir"
21617 case $as_dir in #(
21618 -*) as_dir=./$as_dir;;
21619 esac
21620 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21621 as_dirs=
21622 while :; do
21623 case $as_dir in #(
21624 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21625 *) as_qdir=$as_dir;;
21626 esac
21627 as_dirs="'$as_qdir' $as_dirs"
21628 as_dir=`$as_dirname -- "$as_dir" ||
21629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21630 X"$as_dir" : 'X\(//\)[^/]' \| \
21631 X"$as_dir" : 'X\(//\)$' \| \
21632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21633echo X"$as_dir" |
21634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21635 s//\1/
21636 q
21637 }
21638 /^X\(\/\/\)[^/].*/{
21639 s//\1/
21640 q
21641 }
21642 /^X\(\/\/\)$/{
21643 s//\1/
21644 q
21645 }
21646 /^X\(\/\).*/{
21647 s//\1/
21648 q
21649 }
21650 s/.*/./; q'`
21651 test -d "$as_dir" && break
21652 done
21653 test -z "$as_dirs" || eval "mkdir $as_dirs"
21654 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21655echo "$as_me: error: cannot create directory $as_dir" >&2;}
21656 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021657 ac_builddir=.
21658
Reid Spencera773bd52006-08-04 18:18:08 +000021659case "$ac_dir" in
21660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21661*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021663 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021665 case $ac_top_builddir_sub in
21666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21668 esac ;;
21669esac
21670ac_abs_top_builddir=$ac_pwd
21671ac_abs_builddir=$ac_pwd$ac_dir_suffix
21672# for backward compatibility:
21673ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021674
21675case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021676 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021677 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021678 ac_top_srcdir=$ac_top_builddir_sub
21679 ac_abs_top_srcdir=$ac_pwd ;;
21680 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021681 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021682 ac_top_srcdir=$srcdir
21683 ac_abs_top_srcdir=$srcdir ;;
21684 *) # Relative name.
21685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21686 ac_top_srcdir=$ac_top_build_prefix$srcdir
21687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021688esac
Reid Spencera773bd52006-08-04 18:18:08 +000021689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021690
21691
Reid Spencera773bd52006-08-04 18:18:08 +000021692 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021693
21694 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021695 if test -f "$ac_srcdir/configure.gnu"; then
21696 ac_sub_configure=$ac_srcdir/configure.gnu
21697 elif test -f "$ac_srcdir/configure"; then
21698 ac_sub_configure=$ac_srcdir/configure
21699 elif test -f "$ac_srcdir/configure.in"; then
21700 # This should be Cygnus configure.
21701 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021702 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021703 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21704echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021705 ac_sub_configure=
21706 fi
21707
21708 # The recursion is here.
21709 if test -n "$ac_sub_configure"; then
21710 # Make the cache file name correct relative to the subdirectory.
21711 case $cache_file in
21712 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021713 *) # Relative name.
21714 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021715 esac
21716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021717 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21718echo "$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 +000021719 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021720 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21721 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021722 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21723echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21724 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021725 fi
21726
Reid Spencera773bd52006-08-04 18:18:08 +000021727 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021728 done
21729fi
21730