blob: 5476fd4c716eb7a11743d914e752f8c4b6e1cd20 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003# Generated by GNU Autoconf 2.60 for llvm 2.7svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnerc2264592009-08-22 21:01:26 +000012# Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Tanya Lattner953042b2009-08-22 04:37:30 +0000564PACKAGE_VERSION='2.7svn'
565PACKAGE_STRING='llvm 2.7svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
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
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821# The variables have the same names as the options, with
822# dashes changed to underlines.
823cache_file=/dev/null
824exec_prefix=NONE
825no_create=
826no_recursion=
827prefix=NONE
828program_prefix=NONE
829program_suffix=NONE
830program_transform_name=s,x,x,
831silent=
832site=
833srcdir=
834verbose=
835x_includes=NONE
836x_libraries=NONE
837
838# Installation directory options.
839# These are left unexpanded so users can "make install exec_prefix=/foo"
840# and all the variables that are supposed to be based on exec_prefix
841# by default will actually change.
842# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000843# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000844bindir='${exec_prefix}/bin'
845sbindir='${exec_prefix}/sbin'
846libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000847datarootdir='${prefix}/share'
848datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000849sysconfdir='${prefix}/etc'
850sharedstatedir='${prefix}/com'
851localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000852includedir='${prefix}/include'
853oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000854docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855infodir='${datarootdir}/info'
856htmldir='${docdir}'
857dvidir='${docdir}'
858pdfdir='${docdir}'
859psdir='${docdir}'
860libdir='${exec_prefix}/lib'
861localedir='${datarootdir}/locale'
862mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000863
864ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000865ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000866for ac_option
867do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000870 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000871 ac_prev=
872 continue
873 fi
874
Reid Spencera773bd52006-08-04 18:18:08 +0000875 case $ac_option in
876 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *) ac_optarg=yes ;;
878 esac
John Criswell7a73b802003-06-30 21:59:07 +0000879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
Reid Spencera773bd52006-08-04 18:18:08 +0000882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 bindir=$ac_optarg ;;
890
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
905
Reid Spencera773bd52006-08-04 18:18:08 +0000906 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000907 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000909 datadir=$ac_optarg ;;
910
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
John Criswell7a73b802003-06-30 21:59:07 +0000918 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000919 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000920 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000921 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923 { (exit 1); exit 1; }; }
924 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000926
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
931
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000936
937 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000938 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000939 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000940 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942 { (exit 1); exit 1; }; }
943 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
Reid Spencera773bd52006-08-04 18:18:08 +0000971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
John Criswell7a73b802003-06-30 21:59:07 +0000977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
Reid Spencera773bd52006-08-04 18:18:08 +00001001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
John Criswell7a73b802003-06-30 21:59:07 +00001006 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001007 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
Reid Spencera773bd52006-08-04 18:18:08 +00001075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
John Criswell7a73b802003-06-30 21:59:07 +00001085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1094
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1105
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1110
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1115
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1122
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1127
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1130
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1133
1134 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001135 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001136 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001137 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138 { echo "$as_me: error: invalid package name: $ac_package" >&2
1139 { (exit 1); exit 1; }; }
1140 ac_package=`echo $ac_package| sed 's/-/_/g'`
1141 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001142
1143 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001144 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001145 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001146 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147 { echo "$as_me: error: invalid package name: $ac_package" >&2
1148 { (exit 1); exit 1; }; }
1149 ac_package=`echo $ac_package | sed 's/-/_/g'`
1150 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1155
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1162
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001170 -*) { echo "$as_me: error: unrecognized option: $ac_option
1171Try \`$0 --help' for more information." >&2
1172 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001178 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001181 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001182 export $ac_envvar ;;
1183
1184 *)
1185 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001186 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190 ;;
1191
1192 esac
1193done
1194
1195if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001197 { echo "$as_me: error: missing argument to $ac_option" >&2
1198 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001199fi
1200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001201# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001206do
Reid Spencera773bd52006-08-04 18:18:08 +00001207 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001208 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001211 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001212 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001214done
1215
1216# There might be people who depend on the old broken behavior: `$host'
1217# used to hold the argument of --host etc.
1218# FIXME: To remove some day.
1219build=$build_alias
1220host=$host_alias
1221target=$target_alias
1222
1223# FIXME: To remove some day.
1224if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001227 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1231 fi
1232fi
1233
1234ac_tool_prefix=
1235test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237test "$silent" = yes && exec 6>/dev/null
1238
1239
Reid Spencera773bd52006-08-04 18:18:08 +00001240ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241ac_ls_di=`ls -di .` &&
1242ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001243 { echo "$as_me: error: Working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001245test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248
1249
John Criswell7a73b802003-06-30 21:59:07 +00001250# Find the source files, if location was not specified.
1251if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001253 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001254 ac_confdir=`$as_dirname -- "$0" ||
1255$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$0" : 'X\(//\)[^/]' \| \
1257 X"$0" : 'X\(//\)$' \| \
1258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001277 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001278 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001279 srcdir=..
1280 fi
1281else
1282 ac_srcdir_defaulted=no
1283fi
Reid Spencera773bd52006-08-04 18:18:08 +00001284if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001286 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001288fi
Reid Spencera773bd52006-08-04 18:18:08 +00001289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001291 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
John Criswell7a73b802003-06-30 21:59:07 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001318\`configure' configures llvm 2.7svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
John Criswell7a73b802003-06-30 21:59:07 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001340 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001342 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379_ACEOF
1380fi
1381
1382if test -n "$ac_init_help"; then
1383 case $ac_init_help in
Tanya Lattner953042b2009-08-22 04:37:30 +00001384 short | recursive ) echo "Configuration of llvm 2.7svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001385 esac
1386 cat <<\_ACEOF
1387
1388Optional Features:
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001391 --enable-optimized Compile with optimizations enabled (default is NO)
1392 --enable-profiling Compile with profiling enabled (default is NO)
1393 --enable-assertions Compile with assertion checks enabled (default is
1394 YES)
David Greenea696d242007-06-28 19:36:08 +00001395 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001396 Compile with expensive debug checks enabled (default
1397 is NO)
1398 --enable-debug-runtime Build runtime libs with debug symbols (default is
1399 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001400 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1401 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001402 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001403 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001404 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001405 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001406 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001407 --enable-shared Build a shared library and link tools against it
1408 (default is NO)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001409 --enable-targets Build specific host targets: all or
1410 target1,target2,... Valid targets are: host, x86,
1411 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1412 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1413 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001414 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1415 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001416 --enable-bindings Build specific language bindings:
1417 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001418 --enable-libffi Check for the presence of libffi (default is NO)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001419 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1420 Win32)
1421 --enable-llvmc-dynamic-plugins
1422 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001423 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001424
1425Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001428 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1429 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001430 --with-llvmgcc Specify location of llvm-gcc driver (default
1431 searches PATH)
1432 --with-llvmgxx Specify location of llvm-g++ driver (default
1433 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001434 --with-clang Specify location of clang compiler (default is
1435 --with-built-clang)
1436 --with-built-clang Use the compiled Clang as the LLVM compiler
1437 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001438 --with-optimize-option Select the compiler options to use for optimized
1439 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001440 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001441 --with-ocaml-libdir Specify install location for ocaml bindings (default
1442 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001443 --with-c-include-dirs Colon separated list of directories clang will
1444 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001445 --with-cxx-include-root Directory with the libstdc++ headers.
1446 --with-cxx-include-arch Architecture of the libstdc++ headers.
1447 --with-cxx-include-32bit-dir
1448 32 bit multilib dir.
1449 --with-cxx-include-64bit-dir
1450 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001451 --with-binutils-include Specify path to binutils/include/ containing
1452 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001453 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001454 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1455 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001456 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001457 --with-oprofile=<prefix>
1458 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001459
1460Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001461 CC C compiler command
1462 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001465 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001466 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001467 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001470
1471Use these variables to override the choices made by `configure' or to help
1472it to find libraries and programs with nonstandard names/locations.
1473
1474Report bugs to <llvmbugs@cs.uiuc.edu>.
1475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001476ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001477fi
1478
1479if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001482 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001483 ac_builddir=.
1484
Reid Spencera773bd52006-08-04 18:18:08 +00001485case "$ac_dir" in
1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001489 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 esac ;;
1495esac
1496ac_abs_top_builddir=$ac_pwd
1497ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498# for backward compatibility:
1499ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001500
1501case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001502 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001503 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001507 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1510 *) # Relative name.
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001514esac
Reid Spencera773bd52006-08-04 18:18:08 +00001515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001516
Reid Spencera773bd52006-08-04 18:18:08 +00001517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001525 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001526 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001529 done
1530fi
1531
Reid Spencera773bd52006-08-04 18:18:08 +00001532test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001533if $ac_init_version; then
1534 cat <<\_ACEOF
Tanya Lattner953042b2009-08-22 04:37:30 +00001535llvm configure 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001536generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001537
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15392002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001540This configure script is free software; the Free Software Foundation
1541gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001542
Tanya Lattnerc2264592009-08-22 21:01:26 +00001543Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001544_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001545 exit
John Criswell7a73b802003-06-30 21:59:07 +00001546fi
Reid Spencera773bd52006-08-04 18:18:08 +00001547cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001548This file contains any messages produced by compilers while
1549running configure, to aid debugging if configure makes a mistake.
1550
Tanya Lattner953042b2009-08-22 04:37:30 +00001551It was created by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001552generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001553
1554 $ $0 $@
1555
1556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001557exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001558{
1559cat <<_ASUNAME
1560## --------- ##
1561## Platform. ##
1562## --------- ##
1563
1564hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1565uname -m = `(uname -m) 2>/dev/null || echo unknown`
1566uname -r = `(uname -r) 2>/dev/null || echo unknown`
1567uname -s = `(uname -s) 2>/dev/null || echo unknown`
1568uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569
1570/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1571/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572
1573/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1574/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1575/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001576/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001577/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1578/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1579/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1580
1581_ASUNAME
1582
1583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1584for as_dir in $PATH
1585do
1586 IFS=$as_save_IFS
1587 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001588 echo "PATH: $as_dir"
1589done
Reid Spencera773bd52006-08-04 18:18:08 +00001590IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001591
1592} >&5
1593
1594cat >&5 <<_ACEOF
1595
1596
1597## ----------- ##
1598## Core tests. ##
1599## ----------- ##
1600
1601_ACEOF
1602
1603
1604# Keep a trace of the command line.
1605# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001606# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001607# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001608# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001609ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001610ac_configure_args0=
1611ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001612ac_must_keep_next=false
1613for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001614do
John Criswell0c38eaf2003-09-10 15:17:25 +00001615 for ac_arg
1616 do
1617 case $ac_arg in
1618 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1619 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1620 | -silent | --silent | --silen | --sile | --sil)
1621 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001622 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001623 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 esac
1625 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001626 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001628 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001630 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001631 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001632 case $ac_arg in
1633 *=* | --config-cache | -C | -disable-* | --disable-* \
1634 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1635 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1636 | -with-* | --with-* | -without-* | --without-* | --x)
1637 case "$ac_configure_args0 " in
1638 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 esac
1640 ;;
1641 -* ) ac_must_keep_next=true ;;
1642 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001644 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001645 ;;
1646 esac
1647 done
John Criswell7a73b802003-06-30 21:59:07 +00001648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001649$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1650$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 +00001651
1652# When interrupted or exit'd, cleanup temporary files, and complete
1653# config.log. We remove comments because anyway the quotes in there
1654# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001655# WARNING: Use '\'' to represent an apostrophe within the trap.
1656# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001657trap 'exit_status=$?
1658 # Save into config.log some information that might help in debugging.
1659 {
1660 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001661
John Criswell7a73b802003-06-30 21:59:07 +00001662 cat <<\_ASBOX
1663## ---------------- ##
1664## Cache variables. ##
1665## ---------------- ##
1666_ASBOX
1667 echo
1668 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001669(
1670 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1671 eval ac_val=\$$ac_var
1672 case $ac_val in #(
1673 *${as_nl}*)
1674 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001675 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1676echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001677 esac
1678 case $ac_var in #(
1679 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001680 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001681 esac ;;
1682 esac
1683 done
John Criswell7a73b802003-06-30 21:59:07 +00001684 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001687 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001688 "s/'\''/'\''\\\\'\'''\''/g;
1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001691 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001693 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001694 esac |
1695 sort
1696)
John Criswell7a73b802003-06-30 21:59:07 +00001697 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001698
1699 cat <<\_ASBOX
1700## ----------------- ##
1701## Output variables. ##
1702## ----------------- ##
1703_ASBOX
1704 echo
1705 for ac_var in $ac_subst_vars
1706 do
Reid Spencera773bd52006-08-04 18:18:08 +00001707 eval ac_val=\$$ac_var
1708 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001709 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001710 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001711 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001712 done | sort
1713 echo
1714
1715 if test -n "$ac_subst_files"; then
1716 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001717## ------------------- ##
1718## File substitutions. ##
1719## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001720_ASBOX
1721 echo
1722 for ac_var in $ac_subst_files
1723 do
Reid Spencera773bd52006-08-04 18:18:08 +00001724 eval ac_val=\$$ac_var
1725 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001726 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001727 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001728 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001729 done | sort
1730 echo
1731 fi
1732
John Criswell7a73b802003-06-30 21:59:07 +00001733 if test -s confdefs.h; then
1734 cat <<\_ASBOX
1735## ----------- ##
1736## confdefs.h. ##
1737## ----------- ##
1738_ASBOX
1739 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001740 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001741 echo
1742 fi
1743 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001744 echo "$as_me: caught signal $ac_signal"
1745 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001746 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001747 rm -f core *.core core.conftest.* &&
1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001749 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001750' 0
John Criswell7a73b802003-06-30 21:59:07 +00001751for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001753done
1754ac_signal=0
1755
1756# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001757rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001758
1759# Predefined preprocessor variables.
1760
1761cat >>confdefs.h <<_ACEOF
1762#define PACKAGE_NAME "$PACKAGE_NAME"
1763_ACEOF
1764
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001765
John Criswell7a73b802003-06-30 21:59:07 +00001766cat >>confdefs.h <<_ACEOF
1767#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1768_ACEOF
1769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001770
John Criswell7a73b802003-06-30 21:59:07 +00001771cat >>confdefs.h <<_ACEOF
1772#define PACKAGE_VERSION "$PACKAGE_VERSION"
1773_ACEOF
1774
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001775
John Criswell7a73b802003-06-30 21:59:07 +00001776cat >>confdefs.h <<_ACEOF
1777#define PACKAGE_STRING "$PACKAGE_STRING"
1778_ACEOF
1779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001780
John Criswell7a73b802003-06-30 21:59:07 +00001781cat >>confdefs.h <<_ACEOF
1782#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783_ACEOF
1784
1785
1786# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001788if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001789 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001790elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001791 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001792else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001793 set x "$ac_default_prefix/share/config.site" \
1794 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001796shift
1797for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001798do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799 if test -r "$ac_site_file"; then
1800 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1801echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001802 sed 's/^/| /' "$ac_site_file" >&5
1803 . "$ac_site_file"
1804 fi
1805done
1806
1807if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808 # Some versions of bash will fail to source /dev/null (special
1809 # files actually), so we avoid doing that.
1810 if test -f "$cache_file"; then
1811 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1812echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001813 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001814 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1815 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001816 esac
1817 fi
1818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001819 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1820echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001821 >$cache_file
1822fi
1823
1824# Check that the precious variables saved in the cache have kept the same
1825# value.
1826ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001827for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001828 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1829 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001830 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1831 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001832 case $ac_old_set,$ac_new_set in
1833 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001834 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1835echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001836 ac_cache_corrupted=: ;;
1837 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001838 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1839echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001840 ac_cache_corrupted=: ;;
1841 ,);;
1842 *)
1843 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001844 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1845echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1846 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1847echo "$as_me: former value: $ac_old_val" >&2;}
1848 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1849echo "$as_me: current value: $ac_new_val" >&2;}
1850 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001851 fi;;
1852 esac
1853 # Pass precious variables to config.status.
1854 if test "$ac_new_set" = set; then
1855 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001856 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001857 *) ac_arg=$ac_var=$ac_new_val ;;
1858 esac
1859 case " $ac_configure_args " in
1860 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001861 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001862 esac
1863 fi
1864done
1865if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001866 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1867echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1868 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1869echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1870 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
Reid Spencera773bd52006-08-04 18:18:08 +00001896
John Criswell7a73b802003-06-30 21:59:07 +00001897ac_ext=c
1898ac_cpp='$CPP $CPPFLAGS'
1899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902
1903
1904
Tanya Lattnerc2264592009-08-22 21:01:26 +00001905LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001906
1907
1908
1909
1910
1911
1912
John Criswell7a73b802003-06-30 21:59:07 +00001913ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001914for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001915 if test -f "$ac_dir/install-sh"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 break
1919 elif test -f "$ac_dir/install.sh"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 break
1923 elif test -f "$ac_dir/shtool"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/shtool install -c"
1926 break
1927 fi
John Criswell7a73b802003-06-30 21:59:07 +00001928done
1929if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001930 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1931echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1932 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001933fi
Reid Spencera773bd52006-08-04 18:18:08 +00001934
1935# These three variables are undocumented and unsupported,
1936# and are intended to be withdrawn in a future Autoconf release.
1937# They can cause serious problems if a builder's source tree is in a directory
1938# whose full name contains unusual characters.
1939ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1942
John Criswell7a73b802003-06-30 21:59:07 +00001943
John Criswell392aaa32003-07-22 19:18:09 +00001944
Reid Spencer2706f8c2004-09-19 23:53:36 +00001945if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001946 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001947 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1948echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1949 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001950 fi
John Criswell93e1c722003-09-15 17:04:06 +00001951fi
1952
John Criswell33a911a2003-11-25 20:36:46 +00001953for i in `ls ${srcdir}/projects`
1954do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001955 if test -d ${srcdir}/projects/${i} ; then
1956 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00001957 CVS) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001958 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001959 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001960 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001961 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001962 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001963 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00001964 # llvm-test is the old name of the test-suite, kept here for backwards
1965 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00001966 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00001967 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00001968 test-suite) subdirs="$subdirs projects/test-suite"
1969 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001970 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001971;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001972 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001973 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001974 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001975 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001976 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001977 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001978 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001979 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00001980 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00001981 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001982 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00001983 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001984 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1986echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001987 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001988 esac
John Criswell33a911a2003-11-25 20:36:46 +00001989 fi
1990done
John Criswell559a6c12003-09-30 16:31:48 +00001991
John Criswell7a73b802003-06-30 21:59:07 +00001992
1993# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00001994$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001995 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1996echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1997 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001999{ echo "$as_me:$LINENO: checking build system type" >&5
2000echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2001if test "${ac_cv_build+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002003else
Reid Spencera773bd52006-08-04 18:18:08 +00002004 ac_build_alias=$build_alias
2005test "x$ac_build_alias" = x &&
2006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2007test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002008 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2009echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2010 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002011ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002012 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2013echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2014 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002015
2016fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2018echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002019case $ac_cv_build in
2020*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2022echo "$as_me: error: invalid value of canonical build" >&2;}
2023 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002024esac
John Criswell7a73b802003-06-30 21:59:07 +00002025build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002026ac_save_IFS=$IFS; IFS='-'
2027set x $ac_cv_build
2028shift
2029build_cpu=$1
2030build_vendor=$2
2031shift; shift
2032# Remember, the first character of IFS is used to create $*,
2033# except with old shells:
2034build_os=$*
2035IFS=$ac_save_IFS
2036case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002037
2038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039{ echo "$as_me:$LINENO: checking host system type" >&5
2040echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2041if test "${ac_cv_host+set}" = set; then
2042 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002043else
Reid Spencera773bd52006-08-04 18:18:08 +00002044 if test "x$host_alias" = x; then
2045 ac_cv_host=$ac_cv_build
2046else
2047 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002048 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2049echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2050 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002051fi
John Criswell7a73b802003-06-30 21:59:07 +00002052
2053fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002054{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2055echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002056case $ac_cv_host in
2057*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002058*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2059echo "$as_me: error: invalid value of canonical host" >&2;}
2060 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002061esac
John Criswell7a73b802003-06-30 21:59:07 +00002062host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002063ac_save_IFS=$IFS; IFS='-'
2064set x $ac_cv_host
2065shift
2066host_cpu=$1
2067host_vendor=$2
2068shift; shift
2069# Remember, the first character of IFS is used to create $*,
2070# except with old shells:
2071host_os=$*
2072IFS=$ac_save_IFS
2073case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002074
2075
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076{ echo "$as_me:$LINENO: checking target system type" >&5
2077echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2078if test "${ac_cv_target+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002080else
Reid Spencera773bd52006-08-04 18:18:08 +00002081 if test "x$target_alias" = x; then
2082 ac_cv_target=$ac_cv_host
2083else
2084 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002085 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2086echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2087 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002088fi
John Criswell7a73b802003-06-30 21:59:07 +00002089
2090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002091{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2092echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002093case $ac_cv_target in
2094*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002095*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2096echo "$as_me: error: invalid value of canonical target" >&2;}
2097 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002098esac
John Criswell7a73b802003-06-30 21:59:07 +00002099target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002100ac_save_IFS=$IFS; IFS='-'
2101set x $ac_cv_target
2102shift
2103target_cpu=$1
2104target_vendor=$2
2105shift; shift
2106# Remember, the first character of IFS is used to create $*,
2107# except with old shells:
2108target_os=$*
2109IFS=$ac_save_IFS
2110case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002111
2112
2113# The aliases save the names the user supplied, while $host etc.
2114# will get canonicalized.
2115test -n "$target_alias" &&
2116 test "$program_prefix$program_suffix$program_transform_name" = \
2117 NONENONEs,x,x, &&
2118 program_prefix=${target_alias}-
2119
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002120{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2121echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2122if test "${llvm_cv_os_type+set}" = set; then
2123 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002124else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002125 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002126 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002127 llvm_cv_link_all_option="-Wl,--whole-archive"
2128 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002129 llvm_cv_os_type="AIX"
2130 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002131 *-*-irix*)
2132 llvm_cv_link_all_option="-Wl,--whole-archive"
2133 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2134 llvm_cv_os_type="IRIX"
2135 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002136 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002137 llvm_cv_link_all_option="-Wl,--whole-archive"
2138 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002139 llvm_cv_os_type="Cygwin"
2140 llvm_cv_platform_type="Unix" ;;
2141 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002142 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002143 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002144 llvm_cv_os_type="Darwin"
2145 llvm_cv_platform_type="Unix" ;;
2146 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002147 llvm_cv_link_all_option="-Wl,--whole-archive"
2148 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002149 llvm_cv_os_type="FreeBSD"
2150 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002151 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002152 llvm_cv_link_all_option="-Wl,--whole-archive"
2153 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002154 llvm_cv_os_type="OpenBSD"
2155 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002156 *-*-netbsd*)
2157 llvm_cv_link_all_option="-Wl,--whole-archive"
2158 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2159 llvm_cv_os_type="NetBSD"
2160 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002161 *-*-dragonfly*)
2162 llvm_cv_link_all_option="-Wl,--whole-archive"
2163 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2164 llvm_cv_os_type="DragonFly"
2165 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002166 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002167 llvm_cv_link_all_option="-Wl,--whole-archive"
2168 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002169 llvm_cv_os_type="HP-UX"
2170 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002171 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002172 llvm_cv_link_all_option="-Wl,--whole-archive"
2173 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002174 llvm_cv_os_type="Interix"
2175 llvm_cv_platform_type="Unix" ;;
2176 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002177 llvm_cv_link_all_option="-Wl,--whole-archive"
2178 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002179 llvm_cv_os_type="Linux"
2180 llvm_cv_platform_type="Unix" ;;
2181 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002182 llvm_cv_link_all_option="-Wl,-z,allextract"
2183 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002184 llvm_cv_os_type="SunOS"
2185 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002186 *-*-auroraux*)
2187 llvm_cv_link_all_option="-Wl,-z,allextract"
2188 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2189 llvm_cv_os_type="AuroraUX"
2190 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002191 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002192 llvm_cv_link_all_option="-Wl,--whole-archive"
2193 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002194 llvm_cv_os_type="Win32"
2195 llvm_cv_platform_type="Win32" ;;
2196 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002197 llvm_cv_link_all_option="-Wl,--whole-archive"
2198 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002199 llvm_cv_os_type="MingW"
2200 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002201 *-*-haiku*)
2202 llvm_cv_link_all_option="-Wl,--whole-archive"
2203 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2204 llvm_cv_os_type="Haiku"
2205 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002206 *-unknown-eabi*)
2207 llvm_cv_link_all_option="-Wl,--whole-archive"
2208 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2209 llvm_cv_os_type="Freestanding"
2210 llvm_cv_platform_type="Unix" ;;
2211 *-unknown-elf*)
2212 llvm_cv_link_all_option="-Wl,--whole-archive"
2213 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2214 llvm_cv_os_type="Freestanding"
2215 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002216 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002217 llvm_cv_link_all_option=""
2218 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002219 llvm_cv_os_type="Unknown"
2220 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002221esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002223{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2224echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002225
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002226{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2227echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2228if test "${llvm_cv_target_os_type+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002230else
2231 case $target in
2232 *-*-aix*)
2233 llvm_cv_target_os_type="AIX" ;;
2234 *-*-irix*)
2235 llvm_cv_target_os_type="IRIX" ;;
2236 *-*-cygwin*)
2237 llvm_cv_target_os_type="Cygwin" ;;
2238 *-*-darwin*)
2239 llvm_cv_target_os_type="Darwin" ;;
2240 *-*-freebsd*)
2241 llvm_cv_target_os_type="FreeBSD" ;;
2242 *-*-openbsd*)
2243 llvm_cv_target_os_type="OpenBSD" ;;
2244 *-*-netbsd*)
2245 llvm_cv_target_os_type="NetBSD" ;;
2246 *-*-dragonfly*)
2247 llvm_cv_target_os_type="DragonFly" ;;
2248 *-*-hpux*)
2249 llvm_cv_target_os_type="HP-UX" ;;
2250 *-*-interix*)
2251 llvm_cv_target_os_type="Interix" ;;
2252 *-*-linux*)
2253 llvm_cv_target_os_type="Linux" ;;
2254 *-*-solaris*)
2255 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002256 *-*-auroraux*)
2257 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002258 *-*-win32*)
2259 llvm_cv_target_os_type="Win32" ;;
2260 *-*-mingw*)
2261 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002262 *-*-haiku*)
2263 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002264 *-unknown-eabi*)
2265 llvm_cv_target_os_type="Freestanding" ;;
2266 *)
2267 llvm_cv_target_os_type="Unknown" ;;
2268esac
2269fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002270{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2271echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002272
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002274 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2275echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2276 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002277fi
2278
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002280
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002281HOST_OS=$llvm_cv_os_type
2282
2283TARGET_OS=$llvm_cv_target_os_type
2284
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002285
Reid Spencera773bd52006-08-04 18:18:08 +00002286LINKALL=$llvm_cv_link_all_option
2287
2288NOLINKALL=$llvm_cv_no_link_all_option
2289
2290
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291case $llvm_cv_platform_type in
2292 Unix)
2293
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002294cat >>confdefs.h <<\_ACEOF
2295#define LLVM_ON_UNIX 1
2296_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002298 LLVM_ON_UNIX=1
2299
2300 LLVM_ON_WIN32=0
2301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 ;;
2303 Win32)
2304
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002305cat >>confdefs.h <<\_ACEOF
2306#define LLVM_ON_WIN32 1
2307_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002309 LLVM_ON_UNIX=0
2310
2311 LLVM_ON_WIN32=1
2312
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 ;;
2314esac
2315
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002316{ echo "$as_me:$LINENO: checking target architecture" >&5
2317echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2318if test "${llvm_cv_target_arch+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002320else
2321 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002322 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002323 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002324 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2325 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002326 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002327 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002328 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002329 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002330 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002331 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002332 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002333 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002334 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002335 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002336esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002338{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2339echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002340
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002341if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002342 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2343echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344fi
John Criswell76595452003-07-01 22:07:39 +00002345
Nick Lewycky83fc4472009-09-29 05:48:51 +00002346# Determine the LLVM native architecture for the target
2347case "$llvm_cv_target_arch" in
2348 x86) LLVM_NATIVE_ARCH="X86" ;;
2349 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2350 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2351esac
2352
2353ARCH=$llvm_cv_target_arch
2354
2355
2356ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002361if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2366if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002368else
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 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 +00002379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002381 break 2
2382 fi
2383done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002384done
Reid Spencera773bd52006-08-04 18:18:08 +00002385IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386
2387fi
2388fi
2389CC=$ac_cv_prog_CC
2390if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002391 { echo "$as_me:$LINENO: result: $CC" >&5
2392echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394 { echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396fi
2397
Reid Spencera773bd52006-08-04 18:18:08 +00002398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399fi
2400if test -z "$ac_cv_prog_CC"; then
2401 ac_ct_CC=$CC
2402 # Extract the first word of "gcc", so it can be a program name with args.
2403set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2406if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408else
2409 if test -n "$ac_ct_CC"; then
2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 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 +00002419 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421 break 2
2422 fi
2423done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424done
Reid Spencera773bd52006-08-04 18:18:08 +00002425IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426
2427fi
2428fi
2429ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002431 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434 { echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436fi
2437
Reid Spencera773bd52006-08-04 18:18:08 +00002438 if test "x$ac_ct_CC" = x; then
2439 CC=""
2440 else
2441 case $cross_compiling:$ac_tool_warned in
2442yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002443{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444whose name does not start with the host triplet. If you think this
2445configuration is useful to you, please write to autoconf@gnu.org." >&5
2446echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002449ac_tool_warned=yes ;;
2450esac
2451 CC=$ac_ct_CC
2452 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453else
2454 CC="$ac_cv_prog_CC"
2455fi
2456
2457if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002458 if test -n "$ac_tool_prefix"; then
2459 # 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 +00002460set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2463if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 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 +00002476 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478 break 2
2479 fi
2480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002481done
Reid Spencera773bd52006-08-04 18:18:08 +00002482IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002488 { echo "$as_me:$LINENO: result: $CC" >&5
2489echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491 { echo "$as_me:$LINENO: result: no" >&5
2492echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493fi
2494
Reid Spencera773bd52006-08-04 18:18:08 +00002495
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497fi
2498if test -z "$CC"; then
2499 # Extract the first word of "cc", so it can be a program name with args.
2500set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2503if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505else
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2508else
2509 ac_prog_rejected=no
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 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 +00002517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2519 continue
2520 fi
2521 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523 break 2
2524 fi
2525done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002526done
Reid Spencera773bd52006-08-04 18:18:08 +00002527IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528
2529if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2532 shift
2533 if test $# != 0; then
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2537 shift
2538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2539 fi
2540fi
2541fi
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 { echo "$as_me:$LINENO: result: $CC" >&5
2546echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548 { echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550fi
2551
Reid Spencera773bd52006-08-04 18:18:08 +00002552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553fi
2554if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002556 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002557 do
2558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2562if test "${ac_cv_prog_CC+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002564else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 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 +00002575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002577 break 2
2578 fi
2579done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002580done
Reid Spencera773bd52006-08-04 18:18:08 +00002581IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002582
2583fi
2584fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002587 { echo "$as_me:$LINENO: result: $CC" >&5
2588echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002589else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590 { echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
2593
Reid Spencera773bd52006-08-04 18:18:08 +00002594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002596 done
2597fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598if test -z "$CC"; then
2599 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002600 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002601do
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002608else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 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 +00002619 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002621 break 2
2622 fi
2623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002624done
Reid Spencera773bd52006-08-04 18:18:08 +00002625IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002626
2627fi
2628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002633else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634 { echo "$as_me:$LINENO: result: no" >&5
2635echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002636fi
2637
Reid Spencera773bd52006-08-04 18:18:08 +00002638
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002640done
John Criswell7a73b802003-06-30 21:59:07 +00002641
Reid Spencera773bd52006-08-04 18:18:08 +00002642 if test "x$ac_ct_CC" = x; then
2643 CC=""
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648whose name does not start with the host triplet. If you think this
2649configuration is useful to you, please write to autoconf@gnu.org." >&5
2650echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002653ac_tool_warned=yes ;;
2654esac
2655 CC=$ac_ct_CC
2656 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657fi
2658
John Criswell7a73b802003-06-30 21:59:07 +00002659fi
2660
2661
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002662test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663See \`config.log' for more details." >&5
2664echo "$as_me: error: no acceptable C compiler found in \$PATH
2665See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667
John Criswell7a73b802003-06-30 21:59:07 +00002668# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002669echo "$as_me:$LINENO: checking for C compiler version" >&5
2670ac_compiler=`set X $ac_compile; echo $2`
2671{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002672case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002678 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2681{ (ac_try="$ac_compiler -v >&5"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compiler -v >&5") 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
2691{ (ac_try="$ac_compiler -V >&5"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compiler -V >&5") 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002702cat >conftest.$ac_ext <<_ACEOF
2703/* confdefs.h. */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002708
John Criswell7a73b802003-06-30 21:59:07 +00002709int
2710main ()
2711{
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002718ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002719# Try to create an executable without -o first, disregard a.out.
2720# It will help us diagnose broken compilers, and finding out an intuition
2721# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002722{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2723echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2724ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2725#
2726# List of possible output files, starting from the most likely.
2727# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2728# only as a last resort. b.out is created by i960 compilers.
2729ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2730#
2731# The IRIX 6 linker writes into existing files which may not be
2732# executable, retaining their permissions. Remove them first so a
2733# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002734ac_rmfiles=
2735for ac_file in $ac_files
2736do
2737 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 esac
2741done
2742rm -f $ac_rmfiles
2743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002744if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002750 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002751 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756# in a Makefile. We should not override ac_cv_exeext if it was cached,
2757# so that the user can short-circuit this test for compilers unknown to
2758# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002759for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002760do
2761 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002762 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002764 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002765 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002766 # We found the default executable, but exeext='' is most
2767 # certainly right.
2768 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002769 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002771 then :; else
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 fi
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2778 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002779 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002780 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002781 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002782 esac
2783done
Reid Spencera773bd52006-08-04 18:18:08 +00002784test "$ac_cv_exeext" = no && ac_cv_exeext=
2785
John Criswell7a73b802003-06-30 21:59:07 +00002786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002788sed 's/^/| /' conftest.$ac_ext >&5
2789
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002790{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791See \`config.log' for more details." >&5
2792echo "$as_me: error: C compiler cannot create executables
2793See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002795fi
John Criswell7a73b802003-06-30 21:59:07 +00002796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002797ac_exeext=$ac_cv_exeext
2798{ echo "$as_me:$LINENO: result: $ac_file" >&5
2799echo "${ECHO_T}$ac_file" >&6; }
2800
2801# Check that the compiler produces executables we can run. If not, either
2802# the compiler is broken, or we cross compile.
2803{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2804echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2805# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2806# If not cross compiling, check that we can run a simple program.
2807if test "$cross_compiling" != yes; then
2808 if { ac_try='./$ac_file'
2809 { (case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812esac
2813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_try") 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2818 cross_compiling=no
2819 else
2820 if test "$cross_compiling" = maybe; then
2821 cross_compiling=yes
2822 else
2823 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2824If you meant to cross compile, use \`--host'.
2825See \`config.log' for more details." >&5
2826echo "$as_me: error: cannot run C compiled programs.
2827If you meant to cross compile, use \`--host'.
2828See \`config.log' for more details." >&2;}
2829 { (exit 1); exit 1; }; }
2830 fi
2831 fi
2832fi
2833{ echo "$as_me:$LINENO: result: yes" >&5
2834echo "${ECHO_T}yes" >&6; }
2835
2836rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002837ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002838# Check that the compiler produces executables we can run. If not, either
2839# the compiler is broken, or we cross compile.
2840{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2842{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843echo "${ECHO_T}$cross_compiling" >&6; }
2844
2845{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2847if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002853 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002854 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2859# work properly (i.e., refer to `conftest.exe'), while it won't with
2860# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002861for ac_file in conftest.exe conftest conftest.*; do
2862 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002863 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002866 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002867 * ) break;;
2868 esac
2869done
2870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002871 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872See \`config.log' for more details." >&5
2873echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002876fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002877
2878rm -f conftest$ac_cv_exeext
2879{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2880echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002881
2882rm -f conftest.$ac_ext
2883EXEEXT=$ac_cv_exeext
2884ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002885{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2886echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2887if test "${ac_cv_objext+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002889else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002890 cat >conftest.$ac_ext <<_ACEOF
2891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002896
John Criswell7a73b802003-06-30 21:59:07 +00002897int
2898main ()
2899{
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002906if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002912 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002913 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002916 for ac_file in conftest.o conftest.obj conftest.*; do
2917 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002918 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 break;;
2922 esac
2923done
2924else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002928{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2929See \`config.log' for more details." >&5
2930echo "$as_me: error: cannot compute suffix of object files: cannot compile
2931See \`config.log' for more details." >&2;}
2932 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002934
John Criswell7a73b802003-06-30 21:59:07 +00002935rm -f conftest.$ac_cv_objext conftest.$ac_ext
2936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002937{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2938echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002939OBJEXT=$ac_cv_objext
2940ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002941{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2942echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2943if test "${ac_cv_c_compiler_gnu+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002946 cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002952
John Criswell7a73b802003-06-30 21:59:07 +00002953int
2954main ()
2955{
2956#ifndef __GNUC__
2957 choke me
2958#endif
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964rm -f conftest.$ac_objext
2965if { (ac_try="$ac_compile"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compile") 2>conftest.er1
2972 ac_status=$?
2973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
2978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_try") 2>&5
2985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_try") 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00002998 ac_compiler_gnu=yes
2999else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003004fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003005
Reid Spencera773bd52006-08-04 18:18:08 +00003006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003007ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003008
3009fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003010{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3012GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003013ac_test_CFLAGS=${CFLAGS+set}
3014ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003015{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3017if test "${ac_cv_prog_cc_g+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003019else
Reid Spencera773bd52006-08-04 18:18:08 +00003020 ac_save_c_werror_flag=$ac_c_werror_flag
3021 ac_c_werror_flag=yes
3022 ac_cv_prog_cc_g=no
3023 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003024 cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003030
John Criswell7a73b802003-06-30 21:59:07 +00003031int
3032main ()
3033{
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003039rm -f conftest.$ac_objext
3040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
3047 ac_status=$?
3048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003073 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003074else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003075 echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 CFLAGS=""
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003084/* end confdefs.h. */
3085
3086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003094rm -f conftest.$ac_objext
3095if { (ac_try="$ac_compile"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_try") 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 :
Torok Edwin871384f2010-01-26 08:50:50 +00003129else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003130 echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003134 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003135 cat >conftest.$ac_ext <<_ACEOF
3136/* confdefs.h. */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003140/* end confdefs.h. */
3141
3142int
3143main ()
3144{
3145
3146 ;
3147 return 0;
3148}
3149_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003150rm -f conftest.$ac_objext
3151if { (ac_try="$ac_compile"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003184 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003185else
3186 echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189
John Criswell7a73b802003-06-30 21:59:07 +00003190fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003191
Reid Spencera773bd52006-08-04 18:18:08 +00003192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
3196fi
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
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3200fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003201{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3207 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003208 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003210 fi
3211else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212 if test "$GCC" = yes; then
3213 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003214 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003216 fi
3217fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003218{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220if test "${ac_cv_prog_cc_c89+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222else
Reid Spencera773bd52006-08-04 18:18:08 +00003223 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003225cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003230/* end confdefs.h. */
3231#include <stdarg.h>
3232#include <stdio.h>
3233#include <sys/types.h>
3234#include <sys/stat.h>
3235/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236struct buf { int x; };
3237FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238static char *e (p, i)
3239 char **p;
3240 int i;
3241{
3242 return p[i];
3243}
3244static char *f (char * (*g) (char **, int), char **p, ...)
3245{
3246 char *s;
3247 va_list v;
3248 va_start (v,p);
3249 s = g (p, va_arg (v,int));
3250 va_end (v);
3251 return s;
3252}
3253
3254/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003257 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003260 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
Reid Spencera773bd52006-08-04 18:18:08 +00003263/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3265#define FOO(x) 'x'
3266int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268int test (int i, double x);
3269struct s1 {int (*f) (int a);};
3270struct s2 {int (*f) (double a);};
3271int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272int argc;
3273char **argv;
3274int
3275main ()
3276{
3277return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 ;
3279 return 0;
3280}
3281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003282for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284do
3285 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003286 rm -f conftest.$ac_objext
3287if { (ac_try="$ac_compile"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304esac
3305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_try") 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
3311 { (case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_try") 2>&5
3317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003320 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003321else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003327
Reid Spencera773bd52006-08-04 18:18:08 +00003328rm -f core conftest.err conftest.$ac_objext
3329 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330done
Reid Spencera773bd52006-08-04 18:18:08 +00003331rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332CC=$ac_save_CC
3333
3334fi
Reid Spencera773bd52006-08-04 18:18:08 +00003335# AC_CACHE_VAL
3336case "x$ac_cv_prog_cc_c89" in
3337 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003338 { echo "$as_me:$LINENO: result: none needed" >&5
3339echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003340 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003341 { echo "$as_me:$LINENO: result: unsupported" >&5
3342echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003344 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347esac
3348
John Criswell0c38eaf2003-09-10 15:17:25 +00003349
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350ac_ext=c
3351ac_cpp='$CPP $CPPFLAGS'
3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
3356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357ac_ext=c
3358ac_cpp='$CPP $CPPFLAGS'
3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003362{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364# On Suns, sometimes $CPP names a directory.
3365if test -n "$CPP" && test -d "$CPP"; then
3366 CPP=
3367fi
3368if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371else
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3374 do
3375 ac_preproc_ok=false
3376for ac_c_preproc_warn_flag in '' yes
3377do
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003384 cat >conftest.$ac_ext <<_ACEOF
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389/* end confdefs.h. */
3390#ifdef __STDC__
3391# include <limits.h>
3392#else
3393# include <assert.h>
3394#endif
3395 Syntax error
3396_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003397if { (ac_try="$ac_cpp conftest.$ac_ext"
3398case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401esac
3402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 else
3414 ac_cpp_err=
3415 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003416else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003417 ac_cpp_err=yes
3418fi
3419if test -z "$ac_cpp_err"; then
3420 :
3421else
3422 echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425 # Broken: fails on valid input.
3426continue
3427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429rm -f conftest.err conftest.$ac_ext
3430
Reid Spencera773bd52006-08-04 18:18:08 +00003431 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438/* end confdefs.h. */
3439#include <ac_nonexistent.h>
3440_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003441if { (ac_try="$ac_cpp conftest.$ac_ext"
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457 else
3458 ac_cpp_err=
3459 fi
3460else
3461 ac_cpp_err=yes
3462fi
3463if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464 # Broken: success on invalid input.
3465continue
3466else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003470 # Passes both tests.
3471ac_preproc_ok=:
3472break
3473fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003474
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003475rm -f conftest.err conftest.$ac_ext
3476
3477done
3478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003480if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003481 break
3482fi
3483
3484 done
3485 ac_cv_prog_CPP=$CPP
3486
3487fi
3488 CPP=$ac_cv_prog_CPP
3489else
3490 ac_cv_prog_CPP=$CPP
3491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003492{ echo "$as_me:$LINENO: result: $CPP" >&5
3493echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494ac_preproc_ok=false
3495for ac_c_preproc_warn_flag in '' yes
3496do
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003503 cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h. */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508/* end confdefs.h. */
3509#ifdef __STDC__
3510# include <limits.h>
3511#else
3512# include <assert.h>
3513#endif
3514 Syntax error
3515_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003516if { (ac_try="$ac_cpp conftest.$ac_ext"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532 else
3533 ac_cpp_err=
3534 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003535else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003536 ac_cpp_err=yes
3537fi
3538if test -z "$ac_cpp_err"; then
3539 :
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003544 # Broken: fails on valid input.
3545continue
3546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548rm -f conftest.err conftest.$ac_ext
3549
Reid Spencera773bd52006-08-04 18:18:08 +00003550 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003551 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003557/* end confdefs.h. */
3558#include <ac_nonexistent.h>
3559_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003560if { (ac_try="$ac_cpp conftest.$ac_ext"
3561case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564esac
3565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576 else
3577 ac_cpp_err=
3578 fi
3579else
3580 ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583 # Broken: success on invalid input.
3584continue
3585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003586 echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003589 # Passes both tests.
3590ac_preproc_ok=:
3591break
3592fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003593
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003594rm -f conftest.err conftest.$ac_ext
3595
3596done
3597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003599if $ac_preproc_ok; then
3600 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603See \`config.log' for more details." >&5
3604echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003607fi
3608
John Criswell7a73b802003-06-30 21:59:07 +00003609ac_ext=c
3610ac_cpp='$CPP $CPPFLAGS'
3611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
John Criswell7a73b802003-06-30 21:59:07 +00003615
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3618if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003621 # Extract the first word of "grep ggrep" to use in msg output
3622if test -z "$GREP"; then
3623set dummy grep ggrep; ac_prog_name=$2
3624if test "${ac_cv_path_GREP+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
Reid Spencera773bd52006-08-04 18:18:08 +00003627 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003628# Loop through the user's path and test for each of PROGNAME-LIST
3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003631do
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003634 for ac_prog in grep ggrep; do
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003639 # Check for GNU $ac_path_GREP
3640case `"$ac_path_GREP" --version 2>&1` in
3641*GNU*)
3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643*)
3644 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003646 while :
3647 do
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003651 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003654 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_GREP="$ac_path_GREP"
3658 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003659 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3662 done
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664esac
3665
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003666
3667 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003668 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003669done
3670
3671done
Reid Spencera773bd52006-08-04 18:18:08 +00003672IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003673
3674
3675fi
3676
3677GREP="$ac_cv_path_GREP"
3678if test -z "$GREP"; then
3679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681 { (exit 1); exit 1; }; }
3682fi
3683
Reid Spencera773bd52006-08-04 18:18:08 +00003684else
3685 ac_cv_path_GREP=$GREP
3686fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003688
Reid Spencera773bd52006-08-04 18:18:08 +00003689fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003690{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003692 GREP="$ac_cv_path_GREP"
3693
3694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695{ echo "$as_me:$LINENO: checking for egrep" >&5
3696echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003699else
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3702 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003703 # Extract the first word of "egrep" to use in msg output
3704if test -z "$EGREP"; then
3705set dummy egrep; ac_prog_name=$2
3706if test "${ac_cv_path_EGREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
Reid Spencera773bd52006-08-04 18:18:08 +00003709 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003710# Loop through the user's path and test for each of PROGNAME-LIST
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003721 # Check for GNU $ac_path_EGREP
3722case `"$ac_path_EGREP" --version 2>&1` in
3723*GNU*)
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725*)
3726 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003728 while :
3729 do
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3741 fi
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3744 done
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746esac
3747
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003748
3749 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003750 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003751done
3752
3753done
Reid Spencera773bd52006-08-04 18:18:08 +00003754IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003755
3756
3757fi
3758
3759EGREP="$ac_cv_path_EGREP"
3760if test -z "$EGREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3764fi
3765
Reid Spencera773bd52006-08-04 18:18:08 +00003766else
3767 ac_cv_path_EGREP=$EGREP
3768fi
3769
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003770
Reid Spencera773bd52006-08-04 18:18:08 +00003771 fi
3772fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003773{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003775 EGREP="$ac_cv_path_EGREP"
3776
3777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003778{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3779echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3780if test "${ac_cv_header_stdc+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003783 cat >conftest.$ac_ext <<_ACEOF
3784/* confdefs.h. */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003789#include <stdlib.h>
3790#include <stdarg.h>
3791#include <string.h>
3792#include <float.h>
3793
John Criswell0c38eaf2003-09-10 15:17:25 +00003794int
3795main ()
3796{
3797
3798 ;
3799 return 0;
3800}
John Criswell7a73b802003-06-30 21:59:07 +00003801_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003802rm -f conftest.$ac_objext
3803if { (ac_try="$ac_compile"
3804case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807esac
3808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3817 { (case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
3821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_try") 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
3827 { (case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
3831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_try") 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003836 ac_cv_header_stdc=yes
3837else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003838 echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003843
Reid Spencera773bd52006-08-04 18:18:08 +00003844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003845
3846if test $ac_cv_header_stdc = yes; then
3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003848 cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003854#include <string.h>
3855
3856_ACEOF
3857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003858 $EGREP "memchr" >/dev/null 2>&1; then
3859 :
John Criswell7a73b802003-06-30 21:59:07 +00003860else
3861 ac_cv_header_stdc=no
3862fi
3863rm -f conftest*
3864
3865fi
3866
3867if test $ac_cv_header_stdc = yes; then
3868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003875#include <stdlib.h>
3876
3877_ACEOF
3878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003879 $EGREP "free" >/dev/null 2>&1; then
3880 :
John Criswell7a73b802003-06-30 21:59:07 +00003881else
3882 ac_cv_header_stdc=no
3883fi
3884rm -f conftest*
3885
3886fi
3887
3888if test $ac_cv_header_stdc = yes; then
3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003890 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003891 :
3892else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003893 cat >conftest.$ac_ext <<_ACEOF
3894/* confdefs.h. */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003899#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003900#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003901#if ((' ' & 0x0FF) == 0x020)
3902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3904#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003905# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003906 (('a' <= (c) && (c) <= 'i') \
3907 || ('j' <= (c) && (c) <= 'r') \
3908 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3910#endif
3911
3912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3913int
3914main ()
3915{
3916 int i;
3917 for (i = 0; i < 256; i++)
3918 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003919 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003920 return 2;
3921 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003922}
3923_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003924rm -f conftest$ac_exeext
3925if { (ac_try="$ac_link"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_link") 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938esac
3939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_try") 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 :
John Criswell7a73b802003-06-30 21:59:07 +00003945else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 echo "$as_me: program exited with status $ac_status" >&5
3947echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
3949
3950( exit $ac_status )
3951ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953rm -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 +00003954fi
3955
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003956
John Criswell7a73b802003-06-30 21:59:07 +00003957fi
3958fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003959{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003961if test $ac_cv_header_stdc = yes; then
3962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003963cat >>confdefs.h <<\_ACEOF
3964#define STDC_HEADERS 1
3965_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003966
3967fi
3968
Reid Spencera773bd52006-08-04 18:18:08 +00003969# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003970
3971
3972
3973
3974
3975
3976
3977
3978
Reid Spencera773bd52006-08-04 18:18:08 +00003979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003981do
3982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988 cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
3994$ac_includes_default
3995
3996#include <$ac_header>
3997_ACEOF
3998rm -f conftest.$ac_objext
3999if { (ac_try="$ac_compile"
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026esac
4027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_try") 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 eval "$as_ac_Header=yes"
4033else
4034 echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 eval "$as_ac_Header=no"
4038fi
4039
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041fi
4042ac_res=`eval echo '${'$as_ac_Header'}'`
4043 { echo "$as_me:$LINENO: result: $ac_res" >&5
4044echo "${ECHO_T}$ac_res" >&6; }
4045if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004046 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004048_ACEOF
4049
4050fi
4051
4052done
4053
4054
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004055{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4056echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4057if test "${ac_cv_c_bigendian+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004060 # See if sys/param.h defines the BYTE_ORDER macro.
4061cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004063_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004066/* end confdefs.h. */
4067#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004068#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004069
4070int
4071main ()
4072{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004073#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4074 bogus endian macros
4075#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004076
4077 ;
4078 return 0;
4079}
4080_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004081rm -f conftest.$ac_objext
4082if { (ac_try="$ac_compile"
4083case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109esac
4110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_try") 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004115 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004116cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004121/* end confdefs.h. */
4122#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004123#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004124
4125int
4126main ()
4127{
4128#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004129 not big endian
4130#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004131
4132 ;
4133 return 0;
4134}
4135_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004136rm -f conftest.$ac_objext
4137if { (ac_try="$ac_compile"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004170 ac_cv_c_bigendian=yes
4171else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004172 echo "$as_me: failed program was:" >&5
4173sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004175 ac_cv_c_bigendian=no
4176fi
4177
4178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179else
4180 echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 # It does not; compile a test program.
4184if test "$cross_compiling" = yes; then
4185 # try to guess the endianness by grepping values into an object file
4186 ac_cv_c_bigendian=unknown
4187 cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h. */
4193short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4194short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4196short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4197short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4198void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004199int
4200main ()
4201{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004202 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004203 ;
4204 return 0;
4205}
4206_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004207rm -f conftest.$ac_objext
4208if { (ac_try="$ac_compile"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004242 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004243fi
4244if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4245 if test "$ac_cv_c_bigendian" = unknown; then
4246 ac_cv_c_bigendian=no
4247 else
4248 # finding both strings is unlikely to happen, but who knows?
4249 ac_cv_c_bigendian=unknown
4250 fi
4251fi
Reid Spencera773bd52006-08-04 18:18:08 +00004252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004255
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004256
Torok Edwin871384f2010-01-26 08:50:50 +00004257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004258
Reid Spencera773bd52006-08-04 18:18:08 +00004259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004266/* end confdefs.h. */
4267$ac_includes_default
4268int
4269main ()
4270{
4271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272 /* Are we little or big endian? From Harbison&Steele. */
4273 union
4274 {
4275 long int l;
4276 char c[sizeof (long int)];
4277 } u;
4278 u.l = 1;
4279 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004280
4281 ;
4282 return 0;
4283}
4284_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285rm -f conftest$ac_exeext
4286if { (ac_try="$ac_link"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_link") 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004305 ac_cv_c_bigendian=no
4306else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004307 echo "$as_me: program exited with status $ac_status" >&5
4308echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311( exit $ac_status )
4312ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004313fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314rm -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 +00004315fi
4316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004317
Reid Spencera773bd52006-08-04 18:18:08 +00004318fi
4319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321fi
4322{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4323echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4324case $ac_cv_c_bigendian in
4325 yes)
4326 ENDIAN=big
4327 ;;
4328 no)
4329 ENDIAN=little
4330 ;;
4331 *)
4332 { { echo "$as_me:$LINENO: error: unknown endianness
4333presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4334echo "$as_me: error: unknown endianness
4335presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4336 { (exit 1); exit 1; }; } ;;
4337esac
Reid Spencera773bd52006-08-04 18:18:08 +00004338
4339
4340if test "$cross_compiling" = yes; then
4341 LLVM_CROSS_COMPILING=1
4342
4343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004344{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4345echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4346if test "${ac_cv_build_exeext+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004348else
4349 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4350 ac_cv_build_exeext=.exe
4351else
4352 ac_build_prefix=${build_alias}-
4353
4354 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4355set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004360else
4361 if test -n "$BUILD_CC"; then
4362 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 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 +00004371 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004373 break 2
4374 fi
4375done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004376done
Reid Spencera773bd52006-08-04 18:18:08 +00004377IFS=$as_save_IFS
4378
4379fi
4380fi
4381BUILD_CC=$ac_cv_prog_BUILD_CC
4382if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004383 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004385else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386 { echo "$as_me:$LINENO: result: no" >&5
4387echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004388fi
4389
4390
4391 if test -z "$BUILD_CC"; then
4392 # Extract the first word of "gcc", so it can be a program name with args.
4393set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004398else
4399 if test -n "$BUILD_CC"; then
4400 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 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 +00004409 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004411 break 2
4412 fi
4413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004414done
Reid Spencera773bd52006-08-04 18:18:08 +00004415IFS=$as_save_IFS
4416
4417fi
4418fi
4419BUILD_CC=$ac_cv_prog_BUILD_CC
4420if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004421 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4422echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424 { echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004426fi
4427
4428
4429 if test -z "$BUILD_CC"; then
4430 # Extract the first word of "cc", so it can be a program name with args.
4431set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004436else
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439else
4440 ac_prog_rejected=no
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 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 +00004448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4449 ac_prog_rejected=yes
4450 continue
4451 fi
4452 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004454 break 2
4455 fi
4456done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004457done
Reid Spencera773bd52006-08-04 18:18:08 +00004458IFS=$as_save_IFS
4459
4460if test $ac_prog_rejected = yes; then
4461 # We found a bogon in the path, so make sure we never use it.
4462 set dummy $ac_cv_prog_BUILD_CC
4463 shift
4464 if test $# != 0; then
4465 # We chose a different compiler from the bogus one.
4466 # However, it has the same basename, so the bogon will be chosen
4467 # first if we set BUILD_CC to just the basename; use the full file name.
4468 shift
4469 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4470 fi
4471fi
4472fi
4473fi
4474BUILD_CC=$ac_cv_prog_BUILD_CC
4475if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004479 { echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004481fi
4482
4483
4484 fi
4485 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4487echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4488 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004489 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4490 rm -f conftest*
4491 echo 'int main () { return 0; }' > conftest.$ac_ext
4492 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004493 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004494 (eval $ac_build_link) 2>&5
4495 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004498 for file in conftest.*; do
4499 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004500 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004501 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4502 esac
4503 done
4504 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004505 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4506echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4507 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004508 fi
4509 rm -f conftest*
4510 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4511fi
4512fi
4513
4514BUILD_EXEEXT=""
4515test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4517echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004518ac_build_exeext=$BUILD_EXEEXT
4519
Jim Grosbach673612e2008-10-02 22:56:44 +00004520 ac_build_prefix=${build_alias}-
4521 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4522set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004527else
4528 if test -n "$BUILD_CXX"; then
4529 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4530else
4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532for as_dir in $PATH
4533do
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 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 +00004538 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004540 break 2
4541 fi
4542done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543done
Jim Grosbach673612e2008-10-02 22:56:44 +00004544IFS=$as_save_IFS
4545
4546fi
4547fi
4548BUILD_CXX=$ac_cv_prog_BUILD_CXX
4549if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004550 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4551echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 { echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004555fi
4556
4557
4558 if test -z "$BUILD_CXX"; then
4559 # Extract the first word of "g++", so it can be a program name with args.
4560set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4563if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004565else
4566 if test -n "$BUILD_CXX"; then
4567 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4568else
4569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH
4571do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 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 +00004576 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004578 break 2
4579 fi
4580done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004581done
Jim Grosbach673612e2008-10-02 22:56:44 +00004582IFS=$as_save_IFS
4583
4584fi
4585fi
4586BUILD_CXX=$ac_cv_prog_BUILD_CXX
4587if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004588 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4589echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591 { echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004593fi
4594
4595
4596 if test -z "$BUILD_CXX"; then
4597 # Extract the first word of "c++", so it can be a program name with args.
4598set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4601if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004603else
4604 if test -n "$BUILD_CXX"; then
4605 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4606else
4607 ac_prog_rejected=no
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 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 +00004615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4616 ac_prog_rejected=yes
4617 continue
4618 fi
4619 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004621 break 2
4622 fi
4623done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004624done
Jim Grosbach673612e2008-10-02 22:56:44 +00004625IFS=$as_save_IFS
4626
4627if test $ac_prog_rejected = yes; then
4628 # We found a bogon in the path, so make sure we never use it.
4629 set dummy $ac_cv_prog_BUILD_CXX
4630 shift
4631 if test $# != 0; then
4632 # We chose a different compiler from the bogus one.
4633 # However, it has the same basename, so the bogon will be chosen
4634 # first if we set BUILD_CXX to just the basename; use the full file name.
4635 shift
4636 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4637 fi
4638fi
4639fi
4640fi
4641BUILD_CXX=$ac_cv_prog_BUILD_CXX
4642if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4644echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004645else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004646 { echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004648fi
4649
4650
4651 fi
4652 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004653else
4654 LLVM_CROSS_COMPILING=0
4655
4656fi
4657
Nick Lewycky5b28f862009-04-10 05:18:27 +00004658if 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 +00004659 cvsbuild="yes"
4660 optimize="no"
4661 CVSBUILD=CVSBUILD=1
4662
4663else
4664 cvsbuild="no"
4665 optimize="yes"
4666fi
4667
4668
4669# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004670if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004671 enableval=$enable_optimized;
4672else
4673 enableval=$optimize
4674fi
4675
4676if test ${enableval} = "no" ; then
4677 ENABLE_OPTIMIZED=
4678
4679else
4680 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4681
4682fi
4683
David Greene2a5a12c2009-04-17 14:50:39 +00004684# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004685if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004686 enableval=$enable_profiling;
4687else
4688 enableval="no"
4689fi
4690
4691if test ${enableval} = "no" ; then
4692 ENABLE_PROFILING=
4693
4694else
4695 ENABLE_PROFILING=ENABLE_PROFILING=1
4696
4697fi
4698
Reid Spencera773bd52006-08-04 18:18:08 +00004699# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004701 enableval=$enable_assertions;
4702else
4703 enableval="yes"
4704fi
4705
4706if test ${enableval} = "yes" ; then
4707 DISABLE_ASSERTIONS=
4708
4709else
4710 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4711
4712fi
4713
David Greenea696d242007-06-28 19:36:08 +00004714# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004716 enableval=$enable_expensive_checks;
4717else
4718 enableval="no"
4719fi
4720
4721if test ${enableval} = "yes" ; then
4722 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4723
4724 EXPENSIVE_CHECKS=yes
4725
4726else
4727 ENABLE_EXPENSIVE_CHECKS=
4728
4729 EXPENSIVE_CHECKS=no
4730
4731fi
4732
Reid Spencer8b2e1412006-11-17 03:32:33 +00004733# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004734if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004735 enableval=$enable_debug_runtime;
4736else
4737 enableval=no
4738fi
4739
4740if test ${enableval} = "no" ; then
4741 DEBUG_RUNTIME=
4742
4743else
4744 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4745
4746fi
4747
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004748# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004749if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004750 enableval=$enable_debug_symbols;
4751else
4752 enableval=no
4753fi
4754
4755if test ${enableval} = "no" ; then
4756 DEBUG_SYMBOLS=
4757
4758else
4759 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4760
4761fi
4762
Reid Spencera773bd52006-08-04 18:18:08 +00004763# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004765 enableval=$enable_jit;
4766else
4767 enableval=default
4768fi
4769
4770if test ${enableval} = "no"
4771then
4772 JIT=
4773
4774else
4775 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004776 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004777 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004778 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004779 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004780 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004781 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004782 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004783 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004784 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004785 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004786 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004787 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004788 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004789 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004790 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004791 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004792 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004793 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004794 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004795 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004796 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004797 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004798 Blackfin) TARGET_HAS_JIT=0
4799 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004800 MBlaze) TARGET_HAS_JIT=0
4801 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004802 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004803 ;;
4804 esac
4805fi
4806
4807# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004808if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004809 enableval=$enable_doxygen;
4810else
4811 enableval=default
4812fi
4813
4814case "$enableval" in
4815 yes) ENABLE_DOXYGEN=1
4816 ;;
4817 no) ENABLE_DOXYGEN=0
4818 ;;
4819 default) ENABLE_DOXYGEN=0
4820 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004821 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4822echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4823 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004824esac
4825
4826# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004827if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004828 enableval=$enable_threads;
4829else
Reid Spencer65c5d752006-11-05 17:08:18 +00004830 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004831fi
4832
4833case "$enableval" in
4834 yes) ENABLE_THREADS=1
4835 ;;
4836 no) ENABLE_THREADS=0
4837 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004838 default) ENABLE_THREADS=1
4839 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004840 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4841echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4842 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004843esac
4844
Owen Andersona8603702009-05-19 22:18:56 +00004845cat >>confdefs.h <<_ACEOF
4846#define ENABLE_THREADS $ENABLE_THREADS
4847_ACEOF
4848
4849
Reid Spencer89b0d992006-12-16 22:07:52 +00004850# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004851if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004852 enableval=$enable_pic;
4853else
4854 enableval=default
4855fi
4856
4857case "$enableval" in
4858 yes) ENABLE_PIC=1
4859 ;;
4860 no) ENABLE_PIC=0
4861 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004862 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004863 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004864 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4865echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4866 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004867esac
4868
4869cat >>confdefs.h <<_ACEOF
4870#define ENABLE_PIC $ENABLE_PIC
4871_ACEOF
4872
4873
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004874# Check whether --enable-shared was given.
4875if test "${enable_shared+set}" = set; then
4876 enableval=$enable_shared;
4877else
4878 enableval=default
4879fi
4880
4881case "$enableval" in
4882 yes) ENABLE_SHARED=1
4883 ;;
4884 no) ENABLE_SHARED=0
4885 ;;
4886 default) ENABLE_SHARED=0
4887 ;;
4888 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4889echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4890 { (exit 1); exit 1; }; } ;;
4891esac
4892
Reid Spencera773bd52006-08-04 18:18:08 +00004893TARGETS_TO_BUILD=""
4894# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004895if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004896 enableval=$enable_targets;
4897else
4898 enableval=all
4899fi
4900
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004901if test "$enableval" = host-only ; then
4902 enableval=host
4903fi
Reid Spencera773bd52006-08-04 18:18:08 +00004904case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004905 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 +00004906 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4907 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004908 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4909 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4910 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4911 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4912 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4913 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4914 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4915 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4916 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4917 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4918 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4919 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4920 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4921 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4923 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004924 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004925 host) case "$llvm_cv_target_arch" in
4926 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4929 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4930 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4931 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4932 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004933 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004934 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4935 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4936 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4937 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004938 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004939 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004940 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4941echo "$as_me: error: Can not set target to build" >&2;}
4942 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004943 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004944 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4945echo "$as_me: error: Unrecognized target $a_target" >&2;}
4946 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004947 esac
4948 done
4949 ;;
4950esac
Reid Spencera773bd52006-08-04 18:18:08 +00004951TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4952
4953
Douglas Gregor0711c302009-06-17 00:43:20 +00004954# Determine whether we are building LLVM support for the native architecture.
4955# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4956for a_target in $TARGETS_TO_BUILD; do
4957 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004958 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004959
4960cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004961#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004962_ACEOF
4963
4964 fi
4965done
4966
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004967# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4968# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00004969LLVM_ENUM_TARGETS=""
4970LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004971LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004972LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00004973for target_to_build in $TARGETS_TO_BUILD; do
4974 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4975 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4976 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4977 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004978 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4979 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4980 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004981 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4982 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4983 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00004984done
4985
4986
4987
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00004988
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00004989
Reid Spencer65c5d752006-11-05 17:08:18 +00004990# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004991if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00004992 enableval=$enable_cbe_printf_a;
4993else
4994 enableval=default
4995fi
4996
4997case "$enableval" in
4998 yes) ENABLE_CBE_PRINTF_A=1
4999 ;;
5000 no) ENABLE_CBE_PRINTF_A=0
5001 ;;
5002 default) ENABLE_CBE_PRINTF_A=1
5003 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005004 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5005echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5006 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005007esac
5008
5009cat >>confdefs.h <<_ACEOF
5010#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5011_ACEOF
5012
5013
Reid Spencera773bd52006-08-04 18:18:08 +00005014
5015# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005016if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005017 withval=$with_llvmgccdir;
5018else
5019 withval=default
5020fi
5021
5022case "$withval" in
5023 default) WITH_LLVMGCCDIR=default ;;
5024 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005025 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5026echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5027 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005028esac
5029
5030
Devang Patel5d28b882007-12-04 22:54:47 +00005031# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005032if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005033 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5034 WITH_LLVMGCCDIR=""
5035fi
5036
5037
5038
5039# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005040if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005041 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5042 WITH_LLVMGCCDIR=""
5043fi
5044
Douglas Gregor01746742009-05-11 18:05:52 +00005045
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005046if test -n "$LLVMGCC"; then
5047 LLVMGCCCOMMAND="$LLVMGCC"
5048fi
5049
5050if test -n "$LLVMGXX"; then
5051 LLVMGXXCOMMAND="$LLVMGXX"
5052fi
Devang Patel5d28b882007-12-04 22:54:47 +00005053
5054if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005055 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5056echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5057 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005058fi
5059
5060if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005061 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5062echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5063 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005064fi
5065
5066
Daniel Dunbar98515672010-02-23 10:00:49 +00005067# Check whether --with-clang was given.
5068if test "${with_clang+set}" = set; then
5069 withval=$with_clang;
5070else
5071 with_clang=default
5072fi
5073
5074
5075
5076# Check whether --with-built-clang was given.
5077if test "${with_built_clang+set}" = set; then
5078 withval=$with_built_clang;
5079else
5080 with_built_clang=check
5081fi
5082
5083
5084{ echo "$as_me:$LINENO: checking clang compiler" >&5
5085echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5086WITH_CLANGPATH=""
5087WITH_BUILT_CLANG=0
5088if test "$with_clang" != "default"; then
5089 WITH_CLANGPATH="$with_clang"
5090 if ! test -x "$WITH_CLANGPATH"; then
5091 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5092echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5093 { (exit 1); exit 1; }; }
5094 fi
5095elif test "$with_built_clang" = "yes"; then
5096 WITH_BUILT_CLANG=1
5097elif test "$with_built_clang" = "no"; then
5098 WITH_BUILT_CLANG=0
5099else
5100 if test "$with_built_clang" != "check"; then
5101 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5102echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5103 { (exit 1); exit 1; }; }
5104 fi
5105
5106 if test -f ${srcdir}/tools/clang/README.txt; then
5107 WITH_BUILT_CLANG=1
5108 fi
5109fi
5110
5111if ! test -z "$WITH_CLANGPATH"; then
5112 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5113echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5114 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5115elif test "$WITH_BUILT_CLANG" = "1"; then
5116 { echo "$as_me:$LINENO: result: built" >&5
5117echo "${ECHO_T}built" >&6; }
5118else
5119 { echo "$as_me:$LINENO: result: none" >&5
5120echo "${ECHO_T}none" >&6; }
5121fi
5122CLANGPATH=$WITH_CLANGPATH
5123
5124CLANGXXPATH=$WITH_CLANGXXPATH
5125
5126ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5127
5128
5129
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005130# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005131if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005132 withval=$with_optimize_option;
5133else
5134 withval=default
5135fi
5136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005137{ echo "$as_me:$LINENO: checking optimization flags" >&5
5138echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005139case "$withval" in
5140 default)
5141 case "$llvm_cv_os_type" in
5142 MingW) optimize_option=-O3 ;;
5143 *) optimize_option=-O2 ;;
5144 esac ;;
5145 *) optimize_option="$withval" ;;
5146esac
5147OPTIMIZE_OPTION=$optimize_option
5148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005149{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5150echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005151
5152
Reid Spencera773bd52006-08-04 18:18:08 +00005153# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005154if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005155 withval=$with_extra_options;
5156else
5157 withval=default
5158fi
5159
5160case "$withval" in
5161 default) EXTRA_OPTIONS= ;;
5162 *) EXTRA_OPTIONS=$withval ;;
5163esac
5164EXTRA_OPTIONS=$EXTRA_OPTIONS
5165
5166
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005167# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005168if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005169 enableval=$enable_bindings;
5170else
5171 enableval=default
5172fi
5173
5174BINDINGS_TO_BUILD=""
5175case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005176 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005177 all ) BINDINGS_TO_BUILD="ocaml" ;;
5178 none | no) BINDINGS_TO_BUILD="" ;;
5179 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5180 case "$a_binding" in
5181 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005182 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5183echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5184 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005185 esac
5186 done
5187 ;;
5188esac
5189
Reid Spencera773bd52006-08-04 18:18:08 +00005190
Gordon Henriksenf0915682007-10-02 16:42:22 +00005191# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005192if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005193 withval=$with_ocaml_libdir;
5194else
5195 withval=auto
5196fi
5197
5198case "$withval" in
5199 auto) with_ocaml_libdir="$withval" ;;
5200 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005201 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5202echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5203 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005204esac
5205
5206
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005207# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005209 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005210else
5211 withval=""
5212fi
5213
5214
5215cat >>confdefs.h <<_ACEOF
5216#define C_INCLUDE_DIRS "$withval"
5217_ACEOF
5218
5219
5220
Rafael Espindola420d23c2009-11-16 19:46:55 +00005221# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005222if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005223 withval=$with_cxx_include_root;
5224else
5225 withval=""
5226fi
5227
5228
5229cat >>confdefs.h <<_ACEOF
5230#define CXX_INCLUDE_ROOT "$withval"
5231_ACEOF
5232
5233
5234
5235# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005236if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005237 withval=$with_cxx_include_arch;
5238else
5239 withval=""
5240fi
5241
5242
5243cat >>confdefs.h <<_ACEOF
5244#define CXX_INCLUDE_ARCH "$withval"
5245_ACEOF
5246
5247
5248
5249# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005250if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005251 withval=$with_cxx_include_32bit_dir;
5252else
5253 withval=""
5254fi
5255
5256
5257cat >>confdefs.h <<_ACEOF
5258#define CXX_INCLUDE_32BIT_DIR "$withval"
5259_ACEOF
5260
5261
5262
5263# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005264if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005265 withval=$with_cxx_include_64bit_dir;
5266else
5267 withval=""
5268fi
5269
5270
5271cat >>confdefs.h <<_ACEOF
5272#define CXX_INCLUDE_64BIT_DIR "$withval"
5273_ACEOF
5274
5275
5276
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005277# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005278if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005279 withval=$with_binutils_include;
5280else
5281 withval=default
5282fi
5283
5284case "$withval" in
5285 default) WITH_BINUTILS_INCDIR=default ;;
5286 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005287 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5288echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5289 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005290esac
5291if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5292 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5293
5294 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5295 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005296 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5297echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5298 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005299 fi
5300fi
5301
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005302# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005303if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005304 enableval=$enable_libffi; case "$enableval" in
5305 yes) llvm_cv_enable_libffi="yes" ;;
5306 no) llvm_cv_enable_libffi="no" ;;
5307 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005308echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5309 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005310 esac
5311else
5312 llvm_cv_enable_libffi=no
5313fi
5314
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005315
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005316if test "$llvm_cv_os_type" = "Win32" ; then
5317 llvmc_dynamic="yes"
5318else
5319 llvmc_dynamic="no"
5320fi
5321
5322# Check whether --enable-llvmc-dynamic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005323if test "${enable_llvmc_dynamic+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005324 enableval=$enable_llvmc_dynamic;
5325else
5326 enableval=$llvmc_dynamic
5327fi
5328
5329if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5330 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5331
5332else
5333 ENABLE_LLVMC_DYNAMIC=
5334
5335fi
5336
5337# Check whether --enable-llvmc-dynamic-plugins was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005338if test "${enable_llvmc_dynamic_plugins+set}" = set; then
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005339 enableval=$enable_llvmc_dynamic_plugins;
5340else
5341 enableval=yes
5342fi
5343
5344if test ${enableval} = "yes" ; then
5345 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5346
5347else
5348 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5349
5350fi
5351
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005352
Reid Spencera773bd52006-08-04 18:18:08 +00005353ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005358{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5359echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005360# On Suns, sometimes $CPP names a directory.
5361if test -n "$CPP" && test -d "$CPP"; then
5362 CPP=
5363fi
5364if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005365 if test "${ac_cv_prog_CPP+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005367else
5368 # Double quotes because CPP needs to be expanded
5369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5370 do
5371 ac_preproc_ok=false
5372for ac_c_preproc_warn_flag in '' yes
5373do
5374 # Use a header file that comes with gcc, so configuring glibc
5375 # with a fresh cross-compiler works.
5376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5377 # <limits.h> exists even on freestanding compilers.
5378 # On the NeXT, cc -E runs the code through the compiler's parser,
5379 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005380 cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h. */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005385/* end confdefs.h. */
5386#ifdef __STDC__
5387# include <limits.h>
5388#else
5389# include <assert.h>
5390#endif
5391 Syntax error
5392_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005393if { (ac_try="$ac_cpp conftest.$ac_ext"
5394case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397esac
5398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } >/dev/null; then
5406 if test -s conftest.err; then
5407 ac_cpp_err=$ac_c_preproc_warn_flag
5408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409 else
5410 ac_cpp_err=
5411 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005412else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005413 ac_cpp_err=yes
5414fi
5415if test -z "$ac_cpp_err"; then
5416 :
5417else
5418 echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
Reid Spencera773bd52006-08-04 18:18:08 +00005421 # Broken: fails on valid input.
5422continue
5423fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005424
Reid Spencera773bd52006-08-04 18:18:08 +00005425rm -f conftest.err conftest.$ac_ext
5426
5427 # OK, works on sane cases. Now check whether nonexistent headers
5428 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005429 cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h. */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005434/* end confdefs.h. */
5435#include <ac_nonexistent.h>
5436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005437if { (ac_try="$ac_cpp conftest.$ac_ext"
5438case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441esac
5442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5444 ac_status=$?
5445 grep -v '^ *+' conftest.er1 >conftest.err
5446 rm -f conftest.er1
5447 cat conftest.err >&5
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); } >/dev/null; then
5450 if test -s conftest.err; then
5451 ac_cpp_err=$ac_c_preproc_warn_flag
5452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5453 else
5454 ac_cpp_err=
5455 fi
5456else
5457 ac_cpp_err=yes
5458fi
5459if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005460 # Broken: success on invalid input.
5461continue
5462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463 echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
Reid Spencera773bd52006-08-04 18:18:08 +00005466 # Passes both tests.
5467ac_preproc_ok=:
5468break
5469fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005470
Reid Spencera773bd52006-08-04 18:18:08 +00005471rm -f conftest.err conftest.$ac_ext
5472
5473done
5474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5475rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005476if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005477 break
5478fi
5479
5480 done
5481 ac_cv_prog_CPP=$CPP
5482
5483fi
5484 CPP=$ac_cv_prog_CPP
5485else
5486 ac_cv_prog_CPP=$CPP
5487fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005488{ echo "$as_me:$LINENO: result: $CPP" >&5
5489echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005490ac_preproc_ok=false
5491for ac_c_preproc_warn_flag in '' yes
5492do
5493 # Use a header file that comes with gcc, so configuring glibc
5494 # with a fresh cross-compiler works.
5495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5496 # <limits.h> exists even on freestanding compilers.
5497 # On the NeXT, cc -E runs the code through the compiler's parser,
5498 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499 cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005504/* end confdefs.h. */
5505#ifdef __STDC__
5506# include <limits.h>
5507#else
5508# include <assert.h>
5509#endif
5510 Syntax error
5511_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005512if { (ac_try="$ac_cpp conftest.$ac_ext"
5513case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } >/dev/null; then
5525 if test -s conftest.err; then
5526 ac_cpp_err=$ac_c_preproc_warn_flag
5527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5528 else
5529 ac_cpp_err=
5530 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005532 ac_cpp_err=yes
5533fi
5534if test -z "$ac_cpp_err"; then
5535 :
5536else
5537 echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
Reid Spencera773bd52006-08-04 18:18:08 +00005540 # Broken: fails on valid input.
5541continue
5542fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005543
Reid Spencera773bd52006-08-04 18:18:08 +00005544rm -f conftest.err conftest.$ac_ext
5545
5546 # OK, works on sane cases. Now check whether nonexistent headers
5547 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005548 cat >conftest.$ac_ext <<_ACEOF
5549/* confdefs.h. */
5550_ACEOF
5551cat confdefs.h >>conftest.$ac_ext
5552cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005553/* end confdefs.h. */
5554#include <ac_nonexistent.h>
5555_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005556if { (ac_try="$ac_cpp conftest.$ac_ext"
5557case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560esac
5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } >/dev/null; then
5569 if test -s conftest.err; then
5570 ac_cpp_err=$ac_c_preproc_warn_flag
5571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5572 else
5573 ac_cpp_err=
5574 fi
5575else
5576 ac_cpp_err=yes
5577fi
5578if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005579 # Broken: success on invalid input.
5580continue
5581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582 echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
Reid Spencera773bd52006-08-04 18:18:08 +00005585 # Passes both tests.
5586ac_preproc_ok=:
5587break
5588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005589
Reid Spencera773bd52006-08-04 18:18:08 +00005590rm -f conftest.err conftest.$ac_ext
5591
5592done
5593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5594rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005595if $ac_preproc_ok; then
5596 :
Reid Spencera773bd52006-08-04 18:18:08 +00005597else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5599See \`config.log' for more details." >&5
5600echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5601See \`config.log' for more details." >&2;}
5602 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005603fi
5604
5605ac_ext=c
5606ac_cpp='$CPP $CPPFLAGS'
5607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609ac_compiler_gnu=$ac_cv_c_compiler_gnu
5610
5611ac_ext=c
5612ac_cpp='$CPP $CPPFLAGS'
5613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5615ac_compiler_gnu=$ac_cv_c_compiler_gnu
5616if test -n "$ac_tool_prefix"; then
5617 for ac_prog in gcc
5618 do
5619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5620set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5623if test "${ac_cv_prog_CC+set}" = set; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005625else
5626 if test -n "$CC"; then
5627 ac_cv_prog_CC="$CC" # Let the user override the test.
5628else
5629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630for as_dir in $PATH
5631do
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 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 +00005636 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005638 break 2
5639 fi
5640done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005641done
Reid Spencera773bd52006-08-04 18:18:08 +00005642IFS=$as_save_IFS
5643
5644fi
5645fi
5646CC=$ac_cv_prog_CC
5647if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005648 { echo "$as_me:$LINENO: result: $CC" >&5
5649echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005651 { echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005653fi
5654
5655
5656 test -n "$CC" && break
5657 done
5658fi
5659if test -z "$CC"; then
5660 ac_ct_CC=$CC
5661 for ac_prog in gcc
5662do
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005669else
5670 if test -n "$ac_ct_CC"; then
5671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 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 +00005680 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005682 break 2
5683 fi
5684done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005685done
Reid Spencera773bd52006-08-04 18:18:08 +00005686IFS=$as_save_IFS
5687
5688fi
5689fi
5690ac_ct_CC=$ac_cv_prog_ac_ct_CC
5691if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005692 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5693echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005695 { echo "$as_me:$LINENO: result: no" >&5
5696echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005697fi
5698
5699
5700 test -n "$ac_ct_CC" && break
5701done
5702
5703 if test "x$ac_ct_CC" = x; then
5704 CC=""
5705 else
5706 case $cross_compiling:$ac_tool_warned in
5707yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5709whose name does not start with the host triplet. If you think this
5710configuration is useful to you, please write to autoconf@gnu.org." >&5
5711echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005714ac_tool_warned=yes ;;
5715esac
5716 CC=$ac_ct_CC
5717 fi
5718fi
5719
5720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005721test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5722See \`config.log' for more details." >&5
5723echo "$as_me: error: no acceptable C compiler found in \$PATH
5724See \`config.log' for more details." >&2;}
5725 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005726
5727# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005728echo "$as_me:$LINENO: checking for C compiler version" >&5
5729ac_compiler=`set X $ac_compile; echo $2`
5730{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005731case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005737 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }
5740{ (ac_try="$ac_compiler -v >&5"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
5745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_compiler -v >&5") 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }
5750{ (ac_try="$ac_compiler -V >&5"
5751case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754esac
5755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compiler -V >&5") 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005760
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5762echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5763if test "${ac_cv_c_compiler_gnu+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005765else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005766 cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h. */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005771/* end confdefs.h. */
5772
5773int
5774main ()
5775{
5776#ifndef __GNUC__
5777 choke me
5778#endif
5779
5780 ;
5781 return 0;
5782}
5783_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784rm -f conftest.$ac_objext
5785if { (ac_try="$ac_compile"
5786case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } &&
5798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5799 { (case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_try") 2>&5
5805 ac_status=$?
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); }; } &&
5808 { ac_try='test -s conftest.$ac_objext'
5809 { (case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_try") 2>&5
5815 ac_status=$?
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005818 ac_compiler_gnu=yes
5819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005820 echo "$as_me: failed program was:" >&5
5821sed 's/^/| /' conftest.$ac_ext >&5
5822
5823 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005824fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825
Reid Spencera773bd52006-08-04 18:18:08 +00005826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827ac_cv_c_compiler_gnu=$ac_compiler_gnu
5828
5829fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005830{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5831echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5832GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005833ac_test_CFLAGS=${CFLAGS+set}
5834ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005835{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5836echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5837if test "${ac_cv_prog_cc_g+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005839else
5840 ac_save_c_werror_flag=$ac_c_werror_flag
5841 ac_c_werror_flag=yes
5842 ac_cv_prog_cc_g=no
5843 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005844 cat >conftest.$ac_ext <<_ACEOF
5845/* confdefs.h. */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005849/* end confdefs.h. */
5850
5851int
5852main ()
5853{
5854
5855 ;
5856 return 0;
5857}
5858_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859rm -f conftest.$ac_objext
5860if { (ac_try="$ac_compile"
5861case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest.$ac_objext'
5884 { (case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_try") 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005893 ac_cv_prog_cc_g=yes
5894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005895 echo "$as_me: failed program was:" >&5
5896sed 's/^/| /' conftest.$ac_ext >&5
5897
5898 CFLAGS=""
5899 cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h. */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005904/* end confdefs.h. */
5905
5906int
5907main ()
5908{
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005914rm -f conftest.$ac_objext
5915if { (ac_try="$ac_compile"
5916case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5919esac
5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_compile") 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5929 { (case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; } &&
5938 { ac_try='test -s conftest.$ac_objext'
5939 { (case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_try") 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 :
Torok Edwin871384f2010-01-26 08:50:50 +00005949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005950 echo "$as_me: failed program was:" >&5
5951sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005954 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005955 cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005960/* end confdefs.h. */
5961
5962int
5963main ()
5964{
5965
5966 ;
5967 return 0;
5968}
5969_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005970rm -f conftest.$ac_objext
5971if { (ac_try="$ac_compile"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5988esac
5989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006004 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006005else
6006 echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009
Reid Spencera773bd52006-08-04 18:18:08 +00006010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006011
Reid Spencera773bd52006-08-04 18:18:08 +00006012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013fi
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
6019 ac_c_werror_flag=$ac_save_c_werror_flag
6020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006021{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6022echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006023if test "$ac_test_CFLAGS" = set; then
6024 CFLAGS=$ac_save_CFLAGS
6025elif test $ac_cv_prog_cc_g = yes; then
6026 if test "$GCC" = yes; then
6027 CFLAGS="-g -O2"
6028 else
6029 CFLAGS="-g"
6030 fi
6031else
6032 if test "$GCC" = yes; then
6033 CFLAGS="-O2"
6034 else
6035 CFLAGS=
6036 fi
6037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006038{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6039echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6040if test "${ac_cv_prog_cc_c89+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006042else
6043 ac_cv_prog_cc_c89=no
6044ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006050/* end confdefs.h. */
6051#include <stdarg.h>
6052#include <stdio.h>
6053#include <sys/types.h>
6054#include <sys/stat.h>
6055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6056struct buf { int x; };
6057FILE * (*rcsopen) (struct buf *, struct stat *, int);
6058static char *e (p, i)
6059 char **p;
6060 int i;
6061{
6062 return p[i];
6063}
6064static char *f (char * (*g) (char **, int), char **p, ...)
6065{
6066 char *s;
6067 va_list v;
6068 va_start (v,p);
6069 s = g (p, va_arg (v,int));
6070 va_end (v);
6071 return s;
6072}
6073
6074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6075 function prototypes and stuff, but not '\xHH' hex character constants.
6076 These don't provoke an error unfortunately, instead are silently treated
6077 as 'x'. The following induces an error, until -std is added to get
6078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6079 array size at least. It's necessary to write '\x00'==0 to get something
6080 that's true only with -std. */
6081int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6082
6083/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6084 inside strings and character constants. */
6085#define FOO(x) 'x'
6086int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6087
6088int test (int i, double x);
6089struct s1 {int (*f) (int a);};
6090struct s2 {int (*f) (double a);};
6091int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6092int argc;
6093char **argv;
6094int
6095main ()
6096{
6097return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6098 ;
6099 return 0;
6100}
6101_ACEOF
6102for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6103 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6104do
6105 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006106 rm -f conftest.$ac_objext
6107if { (ac_try="$ac_compile"
6108case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6111esac
6112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6114 ac_status=$?
6115 grep -v '^ *+' conftest.er1 >conftest.err
6116 rm -f conftest.er1
6117 cat conftest.err >&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124esac
6125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; } &&
6130 { ac_try='test -s conftest.$ac_objext'
6131 { (case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_try") 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006140 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006141else
6142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145
Reid Spencera773bd52006-08-04 18:18:08 +00006146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006147
Reid Spencera773bd52006-08-04 18:18:08 +00006148rm -f core conftest.err conftest.$ac_objext
6149 test "x$ac_cv_prog_cc_c89" != "xno" && break
6150done
6151rm -f conftest.$ac_ext
6152CC=$ac_save_CC
6153
6154fi
6155# AC_CACHE_VAL
6156case "x$ac_cv_prog_cc_c89" in
6157 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006158 { echo "$as_me:$LINENO: result: none needed" >&5
6159echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006160 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006161 { echo "$as_me:$LINENO: result: unsupported" >&5
6162echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006163 *)
6164 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006165 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6166echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006167esac
6168
6169
6170ac_ext=c
6171ac_cpp='$CPP $CPPFLAGS'
6172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176ac_ext=cpp
6177ac_cpp='$CXXCPP $CPPFLAGS'
6178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6181if test -z "$CXX"; then
6182 if test -n "$CCC"; then
6183 CXX=$CCC
6184 else
6185 if test -n "$ac_tool_prefix"; then
6186 for ac_prog in g++
6187 do
6188 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192if test "${ac_cv_prog_CXX+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006194else
6195 if test -n "$CXX"; then
6196 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 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 +00006205 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006207 break 2
6208 fi
6209done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006210done
Reid Spencera773bd52006-08-04 18:18:08 +00006211IFS=$as_save_IFS
6212
6213fi
6214fi
6215CXX=$ac_cv_prog_CXX
6216if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006217 { echo "$as_me:$LINENO: result: $CXX" >&5
6218echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006220 { echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006222fi
6223
6224
6225 test -n "$CXX" && break
6226 done
6227fi
6228if test -z "$CXX"; then
6229 ac_ct_CXX=$CXX
6230 for ac_prog in g++
6231do
6232 # Extract the first word of "$ac_prog", so it can be a program name with args.
6233set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006238else
6239 if test -n "$ac_ct_CXX"; then
6240 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 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 +00006249 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006251 break 2
6252 fi
6253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006254done
Reid Spencera773bd52006-08-04 18:18:08 +00006255IFS=$as_save_IFS
6256
6257fi
6258fi
6259ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6260if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006261 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6262echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006263else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006264 { echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006266fi
6267
6268
6269 test -n "$ac_ct_CXX" && break
6270done
6271
6272 if test "x$ac_ct_CXX" = x; then
6273 CXX="g++"
6274 else
6275 case $cross_compiling:$ac_tool_warned in
6276yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6278whose name does not start with the host triplet. If you think this
6279configuration is useful to you, please write to autoconf@gnu.org." >&5
6280echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006283ac_tool_warned=yes ;;
6284esac
6285 CXX=$ac_ct_CXX
6286 fi
6287fi
6288
6289 fi
6290fi
6291# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006292echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6293ac_compiler=`set X $ac_compile; echo $2`
6294{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006295case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006301 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }
6304{ (ac_try="$ac_compiler -v >&5"
6305case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
6309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compiler -v >&5") 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }
6314{ (ac_try="$ac_compiler -V >&5"
6315case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318esac
6319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compiler -V >&5") 2>&5
6321 ac_status=$?
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6326echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6327if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6328 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006329else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006330 cat >conftest.$ac_ext <<_ACEOF
6331/* confdefs.h. */
6332_ACEOF
6333cat confdefs.h >>conftest.$ac_ext
6334cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006335/* end confdefs.h. */
6336
6337int
6338main ()
6339{
6340#ifndef __GNUC__
6341 choke me
6342#endif
6343
6344 ;
6345 return 0;
6346}
6347_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348rm -f conftest.$ac_objext
6349if { (ac_try="$ac_compile"
6350case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compile") 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6363 { (case "(($ac_try" in
6364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6365 *) ac_try_echo=$ac_try;;
6366esac
6367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6368 (eval "$ac_try") 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; } &&
6372 { ac_try='test -s conftest.$ac_objext'
6373 { (case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_try") 2>&5
6379 ac_status=$?
6380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006382 ac_compiler_gnu=yes
6383else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006384 echo "$as_me: failed program was:" >&5
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
6387 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006388fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389
Reid Spencera773bd52006-08-04 18:18:08 +00006390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6392
6393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006394{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6395echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6396GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006397ac_test_CXXFLAGS=${CXXFLAGS+set}
6398ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006399{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6400echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6401if test "${ac_cv_prog_cxx_g+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006403else
6404 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6405 ac_cxx_werror_flag=yes
6406 ac_cv_prog_cxx_g=no
6407 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006408 cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h. */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006413/* end confdefs.h. */
6414
6415int
6416main ()
6417{
6418
6419 ;
6420 return 0;
6421}
6422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423rm -f conftest.$ac_objext
6424if { (ac_try="$ac_compile"
6425case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6438 { (case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441esac
6442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_try") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest.$ac_objext'
6448 { (case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451esac
6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_try") 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006457 ac_cv_prog_cxx_g=yes
6458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006459 echo "$as_me: failed program was:" >&5
6460sed 's/^/| /' conftest.$ac_ext >&5
6461
6462 CXXFLAGS=""
6463 cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006468/* end confdefs.h. */
6469
6470int
6471main ()
6472{
6473
6474 ;
6475 return 0;
6476}
6477_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006478rm -f conftest.$ac_objext
6479if { (ac_try="$ac_compile"
6480case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483esac
6484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } &&
6492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6493 { (case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
6497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_try") 2>&5
6499 ac_status=$?
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest.$ac_objext'
6503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_try") 2>&5
6509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 :
Torok Edwin871384f2010-01-26 08:50:50 +00006513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006514 echo "$as_me: failed program was:" >&5
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006518 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006519 cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006524/* end confdefs.h. */
6525
6526int
6527main ()
6528{
6529
6530 ;
6531 return 0;
6532}
6533_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006534rm -f conftest.$ac_objext
6535if { (ac_try="$ac_compile"
6536case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6539esac
6540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6542 ac_status=$?
6543 grep -v '^ *+' conftest.er1 >conftest.err
6544 rm -f conftest.er1
6545 cat conftest.err >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549 { (case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_try") 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006568 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006569else
6570 echo "$as_me: failed program was:" >&5
6571sed 's/^/| /' conftest.$ac_ext >&5
6572
6573
Reid Spencera773bd52006-08-04 18:18:08 +00006574fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006575
Reid Spencera773bd52006-08-04 18:18:08 +00006576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577fi
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
6583 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006585{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6586echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006587if test "$ac_test_CXXFLAGS" = set; then
6588 CXXFLAGS=$ac_save_CXXFLAGS
6589elif test $ac_cv_prog_cxx_g = yes; then
6590 if test "$GXX" = yes; then
6591 CXXFLAGS="-g -O2"
6592 else
6593 CXXFLAGS="-g"
6594 fi
6595else
6596 if test "$GXX" = yes; then
6597 CXXFLAGS="-O2"
6598 else
6599 CXXFLAGS=
6600 fi
6601fi
6602ac_ext=c
6603ac_cpp='$CPP $CPPFLAGS'
6604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6606ac_compiler_gnu=$ac_cv_c_compiler_gnu
6607
Reid Spencera773bd52006-08-04 18:18:08 +00006608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6610echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6611if test "${lt_cv_path_NM+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006613else
6614 if test -n "$NM"; then
6615 # Let the user override the test.
6616 lt_cv_path_NM="$NM"
6617else
6618 lt_nm_to_check="${ac_tool_prefix}nm"
6619 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6620 lt_nm_to_check="$lt_nm_to_check nm"
6621 fi
6622 for lt_tmp_nm in $lt_nm_to_check; do
6623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6625 IFS="$lt_save_ifs"
6626 test -z "$ac_dir" && ac_dir=.
6627 tmp_nm="$ac_dir/$lt_tmp_nm"
6628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6629 # Check to see if the nm accepts a BSD-compat flag.
6630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6631 # nm: unknown option "B" ignored
6632 # Tru64's nm complains that /dev/null is an invalid object file
6633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6634 */dev/null* | *'Invalid file or object type'*)
6635 lt_cv_path_NM="$tmp_nm -B"
6636 break
6637 ;;
6638 *)
6639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6640 */dev/null*)
6641 lt_cv_path_NM="$tmp_nm -p"
6642 break
6643 ;;
6644 *)
6645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6646 continue # so that we can try to find one that supports BSD flags
6647 ;;
6648 esac
6649 ;;
6650 esac
6651 fi
6652 done
6653 IFS="$lt_save_ifs"
6654 done
6655 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6656fi
6657fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006658{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6659echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006660NM="$lt_cv_path_NM"
6661
6662
6663
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006664{ echo "$as_me:$LINENO: checking for GNU make" >&5
6665echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6666if test "${llvm_cv_gnu_make_command+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006668else
6669 llvm_cv_gnu_make_command=''
6670 for a in "$MAKE" make gmake gnumake ; do
6671 if test -z "$a" ; then continue ; fi ;
6672 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6673 then
6674 llvm_cv_gnu_make_command=$a ;
6675 break;
6676 fi
6677 done
6678fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006679{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6680echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006681 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6682 ifGNUmake='' ;
6683 else
6684 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006685 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6686echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006687 fi
6688
6689
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006690{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6691echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006692LN_S=$as_ln_s
6693if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006694 { echo "$as_me:$LINENO: result: yes" >&5
6695echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6698echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006699fi
6700
6701# Extract the first word of "cmp", so it can be a program name with args.
6702set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705if test "${ac_cv_path_CMP+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006707else
6708 case $CMP in
6709 [\\/]* | ?:[\\/]*)
6710 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6711 ;;
6712 *)
6713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714for as_dir in $PATH
6715do
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 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 +00006720 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006722 break 2
6723 fi
6724done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006725done
Reid Spencera773bd52006-08-04 18:18:08 +00006726IFS=$as_save_IFS
6727
6728 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6729 ;;
6730esac
6731fi
6732CMP=$ac_cv_path_CMP
6733if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006734 { echo "$as_me:$LINENO: result: $CMP" >&5
6735echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006736else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006737 { echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006739fi
6740
6741
6742# Extract the first word of "cp", so it can be a program name with args.
6743set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6746if test "${ac_cv_path_CP+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006748else
6749 case $CP in
6750 [\\/]* | ?:[\\/]*)
6751 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6752 ;;
6753 *)
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 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 +00006761 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006763 break 2
6764 fi
6765done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006766done
Reid Spencera773bd52006-08-04 18:18:08 +00006767IFS=$as_save_IFS
6768
6769 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6770 ;;
6771esac
6772fi
6773CP=$ac_cv_path_CP
6774if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775 { echo "$as_me:$LINENO: result: $CP" >&5
6776echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006780fi
6781
6782
6783# Extract the first word of "date", so it can be a program name with args.
6784set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787if test "${ac_cv_path_DATE+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006789else
6790 case $DATE in
6791 [\\/]* | ?:[\\/]*)
6792 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6793 ;;
6794 *)
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 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 +00006802 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006804 break 2
6805 fi
6806done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006807done
Reid Spencera773bd52006-08-04 18:18:08 +00006808IFS=$as_save_IFS
6809
6810 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6811 ;;
6812esac
6813fi
6814DATE=$ac_cv_path_DATE
6815if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006816 { echo "$as_me:$LINENO: result: $DATE" >&5
6817echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006818else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006821fi
6822
6823
6824# Extract the first word of "find", so it can be a program name with args.
6825set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828if test "${ac_cv_path_FIND+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006830else
6831 case $FIND in
6832 [\\/]* | ?:[\\/]*)
6833 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6834 ;;
6835 *)
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837for as_dir in $PATH
6838do
6839 IFS=$as_save_IFS
6840 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 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 +00006843 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006845 break 2
6846 fi
6847done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006848done
Reid Spencera773bd52006-08-04 18:18:08 +00006849IFS=$as_save_IFS
6850
6851 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6852 ;;
6853esac
6854fi
6855FIND=$ac_cv_path_FIND
6856if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006857 { echo "$as_me:$LINENO: result: $FIND" >&5
6858echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006859else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006860 { echo "$as_me:$LINENO: result: no" >&5
6861echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006862fi
6863
6864
6865# Extract the first word of "grep", so it can be a program name with args.
6866set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869if test "${ac_cv_path_GREP+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006871else
6872 case $GREP in
6873 [\\/]* | ?:[\\/]*)
6874 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6875 ;;
6876 *)
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878for as_dir in $PATH
6879do
6880 IFS=$as_save_IFS
6881 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 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 +00006884 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006886 break 2
6887 fi
6888done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006889done
Reid Spencera773bd52006-08-04 18:18:08 +00006890IFS=$as_save_IFS
6891
6892 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6893 ;;
6894esac
6895fi
6896GREP=$ac_cv_path_GREP
6897if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006898 { echo "$as_me:$LINENO: result: $GREP" >&5
6899echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006901 { echo "$as_me:$LINENO: result: no" >&5
6902echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006903fi
6904
6905
6906# Extract the first word of "mkdir", so it can be a program name with args.
6907set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6910if test "${ac_cv_path_MKDIR+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006912else
6913 case $MKDIR in
6914 [\\/]* | ?:[\\/]*)
6915 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6916 ;;
6917 *)
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919for as_dir in $PATH
6920do
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 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 +00006925 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006927 break 2
6928 fi
6929done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006930done
Reid Spencera773bd52006-08-04 18:18:08 +00006931IFS=$as_save_IFS
6932
6933 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6934 ;;
6935esac
6936fi
6937MKDIR=$ac_cv_path_MKDIR
6938if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006939 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6940echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006941else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006942 { echo "$as_me:$LINENO: result: no" >&5
6943echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006944fi
6945
6946
6947# Extract the first word of "mv", so it can be a program name with args.
6948set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951if test "${ac_cv_path_MV+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006953else
6954 case $MV in
6955 [\\/]* | ?:[\\/]*)
6956 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6957 ;;
6958 *)
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960for as_dir in $PATH
6961do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 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 +00006966 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006968 break 2
6969 fi
6970done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006971done
Reid Spencera773bd52006-08-04 18:18:08 +00006972IFS=$as_save_IFS
6973
6974 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6975 ;;
6976esac
6977fi
6978MV=$ac_cv_path_MV
6979if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006980 { echo "$as_me:$LINENO: result: $MV" >&5
6981echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006983 { echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006985fi
6986
6987
6988if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6990set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993if test "${ac_cv_prog_RANLIB+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006995else
6996 if test -n "$RANLIB"; then
6997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 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 +00007006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007008 break 2
7009 fi
7010done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007011done
Reid Spencera773bd52006-08-04 18:18:08 +00007012IFS=$as_save_IFS
7013
7014fi
7015fi
7016RANLIB=$ac_cv_prog_RANLIB
7017if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007018 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7019echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007021 { echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007023fi
7024
7025
7026fi
7027if test -z "$ac_cv_prog_RANLIB"; then
7028 ac_ct_RANLIB=$RANLIB
7029 # Extract the first word of "ranlib", so it can be a program name with args.
7030set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007035else
7036 if test -n "$ac_ct_RANLIB"; then
7037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 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 +00007046 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007048 break 2
7049 fi
7050done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007051done
Reid Spencera773bd52006-08-04 18:18:08 +00007052IFS=$as_save_IFS
7053
7054fi
7055fi
7056ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7057if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007058 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7059echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007060else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061 { echo "$as_me:$LINENO: result: no" >&5
7062echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007063fi
7064
7065 if test "x$ac_ct_RANLIB" = x; then
7066 RANLIB=":"
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7071whose name does not start with the host triplet. If you think this
7072configuration is useful to you, please write to autoconf@gnu.org." >&5
7073echo "$as_me: 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." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007076ac_tool_warned=yes ;;
7077esac
7078 RANLIB=$ac_ct_RANLIB
7079 fi
7080else
7081 RANLIB="$ac_cv_prog_RANLIB"
7082fi
7083
Torok Edwin871384f2010-01-26 08:50:50 +00007084if test -n "$ac_tool_prefix"; then
7085 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7086set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_prog_AR+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007091else
7092 if test -n "$AR"; then
7093 ac_cv_prog_AR="$AR" # Let the user override the test.
7094else
7095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00007102 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007104 break 2
7105 fi
7106done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007107done
Torok Edwin871384f2010-01-26 08:50:50 +00007108IFS=$as_save_IFS
7109
7110fi
7111fi
7112AR=$ac_cv_prog_AR
7113if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007114 { echo "$as_me:$LINENO: result: $AR" >&5
7115echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007116else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007117 { echo "$as_me:$LINENO: result: no" >&5
7118echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007119fi
7120
7121
7122fi
7123if test -z "$ac_cv_prog_AR"; then
7124 ac_ct_AR=$AR
7125 # Extract the first word of "ar", so it can be a program name with args.
7126set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007131else
7132 if test -n "$ac_ct_AR"; then
7133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7134else
7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136for as_dir in $PATH
7137do
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwin871384f2010-01-26 08:50:50 +00007142 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007144 break 2
7145 fi
7146done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007147done
Torok Edwin871384f2010-01-26 08:50:50 +00007148IFS=$as_save_IFS
7149
7150fi
7151fi
7152ac_ct_AR=$ac_cv_prog_ac_ct_AR
7153if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007154 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7155echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007157 { echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007159fi
7160
7161 if test "x$ac_ct_AR" = x; then
7162 AR="false"
7163 else
7164 case $cross_compiling:$ac_tool_warned in
7165yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7167whose name does not start with the host triplet. If you think this
7168configuration is useful to you, please write to autoconf@gnu.org." >&5
7169echo "$as_me: 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." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007172ac_tool_warned=yes ;;
7173esac
7174 AR=$ac_ct_AR
7175 fi
7176else
7177 AR="$ac_cv_prog_AR"
7178fi
7179
Reid Spencera773bd52006-08-04 18:18:08 +00007180# Extract the first word of "rm", so it can be a program name with args.
7181set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184if test "${ac_cv_path_RM+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007186else
7187 case $RM in
7188 [\\/]* | ?:[\\/]*)
7189 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7190 ;;
7191 *)
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195 IFS=$as_save_IFS
7196 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197 for ac_exec_ext in '' $ac_executable_extensions; do
7198 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 +00007199 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007201 break 2
7202 fi
7203done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204done
Reid Spencera773bd52006-08-04 18:18:08 +00007205IFS=$as_save_IFS
7206
7207 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7208 ;;
7209esac
7210fi
7211RM=$ac_cv_path_RM
7212if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007213 { echo "$as_me:$LINENO: result: $RM" >&5
7214echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007215else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007216 { echo "$as_me:$LINENO: result: no" >&5
7217echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007218fi
7219
7220
7221# Extract the first word of "sed", so it can be a program name with args.
7222set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225if test "${ac_cv_path_SED+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007227else
7228 case $SED in
7229 [\\/]* | ?:[\\/]*)
7230 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7231 ;;
7232 *)
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236 IFS=$as_save_IFS
7237 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 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 +00007240 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007242 break 2
7243 fi
7244done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007245done
Reid Spencera773bd52006-08-04 18:18:08 +00007246IFS=$as_save_IFS
7247
7248 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7249 ;;
7250esac
7251fi
7252SED=$ac_cv_path_SED
7253if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007254 { echo "$as_me:$LINENO: result: $SED" >&5
7255echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007256else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007257 { echo "$as_me:$LINENO: result: no" >&5
7258echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007259fi
7260
7261
7262# Extract the first word of "tar", so it can be a program name with args.
7263set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7266if test "${ac_cv_path_TAR+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007268else
7269 case $TAR in
7270 [\\/]* | ?:[\\/]*)
7271 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7272 ;;
7273 *)
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275for as_dir in $PATH
7276do
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 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 +00007281 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007283 break 2
7284 fi
7285done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007286done
Reid Spencera773bd52006-08-04 18:18:08 +00007287IFS=$as_save_IFS
7288
7289 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7290 ;;
7291esac
7292fi
7293TAR=$ac_cv_path_TAR
7294if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007295 { echo "$as_me:$LINENO: result: $TAR" >&5
7296echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007297else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007298 { echo "$as_me:$LINENO: result: no" >&5
7299echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007300fi
7301
7302
7303# Extract the first word of "pwd", so it can be a program name with args.
7304set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307if test "${ac_cv_path_BINPWD+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007309else
7310 case $BINPWD in
7311 [\\/]* | ?:[\\/]*)
7312 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7313 ;;
7314 *)
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316for as_dir in $PATH
7317do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007322 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007324 break 2
7325 fi
7326done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007327done
Reid Spencera773bd52006-08-04 18:18:08 +00007328IFS=$as_save_IFS
7329
7330 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7331 ;;
7332esac
7333fi
7334BINPWD=$ac_cv_path_BINPWD
7335if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007336 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7337echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007338else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007339 { echo "$as_me:$LINENO: result: no" >&5
7340echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007341fi
7342
7343
7344
7345# Extract the first word of "Graphviz", so it can be a program name with args.
7346set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007351else
7352 case $GRAPHVIZ in
7353 [\\/]* | ?:[\\/]*)
7354 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7355 ;;
7356 *)
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 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 +00007364 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007366 break 2
7367 fi
7368done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369done
Reid Spencera773bd52006-08-04 18:18:08 +00007370IFS=$as_save_IFS
7371
7372 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7373 ;;
7374esac
7375fi
7376GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7377if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7379echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007381 { echo "$as_me:$LINENO: result: no" >&5
7382echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007383fi
7384
7385
7386if test "$GRAPHVIZ" != "echo Graphviz" ; then
7387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388cat >>confdefs.h <<\_ACEOF
7389#define HAVE_GRAPHVIZ 1
7390_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007391
Jeff Cohen28783c32007-01-12 18:22:38 +00007392 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007393 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7394 fi
7395
7396cat >>confdefs.h <<_ACEOF
7397#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7398_ACEOF
7399
7400fi
7401# Extract the first word of "dot", so it can be a program name with args.
7402set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405if test "${ac_cv_path_DOT+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007407else
7408 case $DOT in
7409 [\\/]* | ?:[\\/]*)
7410 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7411 ;;
7412 *)
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007420 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007422 break 2
7423 fi
7424done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007425done
Reid Spencera773bd52006-08-04 18:18:08 +00007426IFS=$as_save_IFS
7427
7428 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7429 ;;
7430esac
7431fi
7432DOT=$ac_cv_path_DOT
7433if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007434 { echo "$as_me:$LINENO: result: $DOT" >&5
7435echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007436else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437 { echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007439fi
7440
7441
7442if test "$DOT" != "echo dot" ; then
7443
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444cat >>confdefs.h <<\_ACEOF
7445#define HAVE_DOT 1
7446_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007447
Jeff Cohen28783c32007-01-12 18:22:38 +00007448 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007449 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7450 fi
7451
7452cat >>confdefs.h <<_ACEOF
7453#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7454_ACEOF
7455
7456fi
David Greenef0b9eff2009-07-09 17:16:26 +00007457# Extract the first word of "fdp", so it can be a program name with args.
7458set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461if test "${ac_cv_path_FDP+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007463else
7464 case $FDP in
7465 [\\/]* | ?:[\\/]*)
7466 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7467 ;;
7468 *)
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007476 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007478 break 2
7479 fi
7480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007481done
David Greenef0b9eff2009-07-09 17:16:26 +00007482IFS=$as_save_IFS
7483
7484 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7485 ;;
7486esac
7487fi
7488FDP=$ac_cv_path_FDP
7489if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007490 { echo "$as_me:$LINENO: result: $FDP" >&5
7491echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007492else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493 { echo "$as_me:$LINENO: result: no" >&5
7494echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007495fi
7496
7497
7498if test "$FDP" != "echo fdp" ; then
7499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500cat >>confdefs.h <<\_ACEOF
7501#define HAVE_FDP 1
7502_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007503
7504 if test "$llvm_cv_os_type" = "MingW" ; then
7505 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7506 fi
7507
7508cat >>confdefs.h <<_ACEOF
7509#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7510_ACEOF
7511
7512fi
7513# Extract the first word of "neato", so it can be a program name with args.
7514set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517if test "${ac_cv_path_NEATO+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007519else
7520 case $NEATO in
7521 [\\/]* | ?:[\\/]*)
7522 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7523 ;;
7524 *)
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007530 for ac_exec_ext in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007532 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007534 break 2
7535 fi
7536done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007537done
David Greenef0b9eff2009-07-09 17:16:26 +00007538IFS=$as_save_IFS
7539
7540 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7541 ;;
7542esac
7543fi
7544NEATO=$ac_cv_path_NEATO
7545if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007546 { echo "$as_me:$LINENO: result: $NEATO" >&5
7547echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549 { echo "$as_me:$LINENO: result: no" >&5
7550echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007551fi
7552
7553
7554if test "$NEATO" != "echo neato" ; then
7555
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556cat >>confdefs.h <<\_ACEOF
7557#define HAVE_NEATO 1
7558_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007559
7560 if test "$llvm_cv_os_type" = "MingW" ; then
7561 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7562 fi
7563
7564cat >>confdefs.h <<_ACEOF
7565#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7566_ACEOF
7567
7568fi
7569# Extract the first word of "twopi", so it can be a program name with args.
7570set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573if test "${ac_cv_path_TWOPI+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007575else
7576 case $TWOPI in
7577 [\\/]* | ?:[\\/]*)
7578 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7579 ;;
7580 *)
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007588 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007590 break 2
7591 fi
7592done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007593done
David Greenef0b9eff2009-07-09 17:16:26 +00007594IFS=$as_save_IFS
7595
7596 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7597 ;;
7598esac
7599fi
7600TWOPI=$ac_cv_path_TWOPI
7601if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007602 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7603echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605 { echo "$as_me:$LINENO: result: no" >&5
7606echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007607fi
7608
7609
7610if test "$TWOPI" != "echo twopi" ; then
7611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612cat >>confdefs.h <<\_ACEOF
7613#define HAVE_TWOPI 1
7614_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007615
7616 if test "$llvm_cv_os_type" = "MingW" ; then
7617 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7618 fi
7619
7620cat >>confdefs.h <<_ACEOF
7621#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7622_ACEOF
7623
7624fi
7625# Extract the first word of "circo", so it can be a program name with args.
7626set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629if test "${ac_cv_path_CIRCO+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007631else
7632 case $CIRCO in
7633 [\\/]* | ?:[\\/]*)
7634 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7635 ;;
7636 *)
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
David Greenef0b9eff2009-07-09 17:16:26 +00007644 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007646 break 2
7647 fi
7648done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007649done
David Greenef0b9eff2009-07-09 17:16:26 +00007650IFS=$as_save_IFS
7651
7652 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7653 ;;
7654esac
7655fi
7656CIRCO=$ac_cv_path_CIRCO
7657if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007658 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7659echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007660else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661 { echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007663fi
7664
7665
7666if test "$CIRCO" != "echo circo" ; then
7667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668cat >>confdefs.h <<\_ACEOF
7669#define HAVE_CIRCO 1
7670_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007671
7672 if test "$llvm_cv_os_type" = "MingW" ; then
7673 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7674 fi
7675
7676cat >>confdefs.h <<_ACEOF
7677#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7678_ACEOF
7679
7680fi
Reid Spencera773bd52006-08-04 18:18:08 +00007681for ac_prog in gv gsview32
7682do
7683 # Extract the first word of "$ac_prog", so it can be a program name with args.
7684set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007685{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687if test "${ac_cv_path_GV+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007689else
7690 case $GV in
7691 [\\/]* | ?:[\\/]*)
7692 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7693 ;;
7694 *)
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 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 +00007702 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007704 break 2
7705 fi
7706done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707done
Reid Spencera773bd52006-08-04 18:18:08 +00007708IFS=$as_save_IFS
7709
7710 ;;
7711esac
7712fi
7713GV=$ac_cv_path_GV
7714if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007715 { echo "$as_me:$LINENO: result: $GV" >&5
7716echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007718 { echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007720fi
7721
7722
7723 test -n "$GV" && break
7724done
7725test -n "$GV" || GV="echo gv"
7726
7727if test "$GV" != "echo gv" ; then
7728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007729cat >>confdefs.h <<\_ACEOF
7730#define HAVE_GV 1
7731_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007732
Jeff Cohen28783c32007-01-12 18:22:38 +00007733 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007734 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7735 fi
7736
7737cat >>confdefs.h <<_ACEOF
7738#define LLVM_PATH_GV "$GV${EXEEXT}"
7739_ACEOF
7740
7741fi
7742# Extract the first word of "dotty", so it can be a program name with args.
7743set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746if test "${ac_cv_path_DOTTY+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007748else
7749 case $DOTTY in
7750 [\\/]* | ?:[\\/]*)
7751 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7752 ;;
7753 *)
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 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 +00007761 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007763 break 2
7764 fi
7765done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007766done
Reid Spencera773bd52006-08-04 18:18:08 +00007767IFS=$as_save_IFS
7768
7769 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7770 ;;
7771esac
7772fi
7773DOTTY=$ac_cv_path_DOTTY
7774if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007775 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7776echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007777else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007778 { echo "$as_me:$LINENO: result: no" >&5
7779echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007780fi
7781
7782
7783if test "$DOTTY" != "echo dotty" ; then
7784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785cat >>confdefs.h <<\_ACEOF
7786#define HAVE_DOTTY 1
7787_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007788
Jeff Cohen28783c32007-01-12 18:22:38 +00007789 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007790 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7791 fi
7792
7793cat >>confdefs.h <<_ACEOF
7794#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7795_ACEOF
7796
7797fi
7798
7799
7800# Extract the first word of "perl", so it can be a program name with args.
7801set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804if test "${ac_cv_path_PERL+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007806else
7807 case $PERL in
7808 [\\/]* | ?:[\\/]*)
7809 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7810 ;;
7811 *)
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 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 +00007819 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007821 break 2
7822 fi
7823done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824done
Reid Spencera773bd52006-08-04 18:18:08 +00007825IFS=$as_save_IFS
7826
7827 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7828 ;;
7829esac
7830fi
7831PERL=$ac_cv_path_PERL
7832if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007833 { echo "$as_me:$LINENO: result: $PERL" >&5
7834echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007836 { echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007838fi
7839
7840
7841if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007842 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7843echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007844 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007845 { echo "$as_me:$LINENO: result: yes" >&5
7846echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007847 else
7848 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849 { echo "$as_me:$LINENO: result: not found" >&5
7850echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007851 fi
7852fi
7853
7854
7855if test x"$PERL" = xnone; then
7856 HAVE_PERL=0
7857
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007858 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7859echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7860 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007861else
7862 HAVE_PERL=1
7863
7864fi
7865
7866# Find a good install program. We prefer a C program (faster),
7867# so one script is as good as another. But avoid the broken or
7868# incompatible versions:
7869# SysV /etc/install, /usr/sbin/install
7870# SunOS /usr/etc/install
7871# IRIX /sbin/install
7872# AIX /bin/install
7873# AmigaOS /C/install, which installs bootblocks on floppy discs
7874# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7875# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7876# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7877# OS/2's system install, which has a completely different semantic
7878# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007879{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7880echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007881if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007882if test "${ac_cv_path_install+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007884else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007890 # Account for people who put trailing slashes in PATH elements.
7891case $as_dir/ in
7892 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007894 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007895 /usr/ucb/* ) ;;
7896 *)
7897 # OSF1 and SCO ODT 3.0 have their own names for install.
7898 # Don't use installbsd from OSF since it installs stuff as root
7899 # by default.
7900 for ac_prog in ginstall scoinst install; do
7901 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007902 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 +00007903 if test $ac_prog = install &&
7904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7905 # AIX install. It has an incompatible calling convention.
7906 :
7907 elif test $ac_prog = install &&
7908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7909 # program-specific install script used by HP pwplus--don't use.
7910 :
7911 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7913 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007914 fi
7915 fi
7916 done
7917 done
7918 ;;
7919esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007920done
Reid Spencera773bd52006-08-04 18:18:08 +00007921IFS=$as_save_IFS
7922
7923
7924fi
7925 if test "${ac_cv_path_install+set}" = set; then
7926 INSTALL=$ac_cv_path_install
7927 else
7928 # As a last resort, use the slow shell script. Don't cache a
7929 # value for INSTALL within a source directory, because that will
7930 # break other packages using the cache if that directory is
7931 # removed, or if the value is a relative name.
7932 INSTALL=$ac_install_sh
7933 fi
7934fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7936echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007937
7938# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7939# It thinks the first close brace ends the variable substitution.
7940test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7941
7942test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7943
7944test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7945
7946
7947# Extract the first word of "bzip2", so it can be a program name with args.
7948set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007949{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7951if test "${ac_cv_path_BZIP2+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007953else
7954 case $BZIP2 in
7955 [\\/]* | ?:[\\/]*)
7956 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7957 ;;
7958 *)
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
7961do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 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 +00007966 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007968 break 2
7969 fi
7970done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007971done
Reid Spencera773bd52006-08-04 18:18:08 +00007972IFS=$as_save_IFS
7973
Reid Spencera773bd52006-08-04 18:18:08 +00007974 ;;
7975esac
7976fi
7977BZIP2=$ac_cv_path_BZIP2
7978if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7980echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007981else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007982 { echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007984fi
7985
7986
7987# Extract the first word of "doxygen", so it can be a program name with args.
7988set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7991if test "${ac_cv_path_DOXYGEN+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007993else
7994 case $DOXYGEN in
7995 [\\/]* | ?:[\\/]*)
7996 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7997 ;;
7998 *)
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000for as_dir in $PATH
8001do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 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 +00008006 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008008 break 2
8009 fi
8010done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008011done
Reid Spencera773bd52006-08-04 18:18:08 +00008012IFS=$as_save_IFS
8013
Reid Spencera773bd52006-08-04 18:18:08 +00008014 ;;
8015esac
8016fi
8017DOXYGEN=$ac_cv_path_DOXYGEN
8018if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008019 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8020echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022 { echo "$as_me:$LINENO: result: no" >&5
8023echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008024fi
8025
8026
Reid Spencera773bd52006-08-04 18:18:08 +00008027# Extract the first word of "groff", so it can be a program name with args.
8028set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8031if test "${ac_cv_path_GROFF+set}" = set; then
8032 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008033else
8034 case $GROFF in
8035 [\\/]* | ?:[\\/]*)
8036 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8037 ;;
8038 *)
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040for as_dir in $PATH
8041do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 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 +00008046 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008048 break 2
8049 fi
8050done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008051done
Reid Spencera773bd52006-08-04 18:18:08 +00008052IFS=$as_save_IFS
8053
Reid Spencera773bd52006-08-04 18:18:08 +00008054 ;;
8055esac
8056fi
8057GROFF=$ac_cv_path_GROFF
8058if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008059 { echo "$as_me:$LINENO: result: $GROFF" >&5
8060echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008061else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008062 { echo "$as_me:$LINENO: result: no" >&5
8063echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008064fi
8065
8066
8067# Extract the first word of "gzip", so it can be a program name with args.
8068set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8071if test "${ac_cv_path_GZIP+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008073else
8074 case $GZIP in
8075 [\\/]* | ?:[\\/]*)
8076 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8077 ;;
8078 *)
8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082 IFS=$as_save_IFS
8083 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008084 for ac_exec_ext in '' $ac_executable_extensions; do
8085 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 +00008086 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008088 break 2
8089 fi
8090done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008091done
Reid Spencera773bd52006-08-04 18:18:08 +00008092IFS=$as_save_IFS
8093
Reid Spencera773bd52006-08-04 18:18:08 +00008094 ;;
8095esac
8096fi
8097GZIP=$ac_cv_path_GZIP
8098if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008099 { echo "$as_me:$LINENO: result: $GZIP" >&5
8100echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102 { echo "$as_me:$LINENO: result: no" >&5
8103echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008104fi
8105
8106
8107# Extract the first word of "pod2html", so it can be a program name with args.
8108set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8111if test "${ac_cv_path_POD2HTML+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008113else
8114 case $POD2HTML in
8115 [\\/]* | ?:[\\/]*)
8116 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8117 ;;
8118 *)
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120for as_dir in $PATH
8121do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 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 +00008126 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008128 break 2
8129 fi
8130done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008131done
Reid Spencera773bd52006-08-04 18:18:08 +00008132IFS=$as_save_IFS
8133
Reid Spencera773bd52006-08-04 18:18:08 +00008134 ;;
8135esac
8136fi
8137POD2HTML=$ac_cv_path_POD2HTML
8138if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008139 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8140echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142 { echo "$as_me:$LINENO: result: no" >&5
8143echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008144fi
8145
8146
8147# Extract the first word of "pod2man", so it can be a program name with args.
8148set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8151if test "${ac_cv_path_POD2MAN+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008153else
8154 case $POD2MAN in
8155 [\\/]* | ?:[\\/]*)
8156 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8157 ;;
8158 *)
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 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 +00008166 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008168 break 2
8169 fi
8170done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008171done
Reid Spencera773bd52006-08-04 18:18:08 +00008172IFS=$as_save_IFS
8173
Reid Spencera773bd52006-08-04 18:18:08 +00008174 ;;
8175esac
8176fi
8177POD2MAN=$ac_cv_path_POD2MAN
8178if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008179 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8180echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008181else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182 { echo "$as_me:$LINENO: result: no" >&5
8183echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008184fi
8185
8186
8187# Extract the first word of "runtest", so it can be a program name with args.
8188set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8191if test "${ac_cv_path_RUNTEST+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008193else
8194 case $RUNTEST in
8195 [\\/]* | ?:[\\/]*)
8196 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8197 ;;
8198 *)
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 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 +00008206 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008208 break 2
8209 fi
8210done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008211done
Reid Spencera773bd52006-08-04 18:18:08 +00008212IFS=$as_save_IFS
8213
Reid Spencera773bd52006-08-04 18:18:08 +00008214 ;;
8215esac
8216fi
8217RUNTEST=$ac_cv_path_RUNTEST
8218if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8220echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008221else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222 { echo "$as_me:$LINENO: result: no" >&5
8223echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008224fi
8225
8226
8227
8228no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008229{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8230echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008231
8232# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008233if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008234 withval=$with_tclinclude; with_tclinclude=${withval}
8235else
8236 with_tclinclude=''
8237fi
8238
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008239if test "${ac_cv_path_tclsh+set}" = set; then
8240 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008241else
8242
8243if test x"${with_tclinclude}" != x ; then
8244 if test -f ${with_tclinclude}/tclsh ; then
8245 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8246 elif test -f ${with_tclinclude}/src/tclsh ; then
8247 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8248 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8250echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8251 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008252 fi
8253fi
Torok Edwin871384f2010-01-26 08:50:50 +00008254fi
8255
Reid Spencera773bd52006-08-04 18:18:08 +00008256
8257if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008258 { echo "$as_me:$LINENO: result: none" >&5
8259echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008260 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
8261do
8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
8263set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008264{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8266if test "${ac_cv_path_TCLSH+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008268else
8269 case $TCLSH in
8270 [\\/]* | ?:[\\/]*)
8271 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8272 ;;
8273 *)
8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 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 +00008281 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008283 break 2
8284 fi
8285done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008286done
Reid Spencera773bd52006-08-04 18:18:08 +00008287IFS=$as_save_IFS
8288
8289 ;;
8290esac
8291fi
8292TCLSH=$ac_cv_path_TCLSH
8293if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008294 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8295echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008296else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008297 { echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008299fi
8300
8301
8302 test -n "$TCLSH" && break
8303done
8304
8305 if test x"${TCLSH}" = x ; then
8306 ac_cv_path_tclsh='';
8307 else
8308 ac_cv_path_tclsh="${TCLSH}";
8309 fi
8310else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8312echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008313 TCLSH="${ac_cv_path_tclsh}"
8314
8315fi
8316
Reid Spencera773bd52006-08-04 18:18:08 +00008317# Extract the first word of "zip", so it can be a program name with args.
8318set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321if test "${ac_cv_path_ZIP+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008323else
8324 case $ZIP in
8325 [\\/]* | ?:[\\/]*)
8326 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8327 ;;
8328 *)
8329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 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 +00008336 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008338 break 2
8339 fi
8340done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008341done
Reid Spencera773bd52006-08-04 18:18:08 +00008342IFS=$as_save_IFS
8343
Reid Spencera773bd52006-08-04 18:18:08 +00008344 ;;
8345esac
8346fi
8347ZIP=$ac_cv_path_ZIP
8348if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008349 { echo "$as_me:$LINENO: result: $ZIP" >&5
8350echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008351else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352 { echo "$as_me:$LINENO: result: no" >&5
8353echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008354fi
8355
8356
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008357for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008358do
8359 # Extract the first word of "$ac_prog", so it can be a program name with args.
8360set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8363if test "${ac_cv_path_OCAMLC+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008365else
8366 case $OCAMLC in
8367 [\\/]* | ?:[\\/]*)
8368 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8369 ;;
8370 *)
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 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 +00008378 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008380 break 2
8381 fi
8382done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008383done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008384IFS=$as_save_IFS
8385
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008386 ;;
8387esac
8388fi
8389OCAMLC=$ac_cv_path_OCAMLC
8390if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008391 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8392echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008394 { echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008396fi
8397
8398
Gordon Henriksene7072162008-03-07 18:20:01 +00008399 test -n "$OCAMLC" && break
8400done
8401
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008402for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008403do
8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
8405set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008410else
8411 case $OCAMLOPT in
8412 [\\/]* | ?:[\\/]*)
8413 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8414 ;;
8415 *)
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417for as_dir in $PATH
8418do
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 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 +00008423 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008425 break 2
8426 fi
8427done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008428done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008429IFS=$as_save_IFS
8430
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008431 ;;
8432esac
8433fi
8434OCAMLOPT=$ac_cv_path_OCAMLOPT
8435if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008436 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8437echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008438else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008439 { echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008441fi
8442
8443
Gordon Henriksene7072162008-03-07 18:20:01 +00008444 test -n "$OCAMLOPT" && break
8445done
8446
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008447for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008448do
8449 # Extract the first word of "$ac_prog", so it can be a program name with args.
8450set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8453if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008455else
8456 case $OCAMLDEP in
8457 [\\/]* | ?:[\\/]*)
8458 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8459 ;;
8460 *)
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 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 +00008468 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008470 break 2
8471 fi
8472done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008473done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008474IFS=$as_save_IFS
8475
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008476 ;;
8477esac
8478fi
8479OCAMLDEP=$ac_cv_path_OCAMLDEP
8480if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008481 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8482echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484 { echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008486fi
8487
8488
Gordon Henriksene7072162008-03-07 18:20:01 +00008489 test -n "$OCAMLDEP" && break
8490done
8491
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008492for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008493do
8494 # Extract the first word of "$ac_prog", so it can be a program name with args.
8495set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8498if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008500else
8501 case $OCAMLDOC in
8502 [\\/]* | ?:[\\/]*)
8503 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8504 ;;
8505 *)
8506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509 IFS=$as_save_IFS
8510 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008511 for ac_exec_ext in '' $ac_executable_extensions; do
8512 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 +00008513 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008515 break 2
8516 fi
8517done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008518done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008519IFS=$as_save_IFS
8520
8521 ;;
8522esac
8523fi
8524OCAMLDOC=$ac_cv_path_OCAMLDOC
8525if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008526 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8527echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529 { echo "$as_me:$LINENO: result: no" >&5
8530echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008531fi
8532
8533
8534 test -n "$OCAMLDOC" && break
8535done
8536
Torok Edwincc499a42008-10-22 09:56:27 +00008537for ac_prog in gas as
8538do
8539 # Extract the first word of "$ac_prog", so it can be a program name with args.
8540set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543if test "${ac_cv_path_GAS+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008545else
8546 case $GAS in
8547 [\\/]* | ?:[\\/]*)
8548 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8549 ;;
8550 *)
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 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 +00008558 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008560 break 2
8561 fi
8562done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008563done
Torok Edwincc499a42008-10-22 09:56:27 +00008564IFS=$as_save_IFS
8565
8566 ;;
8567esac
8568fi
8569GAS=$ac_cv_path_GAS
8570if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008571 { echo "$as_me:$LINENO: result: $GAS" >&5
8572echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008573else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574 { echo "$as_me:$LINENO: result: no" >&5
8575echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008576fi
8577
8578
8579 test -n "$GAS" && break
8580done
8581
Reid Spencera773bd52006-08-04 18:18:08 +00008582
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008583{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8584echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8585if test "${llvm_cv_link_use_r+set}" = set; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008587else
8588 ac_ext=c
8589ac_cpp='$CPP $CPPFLAGS'
8590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8592ac_compiler_gnu=$ac_cv_c_compiler_gnu
8593
8594 oldcflags="$CFLAGS"
8595 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008596 cat >conftest.$ac_ext <<_ACEOF
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008601/* end confdefs.h. */
8602
8603int
8604main ()
8605{
8606int main() { return 0; }
8607 ;
8608 return 0;
8609}
8610_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008611rm -f conftest.$ac_objext conftest$ac_exeext
8612if { (ac_try="$ac_link"
8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_link") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639esac
8640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_try") 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008645 llvm_cv_link_use_r=yes
8646else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008647 echo "$as_me: failed program was:" >&5
8648sed 's/^/| /' conftest.$ac_ext >&5
8649
8650 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008651fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008652
Bill Wendlingebcceee2009-04-18 11:20:33 +00008653rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008654 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008655 CFLAGS="$oldcflags"
8656 ac_ext=c
8657ac_cpp='$CPP $CPPFLAGS'
8658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8660ac_compiler_gnu=$ac_cv_c_compiler_gnu
8661
8662
8663fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008664{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8665echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008666if test "$llvm_cv_link_use_r" = yes ; then
8667
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008668cat >>confdefs.h <<\_ACEOF
8669#define HAVE_LINK_R 1
8670_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008671
8672 fi
8673
8674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008675{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8676echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8677if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008679else
8680 ac_ext=c
8681ac_cpp='$CPP $CPPFLAGS'
8682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685
8686 oldcflags="$CFLAGS"
8687 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008688 cat >conftest.$ac_ext <<_ACEOF
8689/* confdefs.h. */
8690_ACEOF
8691cat confdefs.h >>conftest.$ac_ext
8692cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008693/* end confdefs.h. */
8694
8695int
8696main ()
8697{
8698int main() { return 0; }
8699 ;
8700 return 0;
8701}
8702_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008703rm -f conftest.$ac_objext conftest$ac_exeext
8704if { (ac_try="$ac_link"
8705case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708esac
8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_link") 2>conftest.er1
8711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721esac
8722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008737 llvm_cv_link_use_export_dynamic=yes
8738else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008739 echo "$as_me: failed program was:" >&5
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008743fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008744
Bill Wendlingebcceee2009-04-18 11:20:33 +00008745rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008746 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008747 CFLAGS="$oldcflags"
8748 ac_ext=c
8749ac_cpp='$CPP $CPPFLAGS'
8750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8752ac_compiler_gnu=$ac_cv_c_compiler_gnu
8753
8754
8755fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8757echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008758if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008760cat >>confdefs.h <<\_ACEOF
8761#define HAVE_LINK_EXPORT_DYNAMIC 1
8762_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008763
8764 fi
8765
8766
Reid Spencera773bd52006-08-04 18:18:08 +00008767
8768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008769{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8770echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8771if test "${ac_cv_c_const+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008773else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008774 cat >conftest.$ac_ext <<_ACEOF
8775/* confdefs.h. */
8776_ACEOF
8777cat confdefs.h >>conftest.$ac_ext
8778cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008779/* end confdefs.h. */
8780
8781int
8782main ()
8783{
8784/* FIXME: Include the comments suggested by Paul. */
8785#ifndef __cplusplus
8786 /* Ultrix mips cc rejects this. */
8787 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008788 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008789 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008790 char const *const *ccp;
8791 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008792 /* NEC SVR4.0.2 mips cc rejects this. */
8793 struct point {int x, y;};
8794 static struct point const zero = {0,0};
8795 /* AIX XL C 1.02.0.0 rejects this.
8796 It does not let you subtract one const X* pointer from another in
8797 an arm of an if-expression whose if-part is not a constant
8798 expression */
8799 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008800 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008801 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008802 ++ccp;
8803 p = (char**) ccp;
8804 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008805 { /* SCO 3.2v4 cc rejects this. */
8806 char *t;
8807 char const *s = 0 ? (char *) 0 : (char const *) 0;
8808
8809 *t++ = 0;
8810 if (s) return 0;
8811 }
8812 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8813 int x[] = {25, 17};
8814 const int *foo = &x[0];
8815 ++foo;
8816 }
8817 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8818 typedef const int *iptr;
8819 iptr p = 0;
8820 ++p;
8821 }
8822 { /* AIX XL C 1.02.0.0 rejects this saying
8823 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8824 struct s { int j; const int *ap[3]; };
8825 struct s *b; b->j = 5;
8826 }
8827 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8828 const int foo = 10;
8829 if (!foo) return 0;
8830 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008831 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008832#endif
8833
8834 ;
8835 return 0;
8836}
8837_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008838rm -f conftest.$ac_objext
8839if { (ac_try="$ac_compile"
8840case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_compile") 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8856esac
8857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_try") 2>&5
8859 ac_status=$?
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; } &&
8862 { ac_try='test -s conftest.$ac_objext'
8863 { (case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866esac
8867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_try") 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008872 ac_cv_c_const=yes
8873else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00008878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008879
Reid Spencera773bd52006-08-04 18:18:08 +00008880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008882{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8883echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008884if test $ac_cv_c_const = no; then
8885
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008886cat >>confdefs.h <<\_ACEOF
8887#define const
8888_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008889
8890fi
8891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008892
8893
8894
8895
8896
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008897ac_header_dirent=no
8898for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008899 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8900{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8901echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008905 cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008910/* end confdefs.h. */
8911#include <sys/types.h>
8912#include <$ac_hdr>
8913
8914int
8915main ()
8916{
8917if ((DIR *) 0)
8918return 0;
8919 ;
8920 return 0;
8921}
8922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008923rm -f conftest.$ac_objext
8924if { (ac_try="$ac_compile"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938 { (case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_try") 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest.$ac_objext'
8948 { (case "(($ac_try" in
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8951esac
8952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953 (eval "$ac_try") 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008957 eval "$as_ac_Header=yes"
8958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008959 echo "$as_me: failed program was:" >&5
8960sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008964
Reid Spencera773bd52006-08-04 18:18:08 +00008965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008967ac_res=`eval echo '${'$as_ac_Header'}'`
8968 { echo "$as_me:$LINENO: result: $ac_res" >&5
8969echo "${ECHO_T}$ac_res" >&6; }
8970if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008971 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008972#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008973_ACEOF
8974
8975ac_header_dirent=$ac_hdr; break
8976fi
8977
8978done
8979# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8980if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8983if test "${ac_cv_search_opendir+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008985else
8986 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008987cat >conftest.$ac_ext <<_ACEOF
8988/* confdefs.h. */
8989_ACEOF
8990cat confdefs.h >>conftest.$ac_ext
8991cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008992/* end confdefs.h. */
8993
Reid Spencera773bd52006-08-04 18:18:08 +00008994/* Override any GCC internal prototype to avoid an error.
8995 Use char because int might match the return type of a GCC
8996 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008997#ifdef __cplusplus
8998extern "C"
8999#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009000char opendir ();
9001int
9002main ()
9003{
Reid Spencera773bd52006-08-04 18:18:08 +00009004return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009005 ;
9006 return 0;
9007}
9008_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009009for ac_lib in '' dir; do
9010 if test -z "$ac_lib"; then
9011 ac_res="none required"
9012 else
9013 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009015 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009016 rm -f conftest.$ac_objext conftest$ac_exeext
9017if { (ac_try="$ac_link"
9018case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9021esac
9022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_link") 2>conftest.er1
9024 ac_status=$?
9025 grep -v '^ *+' conftest.er1 >conftest.err
9026 rm -f conftest.er1
9027 cat conftest.err >&5
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } &&
9030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9031 { (case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034esac
9035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_try") 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (case "(($ac_try" in
9042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9043 *) ac_try_echo=$ac_try;;
9044esac
9045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9046 (eval "$ac_try") 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009050 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009051else
9052 echo "$as_me: failed program was:" >&5
9053sed 's/^/| /' conftest.$ac_ext >&5
9054
9055
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009057
Bill Wendlingebcceee2009-04-18 11:20:33 +00009058rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009059 conftest$ac_exeext
9060 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009061 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009062fi
John Criswell7a73b802003-06-30 21:59:07 +00009063done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009064if test "${ac_cv_search_opendir+set}" = set; then
9065 :
Reid Spencera773bd52006-08-04 18:18:08 +00009066else
9067 ac_cv_search_opendir=no
9068fi
9069rm conftest.$ac_ext
9070LIBS=$ac_func_search_save_LIBS
9071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009072{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9073echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009074ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009075if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009077
Reid Spencera773bd52006-08-04 18:18:08 +00009078fi
9079
9080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009081 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9082echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9083if test "${ac_cv_search_opendir+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009085else
9086 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009087cat >conftest.$ac_ext <<_ACEOF
9088/* confdefs.h. */
9089_ACEOF
9090cat confdefs.h >>conftest.$ac_ext
9091cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009092/* end confdefs.h. */
9093
9094/* Override any GCC internal prototype to avoid an error.
9095 Use char because int might match the return type of a GCC
9096 builtin and then its argument prototype would still apply. */
9097#ifdef __cplusplus
9098extern "C"
9099#endif
9100char opendir ();
9101int
9102main ()
9103{
9104return opendir ();
9105 ;
9106 return 0;
9107}
9108_ACEOF
9109for ac_lib in '' x; do
9110 if test -z "$ac_lib"; then
9111 ac_res="none required"
9112 else
9113 ac_res=-l$ac_lib
9114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9115 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009116 rm -f conftest.$ac_objext conftest$ac_exeext
9117if { (ac_try="$ac_link"
9118case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121esac
9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_link") 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9131 { (case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134esac
9135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_try") 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest$ac_exeext'
9141 { (case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144esac
9145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_try") 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009150 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009151else
9152 echo "$as_me: failed program was:" >&5
9153sed 's/^/| /' conftest.$ac_ext >&5
9154
9155
Reid Spencera773bd52006-08-04 18:18:08 +00009156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009157
Bill Wendlingebcceee2009-04-18 11:20:33 +00009158rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009159 conftest$ac_exeext
9160 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009161 break
9162fi
9163done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009164if test "${ac_cv_search_opendir+set}" = set; then
9165 :
Reid Spencera773bd52006-08-04 18:18:08 +00009166else
9167 ac_cv_search_opendir=no
9168fi
9169rm conftest.$ac_ext
9170LIBS=$ac_func_search_save_LIBS
9171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009172{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9173echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009174ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009175if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9177
9178fi
9179
9180fi
John Criswell7a73b802003-06-30 21:59:07 +00009181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009182
John Criswell7a73b802003-06-30 21:59:07 +00009183for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009184do
9185as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191fi
9192ac_res=`eval echo '${'$as_ac_Header'}'`
9193 { echo "$as_me:$LINENO: result: $ac_res" >&5
9194echo "${ECHO_T}$ac_res" >&6; }
9195else
9196 # Is the header compilable?
9197{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9198echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9199cat >conftest.$ac_ext <<_ACEOF
9200/* confdefs.h. */
9201_ACEOF
9202cat confdefs.h >>conftest.$ac_ext
9203cat >>conftest.$ac_ext <<_ACEOF
9204/* end confdefs.h. */
9205$ac_includes_default
9206#include <$ac_header>
9207_ACEOF
9208rm -f conftest.$ac_objext
9209if { (ac_try="$ac_compile"
9210case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_compile") 2>conftest.er1
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9223 { (case "(($ac_try" in
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9226esac
9227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_try") 2>&5
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest.$ac_objext'
9233 { (case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236esac
9237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_try") 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_header_compiler=yes
9243else
9244 echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 ac_header_compiler=no
9248fi
9249
9250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9252echo "${ECHO_T}$ac_header_compiler" >&6; }
9253
9254# Is the header present?
9255{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9257cat >conftest.$ac_ext <<_ACEOF
9258/* confdefs.h. */
9259_ACEOF
9260cat confdefs.h >>conftest.$ac_ext
9261cat >>conftest.$ac_ext <<_ACEOF
9262/* end confdefs.h. */
9263#include <$ac_header>
9264_ACEOF
9265if { (ac_try="$ac_cpp conftest.$ac_ext"
9266case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } >/dev/null; then
9278 if test -s conftest.err; then
9279 ac_cpp_err=$ac_c_preproc_warn_flag
9280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9281 else
9282 ac_cpp_err=
9283 fi
9284else
9285 ac_cpp_err=yes
9286fi
9287if test -z "$ac_cpp_err"; then
9288 ac_header_preproc=yes
9289else
9290 echo "$as_me: failed program was:" >&5
9291sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 ac_header_preproc=no
9294fi
9295
9296rm -f conftest.err conftest.$ac_ext
9297{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298echo "${ECHO_T}$ac_header_preproc" >&6; }
9299
9300# So? What about this header?
9301case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9302 yes:no: )
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9306echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9307 ac_header_preproc=yes
9308 ;;
9309 no:yes:* )
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9311echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9313echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9315echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9317echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9319echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9321echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9322 ( cat <<\_ASBOX
9323## ----------------------------------- ##
9324## Report this to llvmbugs@cs.uiuc.edu ##
9325## ----------------------------------- ##
9326_ASBOX
9327 ) | sed "s/^/$as_me: WARNING: /" >&2
9328 ;;
9329esac
9330{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9332if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9334else
9335 eval "$as_ac_Header=\$ac_header_preproc"
9336fi
9337ac_res=`eval echo '${'$as_ac_Header'}'`
9338 { echo "$as_me:$LINENO: result: $ac_res" >&5
9339echo "${ECHO_T}$ac_res" >&6; }
9340
9341fi
9342if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009343 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009344#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009345_ACEOF
9346
9347fi
9348
9349done
9350
Reid Spencera773bd52006-08-04 18:18:08 +00009351# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009352if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009353 enableval=$enable_ltdl_install;
9354fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009357
9358
9359if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360 INSTALL_LTDL_TRUE=
9361 INSTALL_LTDL_FALSE='#'
9362else
9363 INSTALL_LTDL_TRUE='#'
9364 INSTALL_LTDL_FALSE=
9365fi
9366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009367
9368
9369if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009370 CONVENIENCE_LTDL_TRUE=
9371 CONVENIENCE_LTDL_FALSE='#'
9372else
9373 CONVENIENCE_LTDL_TRUE='#'
9374 CONVENIENCE_LTDL_FALSE=
9375fi
9376
9377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009378{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9379echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009380library_names_spec=
9381libname_spec='lib$name'
9382soname_spec=
9383shrext_cmds=".so"
9384postinstall_cmds=
9385postuninstall_cmds=
9386finish_cmds=
9387finish_eval=
9388shlibpath_var=
9389shlibpath_overrides_runpath=unknown
9390version_type=none
9391dynamic_linker="$host_os ld.so"
9392sys_lib_dlsearch_path_spec="/lib /usr/lib"
9393if test "$GCC" = yes; then
9394 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9395 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9396 # if the path contains ";" then we assume it to be the separator
9397 # otherwise default to the standard path separator (i.e. ":") - it is
9398 # assumed that no part of a normal pathname contains ";" but that should
9399 # okay in the real world where ";" in dirpaths is itself problematic.
9400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9401 else
9402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9403 fi
9404else
9405 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9406fi
9407need_lib_prefix=unknown
9408hardcode_into_libs=no
9409
9410# when you set need_version to no, make sure it does not cause -set_version
9411# flags to be left without arguments
9412need_version=unknown
9413
9414case $host_os in
9415aix3*)
9416 version_type=linux
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9418 shlibpath_var=LIBPATH
9419
9420 # AIX 3 has no versioning support, so we append a major version to the name.
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 ;;
9423
9424aix4* | aix5*)
9425 version_type=linux
9426 need_lib_prefix=no
9427 need_version=no
9428 hardcode_into_libs=yes
9429 if test "$host_cpu" = ia64; then
9430 # AIX 5 supports IA64
9431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 else
9434 # With GCC up to 2.95.x, collect2 would create an import file
9435 # for dependence libraries. The import file would start with
9436 # the line `#! .'. This would cause the generated library to
9437 # depend on `.', always an invalid library. This was fixed in
9438 # development snapshots of GCC prior to 3.0.
9439 case $host_os in
9440 aix4 | aix4.[01] | aix4.[01].*)
9441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9442 echo ' yes '
9443 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9444 :
9445 else
9446 can_build_shared=no
9447 fi
9448 ;;
9449 esac
9450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9451 # soname into executable. Probably we can add versioning support to
9452 # collect2, so additional links can be useful in future.
9453 if test "$aix_use_runtimelinking" = yes; then
9454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9455 # instead of lib<name>.a to let people know that these are not
9456 # typical AIX shared libraries.
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 else
9459 # We preserve .a as extension for shared libraries through AIX4.2
9460 # and later when we are not doing run time linking.
9461 library_names_spec='${libname}${release}.a $libname.a'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 fi
9464 shlibpath_var=LIBPATH
9465 fi
9466 ;;
9467
9468amigaos*)
9469 library_names_spec='$libname.ixlibrary $libname.a'
9470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9471 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'
9472 ;;
9473
9474beos*)
9475 library_names_spec='${libname}${shared_ext}'
9476 dynamic_linker="$host_os ld.so"
9477 shlibpath_var=LIBRARY_PATH
9478 ;;
9479
9480bsdi[45]*)
9481 version_type=linux
9482 need_version=no
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484 soname_spec='${libname}${release}${shared_ext}$major'
9485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9489 # the default ld.so.conf also contains /usr/contrib/lib and
9490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9491 # libtool to hard-code these into programs
9492 ;;
9493
9494cygwin* | mingw* | pw32*)
9495 version_type=windows
9496 shrext_cmds=".dll"
9497 need_version=no
9498 need_lib_prefix=no
9499
9500 case $GCC,$host_os in
9501 yes,cygwin* | yes,mingw* | yes,pw32*)
9502 library_names_spec='$libname.dll.a'
9503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9504 postinstall_cmds='base_file=`basename \${file}`~
9505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9506 dldir=$destdir/`dirname \$dlpath`~
9507 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009508 $install_prog $dir/$dlname \$dldir/$dlname~
9509 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009510 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9511 dlpath=$dir/\$dldll~
9512 $rm \$dlpath'
9513 shlibpath_overrides_runpath=yes
9514
9515 case $host_os in
9516 cygwin*)
9517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9518 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9519 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9520 ;;
9521 mingw*)
9522 # MinGW DLLs use traditional 'lib' prefix
9523 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9524 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9525 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9526 # It is most probably a Windows format PATH printed by
9527 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9528 # path with ; separators, and with drive letters. We can handle the
9529 # drive letters (cygwin fileutils understands them), so leave them,
9530 # especially as we might pass files found there to a mingw objdump,
9531 # which wouldn't understand a cygwinified path. Ahh.
9532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9533 else
9534 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9535 fi
9536 ;;
9537 pw32*)
9538 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009539 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 +00009540 ;;
9541 esac
9542 ;;
9543
9544 *)
9545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9546 ;;
9547 esac
9548 dynamic_linker='Win32 ld.exe'
9549 # FIXME: first we should search . and the directory the executable is in
9550 shlibpath_var=PATH
9551 ;;
9552
9553darwin* | rhapsody*)
9554 dynamic_linker="$host_os dyld"
9555 version_type=darwin
9556 need_lib_prefix=no
9557 need_version=no
9558 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9559 soname_spec='${libname}${release}${major}$shared_ext'
9560 shlibpath_overrides_runpath=yes
9561 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009562 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009563 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9564 if test "$GCC" = yes; then
9565 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"`
9566 else
9567 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9568 fi
9569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9570 ;;
9571
9572dgux*)
9573 version_type=linux
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 ;;
9580
9581freebsd1*)
9582 dynamic_linker=no
9583 ;;
9584
9585kfreebsd*-gnu)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 shlibpath_var=LD_LIBRARY_PATH
9592 shlibpath_overrides_runpath=no
9593 hardcode_into_libs=yes
9594 dynamic_linker='GNU ld.so'
9595 ;;
9596
Reid Spencera773bd52006-08-04 18:18:08 +00009597freebsd* | dragonfly*)
9598 # DragonFly does not have aout. When/if they implement a new
9599 # versioning mechanism, adjust this.
9600 if test -x /usr/bin/objformat; then
9601 objformat=`/usr/bin/objformat`
9602 else
9603 case $host_os in
9604 freebsd[123]*) objformat=aout ;;
9605 *) objformat=elf ;;
9606 esac
9607 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608 version_type=freebsd-$objformat
9609 case $version_type in
9610 freebsd-elf*)
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9612 need_version=no
9613 need_lib_prefix=no
9614 ;;
9615 freebsd-*)
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9617 need_version=yes
9618 ;;
9619 esac
9620 shlibpath_var=LD_LIBRARY_PATH
9621 case $host_os in
9622 freebsd2*)
9623 shlibpath_overrides_runpath=yes
9624 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009625 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009626 shlibpath_overrides_runpath=yes
9627 hardcode_into_libs=yes
9628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009629 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9630 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631 shlibpath_overrides_runpath=no
9632 hardcode_into_libs=yes
9633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009634 freebsd*) # from 4.6 on
9635 shlibpath_overrides_runpath=yes
9636 hardcode_into_libs=yes
9637 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638 esac
9639 ;;
9640
9641gnu*)
9642 version_type=linux
9643 need_lib_prefix=no
9644 need_version=no
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 shlibpath_var=LD_LIBRARY_PATH
9648 hardcode_into_libs=yes
9649 ;;
9650
9651hpux9* | hpux10* | hpux11*)
9652 # Give a soname corresponding to the major version so that dld.sl refuses to
9653 # link against other versions.
9654 version_type=sunos
9655 need_lib_prefix=no
9656 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009657 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009658 ia64*)
9659 shrext_cmds='.so'
9660 hardcode_into_libs=yes
9661 dynamic_linker="$host_os dld.so"
9662 shlibpath_var=LD_LIBRARY_PATH
9663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 if test "X$HPUX_IA64_MODE" = X32; then
9667 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9668 else
9669 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9670 fi
9671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9672 ;;
9673 hppa*64*)
9674 shrext_cmds='.sl'
9675 hardcode_into_libs=yes
9676 dynamic_linker="$host_os dld.sl"
9677 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680 soname_spec='${libname}${release}${shared_ext}$major'
9681 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9683 ;;
9684 *)
9685 shrext_cmds='.sl'
9686 dynamic_linker="$host_os dld.sl"
9687 shlibpath_var=SHLIB_PATH
9688 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 ;;
9692 esac
9693 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9694 postinstall_cmds='chmod 555 $lib'
9695 ;;
9696
Reid Spencera773bd52006-08-04 18:18:08 +00009697interix3*)
9698 version_type=linux
9699 need_lib_prefix=no
9700 need_version=no
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=no
9706 hardcode_into_libs=yes
9707 ;;
9708
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009709irix5* | irix6* | nonstopux*)
9710 case $host_os in
9711 nonstopux*) version_type=nonstopux ;;
9712 *)
9713 if test "$lt_cv_prog_gnu_ld" = yes; then
9714 version_type=linux
9715 else
9716 version_type=irix
9717 fi ;;
9718 esac
9719 need_lib_prefix=no
9720 need_version=no
9721 soname_spec='${libname}${release}${shared_ext}$major'
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9723 case $host_os in
9724 irix5* | nonstopux*)
9725 libsuff= shlibsuff=
9726 ;;
9727 *)
9728 case $LD in # libtool.m4 will add one of these switches to LD
9729 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9730 libsuff= shlibsuff= libmagic=32-bit;;
9731 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9732 libsuff=32 shlibsuff=N32 libmagic=N32;;
9733 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9734 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9735 *) libsuff= shlibsuff= libmagic=never-match;;
9736 esac
9737 ;;
9738 esac
9739 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9740 shlibpath_overrides_runpath=no
9741 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9742 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9743 hardcode_into_libs=yes
9744 ;;
9745
9746# No shared lib support for Linux oldld, aout, or coff.
9747linux*oldld* | linux*aout* | linux*coff*)
9748 dynamic_linker=no
9749 ;;
9750
9751# This must be Linux ELF.
9752linux*)
9753 version_type=linux
9754 need_lib_prefix=no
9755 need_version=no
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=no
9761 # This implies no fast_install, which is unacceptable.
9762 # Some rework will be needed to allow for fast_install
9763 # before this can be enabled.
9764 hardcode_into_libs=yes
9765
9766 # Append ld.so.conf contents to the search path
9767 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009768 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 +00009769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9770 fi
9771
9772 # We used to test for /lib/ld.so.1 and disable shared libraries on
9773 # powerpc, because MkLinux only supported shared libraries with the
9774 # GNU dynamic linker. Since this was broken with cross compilers,
9775 # most powerpc-linux boxes support dynamic linking these days and
9776 # people can always --disable-shared, the test was removed, and we
9777 # assume the GNU/Linux dynamic linker is in use.
9778 dynamic_linker='GNU/Linux ld.so'
9779 ;;
9780
9781knetbsd*-gnu)
9782 version_type=linux
9783 need_lib_prefix=no
9784 need_version=no
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9786 soname_spec='${libname}${release}${shared_ext}$major'
9787 shlibpath_var=LD_LIBRARY_PATH
9788 shlibpath_overrides_runpath=no
9789 hardcode_into_libs=yes
9790 dynamic_linker='GNU ld.so'
9791 ;;
9792
9793netbsd*)
9794 version_type=sunos
9795 need_lib_prefix=no
9796 need_version=no
9797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9800 dynamic_linker='NetBSD (a.out) ld.so'
9801 else
9802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 dynamic_linker='NetBSD ld.elf_so'
9805 fi
9806 shlibpath_var=LD_LIBRARY_PATH
9807 shlibpath_overrides_runpath=yes
9808 hardcode_into_libs=yes
9809 ;;
9810
9811newsos6)
9812 version_type=linux
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 shlibpath_overrides_runpath=yes
9816 ;;
9817
9818nto-qnx*)
9819 version_type=linux
9820 need_lib_prefix=no
9821 need_version=no
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=yes
9826 ;;
9827
9828openbsd*)
9829 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009830 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009831 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009832 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9833 case $host_os in
9834 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9835 *) need_version=no ;;
9836 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9841 case $host_os in
9842 openbsd2.[89] | openbsd2.[89].*)
9843 shlibpath_overrides_runpath=no
9844 ;;
9845 *)
9846 shlibpath_overrides_runpath=yes
9847 ;;
9848 esac
9849 else
9850 shlibpath_overrides_runpath=yes
9851 fi
9852 ;;
9853
9854os2*)
9855 libname_spec='$name'
9856 shrext_cmds=".dll"
9857 need_lib_prefix=no
9858 library_names_spec='$libname${shared_ext} $libname.a'
9859 dynamic_linker='OS/2 ld.exe'
9860 shlibpath_var=LIBPATH
9861 ;;
9862
9863osf3* | osf4* | osf5*)
9864 version_type=osf
9865 need_lib_prefix=no
9866 need_version=no
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9871 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9872 ;;
9873
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874solaris*)
9875 version_type=linux
9876 need_lib_prefix=no
9877 need_version=no
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 shlibpath_overrides_runpath=yes
9882 hardcode_into_libs=yes
9883 # ldd complains unless libraries are executable
9884 postinstall_cmds='chmod +x $lib'
9885 ;;
9886
9887sunos4*)
9888 version_type=sunos
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9890 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9891 shlibpath_var=LD_LIBRARY_PATH
9892 shlibpath_overrides_runpath=yes
9893 if test "$with_gnu_ld" = yes; then
9894 need_lib_prefix=no
9895 fi
9896 need_version=yes
9897 ;;
9898
Reid Spencera773bd52006-08-04 18:18:08 +00009899sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900 version_type=linux
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 case $host_vendor in
9905 sni)
9906 shlibpath_overrides_runpath=no
9907 need_lib_prefix=no
9908 export_dynamic_flag_spec='${wl}-Blargedynsym'
9909 runpath_var=LD_RUN_PATH
9910 ;;
9911 siemens)
9912 need_lib_prefix=no
9913 ;;
9914 motorola)
9915 need_lib_prefix=no
9916 need_version=no
9917 shlibpath_overrides_runpath=no
9918 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9919 ;;
9920 esac
9921 ;;
9922
9923sysv4*MP*)
9924 if test -d /usr/nec ;then
9925 version_type=linux
9926 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9927 soname_spec='$libname${shared_ext}.$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 fi
9930 ;;
9931
Reid Spencera773bd52006-08-04 18:18:08 +00009932sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9933 version_type=freebsd-elf
9934 need_lib_prefix=no
9935 need_version=no
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 hardcode_into_libs=yes
9940 if test "$with_gnu_ld" = yes; then
9941 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9942 shlibpath_overrides_runpath=no
9943 else
9944 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9945 shlibpath_overrides_runpath=yes
9946 case $host_os in
9947 sco3.2v5*)
9948 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9949 ;;
9950 esac
9951 fi
9952 sys_lib_dlsearch_path_spec='/usr/lib'
9953 ;;
9954
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955uts4*)
9956 version_type=linux
9957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 soname_spec='${libname}${release}${shared_ext}$major'
9959 shlibpath_var=LD_LIBRARY_PATH
9960 ;;
9961
9962*)
9963 dynamic_linker=no
9964 ;;
9965esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009966{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9967echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009968test "$dynamic_linker" = no && can_build_shared=no
9969
Reid Spencera773bd52006-08-04 18:18:08 +00009970variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9971if test "$GCC" = yes; then
9972 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9973fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009974
Reid Spencera773bd52006-08-04 18:18:08 +00009975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009976{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9977echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9978if test "${libltdl_cv_shlibext+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980else
9981
9982module=yes
9983eval libltdl_cv_shlibext=$shrext_cmds
9984
9985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009986{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9987echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988if test -n "$libltdl_cv_shlibext"; then
9989
9990cat >>confdefs.h <<_ACEOF
9991#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9992_ACEOF
9993
9994fi
9995
9996
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009997{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9998echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9999if test "${libltdl_cv_shlibpath_var+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001else
10002 libltdl_cv_shlibpath_var="$shlibpath_var"
10003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010004{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10005echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006if test -n "$libltdl_cv_shlibpath_var"; then
10007
10008cat >>confdefs.h <<_ACEOF
10009#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10010_ACEOF
10011
10012fi
10013
10014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010015{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10016echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10017if test "${libltdl_cv_sys_search_path+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019else
10020 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010022{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10023echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024if test -n "$libltdl_cv_sys_search_path"; then
10025 sys_search_path=
10026 for dir in $libltdl_cv_sys_search_path; do
10027 if test -z "$sys_search_path"; then
10028 sys_search_path="$dir"
10029 else
10030 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10031 fi
10032 done
10033
10034cat >>confdefs.h <<_ACEOF
10035#define LTDL_SYSSEARCHPATH "$sys_search_path"
10036_ACEOF
10037
10038fi
10039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010040{ echo "$as_me:$LINENO: checking for objdir" >&5
10041echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10042if test "${libltdl_cv_objdir+set}" = set; then
10043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010044else
10045 libltdl_cv_objdir="$objdir"
10046 if test -n "$objdir"; then
10047 :
10048 else
10049 rm -f .libs 2>/dev/null
10050 mkdir .libs 2>/dev/null
10051 if test -d .libs; then
10052 libltdl_cv_objdir=.libs
10053 else
10054 # MS-DOS does not allow filenames that begin with a dot.
10055 libltdl_cv_objdir=_libs
10056 fi
10057 rmdir .libs 2>/dev/null
10058 fi
10059
10060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010061{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10062echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063
10064cat >>confdefs.h <<_ACEOF
10065#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10066_ACEOF
10067
10068
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069
10070
10071
10072
10073# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010074{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10075echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10076if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10077 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078else
10079
10080# These are sane defaults that work on at least a few old systems.
10081# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10082
10083# Character class describing NM global symbol codes.
10084symcode='[BCDEGRST]'
10085
10086# Regexp to match symbols that can be accessed directly from C.
10087sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10088
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089# Transform an extracted symbol line into a proper C declaration
10090lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10091
10092# Transform an extracted symbol line into symbol name and symbol address
10093lt_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'"
10094
10095# Define system-specific variables.
10096case $host_os in
10097aix*)
10098 symcode='[BCDT]'
10099 ;;
10100cygwin* | mingw* | pw32*)
10101 symcode='[ABCDGISTW]'
10102 ;;
10103hpux*) # Its linker distinguishes data from code symbols
10104 if test "$host_cpu" = ia64; then
10105 symcode='[ABCDEGRST]'
10106 fi
10107 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10108 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'"
10109 ;;
10110linux*)
10111 if test "$host_cpu" = ia64; then
10112 symcode='[ABCDGIRSTW]'
10113 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10114 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'"
10115 fi
10116 ;;
10117irix* | nonstopux*)
10118 symcode='[BCDEGRST]'
10119 ;;
10120osf*)
10121 symcode='[BCDEGQRST]'
10122 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010123solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124 symcode='[BDRT]'
10125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010126sco3.2v5*)
10127 symcode='[DT]'
10128 ;;
10129sysv4.2uw2*)
10130 symcode='[DT]'
10131 ;;
10132sysv5* | sco5v6* | unixware* | OpenUNIX*)
10133 symcode='[ABDT]'
10134 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135sysv4)
10136 symcode='[DFNSTU]'
10137 ;;
10138esac
10139
10140# Handle CRLF in mingw tool chain
10141opt_cr=
10142case $build_os in
10143mingw*)
10144 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10145 ;;
10146esac
10147
10148# If we're using GNU nm, then use its standard symbol codes.
10149case `$NM -V 2>&1` in
10150*GNU* | *'with BFD'*)
10151 symcode='[ABCDGIRSTW]' ;;
10152esac
10153
10154# Try without a prefix undercore, then with it.
10155for ac_symprfx in "" "_"; do
10156
Reid Spencera773bd52006-08-04 18:18:08 +000010157 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10158 symxfrm="\\1 $ac_symprfx\\2 \\2"
10159
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010160 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010161 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 +000010162
10163 # Check to see that the pipe works correctly.
10164 pipe_works=no
10165
10166 rm -f conftest*
10167 cat > conftest.$ac_ext <<EOF
10168#ifdef __cplusplus
10169extern "C" {
10170#endif
10171char nm_test_var;
10172void nm_test_func(){}
10173#ifdef __cplusplus
10174}
10175#endif
10176int main(){nm_test_var='a';nm_test_func();return(0);}
10177EOF
10178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180 (eval $ac_compile) 2>&5
10181 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184 # Now try to grab the symbols.
10185 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010186 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 +000010187 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10188 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191 # Try sorting and uniquifying the output.
10192 if sort "$nlist" | uniq > "$nlist"T; then
10193 mv -f "$nlist"T "$nlist"
10194 else
10195 rm -f "$nlist"T
10196 fi
10197
10198 # Make sure that we snagged all the symbols we need.
10199 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10200 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10201 cat <<EOF > conftest.$ac_ext
10202#ifdef __cplusplus
10203extern "C" {
10204#endif
10205
10206EOF
10207 # Now generate the symbol file.
10208 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10209
10210 cat <<EOF >> conftest.$ac_ext
10211#if defined (__STDC__) && __STDC__
10212# define lt_ptr_t void *
10213#else
10214# define lt_ptr_t char *
10215# define const
10216#endif
10217
10218/* The mapping between symbol names and symbols. */
10219const struct {
10220 const char *name;
10221 lt_ptr_t address;
10222}
10223lt_preloaded_symbols[] =
10224{
10225EOF
10226 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10227 cat <<\EOF >> conftest.$ac_ext
10228 {0, (lt_ptr_t) 0}
10229};
10230
10231#ifdef __cplusplus
10232}
10233#endif
10234EOF
10235 # Now try linking the two files.
10236 mv conftest.$ac_objext conftstm.$ac_objext
10237 lt_save_LIBS="$LIBS"
10238 lt_save_CFLAGS="$CFLAGS"
10239 LIBS="conftstm.$ac_objext"
10240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242 (eval $ac_link) 2>&5
10243 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246 pipe_works=yes
10247 fi
10248 LIBS="$lt_save_LIBS"
10249 CFLAGS="$lt_save_CFLAGS"
10250 else
10251 echo "cannot find nm_test_func in $nlist" >&5
10252 fi
10253 else
10254 echo "cannot find nm_test_var in $nlist" >&5
10255 fi
10256 else
10257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10258 fi
10259 else
10260 echo "$progname: failed program was:" >&5
10261 cat conftest.$ac_ext >&5
10262 fi
10263 rm -f conftest* conftst*
10264
10265 # Do not use the global_symbol_pipe unless it works.
10266 if test "$pipe_works" = yes; then
10267 break
10268 else
10269 lt_cv_sys_global_symbol_pipe=
10270 fi
10271done
10272
10273fi
10274
10275if test -z "$lt_cv_sys_global_symbol_pipe"; then
10276 lt_cv_sys_global_symbol_to_cdecl=
10277fi
10278if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010279 { echo "$as_me:$LINENO: result: failed" >&5
10280echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010282 { echo "$as_me:$LINENO: result: ok" >&5
10283echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010284fi
10285
10286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010287{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10288echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10289if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291else
10292 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10293 libltdl_cv_preloaded_symbols=yes
10294 else
10295 libltdl_cv_preloaded_symbols=no
10296 fi
10297
10298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010299{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10300echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10302
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010303cat >>confdefs.h <<\_ACEOF
10304#define HAVE_PRELOADED_SYMBOLS 1
10305_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306
10307fi
10308
10309LIBADD_DL=
10310
10311ac_ext=c
10312ac_cpp='$CPP $CPPFLAGS'
10313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315ac_compiler_gnu=$ac_cv_c_compiler_gnu
10316
10317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010318{ echo "$as_me:$LINENO: checking for shl_load" >&5
10319echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10320if test "${ac_cv_func_shl_load+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323 cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h. */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h. */
10329/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010333/* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char shl_load (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10337
10338#ifdef __STDC__
10339# include <limits.h>
10340#else
10341# include <assert.h>
10342#endif
10343
10344#undef shl_load
10345
10346/* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
10349#ifdef __cplusplus
10350extern "C"
10351#endif
10352char shl_load ();
10353/* The GNU C library defines this for functions which it implements
10354 to always fail with ENOSYS. Some functions are actually named
10355 something starting with __ and the normal name is an alias. */
10356#if defined __stub_shl_load || defined __stub___shl_load
10357choke me
10358#endif
10359
10360int
10361main ()
10362{
10363return shl_load ();
10364 ;
10365 return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext conftest$ac_exeext
10369if { (ac_try="$ac_link"
10370case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386esac
10387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_try") 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 ac_cv_func_shl_load=yes
10403else
10404 echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 ac_cv_func_shl_load=no
10408fi
10409
10410rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412fi
10413{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10414echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10415if test $ac_cv_func_shl_load = yes; then
10416
10417cat >>confdefs.h <<\_ACEOF
10418#define HAVE_SHL_LOAD 1
10419_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420
10421else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010422 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10423echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10424if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426else
10427 ac_check_lib_save_LIBS=$LIBS
10428LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h. */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434/* end confdefs.h. */
10435
Reid Spencera773bd52006-08-04 18:18:08 +000010436/* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439#ifdef __cplusplus
10440extern "C"
10441#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442char shl_load ();
10443int
10444main ()
10445{
Reid Spencera773bd52006-08-04 18:18:08 +000010446return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447 ;
10448 return 0;
10449}
10450_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010451rm -f conftest.$ac_objext conftest$ac_exeext
10452if { (ac_try="$ac_link"
10453case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456esac
10457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10466 { (case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469esac
10470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10471 (eval "$ac_try") 2>&5
10472 ac_status=$?
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_try") 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485 ac_cv_lib_dld_shl_load=yes
10486else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010492
Bill Wendlingebcceee2009-04-18 11:20:33 +000010493rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010494 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010495LIBS=$ac_check_lib_save_LIBS
10496fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010497{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10498echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10499if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010501cat >>confdefs.h <<\_ACEOF
10502#define HAVE_SHL_LOAD 1
10503_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504
10505 LIBADD_DL="$LIBADD_DL -ldld"
10506else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010507 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10508echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10509if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010511else
10512 ac_check_lib_save_LIBS=$LIBS
10513LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010514cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010519/* end confdefs.h. */
10520
Reid Spencera773bd52006-08-04 18:18:08 +000010521/* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524#ifdef __cplusplus
10525extern "C"
10526#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527char dlopen ();
10528int
10529main ()
10530{
Reid Spencera773bd52006-08-04 18:18:08 +000010531return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010532 ;
10533 return 0;
10534}
10535_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010536rm -f conftest.$ac_objext conftest$ac_exeext
10537if { (ac_try="$ac_link"
10538case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10541esac
10542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10544 ac_status=$?
10545 grep -v '^ *+' conftest.er1 >conftest.err
10546 rm -f conftest.er1
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10551 { (case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_try") 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570 ac_cv_lib_dl_dlopen=yes
10571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010572 echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010577
Bill Wendlingebcceee2009-04-18 11:20:33 +000010578rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010579 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580LIBS=$ac_check_lib_save_LIBS
10581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010582{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10583echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10584if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010586cat >>confdefs.h <<\_ACEOF
10587#define HAVE_LIBDL 1
10588_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010589
10590 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10591else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010592 cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597/* end confdefs.h. */
10598#if HAVE_DLFCN_H
10599# include <dlfcn.h>
10600#endif
10601
10602int
10603main ()
10604{
10605dlopen(0, 0);
10606 ;
10607 return 0;
10608}
10609_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010610rm -f conftest.$ac_objext conftest$ac_exeext
10611if { (ac_try="$ac_link"
10612case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
10616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest$ac_exeext'
10635 { (case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638esac
10639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10640 (eval "$ac_try") 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010645cat >>confdefs.h <<\_ACEOF
10646#define HAVE_LIBDL 1
10647_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648 libltdl_cv_func_dlopen="yes"
10649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010650 echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10654echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10655if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657else
10658 ac_check_lib_save_LIBS=$LIBS
10659LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010660cat >conftest.$ac_ext <<_ACEOF
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665/* end confdefs.h. */
10666
Reid Spencera773bd52006-08-04 18:18:08 +000010667/* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010670#ifdef __cplusplus
10671extern "C"
10672#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673char dlopen ();
10674int
10675main ()
10676{
Reid Spencera773bd52006-08-04 18:18:08 +000010677return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 ;
10679 return 0;
10680}
10681_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010682rm -f conftest.$ac_objext conftest$ac_exeext
10683if { (ac_try="$ac_link"
10684case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_link") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700esac
10701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_try") 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest$ac_exeext'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010716 ac_cv_lib_svld_dlopen=yes
10717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010722fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010723
Bill Wendlingebcceee2009-04-18 11:20:33 +000010724rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010725 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726LIBS=$ac_check_lib_save_LIBS
10727fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010728{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10729echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10730if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010732cat >>confdefs.h <<\_ACEOF
10733#define HAVE_LIBDL 1
10734_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735
10736 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10737else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010738 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10739echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10740if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010742else
10743 ac_check_lib_save_LIBS=$LIBS
10744LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010745cat >conftest.$ac_ext <<_ACEOF
10746/* confdefs.h. */
10747_ACEOF
10748cat confdefs.h >>conftest.$ac_ext
10749cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750/* end confdefs.h. */
10751
Reid Spencera773bd52006-08-04 18:18:08 +000010752/* Override any GCC internal prototype to avoid an error.
10753 Use char because int might match the return type of a GCC
10754 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755#ifdef __cplusplus
10756extern "C"
10757#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758char dld_link ();
10759int
10760main ()
10761{
Reid Spencera773bd52006-08-04 18:18:08 +000010762return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763 ;
10764 return 0;
10765}
10766_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010767rm -f conftest.$ac_objext conftest$ac_exeext
10768if { (ac_try="$ac_link"
10769case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10772esac
10773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_link") 2>conftest.er1
10775 ac_status=$?
10776 grep -v '^ *+' conftest.er1 >conftest.err
10777 rm -f conftest.er1
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10782 { (case "(($ac_try" in
10783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784 *) ac_try_echo=$ac_try;;
10785esac
10786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787 (eval "$ac_try") 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; } &&
10791 { ac_try='test -s conftest$ac_exeext'
10792 { (case "(($ac_try" in
10793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794 *) ac_try_echo=$ac_try;;
10795esac
10796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797 (eval "$ac_try") 2>&5
10798 ac_status=$?
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010801 ac_cv_lib_dld_dld_link=yes
10802else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010803 echo "$as_me: failed program was:" >&5
10804sed 's/^/| /' conftest.$ac_ext >&5
10805
10806 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010808
Bill Wendlingebcceee2009-04-18 11:20:33 +000010809rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010810 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811LIBS=$ac_check_lib_save_LIBS
10812fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010813{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10814echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10815if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010817cat >>confdefs.h <<\_ACEOF
10818#define HAVE_DLD 1
10819_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820
10821 LIBADD_DL="$LIBADD_DL -ldld"
10822else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010823 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10824echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10825if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 cat >conftest.$ac_ext <<_ACEOF
10829/* confdefs.h. */
10830_ACEOF
10831cat confdefs.h >>conftest.$ac_ext
10832cat >>conftest.$ac_ext <<_ACEOF
10833/* end confdefs.h. */
10834/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10836#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838/* System header to define __stub macros and hopefully few prototypes,
10839 which can conflict with char _dyld_func_lookup (); below.
10840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10841 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010843#ifdef __STDC__
10844# include <limits.h>
10845#else
10846# include <assert.h>
10847#endif
10848
10849#undef _dyld_func_lookup
10850
10851/* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10854#ifdef __cplusplus
10855extern "C"
10856#endif
10857char _dyld_func_lookup ();
10858/* The GNU C library defines this for functions which it implements
10859 to always fail with ENOSYS. Some functions are actually named
10860 something starting with __ and the normal name is an alias. */
10861#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10862choke me
10863#endif
10864
10865int
10866main ()
10867{
10868return _dyld_func_lookup ();
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext conftest$ac_exeext
10874if { (ac_try="$ac_link"
10875case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_link") 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } &&
10887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10888 { (case "(($ac_try" in
10889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890 *) ac_try_echo=$ac_try;;
10891esac
10892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893 (eval "$ac_try") 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest$ac_exeext'
10898 { (case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10901esac
10902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_try") 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_func__dyld_func_lookup=yes
10908else
10909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913fi
Reid Spencera773bd52006-08-04 18:18:08 +000010914
Bill Wendlingebcceee2009-04-18 11:20:33 +000010915rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010916 conftest$ac_exeext conftest.$ac_ext
10917fi
10918{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10919echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10920if test $ac_cv_func__dyld_func_lookup = yes; then
10921
10922cat >>confdefs.h <<\_ACEOF
10923#define HAVE_DYLD 1
10924_ACEOF
10925
10926fi
10927
10928
10929fi
10930
10931
10932fi
10933
10934
10935fi
10936
10937rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939
10940fi
10941
10942
10943fi
10944
10945
10946fi
10947
10948
10949if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10950then
10951 lt_save_LIBS="$LIBS"
10952 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010953
10954for ac_func in dlerror
10955do
10956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962 cat >conftest.$ac_ext <<_ACEOF
10963/* confdefs.h. */
10964_ACEOF
10965cat confdefs.h >>conftest.$ac_ext
10966cat >>conftest.$ac_ext <<_ACEOF
10967/* end confdefs.h. */
10968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970#define $ac_func innocuous_$ac_func
10971
10972/* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10976
10977#ifdef __STDC__
10978# include <limits.h>
10979#else
10980# include <assert.h>
10981#endif
10982
10983#undef $ac_func
10984
10985/* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988#ifdef __cplusplus
10989extern "C"
10990#endif
10991char $ac_func ();
10992/* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
10995#if defined __stub_$ac_func || defined __stub___$ac_func
10996choke me
10997#endif
10998
10999int
11000main ()
11001{
11002return $ac_func ();
11003 ;
11004 return 0;
11005}
11006_ACEOF
11007rm -f conftest.$ac_objext conftest$ac_exeext
11008if { (ac_try="$ac_link"
11009case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11012esac
11013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
11015 ac_status=$?
11016 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025esac
11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035esac
11036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 eval "$as_ac_var=yes"
11042else
11043 echo "$as_me: failed program was:" >&5
11044sed 's/^/| /' conftest.$ac_ext >&5
11045
11046 eval "$as_ac_var=no"
11047fi
11048
11049rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11051fi
11052ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054echo "${ECHO_T}$ac_res" >&6; }
11055if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011058_ACEOF
11059
11060fi
11061done
11062
11063 LIBS="$lt_save_LIBS"
11064fi
11065ac_ext=c
11066ac_cpp='$CPP $CPPFLAGS'
11067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11069ac_compiler_gnu=$ac_cv_c_compiler_gnu
11070
11071
11072
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011073{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11074echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11075if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077else
11078 ac_cv_sys_symbol_underscore=no
11079 cat > conftest.$ac_ext <<EOF
11080void nm_test_func(){}
11081int main(){nm_test_func;return 0;}
11082EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084 (eval $ac_compile) 2>&5
11085 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088 # Now try to grab the symbols.
11089 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011090 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 +000011091 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11092 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011095 # See whether the symbols have a leading underscore.
11096 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11097 ac_cv_sys_symbol_underscore=yes
11098 else
11099 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11100 :
11101 else
11102 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11103 fi
11104 fi
11105 else
11106 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11107 fi
11108 else
11109 echo "configure: failed program was:" >&5
11110 cat conftest.c >&5
11111 fi
11112 rm -rf conftest*
11113
11114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011115{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11116echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117
11118
11119if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11120 if test x"$libltdl_cv_func_dlopen" = xyes ||
11121 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011122 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11123echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11124if test "${libltdl_cv_need_uscore+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126else
11127 libltdl_cv_need_uscore=unknown
11128 save_LIBS="$LIBS"
11129 LIBS="$LIBS $LIBADD_DL"
11130 if test "$cross_compiling" = yes; then :
11131 libltdl_cv_need_uscore=cross
11132else
11133 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11134 lt_status=$lt_dlunknown
11135 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000011136#line 11136 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137#include "confdefs.h"
11138
11139#if HAVE_DLFCN_H
11140#include <dlfcn.h>
11141#endif
11142
11143#include <stdio.h>
11144
11145#ifdef RTLD_GLOBAL
11146# define LT_DLGLOBAL RTLD_GLOBAL
11147#else
11148# ifdef DL_GLOBAL
11149# define LT_DLGLOBAL DL_GLOBAL
11150# else
11151# define LT_DLGLOBAL 0
11152# endif
11153#endif
11154
11155/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11156 find out it does not work in some platform. */
11157#ifndef LT_DLLAZY_OR_NOW
11158# ifdef RTLD_LAZY
11159# define LT_DLLAZY_OR_NOW RTLD_LAZY
11160# else
11161# ifdef DL_LAZY
11162# define LT_DLLAZY_OR_NOW DL_LAZY
11163# else
11164# ifdef RTLD_NOW
11165# define LT_DLLAZY_OR_NOW RTLD_NOW
11166# else
11167# ifdef DL_NOW
11168# define LT_DLLAZY_OR_NOW DL_NOW
11169# else
11170# define LT_DLLAZY_OR_NOW 0
11171# endif
11172# endif
11173# endif
11174# endif
11175#endif
11176
11177#ifdef __cplusplus
11178extern "C" void exit (int);
11179#endif
11180
11181void fnord() { int i=42;}
11182int main ()
11183{
11184 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11185 int status = $lt_dlunknown;
11186
11187 if (self)
11188 {
11189 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11190 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191 /* dlclose (self); */
11192 }
Reid Spencera773bd52006-08-04 18:18:08 +000011193 else
11194 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195
11196 exit (status);
11197}
11198EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200 (eval $ac_link) 2>&5
11201 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011204 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205 lt_status=$?
11206 case x$lt_status in
11207 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11208 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011209 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210 esac
11211 else :
11212 # compilation failed
11213
11214 fi
11215fi
11216rm -fr conftest*
11217
11218 LIBS="$save_LIBS"
11219
11220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011221{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11222echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011223 fi
11224fi
11225
11226if test x"$libltdl_cv_need_uscore" = xyes; then
11227
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011228cat >>confdefs.h <<\_ACEOF
11229#define NEED_USCORE 1
11230_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231
11232fi
11233
11234
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011235{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11236echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11237if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239else
11240 # PORTME does your system automatically load deplibs for dlopen?
11241 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11242 # For now, we just catch OSes we know something about -- in the
11243 # future, we'll try test this programmatically.
11244 libltdl_cv_sys_dlopen_deplibs=unknown
11245 case "$host_os" in
11246 aix3*|aix4.1.*|aix4.2.*)
11247 # Unknown whether this is true for these versions of AIX, but
11248 # we want this `case' here to explicitly catch those versions.
11249 libltdl_cv_sys_dlopen_deplibs=unknown
11250 ;;
11251 aix[45]*)
11252 libltdl_cv_sys_dlopen_deplibs=yes
11253 ;;
11254 darwin*)
11255 # Assuming the user has installed a libdl from somewhere, this is true
11256 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11257 libltdl_cv_sys_dlopen_deplibs=yes
11258 ;;
11259 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11260 # GNU and its variants, using gnu ld.so (Glibc)
11261 libltdl_cv_sys_dlopen_deplibs=yes
11262 ;;
11263 hpux10*|hpux11*)
11264 libltdl_cv_sys_dlopen_deplibs=yes
11265 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011266 interix*)
11267 libltdl_cv_sys_dlopen_deplibs=yes
11268 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011269 irix[12345]*|irix6.[01]*)
11270 # Catch all versions of IRIX before 6.2, and indicate that we don't
11271 # know how it worked for any of those versions.
11272 libltdl_cv_sys_dlopen_deplibs=unknown
11273 ;;
11274 irix*)
11275 # The case above catches anything before 6.2, and it's known that
11276 # at 6.2 and later dlopen does load deplibs.
11277 libltdl_cv_sys_dlopen_deplibs=yes
11278 ;;
11279 netbsd*)
11280 libltdl_cv_sys_dlopen_deplibs=yes
11281 ;;
11282 openbsd*)
11283 libltdl_cv_sys_dlopen_deplibs=yes
11284 ;;
11285 osf[1234]*)
11286 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11287 # it did *not* use an RPATH in a shared library to find objects the
11288 # library depends on, so we explictly say `no'.
11289 libltdl_cv_sys_dlopen_deplibs=no
11290 ;;
11291 osf5.0|osf5.0a|osf5.1)
11292 # dlopen *does* load deplibs and with the right loader patch applied
11293 # it even uses RPATH in a shared library to search for shared objects
11294 # that the library depends on, but there's no easy way to know if that
11295 # patch is installed. Since this is the case, all we can really
11296 # say is unknown -- it depends on the patch being installed. If
11297 # it is, this changes to `yes'. Without it, it would be `no'.
11298 libltdl_cv_sys_dlopen_deplibs=unknown
11299 ;;
11300 osf*)
11301 # the two cases above should catch all versions of osf <= 5.1. Read
11302 # the comments above for what we know about them.
11303 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11304 # is used to find them so we can finally say `yes'.
11305 libltdl_cv_sys_dlopen_deplibs=yes
11306 ;;
11307 solaris*)
11308 libltdl_cv_sys_dlopen_deplibs=yes
11309 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011310 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11311 libltdl_cv_sys_dlopen_deplibs=yes
11312 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011313 esac
11314
11315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011316{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11317echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11319
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011320cat >>confdefs.h <<\_ACEOF
11321#define LTDL_DLOPEN_DEPLIBS 1
11322_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323
11324fi
11325
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011326
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011328do
11329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335fi
11336ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338echo "${ECHO_T}$ac_res" >&6; }
11339else
11340 # Is the header compilable?
11341{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343cat >conftest.$ac_ext <<_ACEOF
11344/* confdefs.h. */
11345_ACEOF
11346cat confdefs.h >>conftest.$ac_ext
11347cat >>conftest.$ac_ext <<_ACEOF
11348/* end confdefs.h. */
11349$ac_includes_default
11350#include <$ac_header>
11351_ACEOF
11352rm -f conftest.$ac_objext
11353if { (ac_try="$ac_compile"
11354case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } &&
11366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370esac
11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try='test -s conftest.$ac_objext'
11377 { (case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_try") 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 ac_header_compiler=yes
11387else
11388 echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 ac_header_compiler=no
11392fi
11393
11394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11396echo "${ECHO_T}$ac_header_compiler" >&6; }
11397
11398# Is the header present?
11399{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11401cat >conftest.$ac_ext <<_ACEOF
11402/* confdefs.h. */
11403_ACEOF
11404cat confdefs.h >>conftest.$ac_ext
11405cat >>conftest.$ac_ext <<_ACEOF
11406/* end confdefs.h. */
11407#include <$ac_header>
11408_ACEOF
11409if { (ac_try="$ac_cpp conftest.$ac_ext"
11410case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413esac
11414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } >/dev/null; then
11422 if test -s conftest.err; then
11423 ac_cpp_err=$ac_c_preproc_warn_flag
11424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11425 else
11426 ac_cpp_err=
11427 fi
11428else
11429 ac_cpp_err=yes
11430fi
11431if test -z "$ac_cpp_err"; then
11432 ac_header_preproc=yes
11433else
11434 echo "$as_me: failed program was:" >&5
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
11437 ac_header_preproc=no
11438fi
11439
11440rm -f conftest.err conftest.$ac_ext
11441{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11442echo "${ECHO_T}$ac_header_preproc" >&6; }
11443
11444# So? What about this header?
11445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11446 yes:no: )
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11451 ac_header_preproc=yes
11452 ;;
11453 no:yes:* )
11454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11466 ( cat <<\_ASBOX
11467## ----------------------------------- ##
11468## Report this to llvmbugs@cs.uiuc.edu ##
11469## ----------------------------------- ##
11470_ASBOX
11471 ) | sed "s/^/$as_me: WARNING: /" >&2
11472 ;;
11473esac
11474{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11478else
11479 eval "$as_ac_Header=\$ac_header_preproc"
11480fi
11481ac_res=`eval echo '${'$as_ac_Header'}'`
11482 { echo "$as_me:$LINENO: result: $ac_res" >&5
11483echo "${ECHO_T}$ac_res" >&6; }
11484
11485fi
11486if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489_ACEOF
11490
11491fi
11492
11493done
11494
11495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011496{ echo "$as_me:$LINENO: checking for error_t" >&5
11497echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11498if test "${ac_cv_type_error_t+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
11500else
11501 cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
11507#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508# include <argz.h>
11509#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011510
11511typedef error_t ac__type_new_;
11512int
11513main ()
11514{
11515if ((ac__type_new_ *) 0)
11516 return 0;
11517if (sizeof (ac__type_new_))
11518 return 0;
11519 ;
11520 return 0;
11521}
11522_ACEOF
11523rm -f conftest.$ac_objext
11524if { (ac_try="$ac_compile"
11525case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_compile") 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11538 { (case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541esac
11542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_try") 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551esac
11552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_try") 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_type_error_t=yes
11558else
11559 echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 ac_cv_type_error_t=no
11563fi
11564
11565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11566fi
11567{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11568echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11569if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570
11571cat >>confdefs.h <<_ACEOF
11572#define HAVE_ERROR_T 1
11573_ACEOF
11574
11575
11576else
11577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011578cat >>confdefs.h <<\_ACEOF
11579#define error_t int
11580_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581
11582fi
11583
11584
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011585
11586
11587
11588
11589
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011591do
11592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11593{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11595if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11597else
11598 cat >conftest.$ac_ext <<_ACEOF
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
11604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11606#define $ac_func innocuous_$ac_func
11607
11608/* System header to define __stub macros and hopefully few prototypes,
11609 which can conflict with char $ac_func (); below.
11610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11611 <limits.h> exists even on freestanding compilers. */
11612
11613#ifdef __STDC__
11614# include <limits.h>
11615#else
11616# include <assert.h>
11617#endif
11618
11619#undef $ac_func
11620
11621/* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624#ifdef __cplusplus
11625extern "C"
11626#endif
11627char $ac_func ();
11628/* The GNU C library defines this for functions which it implements
11629 to always fail with ENOSYS. Some functions are actually named
11630 something starting with __ and the normal name is an alias. */
11631#if defined __stub_$ac_func || defined __stub___$ac_func
11632choke me
11633#endif
11634
11635int
11636main ()
11637{
11638return $ac_func ();
11639 ;
11640 return 0;
11641}
11642_ACEOF
11643rm -f conftest.$ac_objext conftest$ac_exeext
11644if { (ac_try="$ac_link"
11645case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11658 { (case "(($ac_try" in
11659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11660 *) ac_try_echo=$ac_try;;
11661esac
11662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11663 (eval "$ac_try") 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 eval "$as_ac_var=yes"
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 eval "$as_ac_var=no"
11683fi
11684
11685rm -f core conftest.err conftest.$ac_objext \
11686 conftest$ac_exeext conftest.$ac_ext
11687fi
11688ac_res=`eval echo '${'$as_ac_var'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690echo "${ECHO_T}$ac_res" >&6; }
11691if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694_ACEOF
11695
11696fi
11697done
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011718
11719
11720
11721
11722
11723
11724
11725
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11727 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011728do
11729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735fi
11736ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738echo "${ECHO_T}$ac_res" >&6; }
11739else
11740 # Is the header compilable?
11741{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11743cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749$ac_includes_default
11750#include <$ac_header>
11751_ACEOF
11752rm -f conftest.$ac_objext
11753if { (ac_try="$ac_compile"
11754case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757esac
11758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_compile") 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767 { (case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770esac
11771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_try") 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; }; then
11786 ac_header_compiler=yes
11787else
11788 echo "$as_me: failed program was:" >&5
11789sed 's/^/| /' conftest.$ac_ext >&5
11790
11791 ac_header_compiler=no
11792fi
11793
11794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11796echo "${ECHO_T}$ac_header_compiler" >&6; }
11797
11798# Is the header present?
11799{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11800echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11801cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807#include <$ac_header>
11808_ACEOF
11809if { (ac_try="$ac_cpp conftest.$ac_ext"
11810case "(($ac_try" in
11811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812 *) ac_try_echo=$ac_try;;
11813esac
11814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816 ac_status=$?
11817 grep -v '^ *+' conftest.er1 >conftest.err
11818 rm -f conftest.er1
11819 cat conftest.err >&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } >/dev/null; then
11822 if test -s conftest.err; then
11823 ac_cpp_err=$ac_c_preproc_warn_flag
11824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11825 else
11826 ac_cpp_err=
11827 fi
11828else
11829 ac_cpp_err=yes
11830fi
11831if test -z "$ac_cpp_err"; then
11832 ac_header_preproc=yes
11833else
11834 echo "$as_me: failed program was:" >&5
11835sed 's/^/| /' conftest.$ac_ext >&5
11836
11837 ac_header_preproc=no
11838fi
11839
11840rm -f conftest.err conftest.$ac_ext
11841{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842echo "${ECHO_T}$ac_header_preproc" >&6; }
11843
11844# So? What about this header?
11845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846 yes:no: )
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11851 ac_header_preproc=yes
11852 ;;
11853 no:yes:* )
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11866 ( cat <<\_ASBOX
11867## ----------------------------------- ##
11868## Report this to llvmbugs@cs.uiuc.edu ##
11869## ----------------------------------- ##
11870_ASBOX
11871 ) | sed "s/^/$as_me: WARNING: /" >&2
11872 ;;
11873esac
11874{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11876if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11878else
11879 eval "$as_ac_Header=\$ac_header_preproc"
11880fi
11881ac_res=`eval echo '${'$as_ac_Header'}'`
11882 { echo "$as_me:$LINENO: result: $ac_res" >&5
11883echo "${ECHO_T}$ac_res" >&6; }
11884
11885fi
11886if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889_ACEOF
11890
11891fi
11892
11893done
11894
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011895
11896
11897
11898
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011900do
11901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907fi
11908ac_res=`eval echo '${'$as_ac_Header'}'`
11909 { echo "$as_me:$LINENO: result: $ac_res" >&5
11910echo "${ECHO_T}$ac_res" >&6; }
11911else
11912 # Is the header compilable?
11913{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11915cat >conftest.$ac_ext <<_ACEOF
11916/* confdefs.h. */
11917_ACEOF
11918cat confdefs.h >>conftest.$ac_ext
11919cat >>conftest.$ac_ext <<_ACEOF
11920/* end confdefs.h. */
11921$ac_includes_default
11922#include <$ac_header>
11923_ACEOF
11924rm -f conftest.$ac_objext
11925if { (ac_try="$ac_compile"
11926case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_compile") 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11939 { (case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11942esac
11943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944 (eval "$ac_try") 2>&5
11945 ac_status=$?
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; } &&
11948 { ac_try='test -s conftest.$ac_objext'
11949 { (case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952esac
11953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_try") 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; }; then
11958 ac_header_compiler=yes
11959else
11960 echo "$as_me: failed program was:" >&5
11961sed 's/^/| /' conftest.$ac_ext >&5
11962
11963 ac_header_compiler=no
11964fi
11965
11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11968echo "${ECHO_T}$ac_header_compiler" >&6; }
11969
11970# Is the header present?
11971{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11973cat >conftest.$ac_ext <<_ACEOF
11974/* confdefs.h. */
11975_ACEOF
11976cat confdefs.h >>conftest.$ac_ext
11977cat >>conftest.$ac_ext <<_ACEOF
11978/* end confdefs.h. */
11979#include <$ac_header>
11980_ACEOF
11981if { (ac_try="$ac_cpp conftest.$ac_ext"
11982case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } >/dev/null; then
11994 if test -s conftest.err; then
11995 ac_cpp_err=$ac_c_preproc_warn_flag
11996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11997 else
11998 ac_cpp_err=
11999 fi
12000else
12001 ac_cpp_err=yes
12002fi
12003if test -z "$ac_cpp_err"; then
12004 ac_header_preproc=yes
12005else
12006 echo "$as_me: failed program was:" >&5
12007sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 ac_header_preproc=no
12010fi
12011
12012rm -f conftest.err conftest.$ac_ext
12013{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12014echo "${ECHO_T}$ac_header_preproc" >&6; }
12015
12016# So? What about this header?
12017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12018 yes:no: )
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12023 ac_header_preproc=yes
12024 ;;
12025 no:yes:* )
12026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12038 ( cat <<\_ASBOX
12039## ----------------------------------- ##
12040## Report this to llvmbugs@cs.uiuc.edu ##
12041## ----------------------------------- ##
12042_ASBOX
12043 ) | sed "s/^/$as_me: WARNING: /" >&2
12044 ;;
12045esac
12046{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051 eval "$as_ac_Header=\$ac_header_preproc"
12052fi
12053ac_res=`eval echo '${'$as_ac_Header'}'`
12054 { echo "$as_me:$LINENO: result: $ac_res" >&5
12055echo "${ECHO_T}$ac_res" >&6; }
12056
12057fi
12058if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061_ACEOF
12062
12063fi
12064
12065done
12066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012067
12068
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012070do
12071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077fi
12078ac_res=`eval echo '${'$as_ac_Header'}'`
12079 { echo "$as_me:$LINENO: result: $ac_res" >&5
12080echo "${ECHO_T}$ac_res" >&6; }
12081else
12082 # Is the header compilable?
12083{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12084echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12085cat >conftest.$ac_ext <<_ACEOF
12086/* confdefs.h. */
12087_ACEOF
12088cat confdefs.h >>conftest.$ac_ext
12089cat >>conftest.$ac_ext <<_ACEOF
12090/* end confdefs.h. */
12091$ac_includes_default
12092#include <$ac_header>
12093_ACEOF
12094rm -f conftest.$ac_objext
12095if { (ac_try="$ac_compile"
12096case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12099esac
12100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_compile") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12109 { (case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112esac
12113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_try") 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (case "(($ac_try" in
12120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12122esac
12123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_try") 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 ac_header_compiler=yes
12129else
12130 echo "$as_me: failed program was:" >&5
12131sed 's/^/| /' conftest.$ac_ext >&5
12132
12133 ac_header_compiler=no
12134fi
12135
12136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138echo "${ECHO_T}$ac_header_compiler" >&6; }
12139
12140# Is the header present?
12141{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12143cat >conftest.$ac_ext <<_ACEOF
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
12149#include <$ac_header>
12150_ACEOF
12151if { (ac_try="$ac_cpp conftest.$ac_ext"
12152case "(($ac_try" in
12153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154 *) ac_try_echo=$ac_try;;
12155esac
12156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12158 ac_status=$?
12159 grep -v '^ *+' conftest.er1 >conftest.err
12160 rm -f conftest.er1
12161 cat conftest.err >&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); } >/dev/null; then
12164 if test -s conftest.err; then
12165 ac_cpp_err=$ac_c_preproc_warn_flag
12166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12167 else
12168 ac_cpp_err=
12169 fi
12170else
12171 ac_cpp_err=yes
12172fi
12173if test -z "$ac_cpp_err"; then
12174 ac_header_preproc=yes
12175else
12176 echo "$as_me: failed program was:" >&5
12177sed 's/^/| /' conftest.$ac_ext >&5
12178
12179 ac_header_preproc=no
12180fi
12181
12182rm -f conftest.err conftest.$ac_ext
12183{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12184echo "${ECHO_T}$ac_header_preproc" >&6; }
12185
12186# So? What about this header?
12187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12188 yes:no: )
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12193 ac_header_preproc=yes
12194 ;;
12195 no:yes:* )
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12208 ( cat <<\_ASBOX
12209## ----------------------------------- ##
12210## Report this to llvmbugs@cs.uiuc.edu ##
12211## ----------------------------------- ##
12212_ASBOX
12213 ) | sed "s/^/$as_me: WARNING: /" >&2
12214 ;;
12215esac
12216{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12218if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12220else
12221 eval "$as_ac_Header=\$ac_header_preproc"
12222fi
12223ac_res=`eval echo '${'$as_ac_Header'}'`
12224 { echo "$as_me:$LINENO: result: $ac_res" >&5
12225echo "${ECHO_T}$ac_res" >&6; }
12226
12227fi
12228if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012229 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012231_ACEOF
12232 break
12233fi
12234
12235done
12236
12237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012238
12239
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012241do
12242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12243{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12245if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12247else
12248 cat >conftest.$ac_ext <<_ACEOF
12249/* confdefs.h. */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h. */
12254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12256#define $ac_func innocuous_$ac_func
12257
12258/* System header to define __stub macros and hopefully few prototypes,
12259 which can conflict with char $ac_func (); below.
12260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12261 <limits.h> exists even on freestanding compilers. */
12262
12263#ifdef __STDC__
12264# include <limits.h>
12265#else
12266# include <assert.h>
12267#endif
12268
12269#undef $ac_func
12270
12271/* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12274#ifdef __cplusplus
12275extern "C"
12276#endif
12277char $ac_func ();
12278/* The GNU C library defines this for functions which it implements
12279 to always fail with ENOSYS. Some functions are actually named
12280 something starting with __ and the normal name is an alias. */
12281#if defined __stub_$ac_func || defined __stub___$ac_func
12282choke me
12283#endif
12284
12285int
12286main ()
12287{
12288return $ac_func ();
12289 ;
12290 return 0;
12291}
12292_ACEOF
12293rm -f conftest.$ac_objext conftest$ac_exeext
12294if { (ac_try="$ac_link"
12295case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12298esac
12299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } &&
12307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12308 { (case "(($ac_try" in
12309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12311esac
12312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_try") 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; } &&
12317 { ac_try='test -s conftest$ac_exeext'
12318 { (case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321esac
12322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_try") 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; }; then
12327 eval "$as_ac_var=yes"
12328else
12329 echo "$as_me: failed program was:" >&5
12330sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 eval "$as_ac_var=no"
12333fi
12334
12335rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337fi
12338ac_res=`eval echo '${'$as_ac_var'}'`
12339 { echo "$as_me:$LINENO: result: $ac_res" >&5
12340echo "${ECHO_T}$ac_res" >&6; }
12341if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012342 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344_ACEOF
12345 break
12346fi
12347done
12348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012349
12350
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012351for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012352do
12353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12354{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12356if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12358else
12359 cat >conftest.$ac_ext <<_ACEOF
12360/* confdefs.h. */
12361_ACEOF
12362cat confdefs.h >>conftest.$ac_ext
12363cat >>conftest.$ac_ext <<_ACEOF
12364/* end confdefs.h. */
12365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12367#define $ac_func innocuous_$ac_func
12368
12369/* System header to define __stub macros and hopefully few prototypes,
12370 which can conflict with char $ac_func (); below.
12371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372 <limits.h> exists even on freestanding compilers. */
12373
12374#ifdef __STDC__
12375# include <limits.h>
12376#else
12377# include <assert.h>
12378#endif
12379
12380#undef $ac_func
12381
12382/* Override any GCC internal prototype to avoid an error.
12383 Use char because int might match the return type of a GCC
12384 builtin and then its argument prototype would still apply. */
12385#ifdef __cplusplus
12386extern "C"
12387#endif
12388char $ac_func ();
12389/* The GNU C library defines this for functions which it implements
12390 to always fail with ENOSYS. Some functions are actually named
12391 something starting with __ and the normal name is an alias. */
12392#if defined __stub_$ac_func || defined __stub___$ac_func
12393choke me
12394#endif
12395
12396int
12397main ()
12398{
12399return $ac_func ();
12400 ;
12401 return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext conftest$ac_exeext
12405if { (ac_try="$ac_link"
12406case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 eval "$as_ac_var=yes"
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 eval "$as_ac_var=no"
12444fi
12445
12446rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448fi
12449ac_res=`eval echo '${'$as_ac_var'}'`
12450 { echo "$as_me:$LINENO: result: $ac_res" >&5
12451echo "${ECHO_T}$ac_res" >&6; }
12452if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012453 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455_ACEOF
12456 break
12457fi
12458done
12459
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012460
12461
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012462for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012463do
12464as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12465{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12466echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12467if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 cat >conftest.$ac_ext <<_ACEOF
12471/* confdefs.h. */
12472_ACEOF
12473cat confdefs.h >>conftest.$ac_ext
12474cat >>conftest.$ac_ext <<_ACEOF
12475/* end confdefs.h. */
12476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12478#define $ac_func innocuous_$ac_func
12479
12480/* System header to define __stub macros and hopefully few prototypes,
12481 which can conflict with char $ac_func (); below.
12482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12483 <limits.h> exists even on freestanding compilers. */
12484
12485#ifdef __STDC__
12486# include <limits.h>
12487#else
12488# include <assert.h>
12489#endif
12490
12491#undef $ac_func
12492
12493/* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496#ifdef __cplusplus
12497extern "C"
12498#endif
12499char $ac_func ();
12500/* The GNU C library defines this for functions which it implements
12501 to always fail with ENOSYS. Some functions are actually named
12502 something starting with __ and the normal name is an alias. */
12503#if defined __stub_$ac_func || defined __stub___$ac_func
12504choke me
12505#endif
12506
12507int
12508main ()
12509{
12510return $ac_func ();
12511 ;
12512 return 0;
12513}
12514_ACEOF
12515rm -f conftest.$ac_objext conftest$ac_exeext
12516if { (ac_try="$ac_link"
12517case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520esac
12521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_link") 2>conftest.er1
12523 ac_status=$?
12524 grep -v '^ *+' conftest.er1 >conftest.err
12525 rm -f conftest.er1
12526 cat conftest.err >&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12530 { (case "(($ac_try" in
12531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12532 *) ac_try_echo=$ac_try;;
12533esac
12534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12535 (eval "$ac_try") 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543esac
12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_try") 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 eval "$as_ac_var=yes"
12550else
12551 echo "$as_me: failed program was:" >&5
12552sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 eval "$as_ac_var=no"
12555fi
12556
12557rm -f core conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12559fi
12560ac_res=`eval echo '${'$as_ac_var'}'`
12561 { echo "$as_me:$LINENO: result: $ac_res" >&5
12562echo "${ECHO_T}$ac_res" >&6; }
12563if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012565#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566_ACEOF
12567 break
12568fi
12569done
12570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012571
12572
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012573for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012574do
12575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12576{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12580else
12581 cat >conftest.$ac_ext <<_ACEOF
12582/* confdefs.h. */
12583_ACEOF
12584cat confdefs.h >>conftest.$ac_ext
12585cat >>conftest.$ac_ext <<_ACEOF
12586/* end confdefs.h. */
12587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12589#define $ac_func innocuous_$ac_func
12590
12591/* System header to define __stub macros and hopefully few prototypes,
12592 which can conflict with char $ac_func (); below.
12593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12594 <limits.h> exists even on freestanding compilers. */
12595
12596#ifdef __STDC__
12597# include <limits.h>
12598#else
12599# include <assert.h>
12600#endif
12601
12602#undef $ac_func
12603
12604/* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607#ifdef __cplusplus
12608extern "C"
12609#endif
12610char $ac_func ();
12611/* The GNU C library defines this for functions which it implements
12612 to always fail with ENOSYS. Some functions are actually named
12613 something starting with __ and the normal name is an alias. */
12614#if defined __stub_$ac_func || defined __stub___$ac_func
12615choke me
12616#endif
12617
12618int
12619main ()
12620{
12621return $ac_func ();
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626rm -f conftest.$ac_objext conftest$ac_exeext
12627if { (ac_try="$ac_link"
12628case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12631esac
12632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_link") 2>conftest.er1
12634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12641 { (case "(($ac_try" in
12642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12644esac
12645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest$ac_exeext'
12651 { (case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654esac
12655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_try") 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 eval "$as_ac_var=yes"
12661else
12662 echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 eval "$as_ac_var=no"
12666fi
12667
12668rm -f core conftest.err conftest.$ac_objext \
12669 conftest$ac_exeext conftest.$ac_ext
12670fi
12671ac_res=`eval echo '${'$as_ac_var'}'`
12672 { echo "$as_me:$LINENO: result: $ac_res" >&5
12673echo "${ECHO_T}$ac_res" >&6; }
12674if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012675 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012676#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012677_ACEOF
12678
12679fi
12680done
12681
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012682
12683
12684
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012685for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012686do
12687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12690if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12701#define $ac_func innocuous_$ac_func
12702
12703/* System header to define __stub macros and hopefully few prototypes,
12704 which can conflict with char $ac_func (); below.
12705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706 <limits.h> exists even on freestanding compilers. */
12707
12708#ifdef __STDC__
12709# include <limits.h>
12710#else
12711# include <assert.h>
12712#endif
12713
12714#undef $ac_func
12715
12716/* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12719#ifdef __cplusplus
12720extern "C"
12721#endif
12722char $ac_func ();
12723/* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726#if defined __stub_$ac_func || defined __stub___$ac_func
12727choke me
12728#endif
12729
12730int
12731main ()
12732{
12733return $ac_func ();
12734 ;
12735 return 0;
12736}
12737_ACEOF
12738rm -f conftest.$ac_objext conftest$ac_exeext
12739if { (ac_try="$ac_link"
12740case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743esac
12744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753 { (case "(($ac_try" in
12754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12756esac
12757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765 *) ac_try_echo=$ac_try;;
12766esac
12767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 eval "$as_ac_var=yes"
12773else
12774 echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 eval "$as_ac_var=no"
12778fi
12779
12780rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782fi
12783ac_res=`eval echo '${'$as_ac_var'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785echo "${ECHO_T}$ac_res" >&6; }
12786if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012788#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012789_ACEOF
12790
12791fi
12792done
12793
12794
Douglas Gregor01746742009-05-11 18:05:52 +000012795
Reid Spencer7931a782004-12-27 06:15:02 +000012796if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000012797 LLVMGCC="llvm-gcc${EXEEXT}"
12798 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012799 LLVMGCCCOMMAND="$LLVMGCC"
12800 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012801 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12802
12803 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12804
Reid Spencerc84492c2005-06-02 22:34:49 +000012805 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12806set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12809if test "${ac_cv_path_LLVMGCC+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012811else
12812 case $LLVMGCC in
12813 [\\/]* | ?:[\\/]*)
12814 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12815 ;;
12816 *)
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $PATH
12819do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 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 +000012824 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012826 break 2
12827 fi
12828done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012829done
Reid Spencera773bd52006-08-04 18:18:08 +000012830IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012831
Reid Spencer59473af2004-12-25 07:31:29 +000012832 ;;
12833esac
12834fi
12835LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000012836if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012837 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12838echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012839else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012840 { echo "$as_me:$LINENO: result: no" >&5
12841echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012842fi
12843
Reid Spencera773bd52006-08-04 18:18:08 +000012844
Reid Spencerc84492c2005-06-02 22:34:49 +000012845 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12846set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012847{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12849if test "${ac_cv_path_LLVMGXX+set}" = set; then
12850 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000012851else
12852 case $LLVMGXX in
12853 [\\/]* | ?:[\\/]*)
12854 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12855 ;;
12856 *)
12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858for as_dir in $PATH
12859do
12860 IFS=$as_save_IFS
12861 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 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 +000012864 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012866 break 2
12867 fi
12868done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012869done
Reid Spencera773bd52006-08-04 18:18:08 +000012870IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000012871
Reid Spencer59473af2004-12-25 07:31:29 +000012872 ;;
12873esac
12874fi
12875LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000012876if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012877 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12878echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012879else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012880 { echo "$as_me:$LINENO: result: no" >&5
12881echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000012882fi
12883
Reid Spencera773bd52006-08-04 18:18:08 +000012884
Reid Spencer59473af2004-12-25 07:31:29 +000012885else
Devang Patel5d28b882007-12-04 22:54:47 +000012886 if test -z "$LLVMGCC"; then
12887 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012888 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000012889 fi
12890 if test -z "$LLVMGXX"; then
12891 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012892 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000012893 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012894
Reid Spencer59473af2004-12-25 07:31:29 +000012895 LLVMGCC=$LLVMGCC
12896
12897 LLVMGXX=$LLVMGXX
12898
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012899 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12900
12901 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12902
Reid Spencer59473af2004-12-25 07:31:29 +000012903fi
12904
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000012905
Daniel Dunbar98515672010-02-23 10:00:49 +000012906# Check whether --with-llvmcc was given.
12907if test "${with_llvmcc+set}" = set; then
12908 withval=$with_llvmcc;
12909else
12910 with_llvmcc=check
12911fi
12912
12913{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12914echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12915if test "$with_llvmcc" != "check"; then
12916 if (test "$with_llvmcc" != "llvm-gcc" &&
12917 test "$with_llvmcc" != "clang" &&
12918 test "$with_llvmcc" != "none"); then
12919 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12920echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12921 { (exit 1); exit 1; }; }
12922 fi
12923 WITH_LLVMCC="$with_llvmcc"
12924elif test -n "$LLVMGCC"; then
12925 WITH_LLVMCC=llvm-gcc
12926elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12927 WITH_LLVMCC=clang
12928else
12929 WITH_LLVMCC=none
12930fi
12931{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12932echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12933LLVMCC_OPTION=$WITH_LLVMCC
12934
12935
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012936{ echo "$as_me:$LINENO: checking tool compatibility" >&5
12937echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000012938
Reid Spencer86901802004-12-08 23:07:27 +000012939ICC=no
12940IXX=no
12941case $CC in
12942 icc*|icpc*)
12943 ICC=yes
12944 IXX=yes
12945 ;;
12946 *)
12947 ;;
12948esac
12949
Duraid Madina937c60a2006-02-15 07:57:42 +000012950if test "$GCC" != "yes" && test "$ICC" != "yes"
12951then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012952 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12953echo "$as_me: error: gcc|icc required but not found" >&2;}
12954 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012955fi
12956
12957if test "$GXX" != "yes" && test "$IXX" != "yes"
12958then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012959 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12960echo "$as_me: error: g++|icc required but not found" >&2;}
12961 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000012962fi
12963
Reid Spencer86901802004-12-08 23:07:27 +000012964if test "$GCC" = "yes"
12965then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012966 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000012967#if !defined(__GNUC__) || __GNUC__ < 3
12968#error Unsupported GCC version
12969#endif
12970
12971_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012972rm -f conftest.$ac_objext
12973if { (ac_try="$ac_compile"
12974case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
12986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest.$ac_objext'
12997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
13003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013007else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13012echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13013 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013014fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013015
Chris Lattner399c7c72008-02-05 19:43:53 +000013016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013017fi
13018
13019if test -z "$llvm_cv_gnu_make_command"
13020then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013021 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13022echo "$as_me: error: GNU Make required but not found" >&2;}
13023 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013024fi
13025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013026{ echo "$as_me:$LINENO: result: ok" >&5
13027echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013028
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013029{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13030echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013031NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13032
13033NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13034
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013035{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13036echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013037
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013038
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013039
13040{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13041echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13042if test "${ac_cv_lib_m_sin+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013044else
13045 ac_check_lib_save_LIBS=$LIBS
13046LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013047cat >conftest.$ac_ext <<_ACEOF
13048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013052/* end confdefs.h. */
13053
Reid Spencera773bd52006-08-04 18:18:08 +000013054/* Override any GCC internal prototype to avoid an error.
13055 Use char because int might match the return type of a GCC
13056 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013057#ifdef __cplusplus
13058extern "C"
13059#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013060char sin ();
13061int
13062main ()
13063{
Reid Spencera773bd52006-08-04 18:18:08 +000013064return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013065 ;
13066 return 0;
13067}
13068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013069rm -f conftest.$ac_objext conftest$ac_exeext
13070if { (ac_try="$ac_link"
13071case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_link") 2>conftest.er1
13077 ac_status=$?
13078 grep -v '^ *+' conftest.er1 >conftest.err
13079 rm -f conftest.er1
13080 cat conftest.err >&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087esac
13088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; } &&
13093 { ac_try='test -s conftest$ac_exeext'
13094 { (case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_try") 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013103 ac_cv_lib_m_sin=yes
13104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013105 echo "$as_me: failed program was:" >&5
13106sed 's/^/| /' conftest.$ac_ext >&5
13107
13108 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013109fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110
Bill Wendlingebcceee2009-04-18 11:20:33 +000013111rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013112 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013113LIBS=$ac_check_lib_save_LIBS
13114fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013115{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13116echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13117if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013118 cat >>confdefs.h <<_ACEOF
13119#define HAVE_LIBM 1
13120_ACEOF
13121
13122 LIBS="-lm $LIBS"
13123
13124fi
13125
Jeff Cohen28783c32007-01-12 18:22:38 +000013126if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013127
13128{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13129echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13130if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13131 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013132else
13133 ac_check_lib_save_LIBS=$LIBS
13134LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013135cat >conftest.$ac_ext <<_ACEOF
13136/* confdefs.h. */
13137_ACEOF
13138cat confdefs.h >>conftest.$ac_ext
13139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013140/* end confdefs.h. */
13141
Reid Spencer48fdf912006-06-01 19:03:21 +000013142
Reid Spencer484fc8e2006-06-01 16:55:59 +000013143int
13144main ()
13145{
Reid Spencera773bd52006-08-04 18:18:08 +000013146return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013147 ;
13148 return 0;
13149}
13150_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013151rm -f conftest.$ac_objext conftest$ac_exeext
13152if { (ac_try="$ac_link"
13153case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156esac
13157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_link") 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13169esac
13170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest$ac_exeext'
13176 { (case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179esac
13180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_try") 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013185 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013186else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013187 echo "$as_me: failed program was:" >&5
13188sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013191fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013192
Bill Wendlingebcceee2009-04-18 11:20:33 +000013193rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013194 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013195LIBS=$ac_check_lib_save_LIBS
13196fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13198echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13199if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013200 cat >>confdefs.h <<_ACEOF
13201#define HAVE_LIBIMAGEHLP 1
13202_ACEOF
13203
13204 LIBS="-limagehlp $LIBS"
13205
13206fi
13207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208
13209{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13210echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13211if test "${ac_cv_lib_psapi_main+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013213else
13214 ac_check_lib_save_LIBS=$LIBS
13215LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013216cat >conftest.$ac_ext <<_ACEOF
13217/* confdefs.h. */
13218_ACEOF
13219cat confdefs.h >>conftest.$ac_ext
13220cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013221/* end confdefs.h. */
13222
Reid Spencer48fdf912006-06-01 19:03:21 +000013223
Reid Spencer484fc8e2006-06-01 16:55:59 +000013224int
13225main ()
13226{
Reid Spencera773bd52006-08-04 18:18:08 +000013227return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013228 ;
13229 return 0;
13230}
13231_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013232rm -f conftest.$ac_objext conftest$ac_exeext
13233if { (ac_try="$ac_link"
13234case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_link") 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247 { (case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250esac
13251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252 (eval "$ac_try") 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest$ac_exeext'
13257 { (case "(($ac_try" in
13258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259 *) ac_try_echo=$ac_try;;
13260esac
13261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262 (eval "$ac_try") 2>&5
13263 ac_status=$?
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013266 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013267else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013268 echo "$as_me: failed program was:" >&5
13269sed 's/^/| /' conftest.$ac_ext >&5
13270
13271 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013272fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013273
Bill Wendlingebcceee2009-04-18 11:20:33 +000013274rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013275 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013276LIBS=$ac_check_lib_save_LIBS
13277fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013278{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13279echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13280if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013281 cat >>confdefs.h <<_ACEOF
13282#define HAVE_LIBPSAPI 1
13283_ACEOF
13284
13285 LIBS="-lpsapi $LIBS"
13286
13287fi
13288
13289fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013291{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13292echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13293if test "${ac_cv_search_dlopen+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013295else
13296 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013297cat >conftest.$ac_ext <<_ACEOF
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013303
Reid Spencera773bd52006-08-04 18:18:08 +000013304/* Override any GCC internal prototype to avoid an error.
13305 Use char because int might match the return type of a GCC
13306 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013307#ifdef __cplusplus
13308extern "C"
13309#endif
John Criswell7a73b802003-06-30 21:59:07 +000013310char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013311int
13312main ()
13313{
Reid Spencera773bd52006-08-04 18:18:08 +000013314return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013315 ;
13316 return 0;
13317}
13318_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013319for ac_lib in '' dl; do
13320 if test -z "$ac_lib"; then
13321 ac_res="none required"
13322 else
13323 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013325 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013326 rm -f conftest.$ac_objext conftest$ac_exeext
13327if { (ac_try="$ac_link"
13328case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
13332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_link") 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } &&
13340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13341 { (case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344esac
13345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_try") 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; } &&
13350 { ac_try='test -s conftest$ac_exeext'
13351 { (case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_try") 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013360 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013361else
13362 echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365
John Criswell7a73b802003-06-30 21:59:07 +000013366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013367
Bill Wendlingebcceee2009-04-18 11:20:33 +000013368rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013369 conftest$ac_exeext
13370 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013371 break
John Criswell7a73b802003-06-30 21:59:07 +000013372fi
Reid Spencera773bd52006-08-04 18:18:08 +000013373done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013374if test "${ac_cv_search_dlopen+set}" = set; then
13375 :
Reid Spencera773bd52006-08-04 18:18:08 +000013376else
13377 ac_cv_search_dlopen=no
13378fi
13379rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013380LIBS=$ac_func_search_save_LIBS
13381fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013382{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13383echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013384ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013385if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013388cat >>confdefs.h <<\_ACEOF
13389#define HAVE_DLOPEN 1
13390_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013391
13392else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013393 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13394echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013395fi
13396
13397
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013398if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013399 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13400echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13401if test "${ac_cv_search_ffi_call+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013403else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013404 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013405cat >conftest.$ac_ext <<_ACEOF
13406/* confdefs.h. */
13407_ACEOF
13408cat confdefs.h >>conftest.$ac_ext
13409cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013410/* end confdefs.h. */
13411
13412/* Override any GCC internal prototype to avoid an error.
13413 Use char because int might match the return type of a GCC
13414 builtin and then its argument prototype would still apply. */
13415#ifdef __cplusplus
13416extern "C"
13417#endif
13418char ffi_call ();
13419int
13420main ()
13421{
13422return ffi_call ();
13423 ;
13424 return 0;
13425}
13426_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013427for ac_lib in '' ffi; do
13428 if test -z "$ac_lib"; then
13429 ac_res="none required"
13430 else
13431 ac_res=-l$ac_lib
13432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13433 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013434 rm -f conftest.$ac_objext conftest$ac_exeext
13435if { (ac_try="$ac_link"
13436case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
13440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_link") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13449 { (case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13452esac
13453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454 (eval "$ac_try") 2>&5
13455 ac_status=$?
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; } &&
13458 { ac_try='test -s conftest$ac_exeext'
13459 { (case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_try") 2>&5
13465 ac_status=$?
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013468 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469else
13470 echo "$as_me: failed program was:" >&5
13471sed 's/^/| /' conftest.$ac_ext >&5
13472
13473
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013474fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013475
Bill Wendlingebcceee2009-04-18 11:20:33 +000013476rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477 conftest$ac_exeext
13478 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013479 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013480fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013481done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013482if test "${ac_cv_search_ffi_call+set}" = set; then
13483 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013484else
13485 ac_cv_search_ffi_call=no
13486fi
13487rm conftest.$ac_ext
13488LIBS=$ac_func_search_save_LIBS
13489fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013490{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13491echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013492ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013496cat >>confdefs.h <<\_ACEOF
13497#define HAVE_FFI_CALL 1
13498_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013499
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013500else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013501 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13502echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13503 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013504fi
13505
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013506fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013507
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013508{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13509echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13510if test "${ac_cv_search_mallinfo+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013512else
13513 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013514cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013520
Reid Spencera773bd52006-08-04 18:18:08 +000013521/* Override any GCC internal prototype to avoid an error.
13522 Use char because int might match the return type of a GCC
13523 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013524#ifdef __cplusplus
13525extern "C"
13526#endif
John Criswell7a73b802003-06-30 21:59:07 +000013527char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013528int
13529main ()
13530{
Reid Spencera773bd52006-08-04 18:18:08 +000013531return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013532 ;
13533 return 0;
13534}
13535_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013536for ac_lib in '' malloc; do
13537 if test -z "$ac_lib"; then
13538 ac_res="none required"
13539 else
13540 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013542 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013543 rm -f conftest.$ac_objext conftest$ac_exeext
13544if { (ac_try="$ac_link"
13545case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13548esac
13549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_link") 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
13557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558 { (case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13561esac
13562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_try") 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571esac
13572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_try") 2>&5
13574 ac_status=$?
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013577 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013578else
13579 echo "$as_me: failed program was:" >&5
13580sed 's/^/| /' conftest.$ac_ext >&5
13581
13582
John Criswell7a73b802003-06-30 21:59:07 +000013583fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584
Bill Wendlingebcceee2009-04-18 11:20:33 +000013585rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013586 conftest$ac_exeext
13587 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013588 break
John Criswell7a73b802003-06-30 21:59:07 +000013589fi
Reid Spencera773bd52006-08-04 18:18:08 +000013590done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013591if test "${ac_cv_search_mallinfo+set}" = set; then
13592 :
Reid Spencera773bd52006-08-04 18:18:08 +000013593else
13594 ac_cv_search_mallinfo=no
13595fi
13596rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013597LIBS=$ac_func_search_save_LIBS
13598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013599{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13600echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013601ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013602if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013605cat >>confdefs.h <<\_ACEOF
13606#define HAVE_MALLINFO 1
13607_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013608
13609fi
13610
13611
Reid Spencer0a262ba2005-08-24 10:07:20 +000013612if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013613
13614{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13615echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13616if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013618else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013619 ac_check_lib_save_LIBS=$LIBS
13620LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013621cat >conftest.$ac_ext <<_ACEOF
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013626/* end confdefs.h. */
13627
Reid Spencera773bd52006-08-04 18:18:08 +000013628/* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013631#ifdef __cplusplus
13632extern "C"
13633#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013634char pthread_mutex_init ();
13635int
13636main ()
13637{
Reid Spencera773bd52006-08-04 18:18:08 +000013638return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013639 ;
13640 return 0;
13641}
13642_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643rm -f conftest.$ac_objext conftest$ac_exeext
13644if { (ac_try="$ac_link"
13645case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13648esac
13649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_link") 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658 { (case "(($ac_try" in
13659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660 *) ac_try_echo=$ac_try;;
13661esac
13662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663 (eval "$ac_try") 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671esac
13672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_try") 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013677 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679 echo "$as_me: failed program was:" >&5
13680sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013684
Bill Wendlingebcceee2009-04-18 11:20:33 +000013685rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013686 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013687LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013689{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13690echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13691if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013692 cat >>confdefs.h <<_ACEOF
13693#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013694_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013695
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013696 LIBS="-lpthread $LIBS"
13697
Reid Spencer22177fe2005-07-12 15:24:20 +000013698fi
13699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013700 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13701echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13702if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013704else
13705 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013706cat >conftest.$ac_ext <<_ACEOF
13707/* confdefs.h. */
13708_ACEOF
13709cat confdefs.h >>conftest.$ac_ext
13710cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013711/* end confdefs.h. */
13712
Reid Spencera773bd52006-08-04 18:18:08 +000013713/* Override any GCC internal prototype to avoid an error.
13714 Use char because int might match the return type of a GCC
13715 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013716#ifdef __cplusplus
13717extern "C"
13718#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013719char pthread_mutex_lock ();
13720int
13721main ()
13722{
Reid Spencera773bd52006-08-04 18:18:08 +000013723return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013724 ;
13725 return 0;
13726}
13727_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013728for ac_lib in '' pthread; do
13729 if test -z "$ac_lib"; then
13730 ac_res="none required"
13731 else
13732 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013734 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735 rm -f conftest.$ac_objext conftest$ac_exeext
13736if { (ac_try="$ac_link"
13737case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13740esac
13741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_link") 2>conftest.er1
13743 ac_status=$?
13744 grep -v '^ *+' conftest.er1 >conftest.err
13745 rm -f conftest.er1
13746 cat conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } &&
13749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750 { (case "(($ac_try" in
13751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752 *) ac_try_echo=$ac_try;;
13753esac
13754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755 (eval "$ac_try") 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest$ac_exeext'
13760 { (case "(($ac_try" in
13761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762 *) ac_try_echo=$ac_try;;
13763esac
13764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765 (eval "$ac_try") 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013769 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013770else
13771 echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
13774
Brian Gaeke5f268f72003-12-05 19:29:01 +000013775fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013776
Bill Wendlingebcceee2009-04-18 11:20:33 +000013777rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013778 conftest$ac_exeext
13779 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013780 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000013781fi
Reid Spencera773bd52006-08-04 18:18:08 +000013782done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013783if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13784 :
Reid Spencera773bd52006-08-04 18:18:08 +000013785else
13786 ac_cv_search_pthread_mutex_lock=no
13787fi
13788rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000013789LIBS=$ac_func_search_save_LIBS
13790fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013791{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13792echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013793ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013794if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013795 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000013796
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013797cat >>confdefs.h <<\_ACEOF
13798#define HAVE_PTHREAD_MUTEX_LOCK 1
13799_ACEOF
John Criswell40468462004-09-24 21:19:06 +000013800
13801fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000013802
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013803 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13804echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13805if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000013807else
13808 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013809cat >conftest.$ac_ext <<_ACEOF
13810/* confdefs.h. */
13811_ACEOF
13812cat confdefs.h >>conftest.$ac_ext
13813cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013814/* end confdefs.h. */
13815
13816/* Override any GCC internal prototype to avoid an error.
13817 Use char because int might match the return type of a GCC
13818 builtin and then its argument prototype would still apply. */
13819#ifdef __cplusplus
13820extern "C"
13821#endif
13822char pthread_rwlock_init ();
13823int
13824main ()
13825{
13826return pthread_rwlock_init ();
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831for ac_lib in '' pthread; do
13832 if test -z "$ac_lib"; then
13833 ac_res="none required"
13834 else
13835 ac_res=-l$ac_lib
13836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13837 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013838 rm -f conftest.$ac_objext conftest$ac_exeext
13839if { (ac_try="$ac_link"
13840case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843esac
13844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
13852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13853 { (case "(($ac_try" in
13854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13856esac
13857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_try") 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest$ac_exeext'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013872 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013873else
13874 echo "$as_me: failed program was:" >&5
13875sed 's/^/| /' conftest.$ac_ext >&5
13876
13877
Owen Andersonde8aed22009-06-16 18:20:20 +000013878fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013879
Owen Andersonde8aed22009-06-16 18:20:20 +000013880rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013881 conftest$ac_exeext
13882 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013883 break
13884fi
13885done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013886if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13887 :
Owen Andersonde8aed22009-06-16 18:20:20 +000013888else
13889 ac_cv_search_pthread_rwlock_init=no
13890fi
13891rm conftest.$ac_ext
13892LIBS=$ac_func_search_save_LIBS
13893fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013894{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13895echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000013896ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013897if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000013898 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13899
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013900cat >>confdefs.h <<\_ACEOF
13901#define HAVE_PTHREAD_RWLOCK_INIT 1
13902_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000013903
13904fi
13905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013906 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13907echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13908if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000013910else
13911 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013912cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000013917/* end confdefs.h. */
13918
13919/* Override any GCC internal prototype to avoid an error.
13920 Use char because int might match the return type of a GCC
13921 builtin and then its argument prototype would still apply. */
13922#ifdef __cplusplus
13923extern "C"
13924#endif
13925char pthread_getspecific ();
13926int
13927main ()
13928{
13929return pthread_getspecific ();
13930 ;
13931 return 0;
13932}
13933_ACEOF
13934for ac_lib in '' pthread; do
13935 if test -z "$ac_lib"; then
13936 ac_res="none required"
13937 else
13938 ac_res=-l$ac_lib
13939 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13940 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013941 rm -f conftest.$ac_objext conftest$ac_exeext
13942if { (ac_try="$ac_link"
13943case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_link") 2>conftest.er1
13949 ac_status=$?
13950 grep -v '^ *+' conftest.er1 >conftest.err
13951 rm -f conftest.er1
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13956 { (case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959esac
13960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13961 (eval "$ac_try") 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest$ac_exeext'
13966 { (case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969esac
13970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_try") 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013975 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013976else
13977 echo "$as_me: failed program was:" >&5
13978sed 's/^/| /' conftest.$ac_ext >&5
13979
13980
Owen Anderson27fcfe12009-06-25 23:10:26 +000013981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013982
Owen Anderson27fcfe12009-06-25 23:10:26 +000013983rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013984 conftest$ac_exeext
13985 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000013986 break
13987fi
13988done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13990 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000013991else
13992 ac_cv_search_pthread_getspecific=no
13993fi
13994rm conftest.$ac_ext
13995LIBS=$ac_func_search_save_LIBS
13996fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013997{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13998echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000013999ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014000if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14002
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014003cat >>confdefs.h <<\_ACEOF
14004#define HAVE_PTHREAD_GETSPECIFIC 1
14005_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014006
14007fi
14008
Reid Spencer0a262ba2005-08-24 10:07:20 +000014009fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014010
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014011
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014012# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014013if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014014 withval=$with_udis86;
14015 USE_UDIS86=1
14016
14017 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014018 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014019 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14020 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021
14022{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14023echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14024if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014026else
14027 ac_check_lib_save_LIBS=$LIBS
14028LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014029cat >conftest.$ac_ext <<_ACEOF
14030/* confdefs.h. */
14031_ACEOF
14032cat confdefs.h >>conftest.$ac_ext
14033cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014034/* end confdefs.h. */
14035
14036/* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14039#ifdef __cplusplus
14040extern "C"
14041#endif
14042char ud_init ();
14043int
14044main ()
14045{
14046return ud_init ();
14047 ;
14048 return 0;
14049}
14050_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014051rm -f conftest.$ac_objext conftest$ac_exeext
14052if { (ac_try="$ac_link"
14053case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056esac
14057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_link") 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
14065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14066 { (case "(($ac_try" in
14067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14068 *) ac_try_echo=$ac_try;;
14069esac
14070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14071 (eval "$ac_try") 2>&5
14072 ac_status=$?
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); }; } &&
14075 { ac_try='test -s conftest$ac_exeext'
14076 { (case "(($ac_try" in
14077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14078 *) ac_try_echo=$ac_try;;
14079esac
14080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14081 (eval "$ac_try") 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014085 ac_cv_lib_udis86_ud_init=yes
14086else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014087 echo "$as_me: failed program was:" >&5
14088sed 's/^/| /' conftest.$ac_ext >&5
14089
14090 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014091fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014092
Bill Wendlingebcceee2009-04-18 11:20:33 +000014093rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014094 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014095LIBS=$ac_check_lib_save_LIBS
14096fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014097{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14098echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14099if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014100 cat >>confdefs.h <<_ACEOF
14101#define HAVE_LIBUDIS86 1
14102_ACEOF
14103
14104 LIBS="-ludis86 $LIBS"
14105
14106else
14107
14108 echo "Error! You need to have libudis86 around."
14109 exit -1
14110
14111fi
14112
14113
14114else
14115 USE_UDIS86=0
14116
14117fi
14118
14119
14120cat >>confdefs.h <<_ACEOF
14121#define USE_UDIS86 $USE_UDIS86
14122_ACEOF
14123
14124
14125
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014126# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014127if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014128 withval=$with_oprofile;
14129 USE_OPROFILE=1
14130
14131 case "$withval" in
14132 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014133 no) llvm_cv_oppath=
14134 USE_OPROFILE=0
14135 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014136 *) llvm_cv_oppath="${withval}/lib/oprofile"
14137 CPPFLAGS="-I${withval}/include";;
14138 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014139 if test -n "$llvm_cv_oppath" ; then
14140 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014141 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14142echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14143if test "${ac_cv_search_bfd_init+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014145else
14146 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147cat >conftest.$ac_ext <<_ACEOF
14148/* confdefs.h. */
14149_ACEOF
14150cat confdefs.h >>conftest.$ac_ext
14151cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014152/* end confdefs.h. */
14153
14154/* Override any GCC internal prototype to avoid an error.
14155 Use char because int might match the return type of a GCC
14156 builtin and then its argument prototype would still apply. */
14157#ifdef __cplusplus
14158extern "C"
14159#endif
14160char bfd_init ();
14161int
14162main ()
14163{
14164return bfd_init ();
14165 ;
14166 return 0;
14167}
14168_ACEOF
14169for ac_lib in '' bfd; do
14170 if test -z "$ac_lib"; then
14171 ac_res="none required"
14172 else
14173 ac_res=-l$ac_lib
14174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14175 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014176 rm -f conftest.$ac_objext conftest$ac_exeext
14177if { (ac_try="$ac_link"
14178case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14184 ac_status=$?
14185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14191 { (case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194esac
14195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_try") 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest$ac_exeext'
14201 { (case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204esac
14205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_try") 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014210 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014211else
14212 echo "$as_me: failed program was:" >&5
14213sed 's/^/| /' conftest.$ac_ext >&5
14214
14215
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014217
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014218rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014219 conftest$ac_exeext
14220 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014221 break
14222fi
14223done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014224if test "${ac_cv_search_bfd_init+set}" = set; then
14225 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014226else
14227 ac_cv_search_bfd_init=no
14228fi
14229rm conftest.$ac_ext
14230LIBS=$ac_func_search_save_LIBS
14231fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014232{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14233echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014234ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014235if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14237
14238fi
14239
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014240 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14241echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14242if test "${ac_cv_search_op_open_agent+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014244else
14245 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014246cat >conftest.$ac_ext <<_ACEOF
14247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014251/* end confdefs.h. */
14252
14253/* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14256#ifdef __cplusplus
14257extern "C"
14258#endif
14259char op_open_agent ();
14260int
14261main ()
14262{
14263return op_open_agent ();
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268for ac_lib in '' opagent; do
14269 if test -z "$ac_lib"; then
14270 ac_res="none required"
14271 else
14272 ac_res=-l$ac_lib
14273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14274 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014275 rm -f conftest.$ac_objext conftest$ac_exeext
14276if { (ac_try="$ac_link"
14277case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14280esac
14281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_link") 2>conftest.er1
14283 ac_status=$?
14284 grep -v '^ *+' conftest.er1 >conftest.err
14285 rm -f conftest.er1
14286 cat conftest.err >&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest$ac_exeext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14303esac
14304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014309 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014310else
14311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014316
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014317rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014318 conftest$ac_exeext
14319 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014320 break
14321fi
14322done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014323if test "${ac_cv_search_op_open_agent+set}" = set; then
14324 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014325else
14326 ac_cv_search_op_open_agent=no
14327fi
14328rm conftest.$ac_ext
14329LIBS=$ac_func_search_save_LIBS
14330fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014331{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14332echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014333ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014334if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14336
14337else
14338
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014339 echo "Error! You need to have libopagent around."
14340 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014341
14342fi
14343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344 if test "${ac_cv_header_opagent_h+set}" = set; then
14345 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14346echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14347if test "${ac_cv_header_opagent_h+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349fi
14350{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14351echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14352else
14353 # Is the header compilable?
14354{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14355echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14356cat >conftest.$ac_ext <<_ACEOF
14357/* confdefs.h. */
14358_ACEOF
14359cat confdefs.h >>conftest.$ac_ext
14360cat >>conftest.$ac_ext <<_ACEOF
14361/* end confdefs.h. */
14362$ac_includes_default
14363#include <opagent.h>
14364_ACEOF
14365rm -f conftest.$ac_objext
14366if { (ac_try="$ac_compile"
14367case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370esac
14371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_compile") 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383esac
14384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
14386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393esac
14394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_try") 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_header_compiler=yes
14400else
14401 echo "$as_me: failed program was:" >&5
14402sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014403
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014404 ac_header_compiler=no
14405fi
14406
14407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14409echo "${ECHO_T}$ac_header_compiler" >&6; }
14410
14411# Is the header present?
14412{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14413echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14414cat >conftest.$ac_ext <<_ACEOF
14415/* confdefs.h. */
14416_ACEOF
14417cat confdefs.h >>conftest.$ac_ext
14418cat >>conftest.$ac_ext <<_ACEOF
14419/* end confdefs.h. */
14420#include <opagent.h>
14421_ACEOF
14422if { (ac_try="$ac_cpp conftest.$ac_ext"
14423case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426esac
14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null; then
14435 if test -s conftest.err; then
14436 ac_cpp_err=$ac_c_preproc_warn_flag
14437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14438 else
14439 ac_cpp_err=
14440 fi
14441else
14442 ac_cpp_err=yes
14443fi
14444if test -z "$ac_cpp_err"; then
14445 ac_header_preproc=yes
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
14450 ac_header_preproc=no
14451fi
14452
14453rm -f conftest.err conftest.$ac_ext
14454{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14455echo "${ECHO_T}$ac_header_preproc" >&6; }
14456
14457# So? What about this header?
14458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14459 yes:no: )
14460 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14461echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14463echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14464 ac_header_preproc=yes
14465 ;;
14466 no:yes:* )
14467 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14468echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14469 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14470echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14471 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14472echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14473 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14474echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14475 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14476echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14478echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14479 ( cat <<\_ASBOX
14480## ----------------------------------- ##
14481## Report this to llvmbugs@cs.uiuc.edu ##
14482## ----------------------------------- ##
14483_ASBOX
14484 ) | sed "s/^/$as_me: WARNING: /" >&2
14485 ;;
14486esac
14487{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14488echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14489if test "${ac_cv_header_opagent_h+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491else
14492 ac_cv_header_opagent_h=$ac_header_preproc
14493fi
14494{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14495echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14496
14497fi
14498if test $ac_cv_header_opagent_h = yes; then
14499 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014500else
14501
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014502 echo "Error! You need to have opagent.h around."
14503 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014504
14505fi
14506
14507
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014508 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014509
14510else
14511
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014512 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014513
14514
14515fi
14516
14517
14518cat >>confdefs.h <<_ACEOF
14519#define USE_OPROFILE $USE_OPROFILE
14520_ACEOF
14521
14522
14523
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014524
14525
14526
14527
14528
Reid Spencer59473af2004-12-25 07:31:29 +000014529ac_header_dirent=no
14530for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014531 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14532{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14533echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014537 cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014542/* end confdefs.h. */
14543#include <sys/types.h>
14544#include <$ac_hdr>
14545
14546int
14547main ()
14548{
14549if ((DIR *) 0)
14550return 0;
14551 ;
14552 return 0;
14553}
14554_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555rm -f conftest.$ac_objext
14556if { (ac_try="$ac_compile"
14557case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14560esac
14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14563 ac_status=$?
14564 grep -v '^ *+' conftest.er1 >conftest.err
14565 rm -f conftest.er1
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } &&
14569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14570 { (case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573esac
14574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_try") 2>&5
14576 ac_status=$?
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14583esac
14584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_try") 2>&5
14586 ac_status=$?
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014589 eval "$as_ac_Header=yes"
14590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014591 echo "$as_me: failed program was:" >&5
14592sed 's/^/| /' conftest.$ac_ext >&5
14593
14594 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014595fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014596
Reid Spencera773bd52006-08-04 18:18:08 +000014597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014598fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014599ac_res=`eval echo '${'$as_ac_Header'}'`
14600 { echo "$as_me:$LINENO: result: $ac_res" >&5
14601echo "${ECHO_T}$ac_res" >&6; }
14602if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014603 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014604#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014605_ACEOF
14606
14607ac_header_dirent=$ac_hdr; break
14608fi
14609
14610done
14611# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14612if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014613 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14614echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14615if test "${ac_cv_search_opendir+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014617else
14618 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014619cat >conftest.$ac_ext <<_ACEOF
14620/* confdefs.h. */
14621_ACEOF
14622cat confdefs.h >>conftest.$ac_ext
14623cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014624/* end confdefs.h. */
14625
Reid Spencera773bd52006-08-04 18:18:08 +000014626/* Override any GCC internal prototype to avoid an error.
14627 Use char because int might match the return type of a GCC
14628 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014629#ifdef __cplusplus
14630extern "C"
14631#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014632char opendir ();
14633int
14634main ()
14635{
Reid Spencera773bd52006-08-04 18:18:08 +000014636return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014637 ;
14638 return 0;
14639}
14640_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014641for ac_lib in '' dir; do
14642 if test -z "$ac_lib"; then
14643 ac_res="none required"
14644 else
14645 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014647 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014648 rm -f conftest.$ac_objext conftest$ac_exeext
14649if { (ac_try="$ac_link"
14650case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14653esac
14654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_link") 2>conftest.er1
14656 ac_status=$?
14657 grep -v '^ *+' conftest.er1 >conftest.err
14658 rm -f conftest.er1
14659 cat conftest.err >&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } &&
14662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14663 { (case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666esac
14667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_try") 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; } &&
14672 { ac_try='test -s conftest$ac_exeext'
14673 { (case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676esac
14677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_try") 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014682 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014683else
14684 echo "$as_me: failed program was:" >&5
14685sed 's/^/| /' conftest.$ac_ext >&5
14686
14687
Reid Spencer59473af2004-12-25 07:31:29 +000014688fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014689
Bill Wendlingebcceee2009-04-18 11:20:33 +000014690rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014691 conftest$ac_exeext
14692 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014693 break
Reid Spencer59473af2004-12-25 07:31:29 +000014694fi
Reid Spencera773bd52006-08-04 18:18:08 +000014695done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014696if test "${ac_cv_search_opendir+set}" = set; then
14697 :
Reid Spencera773bd52006-08-04 18:18:08 +000014698else
14699 ac_cv_search_opendir=no
14700fi
14701rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014702LIBS=$ac_func_search_save_LIBS
14703fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014704{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14705echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014706ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014707if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014709
14710fi
14711
14712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014713 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14714echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14715if test "${ac_cv_search_opendir+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014717else
14718 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014719cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */
14721_ACEOF
14722cat confdefs.h >>conftest.$ac_ext
14723cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014724/* end confdefs.h. */
14725
Reid Spencera773bd52006-08-04 18:18:08 +000014726/* Override any GCC internal prototype to avoid an error.
14727 Use char because int might match the return type of a GCC
14728 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014729#ifdef __cplusplus
14730extern "C"
14731#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014732char opendir ();
14733int
14734main ()
14735{
Reid Spencera773bd52006-08-04 18:18:08 +000014736return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014737 ;
14738 return 0;
14739}
14740_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014741for ac_lib in '' x; do
14742 if test -z "$ac_lib"; then
14743 ac_res="none required"
14744 else
14745 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014747 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014748 rm -f conftest.$ac_objext conftest$ac_exeext
14749if { (ac_try="$ac_link"
14750case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14753esac
14754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_link") 2>conftest.er1
14756 ac_status=$?
14757 grep -v '^ *+' conftest.er1 >conftest.err
14758 rm -f conftest.er1
14759 cat conftest.err >&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); } &&
14762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14763 { (case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766esac
14767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_try") 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest$ac_exeext'
14773 { (case "(($ac_try" in
14774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14775 *) ac_try_echo=$ac_try;;
14776esac
14777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14778 (eval "$ac_try") 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014782 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014783else
14784 echo "$as_me: failed program was:" >&5
14785sed 's/^/| /' conftest.$ac_ext >&5
14786
14787
Reid Spencer59473af2004-12-25 07:31:29 +000014788fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014789
Bill Wendlingebcceee2009-04-18 11:20:33 +000014790rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014791 conftest$ac_exeext
14792 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014793 break
Reid Spencer59473af2004-12-25 07:31:29 +000014794fi
Reid Spencera773bd52006-08-04 18:18:08 +000014795done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014796if test "${ac_cv_search_opendir+set}" = set; then
14797 :
Reid Spencera773bd52006-08-04 18:18:08 +000014798else
14799 ac_cv_search_opendir=no
14800fi
14801rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014802LIBS=$ac_func_search_save_LIBS
14803fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014804{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14805echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014806ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014807if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014809
14810fi
14811
14812fi
14813
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014814{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14815echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14816if test "${ac_cv_header_mmap_anon+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014818else
14819 ac_ext=c
14820ac_cpp='$CPP $CPPFLAGS'
14821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823ac_compiler_gnu=$ac_cv_c_compiler_gnu
14824
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014825 cat >conftest.$ac_ext <<_ACEOF
14826/* confdefs.h. */
14827_ACEOF
14828cat confdefs.h >>conftest.$ac_ext
14829cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014830/* end confdefs.h. */
14831#include <sys/mman.h>
14832#include <unistd.h>
14833#include <fcntl.h>
14834int
14835main ()
14836{
14837mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14838 ;
14839 return 0;
14840}
14841_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014842rm -f conftest.$ac_objext
14843if { (ac_try="$ac_compile"
14844case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14847esac
14848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14857 { (case "(($ac_try" in
14858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14859 *) ac_try_echo=$ac_try;;
14860esac
14861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14862 (eval "$ac_try") 2>&5
14863 ac_status=$?
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); }; } &&
14866 { ac_try='test -s conftest.$ac_objext'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014876 ac_cv_header_mmap_anon=yes
14877else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014878 echo "$as_me: failed program was:" >&5
14879sed 's/^/| /' conftest.$ac_ext >&5
14880
14881 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000014882fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014883
Reid Spencera773bd52006-08-04 18:18:08 +000014884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014885 ac_ext=c
14886ac_cpp='$CPP $CPPFLAGS'
14887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889ac_compiler_gnu=$ac_cv_c_compiler_gnu
14890
14891
14892fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014893{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14894echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014895if test "$ac_cv_header_mmap_anon" = yes; then
14896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014897cat >>confdefs.h <<\_ACEOF
14898#define HAVE_MMAP_ANONYMOUS 1
14899_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014900
14901fi
14902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014903{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14904echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14905if test "${ac_cv_header_stat_broken+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014907else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014908 cat >conftest.$ac_ext <<_ACEOF
14909/* confdefs.h. */
14910_ACEOF
14911cat confdefs.h >>conftest.$ac_ext
14912cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014913/* end confdefs.h. */
14914#include <sys/types.h>
14915#include <sys/stat.h>
14916
Reid Spencera773bd52006-08-04 18:18:08 +000014917#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014918# if S_ISBLK (S_IFDIR)
14919You lose.
14920# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014921#endif
14922
Reid Spencera773bd52006-08-04 18:18:08 +000014923#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014924# if S_ISBLK (S_IFCHR)
14925You lose.
14926# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014927#endif
14928
Reid Spencera773bd52006-08-04 18:18:08 +000014929#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014930# if S_ISLNK (S_IFREG)
14931You lose.
14932# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014933#endif
14934
Reid Spencera773bd52006-08-04 18:18:08 +000014935#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936# if S_ISSOCK (S_IFREG)
14937You lose.
14938# endif
Reid Spencer59473af2004-12-25 07:31:29 +000014939#endif
14940
14941_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14943 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000014944 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014945else
14946 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000014947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014948rm -f conftest*
14949
Reid Spencer59473af2004-12-25 07:31:29 +000014950fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014951{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14952echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000014953if test $ac_cv_header_stat_broken = yes; then
14954
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014955cat >>confdefs.h <<\_ACEOF
14956#define STAT_MACROS_BROKEN 1
14957_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014958
14959fi
14960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014961{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14962echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14963if test "${ac_cv_header_stdc+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014965else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014966 cat >conftest.$ac_ext <<_ACEOF
14967/* confdefs.h. */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014972#include <stdlib.h>
14973#include <stdarg.h>
14974#include <string.h>
14975#include <float.h>
14976
John Criswell0c38eaf2003-09-10 15:17:25 +000014977int
14978main ()
14979{
14980
14981 ;
14982 return 0;
14983}
John Criswell7a73b802003-06-30 21:59:07 +000014984_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014985rm -f conftest.$ac_objext
14986if { (ac_try="$ac_compile"
14987case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_compile") 2>conftest.er1
14993 ac_status=$?
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15003esac
15004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
15006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest.$ac_objext'
15010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015019 ac_cv_header_stdc=yes
15020else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015021 echo "$as_me: failed program was:" >&5
15022sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015026
Reid Spencera773bd52006-08-04 18:18:08 +000015027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015028
15029if test $ac_cv_header_stdc = yes; then
15030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015031 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015037#include <string.h>
15038
15039_ACEOF
15040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041 $EGREP "memchr" >/dev/null 2>&1; then
15042 :
John Criswell7a73b802003-06-30 21:59:07 +000015043else
15044 ac_cv_header_stdc=no
15045fi
15046rm -f conftest*
15047
15048fi
15049
15050if test $ac_cv_header_stdc = yes; then
15051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015052 cat >conftest.$ac_ext <<_ACEOF
15053/* confdefs.h. */
15054_ACEOF
15055cat confdefs.h >>conftest.$ac_ext
15056cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015058#include <stdlib.h>
15059
15060_ACEOF
15061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015062 $EGREP "free" >/dev/null 2>&1; then
15063 :
John Criswell7a73b802003-06-30 21:59:07 +000015064else
15065 ac_cv_header_stdc=no
15066fi
15067rm -f conftest*
15068
15069fi
15070
15071if test $ac_cv_header_stdc = yes; then
15072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015073 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015074 :
15075else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015076 cat >conftest.$ac_ext <<_ACEOF
15077/* confdefs.h. */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015082#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015083#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015084#if ((' ' & 0x0FF) == 0x020)
15085# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15086# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15087#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015088# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015089 (('a' <= (c) && (c) <= 'i') \
15090 || ('j' <= (c) && (c) <= 'r') \
15091 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015092# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15093#endif
15094
15095#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15096int
15097main ()
15098{
15099 int i;
15100 for (i = 0; i < 256; i++)
15101 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015102 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015103 return 2;
15104 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015105}
15106_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015107rm -f conftest$ac_exeext
15108if { (ac_try="$ac_link"
15109case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15112esac
15113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_link") 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 :
John Criswell7a73b802003-06-30 21:59:07 +000015128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015129 echo "$as_me: program exited with status $ac_status" >&5
15130echo "$as_me: failed program was:" >&5
15131sed 's/^/| /' conftest.$ac_ext >&5
15132
15133( exit $ac_status )
15134ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015136rm -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 +000015137fi
15138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015139
John Criswell7a73b802003-06-30 21:59:07 +000015140fi
15141fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015142{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15143echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015144if test $ac_cv_header_stdc = yes; then
15145
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015146cat >>confdefs.h <<\_ACEOF
15147#define STDC_HEADERS 1
15148_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015149
15150fi
15151
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015152{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15153echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15154if test "${ac_cv_header_sys_wait_h+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015156else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015157 cat >conftest.$ac_ext <<_ACEOF
15158/* confdefs.h. */
15159_ACEOF
15160cat confdefs.h >>conftest.$ac_ext
15161cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015163#include <sys/types.h>
15164#include <sys/wait.h>
15165#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015166# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015167#endif
15168#ifndef WIFEXITED
15169# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15170#endif
15171
John Criswell7a73b802003-06-30 21:59:07 +000015172int
15173main ()
15174{
15175 int s;
15176 wait (&s);
15177 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15178 ;
15179 return 0;
15180}
15181_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182rm -f conftest.$ac_objext
15183if { (ac_try="$ac_compile"
15184case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15187esac
15188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_compile") 2>conftest.er1
15190 ac_status=$?
15191 grep -v '^ *+' conftest.er1 >conftest.err
15192 rm -f conftest.er1
15193 cat conftest.err >&5
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); } &&
15196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15197 { (case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200esac
15201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15202 (eval "$ac_try") 2>&5
15203 ac_status=$?
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); }; } &&
15206 { ac_try='test -s conftest.$ac_objext'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015216 ac_cv_header_sys_wait_h=yes
15217else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015218 echo "$as_me: failed program was:" >&5
15219sed 's/^/| /' conftest.$ac_ext >&5
15220
15221 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015223
Reid Spencera773bd52006-08-04 18:18:08 +000015224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015226{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15227echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015228if test $ac_cv_header_sys_wait_h = yes; then
15229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015230cat >>confdefs.h <<\_ACEOF
15231#define HAVE_SYS_WAIT_H 1
15232_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015233
15234fi
15235
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015236{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15237echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15238if test "${ac_cv_header_time+set}" = set; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015240else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015241 cat >conftest.$ac_ext <<_ACEOF
15242/* confdefs.h. */
15243_ACEOF
15244cat confdefs.h >>conftest.$ac_ext
15245cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015246/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015247#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015248#include <sys/time.h>
15249#include <time.h>
15250
15251int
15252main ()
15253{
15254if ((struct tm *) 0)
15255return 0;
15256 ;
15257 return 0;
15258}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015259_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015260rm -f conftest.$ac_objext
15261if { (ac_try="$ac_compile"
15262case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15265esac
15266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_compile") 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
15274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15275 { (case "(($ac_try" in
15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277 *) ac_try_echo=$ac_try;;
15278esac
15279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280 (eval "$ac_try") 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; } &&
15284 { ac_try='test -s conftest.$ac_objext'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288esac
15289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015294 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015296 echo "$as_me: failed program was:" >&5
15297sed 's/^/| /' conftest.$ac_ext >&5
15298
15299 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015300fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015301
Reid Spencera773bd52006-08-04 18:18:08 +000015302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015303fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015304{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15305echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015306if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015308cat >>confdefs.h <<\_ACEOF
15309#define TIME_WITH_SYS_TIME 1
15310_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015311
15312fi
15313
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015314
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015315
15316
15317
15318
15319
15320
Reid Spencer59473af2004-12-25 07:31:29 +000015321for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015322do
15323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15324if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15329fi
15330ac_res=`eval echo '${'$as_ac_Header'}'`
15331 { echo "$as_me:$LINENO: result: $ac_res" >&5
15332echo "${ECHO_T}$ac_res" >&6; }
15333else
15334 # Is the header compilable?
15335{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15336echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15337cat >conftest.$ac_ext <<_ACEOF
15338/* confdefs.h. */
15339_ACEOF
15340cat confdefs.h >>conftest.$ac_ext
15341cat >>conftest.$ac_ext <<_ACEOF
15342/* end confdefs.h. */
15343$ac_includes_default
15344#include <$ac_header>
15345_ACEOF
15346rm -f conftest.$ac_objext
15347if { (ac_try="$ac_compile"
15348case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_compile") 2>conftest.er1
15354 ac_status=$?
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
15360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15361 { (case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364esac
15365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15366 (eval "$ac_try") 2>&5
15367 ac_status=$?
15368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369 (exit $ac_status); }; } &&
15370 { ac_try='test -s conftest.$ac_objext'
15371 { (case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
15375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_try") 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 ac_header_compiler=yes
15381else
15382 echo "$as_me: failed program was:" >&5
15383sed 's/^/| /' conftest.$ac_ext >&5
15384
15385 ac_header_compiler=no
15386fi
15387
15388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15390echo "${ECHO_T}$ac_header_compiler" >&6; }
15391
15392# Is the header present?
15393{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15394echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15395cat >conftest.$ac_ext <<_ACEOF
15396/* confdefs.h. */
15397_ACEOF
15398cat confdefs.h >>conftest.$ac_ext
15399cat >>conftest.$ac_ext <<_ACEOF
15400/* end confdefs.h. */
15401#include <$ac_header>
15402_ACEOF
15403if { (ac_try="$ac_cpp conftest.$ac_ext"
15404case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15407esac
15408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15410 ac_status=$?
15411 grep -v '^ *+' conftest.er1 >conftest.err
15412 rm -f conftest.er1
15413 cat conftest.err >&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); } >/dev/null; then
15416 if test -s conftest.err; then
15417 ac_cpp_err=$ac_c_preproc_warn_flag
15418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15419 else
15420 ac_cpp_err=
15421 fi
15422else
15423 ac_cpp_err=yes
15424fi
15425if test -z "$ac_cpp_err"; then
15426 ac_header_preproc=yes
15427else
15428 echo "$as_me: failed program was:" >&5
15429sed 's/^/| /' conftest.$ac_ext >&5
15430
15431 ac_header_preproc=no
15432fi
15433
15434rm -f conftest.err conftest.$ac_ext
15435{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15436echo "${ECHO_T}$ac_header_preproc" >&6; }
15437
15438# So? What about this header?
15439case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15440 yes:no: )
15441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15445 ac_header_preproc=yes
15446 ;;
15447 no:yes:* )
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15460 ( cat <<\_ASBOX
15461## ----------------------------------- ##
15462## Report this to llvmbugs@cs.uiuc.edu ##
15463## ----------------------------------- ##
15464_ASBOX
15465 ) | sed "s/^/$as_me: WARNING: /" >&2
15466 ;;
15467esac
15468{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15470if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15472else
15473 eval "$as_ac_Header=\$ac_header_preproc"
15474fi
15475ac_res=`eval echo '${'$as_ac_Header'}'`
15476 { echo "$as_me:$LINENO: result: $ac_res" >&5
15477echo "${ECHO_T}$ac_res" >&6; }
15478
15479fi
15480if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015481 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015483_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015484
15485fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015486
Reid Spencer59473af2004-12-25 07:31:29 +000015487done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015489
15490
15491
15492
15493
15494
Douglas Gregor071d73d2009-05-18 17:21:34 +000015495for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015496do
15497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15503fi
15504ac_res=`eval echo '${'$as_ac_Header'}'`
15505 { echo "$as_me:$LINENO: result: $ac_res" >&5
15506echo "${ECHO_T}$ac_res" >&6; }
15507else
15508 # Is the header compilable?
15509{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15511cat >conftest.$ac_ext <<_ACEOF
15512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
15517$ac_includes_default
15518#include <$ac_header>
15519_ACEOF
15520rm -f conftest.$ac_objext
15521if { (ac_try="$ac_compile"
15522case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15525esac
15526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_compile") 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15535 { (case "(($ac_try" in
15536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537 *) ac_try_echo=$ac_try;;
15538esac
15539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15540 (eval "$ac_try") 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } &&
15544 { ac_try='test -s conftest.$ac_objext'
15545 { (case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
15549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_try") 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_header_compiler=yes
15555else
15556 echo "$as_me: failed program was:" >&5
15557sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 ac_header_compiler=no
15560fi
15561
15562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15563{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15564echo "${ECHO_T}$ac_header_compiler" >&6; }
15565
15566# Is the header present?
15567{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15569cat >conftest.$ac_ext <<_ACEOF
15570/* confdefs.h. */
15571_ACEOF
15572cat confdefs.h >>conftest.$ac_ext
15573cat >>conftest.$ac_ext <<_ACEOF
15574/* end confdefs.h. */
15575#include <$ac_header>
15576_ACEOF
15577if { (ac_try="$ac_cpp conftest.$ac_ext"
15578case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581esac
15582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } >/dev/null; then
15590 if test -s conftest.err; then
15591 ac_cpp_err=$ac_c_preproc_warn_flag
15592 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15593 else
15594 ac_cpp_err=
15595 fi
15596else
15597 ac_cpp_err=yes
15598fi
15599if test -z "$ac_cpp_err"; then
15600 ac_header_preproc=yes
15601else
15602 echo "$as_me: failed program was:" >&5
15603sed 's/^/| /' conftest.$ac_ext >&5
15604
15605 ac_header_preproc=no
15606fi
15607
15608rm -f conftest.err conftest.$ac_ext
15609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15610echo "${ECHO_T}$ac_header_preproc" >&6; }
15611
15612# So? What about this header?
15613case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15614 yes:no: )
15615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15619 ac_header_preproc=yes
15620 ;;
15621 no:yes:* )
15622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15634 ( cat <<\_ASBOX
15635## ----------------------------------- ##
15636## Report this to llvmbugs@cs.uiuc.edu ##
15637## ----------------------------------- ##
15638_ASBOX
15639 ) | sed "s/^/$as_me: WARNING: /" >&2
15640 ;;
15641esac
15642{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached) $ECHO_C" >&6
15646else
15647 eval "$as_ac_Header=\$ac_header_preproc"
15648fi
15649ac_res=`eval echo '${'$as_ac_Header'}'`
15650 { echo "$as_me:$LINENO: result: $ac_res" >&5
15651echo "${ECHO_T}$ac_res" >&6; }
15652
15653fi
15654if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015655 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015656#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015657_ACEOF
15658
15659fi
15660
15661done
15662
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015663
15664
Douglas Gregor071d73d2009-05-18 17:21:34 +000015665for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015666do
15667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15673fi
15674ac_res=`eval echo '${'$as_ac_Header'}'`
15675 { echo "$as_me:$LINENO: result: $ac_res" >&5
15676echo "${ECHO_T}$ac_res" >&6; }
15677else
15678 # Is the header compilable?
15679{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15681cat >conftest.$ac_ext <<_ACEOF
15682/* confdefs.h. */
15683_ACEOF
15684cat confdefs.h >>conftest.$ac_ext
15685cat >>conftest.$ac_ext <<_ACEOF
15686/* end confdefs.h. */
15687$ac_includes_default
15688#include <$ac_header>
15689_ACEOF
15690rm -f conftest.$ac_objext
15691if { (ac_try="$ac_compile"
15692case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15695esac
15696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_compile") 2>conftest.er1
15698 ac_status=$?
15699 grep -v '^ *+' conftest.er1 >conftest.err
15700 rm -f conftest.er1
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } &&
15704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15705 { (case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15708esac
15709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; } &&
15714 { ac_try='test -s conftest.$ac_objext'
15715 { (case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718esac
15719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720 (eval "$ac_try") 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
15724 ac_header_compiler=yes
15725else
15726 echo "$as_me: failed program was:" >&5
15727sed 's/^/| /' conftest.$ac_ext >&5
15728
15729 ac_header_compiler=no
15730fi
15731
15732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15734echo "${ECHO_T}$ac_header_compiler" >&6; }
15735
15736# Is the header present?
15737{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15739cat >conftest.$ac_ext <<_ACEOF
15740/* confdefs.h. */
15741_ACEOF
15742cat confdefs.h >>conftest.$ac_ext
15743cat >>conftest.$ac_ext <<_ACEOF
15744/* end confdefs.h. */
15745#include <$ac_header>
15746_ACEOF
15747if { (ac_try="$ac_cpp conftest.$ac_ext"
15748case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15751esac
15752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15754 ac_status=$?
15755 grep -v '^ *+' conftest.er1 >conftest.err
15756 rm -f conftest.er1
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); } >/dev/null; then
15760 if test -s conftest.err; then
15761 ac_cpp_err=$ac_c_preproc_warn_flag
15762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15763 else
15764 ac_cpp_err=
15765 fi
15766else
15767 ac_cpp_err=yes
15768fi
15769if test -z "$ac_cpp_err"; then
15770 ac_header_preproc=yes
15771else
15772 echo "$as_me: failed program was:" >&5
15773sed 's/^/| /' conftest.$ac_ext >&5
15774
15775 ac_header_preproc=no
15776fi
15777
15778rm -f conftest.err conftest.$ac_ext
15779{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15780echo "${ECHO_T}$ac_header_preproc" >&6; }
15781
15782# So? What about this header?
15783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15784 yes:no: )
15785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15788echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15789 ac_header_preproc=yes
15790 ;;
15791 no:yes:* )
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15793echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15795echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15797echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15799echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15803echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15804 ( cat <<\_ASBOX
15805## ----------------------------------- ##
15806## Report this to llvmbugs@cs.uiuc.edu ##
15807## ----------------------------------- ##
15808_ASBOX
15809 ) | sed "s/^/$as_me: WARNING: /" >&2
15810 ;;
15811esac
15812{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816else
15817 eval "$as_ac_Header=\$ac_header_preproc"
15818fi
15819ac_res=`eval echo '${'$as_ac_Header'}'`
15820 { echo "$as_me:$LINENO: result: $ac_res" >&5
15821echo "${ECHO_T}$ac_res" >&6; }
15822
15823fi
15824if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000015825 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015826#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000015827_ACEOF
15828
15829fi
15830
15831done
Reid Spencer59473af2004-12-25 07:31:29 +000015832
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015833
15834
15835
15836
Reid Spencerbe3e4192007-08-17 05:45:26 +000015837for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015838do
15839as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15845fi
15846ac_res=`eval echo '${'$as_ac_Header'}'`
15847 { echo "$as_me:$LINENO: result: $ac_res" >&5
15848echo "${ECHO_T}$ac_res" >&6; }
15849else
15850 # Is the header compilable?
15851{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15853cat >conftest.$ac_ext <<_ACEOF
15854/* confdefs.h. */
15855_ACEOF
15856cat confdefs.h >>conftest.$ac_ext
15857cat >>conftest.$ac_ext <<_ACEOF
15858/* end confdefs.h. */
15859$ac_includes_default
15860#include <$ac_header>
15861_ACEOF
15862rm -f conftest.$ac_objext
15863if { (ac_try="$ac_compile"
15864case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15867esac
15868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_compile") 2>conftest.er1
15870 ac_status=$?
15871 grep -v '^ *+' conftest.er1 >conftest.err
15872 rm -f conftest.er1
15873 cat conftest.err >&5
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } &&
15876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877 { (case "(($ac_try" in
15878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879 *) ac_try_echo=$ac_try;;
15880esac
15881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882 (eval "$ac_try") 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; } &&
15886 { ac_try='test -s conftest.$ac_objext'
15887 { (case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15890esac
15891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_try") 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_header_compiler=yes
15897else
15898 echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901 ac_header_compiler=no
15902fi
15903
15904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15905{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15906echo "${ECHO_T}$ac_header_compiler" >&6; }
15907
15908# Is the header present?
15909{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15910echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15911cat >conftest.$ac_ext <<_ACEOF
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917#include <$ac_header>
15918_ACEOF
15919if { (ac_try="$ac_cpp conftest.$ac_ext"
15920case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15923esac
15924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15926 ac_status=$?
15927 grep -v '^ *+' conftest.er1 >conftest.err
15928 rm -f conftest.er1
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); } >/dev/null; then
15932 if test -s conftest.err; then
15933 ac_cpp_err=$ac_c_preproc_warn_flag
15934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15935 else
15936 ac_cpp_err=
15937 fi
15938else
15939 ac_cpp_err=yes
15940fi
15941if test -z "$ac_cpp_err"; then
15942 ac_header_preproc=yes
15943else
15944 echo "$as_me: failed program was:" >&5
15945sed 's/^/| /' conftest.$ac_ext >&5
15946
15947 ac_header_preproc=no
15948fi
15949
15950rm -f conftest.err conftest.$ac_ext
15951{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15952echo "${ECHO_T}$ac_header_preproc" >&6; }
15953
15954# So? What about this header?
15955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15956 yes:no: )
15957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15958echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15960echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15961 ac_header_preproc=yes
15962 ;;
15963 no:yes:* )
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15969echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15971echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15975echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15976 ( cat <<\_ASBOX
15977## ----------------------------------- ##
15978## Report this to llvmbugs@cs.uiuc.edu ##
15979## ----------------------------------- ##
15980_ASBOX
15981 ) | sed "s/^/$as_me: WARNING: /" >&2
15982 ;;
15983esac
15984{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988else
15989 eval "$as_ac_Header=\$ac_header_preproc"
15990fi
15991ac_res=`eval echo '${'$as_ac_Header'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993echo "${ECHO_T}$ac_res" >&6; }
15994
15995fi
15996if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015997 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000015999_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016000
16001fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016002
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016003done
16004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016005
16006
16007
16008
Douglas Gregor01746742009-05-11 18:05:52 +000016009for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016010do
16011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16016 echo $ECHO_N "(cached) $ECHO_C" >&6
16017fi
16018ac_res=`eval echo '${'$as_ac_Header'}'`
16019 { echo "$as_me:$LINENO: result: $ac_res" >&5
16020echo "${ECHO_T}$ac_res" >&6; }
16021else
16022 # Is the header compilable?
16023{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16025cat >conftest.$ac_ext <<_ACEOF
16026/* confdefs.h. */
16027_ACEOF
16028cat confdefs.h >>conftest.$ac_ext
16029cat >>conftest.$ac_ext <<_ACEOF
16030/* end confdefs.h. */
16031$ac_includes_default
16032#include <$ac_header>
16033_ACEOF
16034rm -f conftest.$ac_objext
16035if { (ac_try="$ac_compile"
16036case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039esac
16040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_compile") 2>conftest.er1
16042 ac_status=$?
16043 grep -v '^ *+' conftest.er1 >conftest.err
16044 rm -f conftest.er1
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16049 { (case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16052esac
16053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; } &&
16058 { ac_try='test -s conftest.$ac_objext'
16059 { (case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16062esac
16063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_try") 2>&5
16065 ac_status=$?
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_header_compiler=yes
16069else
16070 echo "$as_me: failed program was:" >&5
16071sed 's/^/| /' conftest.$ac_ext >&5
16072
16073 ac_header_compiler=no
16074fi
16075
16076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16077{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16078echo "${ECHO_T}$ac_header_compiler" >&6; }
16079
16080# Is the header present?
16081{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16082echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16083cat >conftest.$ac_ext <<_ACEOF
16084/* confdefs.h. */
16085_ACEOF
16086cat confdefs.h >>conftest.$ac_ext
16087cat >>conftest.$ac_ext <<_ACEOF
16088/* end confdefs.h. */
16089#include <$ac_header>
16090_ACEOF
16091if { (ac_try="$ac_cpp conftest.$ac_ext"
16092case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095esac
16096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16098 ac_status=$?
16099 grep -v '^ *+' conftest.er1 >conftest.err
16100 rm -f conftest.er1
16101 cat conftest.err >&5
16102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } >/dev/null; then
16104 if test -s conftest.err; then
16105 ac_cpp_err=$ac_c_preproc_warn_flag
16106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16107 else
16108 ac_cpp_err=
16109 fi
16110else
16111 ac_cpp_err=yes
16112fi
16113if test -z "$ac_cpp_err"; then
16114 ac_header_preproc=yes
16115else
16116 echo "$as_me: failed program was:" >&5
16117sed 's/^/| /' conftest.$ac_ext >&5
16118
16119 ac_header_preproc=no
16120fi
16121
16122rm -f conftest.err conftest.$ac_ext
16123{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16124echo "${ECHO_T}$ac_header_preproc" >&6; }
16125
16126# So? What about this header?
16127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16128 yes:no: )
16129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16133 ac_header_preproc=yes
16134 ;;
16135 no:yes:* )
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16148 ( cat <<\_ASBOX
16149## ----------------------------------- ##
16150## Report this to llvmbugs@cs.uiuc.edu ##
16151## ----------------------------------- ##
16152_ASBOX
16153 ) | sed "s/^/$as_me: WARNING: /" >&2
16154 ;;
16155esac
16156{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16159 echo $ECHO_N "(cached) $ECHO_C" >&6
16160else
16161 eval "$as_ac_Header=\$ac_header_preproc"
16162fi
16163ac_res=`eval echo '${'$as_ac_Header'}'`
16164 { echo "$as_me:$LINENO: result: $ac_res" >&5
16165echo "${ECHO_T}$ac_res" >&6; }
16166
16167fi
16168if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016169 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016170#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016171_ACEOF
16172
16173fi
16174
16175done
16176
Reid Spencer0a262ba2005-08-24 10:07:20 +000016177if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016178
16179for ac_header in pthread.h
16180do
16181as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16185if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16187fi
16188ac_res=`eval echo '${'$as_ac_Header'}'`
16189 { echo "$as_me:$LINENO: result: $ac_res" >&5
16190echo "${ECHO_T}$ac_res" >&6; }
16191else
16192 # Is the header compilable?
16193{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16195cat >conftest.$ac_ext <<_ACEOF
16196/* confdefs.h. */
16197_ACEOF
16198cat confdefs.h >>conftest.$ac_ext
16199cat >>conftest.$ac_ext <<_ACEOF
16200/* end confdefs.h. */
16201$ac_includes_default
16202#include <$ac_header>
16203_ACEOF
16204rm -f conftest.$ac_objext
16205if { (ac_try="$ac_compile"
16206case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209esac
16210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16212 ac_status=$?
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16219 { (case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_try") 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (case "(($ac_try" in
16230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16231 *) ac_try_echo=$ac_try;;
16232esac
16233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16234 (eval "$ac_try") 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_header_compiler=yes
16239else
16240 echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ac_header_compiler=no
16244fi
16245
16246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16248echo "${ECHO_T}$ac_header_compiler" >&6; }
16249
16250# Is the header present?
16251{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16252echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16253cat >conftest.$ac_ext <<_ACEOF
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
16259#include <$ac_header>
16260_ACEOF
16261if { (ac_try="$ac_cpp conftest.$ac_ext"
16262case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16268 ac_status=$?
16269 grep -v '^ *+' conftest.er1 >conftest.err
16270 rm -f conftest.er1
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } >/dev/null; then
16274 if test -s conftest.err; then
16275 ac_cpp_err=$ac_c_preproc_warn_flag
16276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16277 else
16278 ac_cpp_err=
16279 fi
16280else
16281 ac_cpp_err=yes
16282fi
16283if test -z "$ac_cpp_err"; then
16284 ac_header_preproc=yes
16285else
16286 echo "$as_me: failed program was:" >&5
16287sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 ac_header_preproc=no
16290fi
16291
16292rm -f conftest.err conftest.$ac_ext
16293{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16294echo "${ECHO_T}$ac_header_preproc" >&6; }
16295
16296# So? What about this header?
16297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16298 yes:no: )
16299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16303 ac_header_preproc=yes
16304 ;;
16305 no:yes:* )
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16309echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16313echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16318 ( cat <<\_ASBOX
16319## ----------------------------------- ##
16320## Report this to llvmbugs@cs.uiuc.edu ##
16321## ----------------------------------- ##
16322_ASBOX
16323 ) | sed "s/^/$as_me: WARNING: /" >&2
16324 ;;
16325esac
16326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330else
16331 eval "$as_ac_Header=\$ac_header_preproc"
16332fi
16333ac_res=`eval echo '${'$as_ac_Header'}'`
16334 { echo "$as_me:$LINENO: result: $ac_res" >&5
16335echo "${ECHO_T}$ac_res" >&6; }
16336
16337fi
16338if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016339 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016341_ACEOF
16342 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016343
16344else
16345 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016346
16347fi
16348
Reid Spencerbe3e4192007-08-17 05:45:26 +000016349done
Reid Spencer1000b732006-12-01 00:37:14 +000016350
16351else
16352 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016353
16354fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016355
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016356if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016357
16358
16359for ac_header in ffi.h ffi/ffi.h
16360do
16361as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367fi
16368ac_res=`eval echo '${'$as_ac_Header'}'`
16369 { echo "$as_me:$LINENO: result: $ac_res" >&5
16370echo "${ECHO_T}$ac_res" >&6; }
16371else
16372 # Is the header compilable?
16373{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16374echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16375cat >conftest.$ac_ext <<_ACEOF
16376/* confdefs.h. */
16377_ACEOF
16378cat confdefs.h >>conftest.$ac_ext
16379cat >>conftest.$ac_ext <<_ACEOF
16380/* end confdefs.h. */
16381$ac_includes_default
16382#include <$ac_header>
16383_ACEOF
16384rm -f conftest.$ac_objext
16385if { (ac_try="$ac_compile"
16386case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16389esac
16390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_compile") 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399 { (case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16402esac
16403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_try") 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; } &&
16408 { ac_try='test -s conftest.$ac_objext'
16409 { (case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16412esac
16413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_try") 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_header_compiler=yes
16419else
16420 echo "$as_me: failed program was:" >&5
16421sed 's/^/| /' conftest.$ac_ext >&5
16422
16423 ac_header_compiler=no
16424fi
16425
16426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16427{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16428echo "${ECHO_T}$ac_header_compiler" >&6; }
16429
16430# Is the header present?
16431{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16432echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16433cat >conftest.$ac_ext <<_ACEOF
16434/* confdefs.h. */
16435_ACEOF
16436cat confdefs.h >>conftest.$ac_ext
16437cat >>conftest.$ac_ext <<_ACEOF
16438/* end confdefs.h. */
16439#include <$ac_header>
16440_ACEOF
16441if { (ac_try="$ac_cpp conftest.$ac_ext"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } >/dev/null; then
16454 if test -s conftest.err; then
16455 ac_cpp_err=$ac_c_preproc_warn_flag
16456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16457 else
16458 ac_cpp_err=
16459 fi
16460else
16461 ac_cpp_err=yes
16462fi
16463if test -z "$ac_cpp_err"; then
16464 ac_header_preproc=yes
16465else
16466 echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
16469 ac_header_preproc=no
16470fi
16471
16472rm -f conftest.err conftest.$ac_ext
16473{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16474echo "${ECHO_T}$ac_header_preproc" >&6; }
16475
16476# So? What about this header?
16477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16478 yes:no: )
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16483 ac_header_preproc=yes
16484 ;;
16485 no:yes:* )
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16489echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16493echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16498 ( cat <<\_ASBOX
16499## ----------------------------------- ##
16500## Report this to llvmbugs@cs.uiuc.edu ##
16501## ----------------------------------- ##
16502_ASBOX
16503 ) | sed "s/^/$as_me: WARNING: /" >&2
16504 ;;
16505esac
16506{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16510else
16511 eval "$as_ac_Header=\$ac_header_preproc"
16512fi
16513ac_res=`eval echo '${'$as_ac_Header'}'`
16514 { echo "$as_me:$LINENO: result: $ac_res" >&5
16515echo "${ECHO_T}$ac_res" >&6; }
16516
16517fi
16518if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016519 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016521_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016522
16523fi
16524
16525done
16526
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016527fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016528
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016529
Reid Spencer8085cff2005-01-16 02:58:39 +000016530
Torok Edwin871384f2010-01-26 08:50:50 +000016531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016532 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16533echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16534if test "${ac_cv_huge_val_sanity+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000016536else
16537
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016538 ac_ext=cpp
16539ac_cpp='$CXXCPP $CPPFLAGS'
16540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000016543
Reid Spencer6a7c0b72006-11-03 19:49:16 +000016544 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016545 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016546 ac_cv_huge_val_sanity=yes
16547else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016548 cat >conftest.$ac_ext <<_ACEOF
16549/* confdefs.h. */
16550_ACEOF
16551cat confdefs.h >>conftest.$ac_ext
16552cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000016553/* end confdefs.h. */
16554#include <math.h>
16555int
16556main ()
16557{
16558double x = HUGE_VAL; return x != x;
16559 ;
16560 return 0;
16561}
16562_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016563rm -f conftest$ac_exeext
16564if { (ac_try="$ac_link"
16565case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_link") 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577esac
16578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
16580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000016583 ac_cv_huge_val_sanity=yes
16584else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016585 echo "$as_me: program exited with status $ac_status" >&5
16586echo "$as_me: failed program was:" >&5
16587sed 's/^/| /' conftest.$ac_ext >&5
16588
16589( exit $ac_status )
16590ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000016591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016592rm -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 +000016593fi
16594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016595
Reid Spencerb2ed05262006-11-03 18:04:08 +000016596 ac_ext=c
16597ac_cpp='$CPP $CPPFLAGS'
16598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16600ac_compiler_gnu=$ac_cv_c_compiler_gnu
16601
16602
16603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016604{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16605echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000016606 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16607
16608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016609{ echo "$as_me:$LINENO: checking for pid_t" >&5
16610echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16611if test "${ac_cv_type_pid_t+set}" = set; then
16612 echo $ECHO_N "(cached) $ECHO_C" >&6
16613else
16614 cat >conftest.$ac_ext <<_ACEOF
16615/* confdefs.h. */
16616_ACEOF
16617cat confdefs.h >>conftest.$ac_ext
16618cat >>conftest.$ac_ext <<_ACEOF
16619/* end confdefs.h. */
16620$ac_includes_default
16621typedef pid_t ac__type_new_;
16622int
16623main ()
16624{
16625if ((ac__type_new_ *) 0)
16626 return 0;
16627if (sizeof (ac__type_new_))
16628 return 0;
16629 ;
16630 return 0;
16631}
16632_ACEOF
16633rm -f conftest.$ac_objext
16634if { (ac_try="$ac_compile"
16635case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_compile") 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651esac
16652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest.$ac_objext'
16658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_type_pid_t=yes
16668else
16669 echo "$as_me: failed program was:" >&5
16670sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016671
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016672 ac_cv_type_pid_t=no
16673fi
16674
16675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676fi
16677{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16678echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16679if test $ac_cv_type_pid_t = yes; then
16680 :
John Criswell7a73b802003-06-30 21:59:07 +000016681else
16682
16683cat >>confdefs.h <<_ACEOF
16684#define pid_t int
16685_ACEOF
16686
16687fi
16688
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016689{ echo "$as_me:$LINENO: checking for size_t" >&5
16690echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16691if test "${ac_cv_type_size_t+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694 cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700$ac_includes_default
16701typedef size_t ac__type_new_;
16702int
16703main ()
16704{
16705if ((ac__type_new_ *) 0)
16706 return 0;
16707if (sizeof (ac__type_new_))
16708 return 0;
16709 ;
16710 return 0;
16711}
16712_ACEOF
16713rm -f conftest.$ac_objext
16714if { (ac_try="$ac_compile"
16715case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16718esac
16719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_compile") 2>conftest.er1
16721 ac_status=$?
16722 grep -v '^ *+' conftest.er1 >conftest.err
16723 rm -f conftest.er1
16724 cat conftest.err >&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728 { (case "(($ac_try" in
16729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730 *) ac_try_echo=$ac_try;;
16731esac
16732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733 (eval "$ac_try") 2>&5
16734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (case "(($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_try") 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_type_size_t=yes
16748else
16749 echo "$as_me: failed program was:" >&5
16750sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016752 ac_cv_type_size_t=no
16753fi
16754
16755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756fi
16757{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16758echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16759if test $ac_cv_type_size_t = yes; then
16760 :
John Criswell7a73b802003-06-30 21:59:07 +000016761else
16762
16763cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000016764#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000016765_ACEOF
16766
16767fi
16768
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016769
16770cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000016771#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016772_ACEOF
16773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016774{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16775echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16776if test "${ac_cv_struct_tm+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016779 cat >conftest.$ac_ext <<_ACEOF
16780/* confdefs.h. */
16781_ACEOF
16782cat confdefs.h >>conftest.$ac_ext
16783cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016784/* end confdefs.h. */
16785#include <sys/types.h>
16786#include <time.h>
16787
16788int
16789main ()
16790{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016791struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016792 ;
16793 return 0;
16794}
16795_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016796rm -f conftest.$ac_objext
16797if { (ac_try="$ac_compile"
16798case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801esac
16802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_compile") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16811 { (case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814esac
16815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_try") 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16824esac
16825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016830 ac_cv_struct_tm=time.h
16831else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016832 echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
16835 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016836fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016837
Reid Spencera773bd52006-08-04 18:18:08 +000016838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016840{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16841echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016842if test $ac_cv_struct_tm = sys/time.h; then
16843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016844cat >>confdefs.h <<\_ACEOF
16845#define TM_IN_SYS_TIME 1
16846_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016847
16848fi
16849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016850{ echo "$as_me:$LINENO: checking for int64_t" >&5
16851echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16852if test "${ac_cv_type_int64_t+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854else
16855 cat >conftest.$ac_ext <<_ACEOF
16856/* confdefs.h. */
16857_ACEOF
16858cat confdefs.h >>conftest.$ac_ext
16859cat >>conftest.$ac_ext <<_ACEOF
16860/* end confdefs.h. */
16861$ac_includes_default
16862typedef int64_t ac__type_new_;
16863int
16864main ()
16865{
16866if ((ac__type_new_ *) 0)
16867 return 0;
16868if (sizeof (ac__type_new_))
16869 return 0;
16870 ;
16871 return 0;
16872}
16873_ACEOF
16874rm -f conftest.$ac_objext
16875if { (ac_try="$ac_compile"
16876case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_compile") 2>conftest.er1
16882 ac_status=$?
16883 grep -v '^ *+' conftest.er1 >conftest.err
16884 rm -f conftest.er1
16885 cat conftest.err >&5
16886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887 (exit $ac_status); } &&
16888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16889 { (case "(($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_try") 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
16898 { ac_try='test -s conftest.$ac_objext'
16899 { (case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_try") 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_type_int64_t=yes
16909else
16910 echo "$as_me: failed program was:" >&5
16911sed 's/^/| /' conftest.$ac_ext >&5
16912
16913 ac_cv_type_int64_t=no
16914fi
16915
16916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917fi
16918{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16919echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16920if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000016921
16922cat >>confdefs.h <<_ACEOF
16923#define HAVE_INT64_T 1
16924_ACEOF
16925
16926
16927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016928 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16929echo "$as_me: error: Type int64_t required but not found" >&2;}
16930 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000016931fi
16932
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016933{ echo "$as_me:$LINENO: checking for uint64_t" >&5
16934echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16935if test "${ac_cv_type_uint64_t+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 cat >conftest.$ac_ext <<_ACEOF
16939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
16944$ac_includes_default
16945typedef uint64_t ac__type_new_;
16946int
16947main ()
16948{
16949if ((ac__type_new_ *) 0)
16950 return 0;
16951if (sizeof (ac__type_new_))
16952 return 0;
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext
16958if { (ac_try="$ac_compile"
16959case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16962esac
16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_compile") 2>conftest.er1
16965 ac_status=$?
16966 grep -v '^ *+' conftest.er1 >conftest.err
16967 rm -f conftest.er1
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16972 { (case "(($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_try") 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); }; } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_try") 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16991 ac_cv_type_uint64_t=yes
16992else
16993 echo "$as_me: failed program was:" >&5
16994sed 's/^/| /' conftest.$ac_ext >&5
16995
16996 ac_cv_type_uint64_t=no
16997fi
16998
16999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17000fi
17001{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17002echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17003if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017004
17005cat >>confdefs.h <<_ACEOF
17006#define HAVE_UINT64_T 1
17007_ACEOF
17008
17009
17010else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017011 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17012echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17013if test "${ac_cv_type_u_int64_t+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 cat >conftest.$ac_ext <<_ACEOF
17017/* confdefs.h. */
17018_ACEOF
17019cat confdefs.h >>conftest.$ac_ext
17020cat >>conftest.$ac_ext <<_ACEOF
17021/* end confdefs.h. */
17022$ac_includes_default
17023typedef u_int64_t ac__type_new_;
17024int
17025main ()
17026{
17027if ((ac__type_new_ *) 0)
17028 return 0;
17029if (sizeof (ac__type_new_))
17030 return 0;
17031 ;
17032 return 0;
17033}
17034_ACEOF
17035rm -f conftest.$ac_objext
17036if { (ac_try="$ac_compile"
17037case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040esac
17041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_compile") 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17050 { (case "(($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_try") 2>&5
17056 ac_status=$?
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
17059 { ac_try='test -s conftest.$ac_objext'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17063esac
17064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 ac_cv_type_u_int64_t=yes
17070else
17071 echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
17074 ac_cv_type_u_int64_t=no
17075fi
17076
17077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078fi
17079{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17080echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17081if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017082
17083cat >>confdefs.h <<_ACEOF
17084#define HAVE_U_INT64_T 1
17085_ACEOF
17086
17087
Misha Brukmanceca9042004-09-02 23:02:30 +000017088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017089 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17090echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17091 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017092fi
17093
John Criswell679ff312004-09-02 18:44:44 +000017094fi
17095
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017096
17097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017098
17099
17100
17101
17102
17103
17104
Reid Spencerdf3be822006-01-23 08:15:53 +000017105for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017106do
17107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17108{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17110if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112else
17113 cat >conftest.$ac_ext <<_ACEOF
17114/* confdefs.h. */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h. */
17119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17121#define $ac_func innocuous_$ac_func
17122
17123/* System header to define __stub macros and hopefully few prototypes,
17124 which can conflict with char $ac_func (); below.
17125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17126 <limits.h> exists even on freestanding compilers. */
17127
17128#ifdef __STDC__
17129# include <limits.h>
17130#else
17131# include <assert.h>
17132#endif
17133
17134#undef $ac_func
17135
17136/* Override any GCC internal prototype to avoid an error.
17137 Use char because int might match the return type of a GCC
17138 builtin and then its argument prototype would still apply. */
17139#ifdef __cplusplus
17140extern "C"
17141#endif
17142char $ac_func ();
17143/* The GNU C library defines this for functions which it implements
17144 to always fail with ENOSYS. Some functions are actually named
17145 something starting with __ and the normal name is an alias. */
17146#if defined __stub_$ac_func || defined __stub___$ac_func
17147choke me
17148#endif
17149
17150int
17151main ()
17152{
17153return $ac_func ();
17154 ;
17155 return 0;
17156}
17157_ACEOF
17158rm -f conftest.$ac_objext conftest$ac_exeext
17159if { (ac_try="$ac_link"
17160case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17166 ac_status=$?
17167 grep -v '^ *+' conftest.er1 >conftest.err
17168 rm -f conftest.er1
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17176esac
17177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17179 ac_status=$?
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest$ac_exeext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 eval "$as_ac_var=yes"
17193else
17194 echo "$as_me: failed program was:" >&5
17195sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 eval "$as_ac_var=no"
17198fi
17199
17200rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202fi
17203ac_res=`eval echo '${'$as_ac_var'}'`
17204 { echo "$as_me:$LINENO: result: $ac_res" >&5
17205echo "${ECHO_T}$ac_res" >&6; }
17206if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017207 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017208#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017209_ACEOF
17210
17211fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017212done
John Criswell7a73b802003-06-30 21:59:07 +000017213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017214
17215
17216
17217
Reid Spencer96cf5872007-07-13 10:05:30 +000017218for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017219do
17220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234#define $ac_func innocuous_$ac_func
17235
17236/* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17240
17241#ifdef __STDC__
17242# include <limits.h>
17243#else
17244# include <assert.h>
17245#endif
17246
17247#undef $ac_func
17248
17249/* Override any GCC internal prototype to avoid an error.
17250 Use char because int might match the return type of a GCC
17251 builtin and then its argument prototype would still apply. */
17252#ifdef __cplusplus
17253extern "C"
17254#endif
17255char $ac_func ();
17256/* The GNU C library defines this for functions which it implements
17257 to always fail with ENOSYS. Some functions are actually named
17258 something starting with __ and the normal name is an alias. */
17259#if defined __stub_$ac_func || defined __stub___$ac_func
17260choke me
17261#endif
17262
17263int
17264main ()
17265{
17266return $ac_func ();
17267 ;
17268 return 0;
17269}
17270_ACEOF
17271rm -f conftest.$ac_objext conftest$ac_exeext
17272if { (ac_try="$ac_link"
17273case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17276esac
17277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_link") 2>conftest.er1
17279 ac_status=$?
17280 grep -v '^ *+' conftest.er1 >conftest.err
17281 rm -f conftest.er1
17282 cat conftest.err >&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); } &&
17285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17286 { (case "(($ac_try" in
17287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17288 *) ac_try_echo=$ac_try;;
17289esac
17290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17291 (eval "$ac_try") 2>&5
17292 ac_status=$?
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); }; } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17299esac
17300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_try") 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17306else
17307 echo "$as_me: failed program was:" >&5
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
17310 eval "$as_ac_var=no"
17311fi
17312
17313rm -f core conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17315fi
17316ac_res=`eval echo '${'$as_ac_var'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318echo "${ECHO_T}$ac_res" >&6; }
17319if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017322_ACEOF
17323
17324fi
17325done
17326
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017327
17328
17329
17330
17331
Reid Spencerb90645c2007-02-16 19:17:20 +000017332for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017333do
17334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17335{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17337if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339else
17340 cat >conftest.$ac_ext <<_ACEOF
17341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
17346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348#define $ac_func innocuous_$ac_func
17349
17350/* System header to define __stub macros and hopefully few prototypes,
17351 which can conflict with char $ac_func (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
17354
17355#ifdef __STDC__
17356# include <limits.h>
17357#else
17358# include <assert.h>
17359#endif
17360
17361#undef $ac_func
17362
17363/* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17366#ifdef __cplusplus
17367extern "C"
17368#endif
17369char $ac_func ();
17370/* The GNU C library defines this for functions which it implements
17371 to always fail with ENOSYS. Some functions are actually named
17372 something starting with __ and the normal name is an alias. */
17373#if defined __stub_$ac_func || defined __stub___$ac_func
17374choke me
17375#endif
17376
17377int
17378main ()
17379{
17380return $ac_func ();
17381 ;
17382 return 0;
17383}
17384_ACEOF
17385rm -f conftest.$ac_objext conftest$ac_exeext
17386if { (ac_try="$ac_link"
17387case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_link") 2>conftest.er1
17393 ac_status=$?
17394 grep -v '^ *+' conftest.er1 >conftest.err
17395 rm -f conftest.er1
17396 cat conftest.err >&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } &&
17399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17400 { (case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_try") 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest$ac_exeext'
17410 { (case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17413esac
17414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_try") 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; }; then
17419 eval "$as_ac_var=yes"
17420else
17421 echo "$as_me: failed program was:" >&5
17422sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 eval "$as_ac_var=no"
17425fi
17426
17427rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17429fi
17430ac_res=`eval echo '${'$as_ac_var'}'`
17431 { echo "$as_me:$LINENO: result: $ac_res" >&5
17432echo "${ECHO_T}$ac_res" >&6; }
17433if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000017434 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000017436_ACEOF
17437
17438fi
17439done
17440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017441
17442
17443
Reid Spencerb90645c2007-02-16 19:17:20 +000017444for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017445do
17446as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17448echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451else
17452 cat >conftest.$ac_ext <<_ACEOF
17453/* confdefs.h. */
17454_ACEOF
17455cat confdefs.h >>conftest.$ac_ext
17456cat >>conftest.$ac_ext <<_ACEOF
17457/* end confdefs.h. */
17458/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17460#define $ac_func innocuous_$ac_func
17461
17462/* System header to define __stub macros and hopefully few prototypes,
17463 which can conflict with char $ac_func (); below.
17464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465 <limits.h> exists even on freestanding compilers. */
17466
17467#ifdef __STDC__
17468# include <limits.h>
17469#else
17470# include <assert.h>
17471#endif
17472
17473#undef $ac_func
17474
17475/* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17478#ifdef __cplusplus
17479extern "C"
17480#endif
17481char $ac_func ();
17482/* The GNU C library defines this for functions which it implements
17483 to always fail with ENOSYS. Some functions are actually named
17484 something starting with __ and the normal name is an alias. */
17485#if defined __stub_$ac_func || defined __stub___$ac_func
17486choke me
17487#endif
17488
17489int
17490main ()
17491{
17492return $ac_func ();
17493 ;
17494 return 0;
17495}
17496_ACEOF
17497rm -f conftest.$ac_objext conftest$ac_exeext
17498if { (ac_try="$ac_link"
17499case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502esac
17503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17515esac
17516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest$ac_exeext'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17525esac
17526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17528 ac_status=$?
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 eval "$as_ac_var=yes"
17532else
17533 echo "$as_me: failed program was:" >&5
17534sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 eval "$as_ac_var=no"
17537fi
17538
17539rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17541fi
17542ac_res=`eval echo '${'$as_ac_var'}'`
17543 { echo "$as_me:$LINENO: result: $ac_res" >&5
17544echo "${ECHO_T}$ac_res" >&6; }
17545if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000017546 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017547#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000017548_ACEOF
17549
17550fi
17551done
17552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017553
17554
17555
17556
17557
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017558for ac_func in mktemp realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017559do
17560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17561{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17565else
17566 cat >conftest.$ac_ext <<_ACEOF
17567/* confdefs.h. */
17568_ACEOF
17569cat confdefs.h >>conftest.$ac_ext
17570cat >>conftest.$ac_ext <<_ACEOF
17571/* end confdefs.h. */
17572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574#define $ac_func innocuous_$ac_func
17575
17576/* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char $ac_func (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17580
17581#ifdef __STDC__
17582# include <limits.h>
17583#else
17584# include <assert.h>
17585#endif
17586
17587#undef $ac_func
17588
17589/* Override any GCC internal prototype to avoid an error.
17590 Use char because int might match the return type of a GCC
17591 builtin and then its argument prototype would still apply. */
17592#ifdef __cplusplus
17593extern "C"
17594#endif
17595char $ac_func ();
17596/* The GNU C library defines this for functions which it implements
17597 to always fail with ENOSYS. Some functions are actually named
17598 something starting with __ and the normal name is an alias. */
17599#if defined __stub_$ac_func || defined __stub___$ac_func
17600choke me
17601#endif
17602
17603int
17604main ()
17605{
17606return $ac_func ();
17607 ;
17608 return 0;
17609}
17610_ACEOF
17611rm -f conftest.$ac_objext conftest$ac_exeext
17612if { (ac_try="$ac_link"
17613case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616esac
17617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626 { (case "(($ac_try" in
17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628 *) ac_try_echo=$ac_try;;
17629esac
17630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631 (eval "$ac_try") 2>&5
17632 ac_status=$?
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); }; } &&
17635 { ac_try='test -s conftest$ac_exeext'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17645 eval "$as_ac_var=yes"
17646else
17647 echo "$as_me: failed program was:" >&5
17648sed 's/^/| /' conftest.$ac_ext >&5
17649
17650 eval "$as_ac_var=no"
17651fi
17652
17653rm -f core conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17655fi
17656ac_res=`eval echo '${'$as_ac_var'}'`
17657 { echo "$as_me:$LINENO: result: $ac_res" >&5
17658echo "${ECHO_T}$ac_res" >&6; }
17659if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017660 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000017662_ACEOF
17663
17664fi
17665done
Reid Spencerdf3be822006-01-23 08:15:53 +000017666
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017667
17668
17669
17670
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000017671for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017672do
17673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17676if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678else
17679 cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17687#define $ac_func innocuous_$ac_func
17688
17689/* System header to define __stub macros and hopefully few prototypes,
17690 which can conflict with char $ac_func (); below.
17691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692 <limits.h> exists even on freestanding compilers. */
17693
17694#ifdef __STDC__
17695# include <limits.h>
17696#else
17697# include <assert.h>
17698#endif
17699
17700#undef $ac_func
17701
17702/* Override any GCC internal prototype to avoid an error.
17703 Use char because int might match the return type of a GCC
17704 builtin and then its argument prototype would still apply. */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708char $ac_func ();
17709/* The GNU C library defines this for functions which it implements
17710 to always fail with ENOSYS. Some functions are actually named
17711 something starting with __ and the normal name is an alias. */
17712#if defined __stub_$ac_func || defined __stub___$ac_func
17713choke me
17714#endif
17715
17716int
17717main ()
17718{
17719return $ac_func ();
17720 ;
17721 return 0;
17722}
17723_ACEOF
17724rm -f conftest.$ac_objext conftest$ac_exeext
17725if { (ac_try="$ac_link"
17726case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17729esac
17730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_link") 2>conftest.er1
17732 ac_status=$?
17733 grep -v '^ *+' conftest.er1 >conftest.err
17734 rm -f conftest.er1
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17742esac
17743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17745 ac_status=$?
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17752esac
17753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 eval "$as_ac_var=yes"
17759else
17760 echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763 eval "$as_ac_var=no"
17764fi
17765
17766rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17768fi
17769ac_res=`eval echo '${'$as_ac_var'}'`
17770 { echo "$as_me:$LINENO: result: $ac_res" >&5
17771echo "${ECHO_T}$ac_res" >&6; }
17772if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000017773 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017774#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000017775_ACEOF
17776
17777fi
17778done
17779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017780
17781
17782
17783
Chris Lattner511f11d2005-11-14 07:25:50 +000017784for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017785do
17786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17787{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17790 echo $ECHO_N "(cached) $ECHO_C" >&6
17791else
17792 cat >conftest.$ac_ext <<_ACEOF
17793/* confdefs.h. */
17794_ACEOF
17795cat confdefs.h >>conftest.$ac_ext
17796cat >>conftest.$ac_ext <<_ACEOF
17797/* end confdefs.h. */
17798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17800#define $ac_func innocuous_$ac_func
17801
17802/* System header to define __stub macros and hopefully few prototypes,
17803 which can conflict with char $ac_func (); below.
17804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805 <limits.h> exists even on freestanding compilers. */
17806
17807#ifdef __STDC__
17808# include <limits.h>
17809#else
17810# include <assert.h>
17811#endif
17812
17813#undef $ac_func
17814
17815/* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
17818#ifdef __cplusplus
17819extern "C"
17820#endif
17821char $ac_func ();
17822/* The GNU C library defines this for functions which it implements
17823 to always fail with ENOSYS. Some functions are actually named
17824 something starting with __ and the normal name is an alias. */
17825#if defined __stub_$ac_func || defined __stub___$ac_func
17826choke me
17827#endif
17828
17829int
17830main ()
17831{
17832return $ac_func ();
17833 ;
17834 return 0;
17835}
17836_ACEOF
17837rm -f conftest.$ac_objext conftest$ac_exeext
17838if { (ac_try="$ac_link"
17839case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17842esac
17843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_link") 2>conftest.er1
17845 ac_status=$?
17846 grep -v '^ *+' conftest.er1 >conftest.err
17847 rm -f conftest.er1
17848 cat conftest.err >&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } &&
17851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17852 { (case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17855esac
17856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_try") 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
17861 { ac_try='test -s conftest$ac_exeext'
17862 { (case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17865esac
17866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_try") 2>&5
17868 ac_status=$?
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); }; }; then
17871 eval "$as_ac_var=yes"
17872else
17873 echo "$as_me: failed program was:" >&5
17874sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 eval "$as_ac_var=no"
17877fi
17878
17879rm -f core conftest.err conftest.$ac_objext \
17880 conftest$ac_exeext conftest.$ac_ext
17881fi
17882ac_res=`eval echo '${'$as_ac_var'}'`
17883 { echo "$as_me:$LINENO: result: $ac_res" >&5
17884echo "${ECHO_T}$ac_res" >&6; }
17885if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017886 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017888_ACEOF
17889
17890fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017891done
John Criswell7a73b802003-06-30 21:59:07 +000017892
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017893
17894
17895
17896
Reid Spencerafa22e22006-12-10 23:29:19 +000017897for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017898do
17899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17900{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17902if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17903 echo $ECHO_N "(cached) $ECHO_C" >&6
17904else
17905 cat >conftest.$ac_ext <<_ACEOF
17906/* confdefs.h. */
17907_ACEOF
17908cat confdefs.h >>conftest.$ac_ext
17909cat >>conftest.$ac_ext <<_ACEOF
17910/* end confdefs.h. */
17911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17913#define $ac_func innocuous_$ac_func
17914
17915/* System header to define __stub macros and hopefully few prototypes,
17916 which can conflict with char $ac_func (); below.
17917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17918 <limits.h> exists even on freestanding compilers. */
17919
17920#ifdef __STDC__
17921# include <limits.h>
17922#else
17923# include <assert.h>
17924#endif
17925
17926#undef $ac_func
17927
17928/* Override any GCC internal prototype to avoid an error.
17929 Use char because int might match the return type of a GCC
17930 builtin and then its argument prototype would still apply. */
17931#ifdef __cplusplus
17932extern "C"
17933#endif
17934char $ac_func ();
17935/* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
17938#if defined __stub_$ac_func || defined __stub___$ac_func
17939choke me
17940#endif
17941
17942int
17943main ()
17944{
17945return $ac_func ();
17946 ;
17947 return 0;
17948}
17949_ACEOF
17950rm -f conftest.$ac_objext conftest$ac_exeext
17951if { (ac_try="$ac_link"
17952case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955esac
17956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_link") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17965 { (case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17968esac
17969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_try") 2>&5
17971 ac_status=$?
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); }; } &&
17974 { ac_try='test -s conftest$ac_exeext'
17975 { (case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978esac
17979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_try") 2>&5
17981 ac_status=$?
17982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17983 (exit $ac_status); }; }; then
17984 eval "$as_ac_var=yes"
17985else
17986 echo "$as_me: failed program was:" >&5
17987sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 eval "$as_ac_var=no"
17990fi
17991
17992rm -f core conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17994fi
17995ac_res=`eval echo '${'$as_ac_var'}'`
17996 { echo "$as_me:$LINENO: result: $ac_res" >&5
17997echo "${ECHO_T}$ac_res" >&6; }
17998if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000017999 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018000#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018001_ACEOF
18002
18003fi
18004done
18005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018006{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18007echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18008if test "${llvm_cv_c_printf_a+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018010else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018011 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018012ac_cpp='$CPP $CPPFLAGS'
18013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18015ac_compiler_gnu=$ac_cv_c_compiler_gnu
18016
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018017 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018018 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018020 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018021
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018022 /* confdefs.h. */
18023_ACEOF
18024cat confdefs.h >>conftest.$ac_ext
18025cat >>conftest.$ac_ext <<_ACEOF
18026/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018027
John Criswella0137d32003-10-13 16:22:01 +000018028#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018029#include <stdlib.h>
18030
John Criswella0137d32003-10-13 16:22:01 +000018031int
18032main ()
18033{
18034
Reid Spencer2706f8c2004-09-19 23:53:36 +000018035volatile double A, B;
18036char Buffer[100];
18037A = 1;
18038A /= 10.0;
18039sprintf(Buffer, "%a", A);
18040B = atof(Buffer);
18041if (A != B)
18042 return (1);
18043if (A != 0x1.999999999999ap-4)
18044 return (1);
18045return (0);
John Criswella0137d32003-10-13 16:22:01 +000018046 ;
18047 return 0;
18048}
18049_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018050rm -f conftest$ac_exeext
18051if { (ac_try="$ac_link"
18052case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055esac
18056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_link") 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18061 { (case "(($ac_try" in
18062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18063 *) ac_try_echo=$ac_try;;
18064esac
18065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18066 (eval "$ac_try") 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018070 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018071else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018072 echo "$as_me: program exited with status $ac_status" >&5
18073echo "$as_me: failed program was:" >&5
18074sed 's/^/| /' conftest.$ac_ext >&5
18075
18076( exit $ac_status )
18077llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018078fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018079rm -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 +000018080fi
Reid Spencera773bd52006-08-04 18:18:08 +000018081
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018082
Reid Spencer2706f8c2004-09-19 23:53:36 +000018083 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018084ac_cpp='$CPP $CPPFLAGS'
18085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087ac_compiler_gnu=$ac_cv_c_compiler_gnu
18088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018089fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018090{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18091echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018092 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018094cat >>confdefs.h <<\_ACEOF
18095#define HAVE_PRINTF_A 1
18096_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018097
Reid Spencer2706f8c2004-09-19 23:53:36 +000018098 fi
John Criswella0137d32003-10-13 16:22:01 +000018099
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018101{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18102echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18103if test "${ac_cv_func_rand48+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018105else
Reid Spencera773bd52006-08-04 18:18:08 +000018106 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018107ac_cpp='$CXXCPP $CPPFLAGS'
18108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18111
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018112 cat >conftest.$ac_ext <<_ACEOF
18113/* confdefs.h. */
18114_ACEOF
18115cat confdefs.h >>conftest.$ac_ext
18116cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018117/* end confdefs.h. */
18118#include <stdlib.h>
18119int
18120main ()
18121{
18122srand48(0);lrand48();drand48();
18123 ;
18124 return 0;
18125}
18126_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018127rm -f conftest.$ac_objext
18128if { (ac_try="$ac_compile"
18129case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18132esac
18133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_compile") 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18142 { (case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18145esac
18146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_try") 2>&5
18148 ac_status=$?
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); }; } &&
18151 { ac_try='test -s conftest.$ac_objext'
18152 { (case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155esac
18156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157 (eval "$ac_try") 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018161 ac_cv_func_rand48=yes
18162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018163 echo "$as_me: failed program was:" >&5
18164sed 's/^/| /' conftest.$ac_ext >&5
18165
18166 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018167fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018168
Reid Spencera773bd52006-08-04 18:18:08 +000018169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018170 ac_ext=c
18171ac_cpp='$CPP $CPPFLAGS'
18172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18174ac_compiler_gnu=$ac_cv_c_compiler_gnu
18175
18176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018177{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18178echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018179
18180if test "$ac_cv_func_rand48" = "yes" ; then
18181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018182cat >>confdefs.h <<\_ACEOF
18183#define HAVE_RAND48 1
18184_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018185
18186fi
John Criswell0021c312004-02-13 21:57:29 +000018187
18188
Torok Edwin871384f2010-01-26 08:50:50 +000018189
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018190{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18191echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18192if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18193 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018194else
Reid Spencera773bd52006-08-04 18:18:08 +000018195 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018196ac_cpp='$CXXCPP $CPPFLAGS'
18197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018201 cat >conftest.$ac_ext <<_ACEOF
18202/* confdefs.h. */
18203_ACEOF
18204cat confdefs.h >>conftest.$ac_ext
18205cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018206/* end confdefs.h. */
18207#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018208int
18209main ()
18210{
18211float f; isnan(f);
18212 ;
18213 return 0;
18214}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018215_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018216rm -f conftest.$ac_objext
18217if { (ac_try="$ac_compile"
18218case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18221esac
18222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_compile") 2>conftest.er1
18224 ac_status=$?
18225 grep -v '^ *+' conftest.er1 >conftest.err
18226 rm -f conftest.er1
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18231 { (case "(($ac_try" in
18232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18234esac
18235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_try") 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest.$ac_objext'
18241 { (case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244esac
18245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_try") 2>&5
18247 ac_status=$?
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018250 ac_cv_func_isnan_in_math_h=yes
18251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018252 echo "$as_me: failed program was:" >&5
18253sed 's/^/| /' conftest.$ac_ext >&5
18254
18255 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018256fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018257
Reid Spencera773bd52006-08-04 18:18:08 +000018258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018259 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018260ac_cpp='$CPP $CPPFLAGS'
18261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18263ac_compiler_gnu=$ac_cv_c_compiler_gnu
18264
18265fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018266{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18267echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018268
18269
18270if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018272cat >>confdefs.h <<\_ACEOF
18273#define HAVE_ISNAN_IN_MATH_H 1
18274_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018275
Reid Spencerabec8f92004-10-27 23:03:44 +000018276fi
18277
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018278{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18279echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18280if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18281 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018282else
Reid Spencera773bd52006-08-04 18:18:08 +000018283 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018284ac_cpp='$CXXCPP $CPPFLAGS'
18285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18288
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018289 cat >conftest.$ac_ext <<_ACEOF
18290/* confdefs.h. */
18291_ACEOF
18292cat confdefs.h >>conftest.$ac_ext
18293cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018294/* end confdefs.h. */
18295#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018296int
18297main ()
18298{
18299float f; isnan(f);
18300 ;
18301 return 0;
18302}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018303_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018304rm -f conftest.$ac_objext
18305if { (ac_try="$ac_compile"
18306case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18309esac
18310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_compile") 2>conftest.er1
18312 ac_status=$?
18313 grep -v '^ *+' conftest.er1 >conftest.err
18314 rm -f conftest.er1
18315 cat conftest.err >&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); } &&
18318 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18319 { (case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18322esac
18323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_try") 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; } &&
18328 { ac_try='test -s conftest.$ac_objext'
18329 { (case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332esac
18333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_try") 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018338 ac_cv_func_isnan_in_cmath=yes
18339else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018340 echo "$as_me: failed program was:" >&5
18341sed 's/^/| /' conftest.$ac_ext >&5
18342
18343 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018344fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018345
Reid Spencera773bd52006-08-04 18:18:08 +000018346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018347 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018348ac_cpp='$CPP $CPPFLAGS'
18349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18351ac_compiler_gnu=$ac_cv_c_compiler_gnu
18352
18353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018354{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18355echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018356
18357if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018358
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018359cat >>confdefs.h <<\_ACEOF
18360#define HAVE_ISNAN_IN_CMATH 1
18361_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018362
Reid Spencerabec8f92004-10-27 23:03:44 +000018363fi
18364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018365{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18366echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18367if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18368 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018369else
Reid Spencera773bd52006-08-04 18:18:08 +000018370 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018371ac_cpp='$CXXCPP $CPPFLAGS'
18372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018376 cat >conftest.$ac_ext <<_ACEOF
18377/* confdefs.h. */
18378_ACEOF
18379cat confdefs.h >>conftest.$ac_ext
18380cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018381/* end confdefs.h. */
18382#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018383int
18384main ()
18385{
18386float f; std::isnan(f);
18387 ;
18388 return 0;
18389}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018390_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018391rm -f conftest.$ac_objext
18392if { (ac_try="$ac_compile"
18393case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396esac
18397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_compile") 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18406 { (case "(($ac_try" in
18407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18408 *) ac_try_echo=$ac_try;;
18409esac
18410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18411 (eval "$ac_try") 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; } &&
18415 { ac_try='test -s conftest.$ac_objext'
18416 { (case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419esac
18420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_try") 2>&5
18422 ac_status=$?
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018425 ac_cv_func_std_isnan_in_cmath=yes
18426else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018427 echo "$as_me: failed program was:" >&5
18428sed 's/^/| /' conftest.$ac_ext >&5
18429
18430 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018431fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018432
Reid Spencera773bd52006-08-04 18:18:08 +000018433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018434 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018435ac_cpp='$CPP $CPPFLAGS'
18436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18438ac_compiler_gnu=$ac_cv_c_compiler_gnu
18439
18440fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018441{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18442echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018443
18444if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018446cat >>confdefs.h <<\_ACEOF
18447#define HAVE_STD_ISNAN_IN_CMATH 1
18448_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018449
Reid Spencerabec8f92004-10-27 23:03:44 +000018450fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018451
18452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018453{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18454echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18455if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018457else
Reid Spencera773bd52006-08-04 18:18:08 +000018458 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018459ac_cpp='$CXXCPP $CPPFLAGS'
18460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018464 cat >conftest.$ac_ext <<_ACEOF
18465/* confdefs.h. */
18466_ACEOF
18467cat confdefs.h >>conftest.$ac_ext
18468cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018469/* end confdefs.h. */
18470#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018471int
18472main ()
18473{
18474float f; isinf(f);
18475 ;
18476 return 0;
18477}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018478_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018479rm -f conftest.$ac_objext
18480if { (ac_try="$ac_compile"
18481case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18484esac
18485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_compile") 2>conftest.er1
18487 ac_status=$?
18488 grep -v '^ *+' conftest.er1 >conftest.err
18489 rm -f conftest.er1
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } &&
18493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18494 { (case "(($ac_try" in
18495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496 *) ac_try_echo=$ac_try;;
18497esac
18498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499 (eval "$ac_try") 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; } &&
18503 { ac_try='test -s conftest.$ac_objext'
18504 { (case "(($ac_try" in
18505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506 *) ac_try_echo=$ac_try;;
18507esac
18508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509 (eval "$ac_try") 2>&5
18510 ac_status=$?
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018513 ac_cv_func_isinf_in_math_h=yes
18514else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018515 echo "$as_me: failed program was:" >&5
18516sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018519fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018520
Reid Spencera773bd52006-08-04 18:18:08 +000018521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018522 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018523ac_cpp='$CPP $CPPFLAGS'
18524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526ac_compiler_gnu=$ac_cv_c_compiler_gnu
18527
18528fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018529{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18530echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018531
18532if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018534cat >>confdefs.h <<\_ACEOF
18535#define HAVE_ISINF_IN_MATH_H 1
18536_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018537
Reid Spencerabec8f92004-10-27 23:03:44 +000018538fi
18539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018540{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18541echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18542if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000018544else
Reid Spencera773bd52006-08-04 18:18:08 +000018545 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000018546ac_cpp='$CXXCPP $CPPFLAGS'
18547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18550
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018551 cat >conftest.$ac_ext <<_ACEOF
18552/* confdefs.h. */
18553_ACEOF
18554cat confdefs.h >>conftest.$ac_ext
18555cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018556/* end confdefs.h. */
18557#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018558int
18559main ()
18560{
18561float f; isinf(f);
18562 ;
18563 return 0;
18564}
Brian Gaeke52a551d2004-07-21 03:14:12 +000018565_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018566rm -f conftest.$ac_objext
18567if { (ac_try="$ac_compile"
18568case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571esac
18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_compile") 2>conftest.er1
18574 ac_status=$?
18575 grep -v '^ *+' conftest.er1 >conftest.err
18576 rm -f conftest.er1
18577 cat conftest.err >&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18581 { (case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_try") 2>&5
18587 ac_status=$?
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; } &&
18590 { ac_try='test -s conftest.$ac_objext'
18591 { (case "(($ac_try" in
18592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18593 *) ac_try_echo=$ac_try;;
18594esac
18595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18596 (eval "$ac_try") 2>&5
18597 ac_status=$?
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018600 ac_cv_func_isinf_in_cmath=yes
18601else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018602 echo "$as_me: failed program was:" >&5
18603sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000018606fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018607
Reid Spencera773bd52006-08-04 18:18:08 +000018608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018609 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000018610ac_cpp='$CPP $CPPFLAGS'
18611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613ac_compiler_gnu=$ac_cv_c_compiler_gnu
18614
18615fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018616{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18617echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018618
18619if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018620
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018621cat >>confdefs.h <<\_ACEOF
18622#define HAVE_ISINF_IN_CMATH 1
18623_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000018624
Reid Spencerabec8f92004-10-27 23:03:44 +000018625fi
18626
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018627{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18628echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18629if test "${ac_cv_func_std_isinf_in_cmath+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 <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018645int
18646main ()
18647{
18648float f; std::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_std_isinf_in_cmath=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_std_isinf_in_cmath=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_std_isinf_in_cmath" >&5
18704echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018705
18706if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000018707
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018708cat >>confdefs.h <<\_ACEOF
18709#define HAVE_STD_ISINF_IN_CMATH 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 finite in <ieeefp.h>" >&5
18715echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18716if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000018718else
Reid Spencera773bd52006-08-04 18:18:08 +000018719 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +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 Gaeked59a6472004-07-21 03:33:58 +000018730/* end confdefs.h. */
18731#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018732int
18733main ()
18734{
18735float f; finite(f);
18736 ;
18737 return 0;
18738}
Brian Gaeked59a6472004-07-21 03:33:58 +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 Gaeked59a6472004-07-21 03:33:58 +000018774 ac_cv_func_finite_in_ieeefp_h=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_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +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 Gaeked59a6472004-07-21 03:33:58 +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_finite_in_ieeefp_h" >&5
18791echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018792
Brian Gaeke6802b552004-10-28 05:06:45 +000018793if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000018794
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018795cat >>confdefs.h <<\_ACEOF
18796#define HAVE_FINITE_IN_IEEEFP_H 1
18797_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000018798
Reid Spencerabec8f92004-10-27 23:03:44 +000018799fi
18800
18801
18802
Reid Spencer30fe5262007-01-20 07:48:49 +000018803if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000018804
18805
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018806for ac_header in stdlib.h unistd.h
18807do
18808as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18814fi
18815ac_res=`eval echo '${'$as_ac_Header'}'`
18816 { echo "$as_me:$LINENO: result: $ac_res" >&5
18817echo "${ECHO_T}$ac_res" >&6; }
18818else
18819 # Is the header compilable?
18820{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
18821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18822cat >conftest.$ac_ext <<_ACEOF
18823/* confdefs.h. */
18824_ACEOF
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
18828$ac_includes_default
18829#include <$ac_header>
18830_ACEOF
18831rm -f conftest.$ac_objext
18832if { (ac_try="$ac_compile"
18833case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18836esac
18837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_compile") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } &&
18845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18846 { (case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18849esac
18850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_try") 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); }; } &&
18855 { ac_try='test -s conftest.$ac_objext'
18856 { (case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18859esac
18860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_try") 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_header_compiler=yes
18866else
18867 echo "$as_me: failed program was:" >&5
18868sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018869
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018870 ac_header_compiler=no
18871fi
18872
18873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18875echo "${ECHO_T}$ac_header_compiler" >&6; }
18876
18877# Is the header present?
18878{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
18879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18880cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886#include <$ac_header>
18887_ACEOF
18888if { (ac_try="$ac_cpp conftest.$ac_ext"
18889case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } >/dev/null; then
18901 if test -s conftest.err; then
18902 ac_cpp_err=$ac_c_preproc_warn_flag
18903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18904 else
18905 ac_cpp_err=
18906 fi
18907else
18908 ac_cpp_err=yes
18909fi
18910if test -z "$ac_cpp_err"; then
18911 ac_header_preproc=yes
18912else
18913 echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 ac_header_preproc=no
18917fi
18918
18919rm -f conftest.err conftest.$ac_ext
18920{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18921echo "${ECHO_T}$ac_header_preproc" >&6; }
18922
18923# So? What about this header?
18924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18925 yes:no: )
18926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18930 ac_header_preproc=yes
18931 ;;
18932 no:yes:* )
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18945 ( cat <<\_ASBOX
18946## ----------------------------------- ##
18947## Report this to llvmbugs@cs.uiuc.edu ##
18948## ----------------------------------- ##
18949_ASBOX
18950 ) | sed "s/^/$as_me: WARNING: /" >&2
18951 ;;
18952esac
18953{ echo "$as_me:$LINENO: checking for $ac_header" >&5
18954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18957else
18958 eval "$as_ac_Header=\$ac_header_preproc"
18959fi
18960ac_res=`eval echo '${'$as_ac_Header'}'`
18961 { echo "$as_me:$LINENO: result: $ac_res" >&5
18962echo "${ECHO_T}$ac_res" >&6; }
18963
18964fi
18965if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000018966 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018968_ACEOF
18969
18970fi
18971
18972done
18973
18974
18975for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018976do
18977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18978{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18980if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18982else
18983 cat >conftest.$ac_ext <<_ACEOF
18984/* confdefs.h. */
18985_ACEOF
18986cat confdefs.h >>conftest.$ac_ext
18987cat >>conftest.$ac_ext <<_ACEOF
18988/* end confdefs.h. */
18989/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18991#define $ac_func innocuous_$ac_func
18992
18993/* System header to define __stub macros and hopefully few prototypes,
18994 which can conflict with char $ac_func (); below.
18995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996 <limits.h> exists even on freestanding compilers. */
18997
18998#ifdef __STDC__
18999# include <limits.h>
19000#else
19001# include <assert.h>
19002#endif
19003
19004#undef $ac_func
19005
19006/* Override any GCC internal prototype to avoid an error.
19007 Use char because int might match the return type of a GCC
19008 builtin and then its argument prototype would still apply. */
19009#ifdef __cplusplus
19010extern "C"
19011#endif
19012char $ac_func ();
19013/* The GNU C library defines this for functions which it implements
19014 to always fail with ENOSYS. Some functions are actually named
19015 something starting with __ and the normal name is an alias. */
19016#if defined __stub_$ac_func || defined __stub___$ac_func
19017choke me
19018#endif
19019
19020int
19021main ()
19022{
19023return $ac_func ();
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext conftest$ac_exeext
19029if { (ac_try="$ac_link"
19030case "(($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_link") 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046esac
19047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest$ac_exeext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056esac
19057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 eval "$as_ac_var=yes"
19063else
19064 echo "$as_me: failed program was:" >&5
19065sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 eval "$as_ac_var=no"
19068fi
19069
19070rm -f core conftest.err conftest.$ac_objext \
19071 conftest$ac_exeext conftest.$ac_ext
19072fi
19073ac_res=`eval echo '${'$as_ac_var'}'`
19074 { echo "$as_me:$LINENO: result: $ac_res" >&5
19075echo "${ECHO_T}$ac_res" >&6; }
19076if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019077 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019079_ACEOF
19080
19081fi
19082done
19083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019084{ echo "$as_me:$LINENO: checking for working mmap" >&5
19085echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19086if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019089 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019090 ac_cv_func_mmap_fixed_mapped=no
19091else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019092 cat >conftest.$ac_ext <<_ACEOF
19093/* confdefs.h. */
19094_ACEOF
19095cat confdefs.h >>conftest.$ac_ext
19096cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019098$ac_includes_default
19099/* malloc might have been renamed as rpl_malloc. */
19100#undef malloc
19101
19102/* Thanks to Mike Haertel and Jim Avera for this test.
19103 Here is a matrix of mmap possibilities:
19104 mmap private not fixed
19105 mmap private fixed at somewhere currently unmapped
19106 mmap private fixed at somewhere already mapped
19107 mmap shared not fixed
19108 mmap shared fixed at somewhere currently unmapped
19109 mmap shared fixed at somewhere already mapped
19110 For private mappings, we should verify that changes cannot be read()
19111 back from the file, nor mmap's back from the file at a different
19112 address. (There have been systems where private was not correctly
19113 implemented like the infamous i386 svr4.0, and systems where the
19114 VM page cache was not coherent with the file system buffer cache
19115 like early versions of FreeBSD and possibly contemporary NetBSD.)
19116 For shared mappings, we should conversely verify that changes get
19117 propagated back to all the places they're supposed to be.
19118
19119 Grep wants private fixed already mapped.
19120 The main things grep needs to know about mmap are:
19121 * does it exist and is it safe to write into the mmap'd area
19122 * how to use it (BSD variants) */
19123
19124#include <fcntl.h>
19125#include <sys/mman.h>
19126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019127#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019128char *malloc ();
19129#endif
19130
19131/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019132#if !HAVE_GETPAGESIZE
19133/* Assume that all systems that can run configure have sys/param.h. */
19134# if !HAVE_SYS_PARAM_H
19135# define HAVE_SYS_PARAM_H 1
19136# endif
19137
John Criswell7a73b802003-06-30 21:59:07 +000019138# ifdef _SC_PAGESIZE
19139# define getpagesize() sysconf(_SC_PAGESIZE)
19140# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019141# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019142# include <sys/param.h>
19143# ifdef EXEC_PAGESIZE
19144# define getpagesize() EXEC_PAGESIZE
19145# else /* no EXEC_PAGESIZE */
19146# ifdef NBPG
19147# define getpagesize() NBPG * CLSIZE
19148# ifndef CLSIZE
19149# define CLSIZE 1
19150# endif /* no CLSIZE */
19151# else /* no NBPG */
19152# ifdef NBPC
19153# define getpagesize() NBPC
19154# else /* no NBPC */
19155# ifdef PAGESIZE
19156# define getpagesize() PAGESIZE
19157# endif /* PAGESIZE */
19158# endif /* no NBPC */
19159# endif /* no NBPG */
19160# endif /* no EXEC_PAGESIZE */
19161# else /* no HAVE_SYS_PARAM_H */
19162# define getpagesize() 8192 /* punt totally */
19163# endif /* no HAVE_SYS_PARAM_H */
19164# endif /* no _SC_PAGESIZE */
19165
19166#endif /* no HAVE_GETPAGESIZE */
19167
19168int
19169main ()
19170{
19171 char *data, *data2, *data3;
19172 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019173 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019174
19175 pagesize = getpagesize ();
19176
19177 /* First, make a file with some known garbage in it. */
19178 data = (char *) malloc (pagesize);
19179 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019180 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019181 for (i = 0; i < pagesize; ++i)
19182 *(data + i) = rand ();
19183 umask (0);
19184 fd = creat ("conftest.mmap", 0600);
19185 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019186 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019187 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019188 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019189 close (fd);
19190
19191 /* Next, try to mmap the file at a fixed address which already has
19192 something else allocated at it. If we can, also make sure that
19193 we see the same garbage. */
19194 fd = open ("conftest.mmap", O_RDWR);
19195 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019196 return 1;
19197 data2 = (char *) malloc (2 * pagesize);
19198 if (!data2)
19199 return 1;
19200 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019201 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019202 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019203 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019204 for (i = 0; i < pagesize; ++i)
19205 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019206 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019207
19208 /* Finally, make sure that changes to the mapped area do not
19209 percolate back to the file as seen by read(). (This is a bug on
19210 some variants of i386 svr4.0.) */
19211 for (i = 0; i < pagesize; ++i)
19212 *(data2 + i) = *(data2 + i) + 1;
19213 data3 = (char *) malloc (pagesize);
19214 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019215 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019216 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019217 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019218 for (i = 0; i < pagesize; ++i)
19219 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019220 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019221 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019222 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019223}
19224_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019225rm -f conftest$ac_exeext
19226if { (ac_try="$ac_link"
19227case "(($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_link") 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19236 { (case "(($ac_try" in
19237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19239esac
19240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019245 ac_cv_func_mmap_fixed_mapped=yes
19246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019247 echo "$as_me: program exited with status $ac_status" >&5
19248echo "$as_me: failed program was:" >&5
19249sed 's/^/| /' conftest.$ac_ext >&5
19250
19251( exit $ac_status )
19252ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019253fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019254rm -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 +000019255fi
Reid Spencera773bd52006-08-04 18:18:08 +000019256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019257
John Criswell7a73b802003-06-30 21:59:07 +000019258fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019259{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19260echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019261if test $ac_cv_func_mmap_fixed_mapped = yes; then
19262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019263cat >>confdefs.h <<\_ACEOF
19264#define HAVE_MMAP 1
19265_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019266
19267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019268rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019270 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19271echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19272if test "${ac_cv_func_mmap_file+set}" = set; then
19273 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019274else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019275 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019276ac_cpp='$CPP $CPPFLAGS'
19277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279ac_compiler_gnu=$ac_cv_c_compiler_gnu
19280
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019281 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019282 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019283else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019284 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019286 /* confdefs.h. */
19287_ACEOF
19288cat confdefs.h >>conftest.$ac_ext
19289cat >>conftest.$ac_ext <<_ACEOF
19290/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019291
John Criswell7a73b802003-06-30 21:59:07 +000019292#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019293#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019294#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019295
19296int
19297main ()
19298{
John Criswell7a73b802003-06-30 21:59:07 +000019299
19300 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019301 fd = creat ("foo",0777);
19302 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19303 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019304 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019305 ;
19306 return 0;
19307}
John Criswell7a73b802003-06-30 21:59:07 +000019308_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019309rm -f conftest$ac_exeext
19310if { (ac_try="$ac_link"
19311case "(($ac_try" in
19312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313 *) ac_try_echo=$ac_try;;
19314esac
19315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316 (eval "$ac_link") 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19320 { (case "(($ac_try" in
19321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322 *) ac_try_echo=$ac_try;;
19323esac
19324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325 (eval "$ac_try") 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019329 ac_cv_func_mmap_file=yes
19330else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019331 echo "$as_me: program exited with status $ac_status" >&5
19332echo "$as_me: failed program was:" >&5
19333sed 's/^/| /' conftest.$ac_ext >&5
19334
19335( exit $ac_status )
19336ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019337fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019338rm -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 +000019339fi
Reid Spencera773bd52006-08-04 18:18:08 +000019340
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019341
John Criswell7a73b802003-06-30 21:59:07 +000019342 ac_ext=c
19343ac_cpp='$CPP $CPPFLAGS'
19344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19346ac_compiler_gnu=$ac_cv_c_compiler_gnu
19347
19348
19349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019350{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19351echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019352if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019354cat >>confdefs.h <<\_ACEOF
19355#define HAVE_MMAP_FILE
19356_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019357
19358 MMAP_FILE=yes
19359
19360fi
19361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019362 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19363echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19364if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019366else
Reid Spencer582a23c2004-12-29 07:07:57 +000019367 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019368 ac_cv_need_dev_zero_for_mmap=yes
19369 else
19370 ac_cv_need_dev_zero_for_mmap=no
19371 fi
19372
19373fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019374{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19375echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019376if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19377
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019378cat >>confdefs.h <<\_ACEOF
19379#define NEED_DEV_ZERO_FOR_MMAP 1
19380_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019381
19382fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019383
Reid Spencer30fe5262007-01-20 07:48:49 +000019384 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19385 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019386 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19387echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019388 fi
19389 if test "$ac_cv_func_mmap_file" = "no"
19390 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019391 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19392echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019393 fi
John Criswellb13092b2003-07-22 21:00:24 +000019394fi
John Criswell7a73b802003-06-30 21:59:07 +000019395
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019396{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19397echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19398cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019403/* end confdefs.h. */
19404int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019405 volatile unsigned long val = 1;
19406 __sync_synchronize();
19407 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000019408 __sync_add_and_fetch(&val, 1);
19409 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000019410 return 0;
19411 }
Owen Andersond4b272b2009-05-18 23:58:51 +000019412
19413_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019414rm -f conftest.$ac_objext conftest$ac_exeext
19415if { (ac_try="$ac_link"
19416case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19419esac
19420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19429 { (case "(($ac_try" in
19430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19431 *) ac_try_echo=$ac_try;;
19432esac
19433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19434 (eval "$ac_try") 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest$ac_exeext'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19442esac
19443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 { echo "$as_me:$LINENO: result: yes" >&5
19449echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000019450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019451cat >>confdefs.h <<\_ACEOF
19452#define LLVM_MULTITHREADED 1
19453_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000019454
Owen Andersond4b272b2009-05-18 23:58:51 +000019455else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019456 echo "$as_me: failed program was:" >&5
19457sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000019458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019459 { echo "$as_me:$LINENO: result: no" >&5
19460echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000019461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019462cat >>confdefs.h <<\_ACEOF
19463#define LLVM_MULTITHREADED 0
19464_ACEOF
19465
19466 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19467echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000019468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019469
Owen Andersond4b272b2009-05-18 23:58:51 +000019470rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019471 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000019472
19473
John Criswell7a73b802003-06-30 21:59:07 +000019474
Nick Lewycky4372e692009-09-29 06:18:23 +000019475if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019476 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19477echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19478if test "${llvm_cv_linux_mixed+set}" = set; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000019480else
19481 ac_ext=c
19482ac_cpp='$CPP $CPPFLAGS'
19483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485ac_compiler_gnu=$ac_cv_c_compiler_gnu
19486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019487 cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000019492/* end confdefs.h. */
19493#ifndef __x86_64__
19494 error: Not x86-64 even if uname says so!
19495 #endif
19496
19497int
19498main ()
19499{
19500
19501 ;
19502 return 0;
19503}
19504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019505rm -f conftest.$ac_objext
19506if { (ac_try="$ac_compile"
19507case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19510esac
19511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_compile") 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } &&
19519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19520 { (case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19523esac
19524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525 (eval "$ac_try") 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; } &&
19529 { ac_try='test -s conftest.$ac_objext'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533esac
19534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000019539 llvm_cv_linux_mixed=no
19540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000019545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019546
Nick Lewycky4372e692009-09-29 06:18:23 +000019547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548 ac_ext=c
19549ac_cpp='$CPP $CPPFLAGS'
19550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19552ac_compiler_gnu=$ac_cv_c_compiler_gnu
19553
19554
19555fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019556{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19557echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000019558
19559 if test "$llvm_cv_linux_mixed" = "yes"; then
19560 llvm_cv_target_arch="x86"
19561 ARCH="x86"
19562 fi
19563fi
19564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019565
Reid Spencer9372f152007-07-30 20:13:24 +000019566for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019567do
19568as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19569{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19570echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19571if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573else
19574 cat >conftest.$ac_ext <<_ACEOF
19575/* confdefs.h. */
19576_ACEOF
19577cat confdefs.h >>conftest.$ac_ext
19578cat >>conftest.$ac_ext <<_ACEOF
19579/* end confdefs.h. */
19580/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19582#define $ac_func innocuous_$ac_func
19583
19584/* System header to define __stub macros and hopefully few prototypes,
19585 which can conflict with char $ac_func (); below.
19586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19587 <limits.h> exists even on freestanding compilers. */
19588
19589#ifdef __STDC__
19590# include <limits.h>
19591#else
19592# include <assert.h>
19593#endif
19594
19595#undef $ac_func
19596
19597/* Override any GCC internal prototype to avoid an error.
19598 Use char because int might match the return type of a GCC
19599 builtin and then its argument prototype would still apply. */
19600#ifdef __cplusplus
19601extern "C"
19602#endif
19603char $ac_func ();
19604/* The GNU C library defines this for functions which it implements
19605 to always fail with ENOSYS. Some functions are actually named
19606 something starting with __ and the normal name is an alias. */
19607#if defined __stub_$ac_func || defined __stub___$ac_func
19608choke me
19609#endif
19610
19611int
19612main ()
19613{
19614return $ac_func ();
19615 ;
19616 return 0;
19617}
19618_ACEOF
19619rm -f conftest.$ac_objext conftest$ac_exeext
19620if { (ac_try="$ac_link"
19621case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624esac
19625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19637esac
19638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19647esac
19648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 eval "$as_ac_var=yes"
19654else
19655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 eval "$as_ac_var=no"
19659fi
19660
19661rm -f core conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19663fi
19664ac_res=`eval echo '${'$as_ac_var'}'`
19665 { echo "$as_me:$LINENO: result: $ac_res" >&5
19666echo "${ECHO_T}$ac_res" >&6; }
19667if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000019668 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000019670_ACEOF
19671
19672fi
19673done
19674
19675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19677echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19678if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019680else
19681 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000019682if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019683 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000019684 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19685 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019686 if test $? -eq 0 ; then
19687 llvm_cv_llvmgcc_sanity="yes"
19688 fi
19689 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000019690fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019691fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019692{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19693echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019694
19695if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019696 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19697echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000019698 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019699 LLVMCC1=$llvmcc1path
19700
Reid Spencer502935f2004-12-22 05:56:56 +000019701 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019702 LLVMCC1PLUS=$llvmcc1pluspath
19703
Reid Spencer502935f2004-12-22 05:56:56 +000019704 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19705 LLVMGCCDIR=$llvmgccdir
19706
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000019707 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000019708 LLVMGCC_LANGS=$llvmgcclangs
19709
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019710 { echo "$as_me:$LINENO: result: ok" >&5
19711echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000019712fi
19713
Reid Spencer2bc7bd52004-11-29 12:29:58 +000019714SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000019715
19716
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000019717SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19718
19719
Reid Spencere9de0912004-08-20 09:03:57 +000019720# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019721# information into substitutions that will end up in Makefile.config.in
19722# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000019723if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000019724 prefix="/usr/local"
19725fi
Reid Spencere9de0912004-08-20 09:03:57 +000019726eval LLVM_PREFIX="${prefix}";
19727eval LLVM_BINDIR="${prefix}/bin";
19728eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000019729eval LLVM_DATADIR="${prefix}/share/llvm";
19730eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19731eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000019732eval LLVM_INCLUDEDIR="${prefix}/include";
19733eval LLVM_INFODIR="${prefix}/info";
19734eval LLVM_MANDIR="${prefix}/man";
19735LLVM_CONFIGTIME=`date`
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019747# Place the various directores into the config.h file as #defines so that we
19748# can know about the installation paths within LLVM.
19749
Reid Spencere9de0912004-08-20 09:03:57 +000019750cat >>confdefs.h <<_ACEOF
19751#define LLVM_PREFIX "$LLVM_PREFIX"
19752_ACEOF
19753
19754
19755cat >>confdefs.h <<_ACEOF
19756#define LLVM_BINDIR "$LLVM_BINDIR"
19757_ACEOF
19758
19759
19760cat >>confdefs.h <<_ACEOF
19761#define LLVM_LIBDIR "$LLVM_LIBDIR"
19762_ACEOF
19763
19764
19765cat >>confdefs.h <<_ACEOF
19766#define LLVM_DATADIR "$LLVM_DATADIR"
19767_ACEOF
19768
19769
19770cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000019771#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019772_ACEOF
19773
19774
19775cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000019776#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000019777_ACEOF
19778
19779
19780cat >>confdefs.h <<_ACEOF
19781#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19782_ACEOF
19783
19784
19785cat >>confdefs.h <<_ACEOF
19786#define LLVM_INFODIR "$LLVM_INFODIR"
19787_ACEOF
19788
19789
19790cat >>confdefs.h <<_ACEOF
19791#define LLVM_MANDIR "$LLVM_MANDIR"
19792_ACEOF
19793
19794
19795cat >>confdefs.h <<_ACEOF
19796#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19797_ACEOF
19798
19799
Eric Christopher790e11c2007-12-01 00:34:39 +000019800cat >>confdefs.h <<_ACEOF
19801#define LLVM_HOSTTRIPLE "$host"
19802_ACEOF
19803
19804
Gordon Henriksenc0efff82007-10-02 09:50:32 +000019805# Determine which bindings to build.
19806if test "$BINDINGS_TO_BUILD" = auto ; then
19807 BINDINGS_TO_BUILD=""
19808 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19809 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19810 fi
19811fi
19812BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19813
19814
19815# This isn't really configurey, but it avoids having to repeat the list in
19816# other files.
19817ALL_BINDINGS=ocaml
19818
19819
Gordon Henriksenf0915682007-10-02 16:42:22 +000019820# Do any work necessary to ensure that bindings have what they need.
19821binding_prereqs_failed=0
19822for a_binding in $BINDINGS_TO_BUILD ; do
19823 case "$a_binding" in
19824 ocaml)
19825 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019826 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19827echo "$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 +000019828 binding_prereqs_failed=1
19829 fi
19830 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019831 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19832echo "$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 +000019833 binding_prereqs_failed=1
19834 fi
19835 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019836 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19837echo "$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 +000019838 fi
19839 if test "x$with_ocaml_libdir" != xauto ; then
19840 OCAML_LIBDIR=$with_ocaml_libdir
19841
19842 else
19843 ocaml_stdlib="`"$OCAMLC" -where`"
19844 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19845 then
19846 # ocaml stdlib is beneath our prefix; use stdlib
19847 OCAML_LIBDIR=$ocaml_stdlib
19848
19849 else
19850 # ocaml stdlib is outside our prefix; use libdir/ocaml
19851 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19852
19853 fi
19854 fi
19855 ;;
19856 esac
19857done
19858if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019859 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19860echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19861 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000019862fi
19863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019864{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19865echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19866if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19867 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019868else
19869 ac_ext=cpp
19870ac_cpp='$CXXCPP $CPPFLAGS'
19871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19874
19875 oldcxxflags="$CXXFLAGS"
19876 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019877 cat >conftest.$ac_ext <<_ACEOF
19878/* confdefs.h. */
19879_ACEOF
19880cat confdefs.h >>conftest.$ac_ext
19881cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019882/* end confdefs.h. */
19883
19884int
19885main ()
19886{
19887
19888 ;
19889 return 0;
19890}
19891_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019892rm -f conftest.$ac_objext
19893if { (ac_try="$ac_compile"
19894case "(($ac_try" in
19895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19896 *) ac_try_echo=$ac_try;;
19897esac
19898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19910esac
19911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest.$ac_objext'
19917 { (case "(($ac_try" in
19918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919 *) ac_try_echo=$ac_try;;
19920esac
19921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922 (eval "$ac_try") 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019926 llvm_cv_cxx_visibility_inlines_hidden=yes
19927else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019928 echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019932fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019933
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19935 CXXFLAGS="$oldcxxflags"
19936 ac_ext=c
19937ac_cpp='$CPP $CPPFLAGS'
19938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940ac_compiler_gnu=$ac_cv_c_compiler_gnu
19941
19942
19943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019944{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19945echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000019946if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19947 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19948
19949else
19950 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19951
19952fi
19953
Gordon Henriksenf0915682007-10-02 16:42:22 +000019954
Nick Lewycky731c6ab2009-03-05 08:20:44 +000019955if test "$llvm_cv_link_use_r" = "yes" ; then
19956 RPATH="-Wl,-R"
19957else
19958 RPATH="-Wl,-rpath"
19959fi
19960
19961
19962if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19963 RDYNAMIC="-Wl,-export-dynamic"
19964else
19965 RDYNAMIC=""
19966fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019967
19968
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019969
Reid Spencera773bd52006-08-04 18:18:08 +000019970ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019971
Douglas Gregor1555a232009-06-16 20:12:29 +000019972ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19973
19974ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19975
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000019976ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19977
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000019978ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19979
Chandler Carruth8b67f772009-10-26 01:35:46 +000019980ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019981
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019982
Reid Spencera773bd52006-08-04 18:18:08 +000019983ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019984
19985
Reid Spencerea949cf2006-08-16 00:45:38 +000019986ac_config_files="$ac_config_files llvm.spec"
19987
19988
Reid Spencera773bd52006-08-04 18:18:08 +000019989ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000019990
19991
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000019992ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19993
19994
Reid Spencera773bd52006-08-04 18:18:08 +000019995ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000019996
19997
Reid Spencera773bd52006-08-04 18:18:08 +000019998ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000019999
Reid Spencera773bd52006-08-04 18:18:08 +000020000ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020001
20002
Reid Spencera773bd52006-08-04 18:18:08 +000020003ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020004
20005
Reid Spencera773bd52006-08-04 18:18:08 +000020006ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020007
20008
Reid Spencera773bd52006-08-04 18:18:08 +000020009ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020010
20011
Reid Spencer8b2e1412006-11-17 03:32:33 +000020012ac_config_commands="$ac_config_commands runtime/Makefile"
20013
20014
Reid Spencera773bd52006-08-04 18:18:08 +000020015ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020016
20017
Reid Spencera773bd52006-08-04 18:18:08 +000020018ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020019
20020
Bill Wendlingf24eb392009-01-04 23:12:30 +000020021ac_config_commands="$ac_config_commands unittests/Makefile"
20022
20023
Reid Spencera773bd52006-08-04 18:18:08 +000020024ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020025
20026
Reid Spencera773bd52006-08-04 18:18:08 +000020027ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020028
20029
Reid Spencera773bd52006-08-04 18:18:08 +000020030ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020031
20032
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020033ac_config_commands="$ac_config_commands bindings/Makefile"
20034
20035
20036ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20037
20038
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020039
John Criswell7a73b802003-06-30 21:59:07 +000020040cat >confcache <<\_ACEOF
20041# This file is a shell script that caches the results of configure
20042# tests run on this system so they can be shared between configure
20043# scripts and configure runs, see configure's option --config-cache.
20044# It is not useful on other systems. If it contains results you don't
20045# want to keep, you may remove or edit it.
20046#
20047# config.status only pays attention to the cache file if you give it
20048# the --recheck option to rerun configure.
20049#
John Criswell0c38eaf2003-09-10 15:17:25 +000020050# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020051# loading this file, other *unset* `ac_cv_foo' will be assigned the
20052# following values.
20053
20054_ACEOF
20055
20056# The following way of writing the cache mishandles newlines in values,
20057# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020058# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020059# Ultrix sh set writes to stderr and can't be redirected directly,
20060# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020061(
20062 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20063 eval ac_val=\$$ac_var
20064 case $ac_val in #(
20065 *${as_nl}*)
20066 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20068echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020069 esac
20070 case $ac_var in #(
20071 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020072 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020073 esac ;;
20074 esac
20075 done
20076
John Criswell7a73b802003-06-30 21:59:07 +000020077 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020078 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20079 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020080 # `set' does not quote correctly, so add quotes (double-quote
20081 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020082 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020083 "s/'/'\\\\''/g;
20084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020085 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020086 *)
20087 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020089 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020090 esac |
20091 sort
20092) |
John Criswell7a73b802003-06-30 21:59:07 +000020093 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020094 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020095 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020096 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020097 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20098 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020099 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20100 :end' >>confcache
20101if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20102 if test -w "$cache_file"; then
20103 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020104 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20105echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020106 cat confcache >$cache_file
20107 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020108 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20109echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020110 fi
20111fi
20112rm -f confcache
20113
20114test "x$prefix" = xNONE && prefix=$ac_default_prefix
20115# Let make expand exec_prefix.
20116test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20117
John Criswell7a73b802003-06-30 21:59:07 +000020118DEFS=-DHAVE_CONFIG_H
20119
John Criswell0c38eaf2003-09-10 15:17:25 +000020120ac_libobjs=
20121ac_ltlibobjs=
20122for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20123 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020124 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020125 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020126 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20127 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020128 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20129 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020130done
20131LIBOBJS=$ac_libobjs
20132
20133LTLIBOBJS=$ac_ltlibobjs
20134
20135
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020136if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020137 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20138Usually this means the macro was only invoked conditionally." >&5
20139echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20140Usually this means the macro was only invoked conditionally." >&2;}
20141 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020142fi
20143if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020144 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20145Usually this means the macro was only invoked conditionally." >&5
20146echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20147Usually this means the macro was only invoked conditionally." >&2;}
20148 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020149fi
John Criswell7a73b802003-06-30 21:59:07 +000020150
20151: ${CONFIG_STATUS=./config.status}
20152ac_clean_files_save=$ac_clean_files
20153ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020154{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20155echo "$as_me: creating $CONFIG_STATUS" >&6;}
20156cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020157#! $SHELL
20158# Generated by $as_me.
20159# Run this file to recreate the current configuration.
20160# Compiler output produced by configure, useful for debugging
20161# configure, is in config.log if it exists.
20162
20163debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020164ac_cs_recheck=false
20165ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020166SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020167_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020168
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020169cat >>$CONFIG_STATUS <<\_ACEOF
20170## --------------------- ##
20171## M4sh Initialization. ##
20172## --------------------- ##
20173
20174# Be Bourne compatible
20175if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020176 emulate sh
20177 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020178 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020179 # is contrary to our usage. Disable this feature.
20180 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020181 setopt NO_GLOB_SUBST
20182else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020183 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020184fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020185BIN_SH=xpg4; export BIN_SH # for Tru64
20186DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020187
John Criswell7a73b802003-06-30 21:59:07 +000020188
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020189# PATH needs CR
20190# Avoid depending upon Character Ranges.
20191as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20192as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20193as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20194as_cr_digits='0123456789'
20195as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020196
20197# The user is always right.
20198if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020199 echo "#! /bin/sh" >conf$$.sh
20200 echo "exit 0" >>conf$$.sh
20201 chmod +x conf$$.sh
20202 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20203 PATH_SEPARATOR=';'
20204 else
20205 PATH_SEPARATOR=:
20206 fi
20207 rm -f conf$$.sh
20208fi
20209
20210# Support unset when possible.
20211if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20212 as_unset=unset
20213else
20214 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020215fi
John Criswell7a73b802003-06-30 21:59:07 +000020216
Reid Spencera773bd52006-08-04 18:18:08 +000020217
20218# IFS
20219# We need space, tab and new line, in precisely that order. Quoting is
20220# there to prevent editors from complaining about space-tab.
20221# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20222# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020223as_nl='
20224'
Reid Spencera773bd52006-08-04 18:18:08 +000020225IFS=" "" $as_nl"
20226
20227# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020228case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020229 *[\\/]* ) as_myself=$0 ;;
20230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020231for as_dir in $PATH
20232do
20233 IFS=$as_save_IFS
20234 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20236done
Reid Spencera773bd52006-08-04 18:18:08 +000020237IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020238
Reid Spencera773bd52006-08-04 18:18:08 +000020239 ;;
20240esac
20241# We did not find ourselves, most probably we were run as `sh COMMAND'
20242# in which case we are not to be found in the path.
20243if test "x$as_myself" = x; then
20244 as_myself=$0
20245fi
20246if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020247 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20248 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020249fi
20250
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020251# Work around bugs in pre-3.0 UWIN ksh.
20252for as_var in ENV MAIL MAILPATH
20253do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020254done
20255PS1='$ '
20256PS2='> '
20257PS4='+ '
20258
20259# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020260for as_var in \
20261 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20262 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20263 LC_TELEPHONE LC_TIME
20264do
20265 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20266 eval $as_var=C; export $as_var
20267 else
20268 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020269 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270done
Torok Edwin871384f2010-01-26 08:50:50 +000020271
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020272# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020273if expr a : '\(a\)' >/dev/null 2>&1 &&
20274 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20275 as_expr=expr
20276else
20277 as_expr=false
20278fi
20279
20280if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20281 as_basename=basename
20282else
20283 as_basename=false
20284fi
20285
20286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020287# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020288as_me=`$as_basename -- "$0" ||
20289$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20290 X"$0" : 'X\(//\)$' \| \
20291 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020292echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020293 sed '/^.*\/\([^/][^/]*\)\/*$/{
20294 s//\1/
20295 q
20296 }
20297 /^X\/\(\/\/\)$/{
20298 s//\1/
20299 q
20300 }
20301 /^X\/\(\/\).*/{
20302 s//\1/
20303 q
20304 }
20305 s/.*/./; q'`
20306
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020307# CDPATH.
20308$as_unset CDPATH
20309
20310
20311
20312 as_lineno_1=$LINENO
20313 as_lineno_2=$LINENO
20314 test "x$as_lineno_1" != "x$as_lineno_2" &&
20315 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20316
20317 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20318 # uniformly replaced by the line number. The first 'sed' inserts a
20319 # line-number line after each line using $LINENO; the second 'sed'
20320 # does the real work. The second script uses 'N' to pair each
20321 # line-number line with the line containing $LINENO, and appends
20322 # trailing '-' during substitution so that $LINENO is not a special
20323 # case at line end.
20324 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20325 # scripts with optimization help from Paolo Bonzini. Blame Lee
20326 # E. McMahon (1931-1989) for sed's syntax. :-)
20327 sed -n '
20328 p
20329 /[$]LINENO/=
20330 ' <$as_myself |
20331 sed '
20332 s/[$]LINENO.*/&-/
20333 t lineno
20334 b
20335 :lineno
20336 N
20337 :loop
20338 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20339 t loop
20340 s/-\n.*//
20341 ' >$as_me.lineno &&
20342 chmod +x "$as_me.lineno" ||
20343 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20344 { (exit 1); exit 1; }; }
20345
20346 # Don't try to exec as it changes $[0], causing all sort of problems
20347 # (the dirname of $[0] is not the place where we might find the
20348 # original and so on. Autoconf is especially sensitive to this).
20349 . "./$as_me.lineno"
20350 # Exit status is that of the last command.
20351 exit
20352}
20353
20354
20355if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20356 as_dirname=dirname
20357else
20358 as_dirname=false
20359fi
Reid Spencera773bd52006-08-04 18:18:08 +000020360
20361ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020363-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020364 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020365 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020366 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020367 esac;;
20368*)
20369 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020370esac
20371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020372if expr a : '\(a\)' >/dev/null 2>&1 &&
20373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20374 as_expr=expr
20375else
20376 as_expr=false
20377fi
20378
John Criswell7a73b802003-06-30 21:59:07 +000020379rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020380if test -d conf$$.dir; then
20381 rm -f conf$$.dir/conf$$.file
20382else
20383 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020384 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020385fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020386echo >conf$$.file
20387if ln -s conf$$.file conf$$ 2>/dev/null; then
20388 as_ln_s='ln -s'
20389 # ... but there are two gotchas:
20390 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20391 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20392 # In both cases, we have to default to `cp -p'.
20393 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020394 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020395elif ln conf$$.file conf$$ 2>/dev/null; then
20396 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020397else
20398 as_ln_s='cp -p'
20399fi
Reid Spencera773bd52006-08-04 18:18:08 +000020400rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20401rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000020402
John Criswell0c38eaf2003-09-10 15:17:25 +000020403if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020404 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000020405else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020406 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000020407 as_mkdir_p=false
20408fi
20409
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020410# Find out whether ``test -x'' works. Don't use a zero-byte file, as
20411# systems may use methods other than mode bits to determine executability.
20412cat >conf$$.file <<_ASEOF
20413#! /bin/sh
20414exit 0
20415_ASEOF
20416chmod +x conf$$.file
20417if test -x conf$$.file >/dev/null 2>&1; then
20418 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000020419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020420 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000020421fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020422rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000020423
20424# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020425as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020426
20427# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020428as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000020429
20430
John Criswell7a73b802003-06-30 21:59:07 +000020431exec 6>&1
20432
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020433# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000020434# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000020435# values after options handling.
20436ac_log="
Tanya Lattner953042b2009-08-22 04:37:30 +000020437This file was extended by llvm $as_me 2.7svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020438generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000020439
20440 CONFIG_FILES = $CONFIG_FILES
20441 CONFIG_HEADERS = $CONFIG_HEADERS
20442 CONFIG_LINKS = $CONFIG_LINKS
20443 CONFIG_COMMANDS = $CONFIG_COMMANDS
20444 $ $0 $@
20445
Reid Spencera773bd52006-08-04 18:18:08 +000020446on `(hostname || uname -n) 2>/dev/null | sed 1q`
20447"
20448
John Criswell7a73b802003-06-30 21:59:07 +000020449_ACEOF
20450
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020451cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020452# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000020453config_files="$ac_config_files"
20454config_headers="$ac_config_headers"
20455config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000020456
Reid Spencera773bd52006-08-04 18:18:08 +000020457_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020458
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020459cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020460ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020461\`$as_me' instantiates files from templates according to the
20462current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000020463
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020464Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000020465
20466 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020467 -V, --version print version number, then exit
20468 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000020469 -d, --debug don't remove temporary files
20470 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020471 --file=FILE[:TEMPLATE]
20472 instantiate the configuration file FILE
20473 --header=FILE[:TEMPLATE]
20474 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000020475
20476Configuration files:
20477$config_files
20478
20479Configuration headers:
20480$config_headers
20481
John Criswellc764fbc2003-09-06 15:17:13 +000020482Configuration commands:
20483$config_commands
20484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020485Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000020486
Reid Spencera773bd52006-08-04 18:18:08 +000020487_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020488cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020489ac_cs_version="\\
Tanya Lattner953042b2009-08-22 04:37:30 +000020490llvm config.status 2.7svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491configured by $0, generated by GNU Autoconf 2.60,
20492 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000020493
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020494Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000020495This config.status script is free software; the Free Software Foundation
20496gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000020497
20498ac_pwd='$ac_pwd'
20499srcdir='$srcdir'
20500INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000020501_ACEOF
20502
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020503cat >>$CONFIG_STATUS <<\_ACEOF
20504# If no file are specified by the user, then we need to provide default
20505# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000020506ac_need_defaults=:
20507while test $# != 0
20508do
20509 case $1 in
20510 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000020511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000020513 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000020514 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020515 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000020516 ac_option=$1
20517 ac_optarg=$2
20518 ac_shift=shift
20519 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020520 esac
20521
John Criswell0c38eaf2003-09-10 15:17:25 +000020522 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000020523 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000020524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20525 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020527 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020528 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000020529 debug=: ;;
20530 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000020531 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020532 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020533 ac_need_defaults=false;;
20534 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000020535 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020536 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000020537 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000020538 --he | --h)
20539 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020540 { echo "$as_me: error: ambiguous option: $1
20541Try \`$0 --help' for more information." >&2
20542 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020543 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020544 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000020545 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20546 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20547 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000020548
20549 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020550 -*) { echo "$as_me: error: unrecognized option: $1
20551Try \`$0 --help' for more information." >&2
20552 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000020553
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020554 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000020555 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000020556
20557 esac
20558 shift
20559done
20560
John Criswell0c38eaf2003-09-10 15:17:25 +000020561ac_configure_extra_args=
20562
20563if $ac_cs_silent; then
20564 exec 6>/dev/null
20565 ac_configure_extra_args="$ac_configure_extra_args --silent"
20566fi
20567
20568_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020569cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020570if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020571 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20572 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000020573 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020574 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000020575fi
20576
John Criswell7a73b802003-06-30 21:59:07 +000020577_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020578cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020579exec 5>>config.log
20580{
20581 echo
20582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20583## Running $as_me. ##
20584_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020585 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000020586} >&5
John Criswell7a73b802003-06-30 21:59:07 +000020587
Reid Spencera773bd52006-08-04 18:18:08 +000020588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020589cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000020590#
Reid Spencera773bd52006-08-04 18:18:08 +000020591# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000020592#
Reid Spencerc0682832005-02-24 19:05:19 +000020593llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000020594
20595_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020596
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020597cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020598
20599# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000020600for ac_config_target in $ac_config_targets
20601do
Reid Spencera773bd52006-08-04 18:18:08 +000020602 case $ac_config_target in
20603 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000020604 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20605 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020606 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020607 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000020608 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020609 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000020610 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020611 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020612 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020613 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20614 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20615 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20616 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20617 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20618 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000020619 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020620 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20621 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000020622 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020623 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20624 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20625 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020626 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20627 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020628
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020629 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20630echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20631 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000020632 esac
20633done
20634
Reid Spencera773bd52006-08-04 18:18:08 +000020635
John Criswell7a73b802003-06-30 21:59:07 +000020636# If the user did not use the arguments to specify the items to instantiate,
20637# then the envvar interface is used. Set only those that are not.
20638# We use the long form for the default assignment because of an extremely
20639# bizarre bug on SunOS 4.1.3.
20640if $ac_need_defaults; then
20641 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20642 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000020643 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000020644fi
20645
John Criswell0c38eaf2003-09-10 15:17:25 +000020646# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000020647# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000020648# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000020649# Hook for its removal unless debugging.
20650# Note that there is a small window in which the directory will not be cleaned:
20651# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000020652$debug ||
20653{
Reid Spencera773bd52006-08-04 18:18:08 +000020654 tmp=
20655 trap 'exit_status=$?
20656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20657' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020658 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000020659}
John Criswell7a73b802003-06-30 21:59:07 +000020660# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000020661
John Criswell7a73b802003-06-30 21:59:07 +000020662{
Reid Spencera773bd52006-08-04 18:18:08 +000020663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000020664 test -n "$tmp" && test -d "$tmp"
20665} ||
20666{
Reid Spencera773bd52006-08-04 18:18:08 +000020667 tmp=./conf$$-$RANDOM
20668 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020669} ||
20670{
20671 echo "$me: cannot create a temporary directory in ." >&2
20672 { (exit 1); exit 1; }
20673}
John Criswell7a73b802003-06-30 21:59:07 +000020674
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020675#
20676# Set up the sed scripts for CONFIG_FILES section.
20677#
20678
20679# No need to generate the scripts if there are no CONFIG_FILES.
20680# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000020681if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000020682
20683_ACEOF
20684
Reid Spencera773bd52006-08-04 18:18:08 +000020685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020686
Reid Spencera773bd52006-08-04 18:18:08 +000020687ac_delim='%!_!# '
20688for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020689 cat >conf$$subs.sed <<_ACEOF
20690SHELL!$SHELL$ac_delim
20691PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20692PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20693PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20694PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20695PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20696PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20697exec_prefix!$exec_prefix$ac_delim
20698prefix!$prefix$ac_delim
20699program_transform_name!$program_transform_name$ac_delim
20700bindir!$bindir$ac_delim
20701sbindir!$sbindir$ac_delim
20702libexecdir!$libexecdir$ac_delim
20703datarootdir!$datarootdir$ac_delim
20704datadir!$datadir$ac_delim
20705sysconfdir!$sysconfdir$ac_delim
20706sharedstatedir!$sharedstatedir$ac_delim
20707localstatedir!$localstatedir$ac_delim
20708includedir!$includedir$ac_delim
20709oldincludedir!$oldincludedir$ac_delim
20710docdir!$docdir$ac_delim
20711infodir!$infodir$ac_delim
20712htmldir!$htmldir$ac_delim
20713dvidir!$dvidir$ac_delim
20714pdfdir!$pdfdir$ac_delim
20715psdir!$psdir$ac_delim
20716libdir!$libdir$ac_delim
20717localedir!$localedir$ac_delim
20718mandir!$mandir$ac_delim
20719DEFS!$DEFS$ac_delim
20720ECHO_C!$ECHO_C$ac_delim
20721ECHO_N!$ECHO_N$ac_delim
20722ECHO_T!$ECHO_T$ac_delim
20723LIBS!$LIBS$ac_delim
20724build_alias!$build_alias$ac_delim
20725host_alias!$host_alias$ac_delim
20726target_alias!$target_alias$ac_delim
20727LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20728subdirs!$subdirs$ac_delim
20729build!$build$ac_delim
20730build_cpu!$build_cpu$ac_delim
20731build_vendor!$build_vendor$ac_delim
20732build_os!$build_os$ac_delim
20733host!$host$ac_delim
20734host_cpu!$host_cpu$ac_delim
20735host_vendor!$host_vendor$ac_delim
20736host_os!$host_os$ac_delim
20737target!$target$ac_delim
20738target_cpu!$target_cpu$ac_delim
20739target_vendor!$target_vendor$ac_delim
20740target_os!$target_os$ac_delim
20741OS!$OS$ac_delim
20742HOST_OS!$HOST_OS$ac_delim
20743TARGET_OS!$TARGET_OS$ac_delim
20744LINKALL!$LINKALL$ac_delim
20745NOLINKALL!$NOLINKALL$ac_delim
20746LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20747LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20748ARCH!$ARCH$ac_delim
20749ENDIAN!$ENDIAN$ac_delim
20750CC!$CC$ac_delim
20751CFLAGS!$CFLAGS$ac_delim
20752LDFLAGS!$LDFLAGS$ac_delim
20753CPPFLAGS!$CPPFLAGS$ac_delim
20754ac_ct_CC!$ac_ct_CC$ac_delim
20755EXEEXT!$EXEEXT$ac_delim
20756OBJEXT!$OBJEXT$ac_delim
20757CPP!$CPP$ac_delim
20758GREP!$GREP$ac_delim
20759EGREP!$EGREP$ac_delim
20760LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20761BUILD_CC!$BUILD_CC$ac_delim
20762BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20763BUILD_CXX!$BUILD_CXX$ac_delim
20764CVSBUILD!$CVSBUILD$ac_delim
20765ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20766ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20767DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20768ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20769EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20770DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20771DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20772JIT!$JIT$ac_delim
20773TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20774ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20775ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20776ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020777ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20779LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20780LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20781LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20782LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20783ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020784CLANGPATH!$CLANGPATH$ac_delim
20785CLANGXXPATH!$CLANGXXPATH$ac_delim
20786ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020787_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000020788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000020790 break
20791 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020792 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20793echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20794 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000020795 else
20796 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000020797 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020798done
20799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020800ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20801if test -n "$ac_eof"; then
20802 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20803 ac_eof=`expr $ac_eof + 1`
20804fi
20805
20806cat >>$CONFIG_STATUS <<_ACEOF
20807cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20808/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000020809_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020810sed '
20811s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20812s/^/s,@/; s/!/@,|#_!!_#|/
20813:n
20814t n
20815s/'"$ac_delim"'$/,g/; t
20816s/$/\\/; p
20817N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20818' >>$CONFIG_STATUS <conf$$subs.sed
20819rm -f conf$$subs.sed
20820cat >>$CONFIG_STATUS <<_ACEOF
20821CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000020822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823
20824
20825ac_delim='%!_!# '
20826for ac_last_try in false false false false false :; do
20827 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020828OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020829EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20830BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20831ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020832ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20833CXX!$CXX$ac_delim
20834CXXFLAGS!$CXXFLAGS$ac_delim
20835ac_ct_CXX!$ac_ct_CXX$ac_delim
20836NM!$NM$ac_delim
20837ifGNUmake!$ifGNUmake$ac_delim
20838LN_S!$LN_S$ac_delim
20839CMP!$CMP$ac_delim
20840CP!$CP$ac_delim
20841DATE!$DATE$ac_delim
20842FIND!$FIND$ac_delim
20843MKDIR!$MKDIR$ac_delim
20844MV!$MV$ac_delim
20845RANLIB!$RANLIB$ac_delim
20846AR!$AR$ac_delim
20847RM!$RM$ac_delim
20848SED!$SED$ac_delim
20849TAR!$TAR$ac_delim
20850BINPWD!$BINPWD$ac_delim
20851GRAPHVIZ!$GRAPHVIZ$ac_delim
20852DOT!$DOT$ac_delim
20853FDP!$FDP$ac_delim
20854NEATO!$NEATO$ac_delim
20855TWOPI!$TWOPI$ac_delim
20856CIRCO!$CIRCO$ac_delim
20857GV!$GV$ac_delim
20858DOTTY!$DOTTY$ac_delim
20859PERL!$PERL$ac_delim
20860HAVE_PERL!$HAVE_PERL$ac_delim
20861INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20862INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20863INSTALL_DATA!$INSTALL_DATA$ac_delim
20864BZIP2!$BZIP2$ac_delim
20865DOXYGEN!$DOXYGEN$ac_delim
20866GROFF!$GROFF$ac_delim
20867GZIP!$GZIP$ac_delim
20868POD2HTML!$POD2HTML$ac_delim
20869POD2MAN!$POD2MAN$ac_delim
20870RUNTEST!$RUNTEST$ac_delim
20871TCLSH!$TCLSH$ac_delim
20872ZIP!$ZIP$ac_delim
20873OCAMLC!$OCAMLC$ac_delim
20874OCAMLOPT!$OCAMLOPT$ac_delim
20875OCAMLDEP!$OCAMLDEP$ac_delim
20876OCAMLDOC!$OCAMLDOC$ac_delim
20877GAS!$GAS$ac_delim
20878INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20879INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20880CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20881CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20882LIBADD_DL!$LIBADD_DL$ac_delim
20883LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20884LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20885LLVMGCC!$LLVMGCC$ac_delim
20886LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000020887LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20889NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20890USE_UDIS86!$USE_UDIS86$ac_delim
20891USE_OPROFILE!$USE_OPROFILE$ac_delim
20892HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20893HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20894MMAP_FILE!$MMAP_FILE$ac_delim
20895LLVMCC1!$LLVMCC1$ac_delim
20896LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20897LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020898LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20899SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020900SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020901LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20902LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20903LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20904LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20905LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20906LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20907LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20908LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20909LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20910LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20911BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20912ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20913OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20914ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20915RPATH!$RPATH$ac_delim
20916RDYNAMIC!$RDYNAMIC$ac_delim
20917LIBOBJS!$LIBOBJS$ac_delim
20918LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000020919_ACEOF
20920
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020921 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020922 break
20923 elif $ac_last_try; then
20924 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20925echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20926 { (exit 1); exit 1; }; }
20927 else
20928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20929 fi
20930done
20931
20932ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20933if test -n "$ac_eof"; then
20934 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20935 ac_eof=`expr $ac_eof + 1`
20936fi
20937
20938cat >>$CONFIG_STATUS <<_ACEOF
20939cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20940/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20941_ACEOF
20942sed '
20943s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20944s/^/s,@/; s/!/@,|#_!!_#|/
20945:n
20946t n
20947s/'"$ac_delim"'$/,g/; t
20948s/$/\\/; p
20949N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20950' >>$CONFIG_STATUS <conf$$subs.sed
20951rm -f conf$$subs.sed
20952cat >>$CONFIG_STATUS <<_ACEOF
20953:end
20954s/|#_!!_#|//g
20955CEOF$ac_eof
20956_ACEOF
20957
20958
Reid Spencera773bd52006-08-04 18:18:08 +000020959# VPATH may cause trouble with some makes, so we remove $(srcdir),
20960# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20961# trailing colons and then remove the whole line if VPATH becomes empty
20962# (actually we leave an empty line to preserve line numbers).
20963if test "x$srcdir" = x.; then
20964 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20965s/:*\$(srcdir):*/:/
20966s/:*\${srcdir}:*/:/
20967s/:*@srcdir@:*/:/
20968s/^\([^=]*=[ ]*\):*/\1/
20969s/:*$//
20970s/^[^=]*=[ ]*$//
20971}'
20972fi
20973
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020974cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020975fi # test -n "$CONFIG_FILES"
20976
Reid Spencera773bd52006-08-04 18:18:08 +000020977
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000020979do
20980 case $ac_tag in
20981 :[FHLC]) ac_mode=$ac_tag; continue;;
20982 esac
20983 case $ac_mode$ac_tag in
20984 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020985 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20986echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20987 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000020988 :[FH]-) ac_tag=-:-;;
20989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20990 esac
20991 ac_save_IFS=$IFS
20992 IFS=:
20993 set x $ac_tag
20994 IFS=$ac_save_IFS
20995 shift
20996 ac_file=$1
20997 shift
20998
20999 case $ac_mode in
21000 :L) ac_source=$1;;
21001 :[FH])
21002 ac_file_inputs=
21003 for ac_f
21004 do
21005 case $ac_f in
21006 -) ac_f="$tmp/stdin";;
21007 *) # Look for the file first in the build tree, then in the source tree
21008 # (if the path is not absolute). The absolute path cannot be DOS-style,
21009 # because $ac_f cannot contain `:'.
21010 test -f "$ac_f" ||
21011 case $ac_f in
21012 [\\/$]*) false;;
21013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21014 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021015 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21016echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21017 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021018 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021019 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021020 done
21021
21022 # Let's still pretend it is `configure' which instantiates (i.e., don't
21023 # use $as_me), people would be surprised to read:
21024 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021025 configure_input="Generated from "`IFS=:
21026 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021027 if test x"$ac_file" != x-; then
21028 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021029 { echo "$as_me:$LINENO: creating $ac_file" >&5
21030echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021031 fi
21032
21033 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021034 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021035 esac
21036 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021037 esac
21038
Reid Spencera773bd52006-08-04 18:18:08 +000021039 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021041 X"$ac_file" : 'X\(//\)[^/]' \| \
21042 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021044echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21046 s//\1/
21047 q
21048 }
21049 /^X\(\/\/\)[^/].*/{
21050 s//\1/
21051 q
21052 }
21053 /^X\(\/\/\)$/{
21054 s//\1/
21055 q
21056 }
21057 /^X\(\/\).*/{
21058 s//\1/
21059 q
21060 }
21061 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021062 { as_dir="$ac_dir"
21063 case $as_dir in #(
21064 -*) as_dir=./$as_dir;;
21065 esac
21066 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21067 as_dirs=
21068 while :; do
21069 case $as_dir in #(
21070 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21071 *) as_qdir=$as_dir;;
21072 esac
21073 as_dirs="'$as_qdir' $as_dirs"
21074 as_dir=`$as_dirname -- "$as_dir" ||
21075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076 X"$as_dir" : 'X\(//\)[^/]' \| \
21077 X"$as_dir" : 'X\(//\)$' \| \
21078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21079echo X"$as_dir" |
21080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21081 s//\1/
21082 q
21083 }
21084 /^X\(\/\/\)[^/].*/{
21085 s//\1/
21086 q
21087 }
21088 /^X\(\/\/\)$/{
21089 s//\1/
21090 q
21091 }
21092 /^X\(\/\).*/{
21093 s//\1/
21094 q
21095 }
21096 s/.*/./; q'`
21097 test -d "$as_dir" && break
21098 done
21099 test -z "$as_dirs" || eval "mkdir $as_dirs"
21100 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21101echo "$as_me: error: cannot create directory $as_dir" >&2;}
21102 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021103 ac_builddir=.
21104
Reid Spencera773bd52006-08-04 18:18:08 +000021105case "$ac_dir" in
21106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21107*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021109 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021110 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021111 case $ac_top_builddir_sub in
21112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21114 esac ;;
21115esac
21116ac_abs_top_builddir=$ac_pwd
21117ac_abs_builddir=$ac_pwd$ac_dir_suffix
21118# for backward compatibility:
21119ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021120
21121case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021122 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021123 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021124 ac_top_srcdir=$ac_top_builddir_sub
21125 ac_abs_top_srcdir=$ac_pwd ;;
21126 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021127 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021128 ac_top_srcdir=$srcdir
21129 ac_abs_top_srcdir=$srcdir ;;
21130 *) # Relative name.
21131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21132 ac_top_srcdir=$ac_top_build_prefix$srcdir
21133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021134esac
Reid Spencera773bd52006-08-04 18:18:08 +000021135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021136
John Criswell7a73b802003-06-30 21:59:07 +000021137
Reid Spencera773bd52006-08-04 18:18:08 +000021138 case $ac_mode in
21139 :F)
21140 #
21141 # CONFIG_FILE
21142 #
John Criswell7a73b802003-06-30 21:59:07 +000021143
21144 case $INSTALL in
21145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021146 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021147 esac
John Criswell7a73b802003-06-30 21:59:07 +000021148_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021150cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021151# If the template does not know about datarootdir, expand it.
21152# FIXME: This hack should be removed a few years after 2.60.
21153ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021154
21155case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021156 p
21157 q
21158}
21159/@datadir@/p
21160/@docdir@/p
21161/@infodir@/p
21162/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021163/@mandir@/p
21164' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021165*datarootdir*) ac_datarootdir_seen=yes;;
21166*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021167 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21168echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021169_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021171 ac_datarootdir_hack='
21172 s&@datadir@&$datadir&g
21173 s&@docdir@&$docdir&g
21174 s&@infodir@&$infodir&g
21175 s&@localedir@&$localedir&g
21176 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021177 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021178esac
21179_ACEOF
21180
21181# Neutralize VPATH when `$srcdir' = `.'.
21182# Shell code in configure.ac might set extrasub.
21183# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184cat >>$CONFIG_STATUS <<_ACEOF
21185 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021186$extrasub
21187_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021188cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021189:t
21190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021191s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021192s&@top_builddir@&$ac_top_builddir_sub&;t t
21193s&@srcdir@&$ac_srcdir&;t t
21194s&@abs_srcdir@&$ac_abs_srcdir&;t t
21195s&@top_srcdir@&$ac_top_srcdir&;t t
21196s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21197s&@builddir@&$ac_builddir&;t t
21198s&@abs_builddir@&$ac_abs_builddir&;t t
21199s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21200s&@INSTALL@&$ac_INSTALL&;t t
21201$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021202" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021203
Reid Spencera773bd52006-08-04 18:18:08 +000021204test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21205 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021207 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021208which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021209echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021210which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021211
Reid Spencera773bd52006-08-04 18:18:08 +000021212 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021213 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021214 -) cat "$tmp/out"; rm -f "$tmp/out";;
21215 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21216 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021217 ;;
21218 :H)
21219 #
21220 # CONFIG_HEADER
21221 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021222_ACEOF
21223
21224# Transform confdefs.h into a sed script `conftest.defines', that
21225# substitutes the proper values into config.h.in to produce config.h.
21226rm -f conftest.defines conftest.tail
21227# First, append a space to every undef/define line, to ease matching.
21228echo 's/$/ /' >conftest.defines
21229# Then, protect against being on the right side of a sed subst, or in
21230# an unquoted here document, in config.status. If some macros were
21231# called several times there might be several #defines for the same
21232# symbol, which is useless. But do not sort them, since the last
21233# AC_DEFINE must be honored.
21234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21235# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21236# NAME is the cpp macro being defined, VALUE is the value it is being given.
21237# PARAMS is the parameter list in the macro definition--in most cases, it's
21238# just an empty string.
21239ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21240ac_dB='\\)[ (].*,\\1define\\2'
21241ac_dC=' '
21242ac_dD=' ,'
21243
21244uniq confdefs.h |
21245 sed -n '
21246 t rset
21247 :rset
21248 s/^[ ]*#[ ]*define[ ][ ]*//
21249 t ok
21250 d
21251 :ok
21252 s/[\\&,]/\\&/g
21253 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21254 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21255 ' >>conftest.defines
21256
21257# Remove the space that was appended to ease matching.
21258# Then replace #undef with comments. This is necessary, for
21259# example, in the case of _POSIX_SOURCE, which is predefined and required
21260# on some systems where configure will not decide to define it.
21261# (The regexp can be short, since the line contains either #define or #undef.)
21262echo 's/ $//
21263s,^[ #]*u.*,/* & */,' >>conftest.defines
21264
21265# Break up conftest.defines:
21266ac_max_sed_lines=50
21267
21268# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21269# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21270# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21271# et cetera.
21272ac_in='$ac_file_inputs'
21273ac_out='"$tmp/out1"'
21274ac_nxt='"$tmp/out2"'
21275
21276while :
21277do
21278 # Write a here document:
21279 cat >>$CONFIG_STATUS <<_ACEOF
21280 # First, check the format of the line:
21281 cat >"\$tmp/defines.sed" <<\\CEOF
21282/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21283/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21284b
21285:def
21286_ACEOF
21287 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21288 echo 'CEOF
21289 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21290 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21291 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21292 grep . conftest.tail >/dev/null || break
21293 rm -f conftest.defines
21294 mv conftest.tail conftest.defines
21295done
21296rm -f conftest.defines conftest.tail
21297
21298echo "ac_result=$ac_in" >>$CONFIG_STATUS
21299cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021300 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021301 echo "/* $configure_input */" >"$tmp/config.h"
21302 cat "$ac_result" >>"$tmp/config.h"
21303 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21304 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21305echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021306 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021307 rm -f $ac_file
21308 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021309 fi
21310 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021311 echo "/* $configure_input */"
21312 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021313 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021314 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021315 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021317 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21318echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021319 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021320 esac
John Criswell7a73b802003-06-30 21:59:07 +000021321
Reid Spencera773bd52006-08-04 18:18:08 +000021322
21323 case $ac_file$ac_mode in
21324 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021325 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021326 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021327 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021328 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021329 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021330 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021331 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021332 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021333 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021334 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021335 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021336 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021337 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021338 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021339 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021340 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021341 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021342 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021343 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021344 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021345 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021346 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021347 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021348 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021349 ${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 +000021350
21351 esac
21352done # for ac_tag
21353
John Criswell7a73b802003-06-30 21:59:07 +000021354
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021355{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021356_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021357chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021358ac_clean_files=$ac_clean_files_save
21359
21360
21361# configure is writing to config.log, and then calls config.status.
21362# config.status does its own redirection, appending to config.log.
21363# Unfortunately, on DOS this fails, as config.log is still kept open
21364# by configure, so config.status won't be able to write to it; its
21365# output is simply discarded. So we exec the FD to /dev/null,
21366# effectively closing config.log, so it can be properly (re)opened and
21367# appended to by config.status. When coming back to configure, we
21368# need to make the FD available again.
21369if test "$no_create" != yes; then
21370 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021371 ac_config_status_args=
21372 test "$silent" = yes &&
21373 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021374 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021376 exec 5>>config.log
21377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21378 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021380fi
21381
John Criswell12399a12003-09-30 15:55:44 +000021382#
21383# CONFIG_SUBDIRS section.
21384#
21385if test "$no_recursion" != yes; then
21386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021387 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021388 ac_sub_configure_args=
21389 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021390 eval "set x $ac_configure_args"
21391 shift
21392 for ac_arg
21393 do
John Criswell12399a12003-09-30 15:55:44 +000021394 if test -n "$ac_prev"; then
21395 ac_prev=
21396 continue
21397 fi
21398 case $ac_arg in
21399 -cache-file | --cache-file | --cache-fil | --cache-fi \
21400 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21401 ac_prev=cache_file ;;
21402 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21403 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21404 | --c=*)
21405 ;;
21406 --config-cache | -C)
21407 ;;
21408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21409 ac_prev=srcdir ;;
21410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21411 ;;
21412 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21413 ac_prev=prefix ;;
21414 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21415 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021416 *)
21417 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021418 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021419 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021420 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000021421 esac
21422 done
21423
21424 # Always prepend --prefix to ensure using the same prefix
21425 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000021426 ac_arg="--prefix=$prefix"
21427 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021428 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021429 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021430 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000021431
21432 ac_popdir=`pwd`
21433 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21434
21435 # Do not complain, so a configure script can configure whichever
21436 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000021437 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000021438
Reid Spencera773bd52006-08-04 18:18:08 +000021439 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021440 echo "$as_me:$LINENO: $ac_msg" >&5
21441 echo "$ac_msg" >&6
21442 { as_dir="$ac_dir"
21443 case $as_dir in #(
21444 -*) as_dir=./$as_dir;;
21445 esac
21446 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21447 as_dirs=
21448 while :; do
21449 case $as_dir in #(
21450 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21451 *) as_qdir=$as_dir;;
21452 esac
21453 as_dirs="'$as_qdir' $as_dirs"
21454 as_dir=`$as_dirname -- "$as_dir" ||
21455$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21456 X"$as_dir" : 'X\(//\)[^/]' \| \
21457 X"$as_dir" : 'X\(//\)$' \| \
21458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21459echo X"$as_dir" |
21460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21461 s//\1/
21462 q
21463 }
21464 /^X\(\/\/\)[^/].*/{
21465 s//\1/
21466 q
21467 }
21468 /^X\(\/\/\)$/{
21469 s//\1/
21470 q
21471 }
21472 /^X\(\/\).*/{
21473 s//\1/
21474 q
21475 }
21476 s/.*/./; q'`
21477 test -d "$as_dir" && break
21478 done
21479 test -z "$as_dirs" || eval "mkdir $as_dirs"
21480 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21481echo "$as_me: error: cannot create directory $as_dir" >&2;}
21482 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000021483 ac_builddir=.
21484
Reid Spencera773bd52006-08-04 18:18:08 +000021485case "$ac_dir" in
21486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21487*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021489 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021491 case $ac_top_builddir_sub in
21492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21494 esac ;;
21495esac
21496ac_abs_top_builddir=$ac_pwd
21497ac_abs_builddir=$ac_pwd$ac_dir_suffix
21498# for backward compatibility:
21499ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000021500
21501case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021502 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000021503 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021504 ac_top_srcdir=$ac_top_builddir_sub
21505 ac_abs_top_srcdir=$ac_pwd ;;
21506 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000021507 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021508 ac_top_srcdir=$srcdir
21509 ac_abs_top_srcdir=$srcdir ;;
21510 *) # Relative name.
21511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21512 ac_top_srcdir=$ac_top_build_prefix$srcdir
21513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000021514esac
Reid Spencera773bd52006-08-04 18:18:08 +000021515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000021516
21517
Reid Spencera773bd52006-08-04 18:18:08 +000021518 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000021519
21520 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000021521 if test -f "$ac_srcdir/configure.gnu"; then
21522 ac_sub_configure=$ac_srcdir/configure.gnu
21523 elif test -f "$ac_srcdir/configure"; then
21524 ac_sub_configure=$ac_srcdir/configure
21525 elif test -f "$ac_srcdir/configure.in"; then
21526 # This should be Cygnus configure.
21527 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000021528 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021529 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21530echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000021531 ac_sub_configure=
21532 fi
21533
21534 # The recursion is here.
21535 if test -n "$ac_sub_configure"; then
21536 # Make the cache file name correct relative to the subdirectory.
21537 case $cache_file in
21538 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021539 *) # Relative name.
21540 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000021541 esac
21542
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021543 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21544echo "$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 +000021545 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000021546 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21547 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021548 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21549echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21550 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000021551 fi
21552
Reid Spencera773bd52006-08-04 18:18:08 +000021553 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000021554 done
21555fi
21556