blob: 9c807946d8793178606f18f762c9d975211821e2 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Eric Christopherb26697c2010-09-06 18:47:10 +00003# Generated by GNU Autoconf 2.60 for llvm 2.9svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Eric Christopherb26697c2010-09-06 18:47:10 +0000564PACKAGE_VERSION='2.9svn'
565PACKAGE_STRING='llvm 2.9svn'
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
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000644ENABLE_POLLY
645LLVM_HAS_POLLY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000646build
647build_cpu
648build_vendor
649build_os
650host
651host_cpu
652host_vendor
653host_os
654target
655target_cpu
656target_vendor
657target_os
658OS
659HOST_OS
660TARGET_OS
661LINKALL
662NOLINKALL
663LLVM_ON_UNIX
664LLVM_ON_WIN32
665ARCH
666ENDIAN
667CC
668CFLAGS
669LDFLAGS
670CPPFLAGS
671ac_ct_CC
672EXEEXT
673OBJEXT
674CPP
675GREP
676EGREP
677LLVM_CROSS_COMPILING
678BUILD_CC
679BUILD_EXEEXT
680BUILD_CXX
681CVSBUILD
682ENABLE_OPTIMIZED
683ENABLE_PROFILING
684DISABLE_ASSERTIONS
685ENABLE_EXPENSIVE_CHECKS
686EXPENSIVE_CHECKS
687DEBUG_RUNTIME
688DEBUG_SYMBOLS
689JIT
690TARGET_HAS_JIT
691ENABLE_DOXYGEN
692ENABLE_THREADS
693ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000694ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000695ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000696TARGETS_TO_BUILD
697LLVM_ENUM_TARGETS
698LLVM_ENUM_ASM_PRINTERS
699LLVM_ENUM_ASM_PARSERS
700LLVM_ENUM_DISASSEMBLERS
701ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000702CLANGPATH
703CLANGXXPATH
704ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000705OPTIMIZE_OPTION
706EXTRA_OPTIONS
707BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000708CXX
709CXXFLAGS
710ac_ct_CXX
711NM
712ifGNUmake
713LN_S
714CMP
715CP
716DATE
717FIND
718MKDIR
719MV
720RANLIB
721AR
722RM
723SED
724TAR
725BINPWD
726GRAPHVIZ
727DOT
728FDP
729NEATO
730TWOPI
731CIRCO
732GV
733DOTTY
Dan Gohman48fd5a72010-09-27 16:28:34 +0000734XDOT_PY
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000735PERL
736HAVE_PERL
737INSTALL_PROGRAM
738INSTALL_SCRIPT
739INSTALL_DATA
740BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000741CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000742DOXYGEN
743GROFF
744GZIP
745POD2HTML
746POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000747PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000748RUNTEST
749TCLSH
750ZIP
751OCAMLC
752OCAMLOPT
753OCAMLDEP
754OCAMLDOC
755GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000756HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000757INSTALL_LTDL_TRUE
758INSTALL_LTDL_FALSE
759CONVENIENCE_LTDL_TRUE
760CONVENIENCE_LTDL_FALSE
761LIBADD_DL
762LLVMGCCCOMMAND
763LLVMGXXCOMMAND
764LLVMGCC
765LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000766LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000767NO_VARIADIC_MACROS
768NO_MISSING_FIELD_INITIALIZERS
769USE_UDIS86
770USE_OPROFILE
771HAVE_PTHREAD
772HUGE_VAL_SANITY
773MMAP_FILE
Tobias Grossera84b5672010-11-10 16:31:34 +0000774LLVMCC_EMITIR_FLAG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000775LLVMCC1
776LLVMCC1PLUS
777LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000778LLVMGCC_LANGS
Tobias Grossera84b5672010-11-10 16:31:34 +0000779LLVMGCC_DRAGONEGG
780LLVMGCC_DISABLEOPT_FLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000781SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000782SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000783LLVM_PREFIX
784LLVM_BINDIR
785LLVM_LIBDIR
786LLVM_DATADIR
787LLVM_DOCSDIR
788LLVM_ETCDIR
789LLVM_INCLUDEDIR
790LLVM_INFODIR
791LLVM_MANDIR
792LLVM_CONFIGTIME
793BINDINGS_TO_BUILD
794ALL_BINDINGS
795OCAML_LIBDIR
796ENABLE_VISIBILITY_INLINES_HIDDEN
797RPATH
798RDYNAMIC
799LIBOBJS
800LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000801ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000802 ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808CPPFLAGS
809CPP
810CXX
811CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000812CCC'
John Criswell0157f502010-03-19 21:31:39 +0000813ac_subdirs_all='projects/llvm-gcc
814projects/test-suite
815projects/llvm-test
816projects/poolalloc
817projects/llvm-poolalloc
818projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000820projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000821projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000822projects/llvm-java
823projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000824projects/safecode
Tobias Grosserbaaadb22010-10-30 00:54:26 +0000825projects/llvm-kernel
826tools/polly'
John Criswell7a73b802003-06-30 21:59:07 +0000827
828# Initialize some variables set by options.
829ac_init_help=
830ac_init_version=false
831# The variables have the same names as the options, with
832# dashes changed to underlines.
833cache_file=/dev/null
834exec_prefix=NONE
835no_create=
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
844verbose=
845x_includes=NONE
846x_libraries=NONE
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000853# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000862includedir='${prefix}/include'
863oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000864docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000873
874ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000875ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000876for ac_option
877do
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000880 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000881 ac_prev=
882 continue
883 fi
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_option in
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *) ac_optarg=yes ;;
888 esac
John Criswell7a73b802003-06-30 21:59:07 +0000889
890 # Accept the important Cygnus configure options, so we can diagnose typos.
891
Reid Spencera773bd52006-08-04 18:18:08 +0000892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
900
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
915
Reid Spencera773bd52006-08-04 18:18:08 +0000916 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000917 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000919 datadir=$ac_optarg ;;
920
Reid Spencera773bd52006-08-04 18:18:08 +0000921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
John Criswell7a73b802003-06-30 21:59:07 +0000928 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000929 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000930 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000931 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
932 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
933 { (exit 1); exit 1; }; }
934 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
935 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000946
947 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000948 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000949 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000950 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
951 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
952 { (exit 1); exit 1; }; }
953 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
954 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
Reid Spencera773bd52006-08-04 18:18:08 +0000981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
John Criswell7a73b802003-06-30 21:59:07 +0000987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
Reid Spencera773bd52006-08-04 18:18:08 +00001011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
John Criswell7a73b802003-06-30 21:59:07 +00001016 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001017 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
Reid Spencera773bd52006-08-04 18:18:08 +00001085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
John Criswell7a73b802003-06-30 21:59:07 +00001095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1104
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1115
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1120
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1125
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1132
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1137
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1140
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1143
1144 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001145 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001146 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package| sed 's/-/_/g'`
1151 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001152
1153 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001154 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001155 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001156 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1157 { echo "$as_me: error: invalid package name: $ac_package" >&2
1158 { (exit 1); exit 1; }; }
1159 ac_package=`echo $ac_package | sed 's/-/_/g'`
1160 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001180 -*) { echo "$as_me: error: unrecognized option: $ac_option
1181Try \`$0 --help' for more information." >&2
1182 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001183 ;;
1184
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001188 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1189 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1190 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001191 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001196 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001198 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 ;;
1201
1202 esac
1203done
1204
1205if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001207 { echo "$as_me: error: missing argument to $ac_option" >&2
1208 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001209fi
1210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001211# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001212for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001216do
Reid Spencera773bd52006-08-04 18:18:08 +00001217 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001218 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001219 [\\/$]* | ?:[\\/]* ) continue;;
1220 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001221 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001222 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1223 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001224done
1225
1226# There might be people who depend on the old broken behavior: `$host'
1227# used to hold the argument of --host etc.
1228# FIXME: To remove some day.
1229build=$build_alias
1230host=$host_alias
1231target=$target_alias
1232
1233# FIXME: To remove some day.
1234if test "x$host_alias" != x; then
1235 if test "x$build_alias" = x; then
1236 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001237 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001238 If a cross compiler is detected then cross compile mode will be used." >&2
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242fi
1243
1244ac_tool_prefix=
1245test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247test "$silent" = yes && exec 6>/dev/null
1248
1249
Reid Spencera773bd52006-08-04 18:18:08 +00001250ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251ac_ls_di=`ls -di .` &&
1252ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001253 { echo "$as_me: error: Working directory cannot be determined" >&2
1254 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001256 { echo "$as_me: error: pwd does not report name of working directory" >&2
1257 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001258
1259
John Criswell7a73b802003-06-30 21:59:07 +00001260# Find the source files, if location was not specified.
1261if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001263 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001264 ac_confdir=`$as_dirname -- "$0" ||
1265$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$0" : 'X\(//\)[^/]' \| \
1267 X"$0" : 'X\(//\)$' \| \
1268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1269echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001287 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001288 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001289 srcdir=..
1290 fi
1291else
1292 ac_srcdir_defaulted=no
1293fi
Reid Spencera773bd52006-08-04 18:18:08 +00001294if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001296 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1297 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001298fi
Reid Spencera773bd52006-08-04 18:18:08 +00001299ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001301 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1302 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001303 pwd)`
1304# When building in place, set srcdir=.
1305if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 srcdir=.
1307fi
1308# Remove unnecessary trailing slashes from srcdir.
1309# Double slashes in file names in object file debugging info
1310# mess up M-x gdb in Emacs.
1311case $srcdir in
1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313esac
1314for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1319done
John Criswell7a73b802003-06-30 21:59:07 +00001320
1321#
1322# Report the --help message.
1323#
1324if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1327 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001328\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001329
1330Usage: $0 [OPTION]... [VAR=VALUE]...
1331
1332To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333VAR=VALUE. See below for descriptions of some of the useful variables.
1334
1335Defaults for the options are specified in brackets.
1336
1337Configuration:
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347
John Criswell7a73b802003-06-30 21:59:07 +00001348Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001350 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001352 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001353
1354By default, \`make install' will install all the files in
1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357for instance \`--prefix=\$HOME'.
1358
1359For better control, use the options below.
1360
1361Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001381_ACEOF
1382
1383 cat <<\_ACEOF
1384
1385System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 --target=TARGET configure for building compilers for TARGET [HOST]
1389_ACEOF
1390fi
1391
1392if test -n "$ac_init_help"; then
1393 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001394 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001395 esac
1396 cat <<\_ACEOF
1397
1398Optional Features:
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Tobias Grosserbaaadb22010-10-30 00:54:26 +00001401 --enable-polly Use polly if available (default is YES)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001402 --enable-optimized Compile with optimizations enabled (default is NO)
1403 --enable-profiling Compile with profiling enabled (default is NO)
1404 --enable-assertions Compile with assertion checks enabled (default is
1405 YES)
David Greenea696d242007-06-28 19:36:08 +00001406 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001407 Compile with expensive debug checks enabled (default
1408 is NO)
1409 --enable-debug-runtime Build runtime libs with debug symbols (default is
1410 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001411 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1412 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001413 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001414 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001415 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001416 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001417 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001418 --enable-shared Build a shared library and link tools against it
1419 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001420 --enable-timestamps Enable embedding timestamp information in build
1421 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001422 --enable-targets Build specific host targets: all or
1423 target1,target2,... Valid targets are: host, x86,
1424 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Eric Christopher14074e82010-10-12 02:42:05 +00001425 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1426 (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001427 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1428 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001429 --enable-bindings Build specific language bindings:
1430 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001431 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001432 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001433
1434Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001437 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1438 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001439 --with-llvmgcc Specify location of llvm-gcc driver (default
1440 searches PATH)
1441 --with-llvmgxx Specify location of llvm-g++ driver (default
1442 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001443 --with-clang Specify location of clang compiler (default is
1444 --with-built-clang)
1445 --with-built-clang Use the compiled Clang as the LLVM compiler
1446 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001447 --with-optimize-option Select the compiler options to use for optimized
1448 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001449 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001450 --with-ocaml-libdir Specify install location for ocaml bindings (default
1451 is stdlib)
Chandler Carruth6b241162010-10-19 08:21:25 +00001452 --with-clang-resource-dir
1453 Relative directory from the Clang binary for
1454 resource files
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001455 --with-c-include-dirs Colon separated list of directories clang will
1456 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001457 --with-cxx-include-root Directory with the libstdc++ headers.
1458 --with-cxx-include-arch Architecture of the libstdc++ headers.
1459 --with-cxx-include-32bit-dir
1460 32 bit multilib dir.
1461 --with-cxx-include-64bit-dir
1462 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001463 --with-binutils-include Specify path to binutils/include/ containing
1464 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001465 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001466 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1467 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001468 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001469 --with-oprofile=<prefix>
1470 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001473 CC C compiler command
1474 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001478 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001479 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <llvmbugs@cs.uiuc.edu>.
1487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001488ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001494 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001495 ac_builddir=.
1496
Reid Spencera773bd52006-08-04 18:18:08 +00001497case "$ac_dir" in
1498.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001501 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001502 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001503 case $ac_top_builddir_sub in
1504 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 esac ;;
1507esac
1508ac_abs_top_builddir=$ac_pwd
1509ac_abs_builddir=$ac_pwd$ac_dir_suffix
1510# for backward compatibility:
1511ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001512
1513case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001514 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001515 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001516 ac_top_srcdir=$ac_top_builddir_sub
1517 ac_abs_top_srcdir=$ac_pwd ;;
1518 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001519 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001520 ac_top_srcdir=$srcdir
1521 ac_abs_top_srcdir=$srcdir ;;
1522 *) # Relative name.
1523 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1524 ac_top_srcdir=$ac_top_build_prefix$srcdir
1525 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001526esac
Reid Spencera773bd52006-08-04 18:18:08 +00001527ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001528
Reid Spencera773bd52006-08-04 18:18:08 +00001529 cd "$ac_dir" || { ac_status=$?; continue; }
1530 # Check for guested configure.
1531 if test -f "$ac_srcdir/configure.gnu"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1534 elif test -f "$ac_srcdir/configure"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001537 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001538 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001539 fi || ac_status=$?
1540 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001541 done
1542fi
1543
Reid Spencera773bd52006-08-04 18:18:08 +00001544test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001545if $ac_init_version; then
1546 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001547llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001548generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001550Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15512002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001554
John Criswell5a129712010-03-19 21:04:16 +00001555Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001557 exit
John Criswell7a73b802003-06-30 21:59:07 +00001558fi
Reid Spencera773bd52006-08-04 18:18:08 +00001559cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001560This file contains any messages produced by compilers while
1561running configure, to aid debugging if configure makes a mistake.
1562
Eric Christopherb26697c2010-09-06 18:47:10 +00001563It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001564generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001565
1566 $ $0 $@
1567
1568_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001569exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001570{
1571cat <<_ASUNAME
1572## --------- ##
1573## Platform. ##
1574## --------- ##
1575
1576hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580uname -v = `(uname -v) 2>/dev/null || echo unknown`
1581
1582/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1584
1585/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1586/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1587/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001588/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001589/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1590/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1591/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1592
1593_ASUNAME
1594
1595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596for as_dir in $PATH
1597do
1598 IFS=$as_save_IFS
1599 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001600 echo "PATH: $as_dir"
1601done
Reid Spencera773bd52006-08-04 18:18:08 +00001602IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001603
1604} >&5
1605
1606cat >&5 <<_ACEOF
1607
1608
1609## ----------- ##
1610## Core tests. ##
1611## ----------- ##
1612
1613_ACEOF
1614
1615
1616# Keep a trace of the command line.
1617# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001618# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001619# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001620# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001621ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001622ac_configure_args0=
1623ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001624ac_must_keep_next=false
1625for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001626do
John Criswell0c38eaf2003-09-10 15:17:25 +00001627 for ac_arg
1628 do
1629 case $ac_arg in
1630 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1631 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1632 | -silent | --silent | --silen | --sile | --sil)
1633 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001634 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001635 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001636 esac
1637 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001638 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001640 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001642 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001644 case $ac_arg in
1645 *=* | --config-cache | -C | -disable-* | --disable-* \
1646 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1647 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1648 | -with-* | --with-* | -without-* | --without-* | --x)
1649 case "$ac_configure_args0 " in
1650 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651 esac
1652 ;;
1653 -* ) ac_must_keep_next=true ;;
1654 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001655 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001656 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001657 ;;
1658 esac
1659 done
John Criswell7a73b802003-06-30 21:59:07 +00001660done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001661$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1662$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 +00001663
1664# When interrupted or exit'd, cleanup temporary files, and complete
1665# config.log. We remove comments because anyway the quotes in there
1666# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001667# WARNING: Use '\'' to represent an apostrophe within the trap.
1668# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001669trap 'exit_status=$?
1670 # Save into config.log some information that might help in debugging.
1671 {
1672 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001673
John Criswell7a73b802003-06-30 21:59:07 +00001674 cat <<\_ASBOX
1675## ---------------- ##
1676## Cache variables. ##
1677## ---------------- ##
1678_ASBOX
1679 echo
1680 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001681(
1682 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1683 eval ac_val=\$$ac_var
1684 case $ac_val in #(
1685 *${as_nl}*)
1686 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001687 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1688echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001689 esac
1690 case $ac_var in #(
1691 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001692 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001693 esac ;;
1694 esac
1695 done
John Criswell7a73b802003-06-30 21:59:07 +00001696 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001697 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1698 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001699 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001700 "s/'\''/'\''\\\\'\'''\''/g;
1701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001703 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001705 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001706 esac |
1707 sort
1708)
John Criswell7a73b802003-06-30 21:59:07 +00001709 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001710
1711 cat <<\_ASBOX
1712## ----------------- ##
1713## Output variables. ##
1714## ----------------- ##
1715_ASBOX
1716 echo
1717 for ac_var in $ac_subst_vars
1718 do
Reid Spencera773bd52006-08-04 18:18:08 +00001719 eval ac_val=\$$ac_var
1720 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001721 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001722 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001723 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 done | sort
1725 echo
1726
1727 if test -n "$ac_subst_files"; then
1728 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001729## ------------------- ##
1730## File substitutions. ##
1731## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001732_ASBOX
1733 echo
1734 for ac_var in $ac_subst_files
1735 do
Reid Spencera773bd52006-08-04 18:18:08 +00001736 eval ac_val=\$$ac_var
1737 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001739 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001740 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001741 done | sort
1742 echo
1743 fi
1744
John Criswell7a73b802003-06-30 21:59:07 +00001745 if test -s confdefs.h; then
1746 cat <<\_ASBOX
1747## ----------- ##
1748## confdefs.h. ##
1749## ----------- ##
1750_ASBOX
1751 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001752 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001753 echo
1754 fi
1755 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001756 echo "$as_me: caught signal $ac_signal"
1757 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001758 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001759 rm -f core *.core core.conftest.* &&
1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001761 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001762' 0
John Criswell7a73b802003-06-30 21:59:07 +00001763for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001764 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001765done
1766ac_signal=0
1767
1768# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001769rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001770
1771# Predefined preprocessor variables.
1772
1773cat >>confdefs.h <<_ACEOF
1774#define PACKAGE_NAME "$PACKAGE_NAME"
1775_ACEOF
1776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001777
John Criswell7a73b802003-06-30 21:59:07 +00001778cat >>confdefs.h <<_ACEOF
1779#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780_ACEOF
1781
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001782
John Criswell7a73b802003-06-30 21:59:07 +00001783cat >>confdefs.h <<_ACEOF
1784#define PACKAGE_VERSION "$PACKAGE_VERSION"
1785_ACEOF
1786
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001787
John Criswell7a73b802003-06-30 21:59:07 +00001788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_STRING "$PACKAGE_STRING"
1790_ACEOF
1791
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792
John Criswell7a73b802003-06-30 21:59:07 +00001793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795_ACEOF
1796
1797
1798# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001799# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001800if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001801 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001802elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001803 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001805 set x "$ac_default_prefix/share/config.site" \
1806 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001807fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001808shift
1809for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001810do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001811 if test -r "$ac_site_file"; then
1812 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1813echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 sed 's/^/| /' "$ac_site_file" >&5
1815 . "$ac_site_file"
1816 fi
1817done
1818
1819if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 # Some versions of bash will fail to source /dev/null (special
1821 # files actually), so we avoid doing that.
1822 if test -f "$cache_file"; then
1823 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1824echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001825 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001826 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001828 esac
1829 fi
1830else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001831 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1832echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001833 >$cache_file
1834fi
1835
1836# Check that the precious variables saved in the cache have kept the same
1837# value.
1838ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001839for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001840 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001842 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001844 case $ac_old_set,$ac_new_set in
1845 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001846 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1847echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001848 ac_cache_corrupted=: ;;
1849 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001850 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1851echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001852 ac_cache_corrupted=: ;;
1853 ,);;
1854 *)
1855 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001856 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1857echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1858 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1859echo "$as_me: former value: $ac_old_val" >&2;}
1860 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1861echo "$as_me: current value: $ac_new_val" >&2;}
1862 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001863 fi;;
1864 esac
1865 # Pass precious variables to config.status.
1866 if test "$ac_new_set" = set; then
1867 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001868 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001869 *) ac_arg=$ac_var=$ac_new_val ;;
1870 esac
1871 case " $ac_configure_args " in
1872 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001874 esac
1875 fi
1876done
1877if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001878 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1879echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1880 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1881echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1882 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001883fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
Reid Spencera773bd52006-08-04 18:18:08 +00001908
John Criswell7a73b802003-06-30 21:59:07 +00001909ac_ext=c
1910ac_cpp='$CPP $CPPFLAGS'
1911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1913ac_compiler_gnu=$ac_cv_c_compiler_gnu
1914
1915
1916
John Criswell5a129712010-03-19 21:04:16 +00001917LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001918
1919
1920
1921
1922
1923
1924
John Criswell7a73b802003-06-30 21:59:07 +00001925ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001926for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001927 if test -f "$ac_dir/install-sh"; then
1928 ac_aux_dir=$ac_dir
1929 ac_install_sh="$ac_aux_dir/install-sh -c"
1930 break
1931 elif test -f "$ac_dir/install.sh"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install.sh -c"
1934 break
1935 elif test -f "$ac_dir/shtool"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/shtool install -c"
1938 break
1939 fi
John Criswell7a73b802003-06-30 21:59:07 +00001940done
1941if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001942 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1943echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1944 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001945fi
Reid Spencera773bd52006-08-04 18:18:08 +00001946
1947# These three variables are undocumented and unsupported,
1948# and are intended to be withdrawn in a future Autoconf release.
1949# They can cause serious problems if a builder's source tree is in a directory
1950# whose full name contains unusual characters.
1951ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1952ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1953ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1954
John Criswell7a73b802003-06-30 21:59:07 +00001955
John Criswell392aaa32003-07-22 19:18:09 +00001956
Reid Spencer2706f8c2004-09-19 23:53:36 +00001957if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001958 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001959 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1960echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1961 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001962 fi
John Criswell93e1c722003-09-15 17:04:06 +00001963fi
1964
John Criswell0157f502010-03-19 21:31:39 +00001965
1966
1967if test -d ${srcdir}/projects/llvm-gcc ; then
1968 subdirs="$subdirs projects/llvm-gcc"
1969
1970fi
1971
1972if test -d ${srcdir}/projects/test-suite ; then
1973 subdirs="$subdirs projects/test-suite"
1974
1975fi
1976
1977if test -d ${srcdir}/projects/llvm-test ; then
1978 subdirs="$subdirs projects/llvm-test"
1979
1980fi
1981
1982if test -d ${srcdir}/projects/poolalloc ; then
1983 subdirs="$subdirs projects/poolalloc"
1984
1985fi
1986
1987if test -d ${srcdir}/projects/llvm-poolalloc ; then
1988 subdirs="$subdirs projects/llvm-poolalloc"
1989
1990fi
1991
John Criswell33a911a2003-11-25 20:36:46 +00001992for i in `ls ${srcdir}/projects`
1993do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001994 if test -d ${srcdir}/projects/${i} ; then
1995 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001996 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001997 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001998 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001999 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002000 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002001 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002002 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002003;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002004 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002005 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002006 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002007 ;;
John Criswell7def2932010-02-25 22:57:19 +00002008 safecode) subdirs="$subdirs projects/safecode"
2009 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002010 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002011 ;;
John Criswell52c02862010-03-25 13:59:09 +00002012 llvm-gcc) ;;
2013 test-suite) ;;
2014 llvm-test) ;;
2015 poolalloc) ;;
2016 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002017 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002018 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2019echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002020 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002021 esac
John Criswell33a911a2003-11-25 20:36:46 +00002022 fi
2023done
John Criswell559a6c12003-09-30 16:31:48 +00002024
Tobias Grosserbaaadb22010-10-30 00:54:26 +00002025# Check whether --enable-polly was given.
2026if test "${enable_polly+set}" = set; then
2027 enableval=$enable_polly;
2028else
2029 enableval=default
2030fi
2031
2032case "$enableval" in
2033 yes) ENABLE_POLLY=1
2034 ;;
2035 no) ENABLE_POLLY=0
2036 ;;
2037 default) ENABLE_POLLY=1
2038 ;;
2039 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2040echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2041 { (exit 1); exit 1; }; } ;;
2042esac
2043
2044
2045if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
2046 LLVM_HAS_POLLY=1
2047
2048 subdirs="$subdirs tools/polly"
2049
2050fi
2051
John Criswell7a73b802003-06-30 21:59:07 +00002052
2053# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002054$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002055 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2056echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2057 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002059{ echo "$as_me:$LINENO: checking build system type" >&5
2060echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2061if test "${ac_cv_build+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002063else
Reid Spencera773bd52006-08-04 18:18:08 +00002064 ac_build_alias=$build_alias
2065test "x$ac_build_alias" = x &&
2066 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2067test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002068 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2069echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2070 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002071ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002072 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2073echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2074 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002075
2076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002077{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2078echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002079case $ac_cv_build in
2080*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002081*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2082echo "$as_me: error: invalid value of canonical build" >&2;}
2083 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002084esac
John Criswell7a73b802003-06-30 21:59:07 +00002085build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002086ac_save_IFS=$IFS; IFS='-'
2087set x $ac_cv_build
2088shift
2089build_cpu=$1
2090build_vendor=$2
2091shift; shift
2092# Remember, the first character of IFS is used to create $*,
2093# except with old shells:
2094build_os=$*
2095IFS=$ac_save_IFS
2096case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002097
2098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002099{ echo "$as_me:$LINENO: checking host system type" >&5
2100echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2101if test "${ac_cv_host+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002103else
Reid Spencera773bd52006-08-04 18:18:08 +00002104 if test "x$host_alias" = x; then
2105 ac_cv_host=$ac_cv_build
2106else
2107 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111fi
John Criswell7a73b802003-06-30 21:59:07 +00002112
2113fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002114{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002116case $ac_cv_host in
2117*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002118*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2119echo "$as_me: error: invalid value of canonical host" >&2;}
2120 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002121esac
John Criswell7a73b802003-06-30 21:59:07 +00002122host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002123ac_save_IFS=$IFS; IFS='-'
2124set x $ac_cv_host
2125shift
2126host_cpu=$1
2127host_vendor=$2
2128shift; shift
2129# Remember, the first character of IFS is used to create $*,
2130# except with old shells:
2131host_os=$*
2132IFS=$ac_save_IFS
2133case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002134
2135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002136{ echo "$as_me:$LINENO: checking target system type" >&5
2137echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2138if test "${ac_cv_target+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002140else
Reid Spencera773bd52006-08-04 18:18:08 +00002141 if test "x$target_alias" = x; then
2142 ac_cv_target=$ac_cv_host
2143else
2144 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2146echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002148fi
John Criswell7a73b802003-06-30 21:59:07 +00002149
2150fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002151{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2152echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002153case $ac_cv_target in
2154*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002155*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2156echo "$as_me: error: invalid value of canonical target" >&2;}
2157 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002158esac
John Criswell7a73b802003-06-30 21:59:07 +00002159target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002160ac_save_IFS=$IFS; IFS='-'
2161set x $ac_cv_target
2162shift
2163target_cpu=$1
2164target_vendor=$2
2165shift; shift
2166# Remember, the first character of IFS is used to create $*,
2167# except with old shells:
2168target_os=$*
2169IFS=$ac_save_IFS
2170case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002171
2172
2173# The aliases save the names the user supplied, while $host etc.
2174# will get canonicalized.
2175test -n "$target_alias" &&
2176 test "$program_prefix$program_suffix$program_transform_name" = \
2177 NONENONEs,x,x, &&
2178 program_prefix=${target_alias}-
2179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002180{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2181echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2182if test "${llvm_cv_os_type+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002184else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002185 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002186 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002187 llvm_cv_link_all_option="-Wl,--whole-archive"
2188 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002189 llvm_cv_os_type="AIX"
2190 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002191 *-*-irix*)
2192 llvm_cv_link_all_option="-Wl,--whole-archive"
2193 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2194 llvm_cv_os_type="IRIX"
2195 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002196 *-*-cygwin*)
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="Cygwin"
2200 llvm_cv_platform_type="Unix" ;;
2201 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002202 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002203 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002204 llvm_cv_os_type="Darwin"
2205 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002206 *-*-minix*)
2207 llvm_cv_link_all_option="-Wl,-all_load"
2208 llvm_cv_no_link_all_option="-Wl,-noall_load"
2209 llvm_cv_os_type="Minix"
2210 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002212 llvm_cv_link_all_option="-Wl,--whole-archive"
2213 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002214 llvm_cv_os_type="FreeBSD"
2215 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002216 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002217 llvm_cv_link_all_option="-Wl,--whole-archive"
2218 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002219 llvm_cv_os_type="OpenBSD"
2220 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002221 *-*-netbsd*)
2222 llvm_cv_link_all_option="-Wl,--whole-archive"
2223 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2224 llvm_cv_os_type="NetBSD"
2225 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002226 *-*-dragonfly*)
2227 llvm_cv_link_all_option="-Wl,--whole-archive"
2228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229 llvm_cv_os_type="DragonFly"
2230 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002231 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002232 llvm_cv_link_all_option="-Wl,--whole-archive"
2233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002234 llvm_cv_os_type="HP-UX"
2235 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002236 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002237 llvm_cv_link_all_option="-Wl,--whole-archive"
2238 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 llvm_cv_os_type="Interix"
2240 llvm_cv_platform_type="Unix" ;;
2241 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244 llvm_cv_os_type="Linux"
2245 llvm_cv_platform_type="Unix" ;;
2246 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002247 llvm_cv_link_all_option="-Wl,-z,allextract"
2248 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 llvm_cv_os_type="SunOS"
2250 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002251 *-*-auroraux*)
2252 llvm_cv_link_all_option="-Wl,-z,allextract"
2253 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2254 llvm_cv_os_type="AuroraUX"
2255 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 llvm_cv_os_type="Win32"
2260 llvm_cv_platform_type="Win32" ;;
2261 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002264 llvm_cv_os_type="MingW"
2265 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002266 *-*-haiku*)
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="Haiku"
2270 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002271 *-unknown-eabi*)
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="Freestanding"
2275 llvm_cv_platform_type="Unix" ;;
2276 *-unknown-elf*)
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="Freestanding"
2280 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option=""
2283 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="Unknown"
2285 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002286esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002288{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002291{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2292echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2293if test "${llvm_cv_target_os_type+set}" = set; then
2294 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002295else
2296 case $target in
2297 *-*-aix*)
2298 llvm_cv_target_os_type="AIX" ;;
2299 *-*-irix*)
2300 llvm_cv_target_os_type="IRIX" ;;
2301 *-*-cygwin*)
2302 llvm_cv_target_os_type="Cygwin" ;;
2303 *-*-darwin*)
2304 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002305 *-*-minix*)
2306 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002307 *-*-freebsd*)
2308 llvm_cv_target_os_type="FreeBSD" ;;
2309 *-*-openbsd*)
2310 llvm_cv_target_os_type="OpenBSD" ;;
2311 *-*-netbsd*)
2312 llvm_cv_target_os_type="NetBSD" ;;
2313 *-*-dragonfly*)
2314 llvm_cv_target_os_type="DragonFly" ;;
2315 *-*-hpux*)
2316 llvm_cv_target_os_type="HP-UX" ;;
2317 *-*-interix*)
2318 llvm_cv_target_os_type="Interix" ;;
2319 *-*-linux*)
2320 llvm_cv_target_os_type="Linux" ;;
2321 *-*-solaris*)
2322 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002323 *-*-auroraux*)
2324 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002325 *-*-win32*)
2326 llvm_cv_target_os_type="Win32" ;;
2327 *-*-mingw*)
2328 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002329 *-*-haiku*)
2330 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002331 *-unknown-eabi*)
2332 llvm_cv_target_os_type="Freestanding" ;;
2333 *)
2334 llvm_cv_target_os_type="Unknown" ;;
2335esac
2336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002337{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2338echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002339
Reid Spencer7b3e8512004-12-24 06:29:05 +00002340if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002341 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2342echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2343 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002344fi
2345
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002347
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002348HOST_OS=$llvm_cv_os_type
2349
2350TARGET_OS=$llvm_cv_target_os_type
2351
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352
Reid Spencera773bd52006-08-04 18:18:08 +00002353LINKALL=$llvm_cv_link_all_option
2354
2355NOLINKALL=$llvm_cv_no_link_all_option
2356
2357
Reid Spencer7b3e8512004-12-24 06:29:05 +00002358case $llvm_cv_platform_type in
2359 Unix)
2360
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002361cat >>confdefs.h <<\_ACEOF
2362#define LLVM_ON_UNIX 1
2363_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002365 LLVM_ON_UNIX=1
2366
2367 LLVM_ON_WIN32=0
2368
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369 ;;
2370 Win32)
2371
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372cat >>confdefs.h <<\_ACEOF
2373#define LLVM_ON_WIN32 1
2374_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002375
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002376 LLVM_ON_UNIX=0
2377
2378 LLVM_ON_WIN32=1
2379
Reid Spencer7b3e8512004-12-24 06:29:05 +00002380 ;;
2381esac
2382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002383{ echo "$as_me:$LINENO: checking target architecture" >&5
2384echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2385if test "${llvm_cv_target_arch+set}" = set; then
2386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387else
2388 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002389 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002390 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002391 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2392 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002393 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002394 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002395 mips-*) llvm_cv_target_arch="Mips" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002396 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002397 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002398 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002399 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002400 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002401 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002402 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002403esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002405{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2406echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2410echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411fi
John Criswell76595452003-07-01 22:07:39 +00002412
Nick Lewycky83fc4472009-09-29 05:48:51 +00002413# Determine the LLVM native architecture for the target
2414case "$llvm_cv_target_arch" in
2415 x86) LLVM_NATIVE_ARCH="X86" ;;
2416 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2417 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2418esac
2419
2420ARCH=$llvm_cv_target_arch
2421
2422
2423ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424ac_cpp='$CPP $CPPFLAGS'
2425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002428if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435else
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2438else
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 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 +00002446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448 break 2
2449 fi
2450done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002451done
Reid Spencera773bd52006-08-04 18:18:08 +00002452IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453
2454fi
2455fi
2456CC=$ac_cv_prog_CC
2457if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002458 { echo "$as_me:$LINENO: result: $CC" >&5
2459echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461 { echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463fi
2464
Reid Spencera773bd52006-08-04 18:18:08 +00002465
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466fi
2467if test -z "$ac_cv_prog_CC"; then
2468 ac_ct_CC=$CC
2469 # Extract the first word of "gcc", so it can be a program name with args.
2470set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475else
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2478else
2479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480for as_dir in $PATH
2481do
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 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 +00002486 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488 break 2
2489 fi
2490done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491done
Reid Spencera773bd52006-08-04 18:18:08 +00002492IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493
2494fi
2495fi
2496ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002501 { echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503fi
2504
Reid Spencera773bd52006-08-04 18:18:08 +00002505 if test "x$ac_ct_CC" = x; then
2506 CC=""
2507 else
2508 case $cross_compiling:$ac_tool_warned in
2509yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511whose name does not start with the host triplet. If you think this
2512configuration is useful to you, please write to autoconf@gnu.org." >&5
2513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514whose name does not start with the host triplet. If you think this
2515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002516ac_tool_warned=yes ;;
2517esac
2518 CC=$ac_ct_CC
2519 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520else
2521 CC="$ac_cv_prog_CC"
2522fi
2523
2524if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002525 if test -n "$ac_tool_prefix"; then
2526 # 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 +00002527set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002528{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532else
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 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 +00002543 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545 break 2
2546 fi
2547done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002548done
Reid Spencera773bd52006-08-04 18:18:08 +00002549IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550
2551fi
2552fi
2553CC=$ac_cv_prog_CC
2554if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555 { echo "$as_me:$LINENO: result: $CC" >&5
2556echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002558 { echo "$as_me:$LINENO: result: no" >&5
2559echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560fi
2561
Reid Spencera773bd52006-08-04 18:18:08 +00002562
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564fi
2565if test -z "$CC"; then
2566 # Extract the first word of "cc", so it can be a program name with args.
2567set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002568{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572else
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2575else
2576 ac_prog_rejected=no
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 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 +00002584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585 ac_prog_rejected=yes
2586 continue
2587 fi
2588 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590 break 2
2591 fi
2592done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002593done
Reid Spencera773bd52006-08-04 18:18:08 +00002594IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595
2596if test $ac_prog_rejected = yes; then
2597 # We found a bogon in the path, so make sure we never use it.
2598 set dummy $ac_cv_prog_CC
2599 shift
2600 if test $# != 0; then
2601 # We chose a different compiler from the bogus one.
2602 # However, it has the same basename, so the bogon will be chosen
2603 # first if we set CC to just the basename; use the full file name.
2604 shift
2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2606 fi
2607fi
2608fi
2609fi
2610CC=$ac_cv_prog_CC
2611if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002612 { echo "$as_me:$LINENO: result: $CC" >&5
2613echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002615 { echo "$as_me:$LINENO: result: no" >&5
2616echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617fi
2618
Reid Spencera773bd52006-08-04 18:18:08 +00002619
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620fi
2621if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002623 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002624 do
2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002627{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002631else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 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 +00002642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002644 break 2
2645 fi
2646done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647done
Reid Spencera773bd52006-08-04 18:18:08 +00002648IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002649
2650fi
2651fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654 { echo "$as_me:$LINENO: result: $CC" >&5
2655echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002657 { echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002659fi
2660
Reid Spencera773bd52006-08-04 18:18:08 +00002661
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002663 done
2664fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665if test -z "$CC"; then
2666 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002667 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002668do
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002675else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002678else
2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 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 +00002686 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002688 break 2
2689 fi
2690done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691done
Reid Spencera773bd52006-08-04 18:18:08 +00002692IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002693
2694fi
2695fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002700else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002701 { echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002703fi
2704
Reid Spencera773bd52006-08-04 18:18:08 +00002705
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002706 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002707done
John Criswell7a73b802003-06-30 21:59:07 +00002708
Reid Spencera773bd52006-08-04 18:18:08 +00002709 if test "x$ac_ct_CC" = x; then
2710 CC=""
2711 else
2712 case $cross_compiling:$ac_tool_warned in
2713yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002714{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715whose name does not start with the host triplet. If you think this
2716configuration is useful to you, please write to autoconf@gnu.org." >&5
2717echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718whose name does not start with the host triplet. If you think this
2719configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002720ac_tool_warned=yes ;;
2721esac
2722 CC=$ac_ct_CC
2723 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002724fi
2725
John Criswell7a73b802003-06-30 21:59:07 +00002726fi
2727
2728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002729test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730See \`config.log' for more details." >&5
2731echo "$as_me: error: no acceptable C compiler found in \$PATH
2732See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002734
John Criswell7a73b802003-06-30 21:59:07 +00002735# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002736echo "$as_me:$LINENO: checking for C compiler version" >&5
2737ac_compiler=`set X $ac_compile; echo $2`
2738{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002745 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748{ (ac_try="$ac_compiler -v >&5"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler -v >&5") 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758{ (ac_try="$ac_compiler -V >&5"
2759case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2762esac
2763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -V >&5") 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002769cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002775
John Criswell7a73b802003-06-30 21:59:07 +00002776int
2777main ()
2778{
2779
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002785ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002786# Try to create an executable without -o first, disregard a.out.
2787# It will help us diagnose broken compilers, and finding out an intuition
2788# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002789{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2792#
2793# List of possible output files, starting from the most likely.
2794# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795# only as a last resort. b.out is created by i960 compilers.
2796ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2797#
2798# The IRIX 6 linker writes into existing files which may not be
2799# executable, retaining their permissions. Remove them first so a
2800# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002801ac_rmfiles=
2802for ac_file in $ac_files
2803do
2804 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2807 esac
2808done
2809rm -f $ac_rmfiles
2810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002811if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002812case "(($ac_try" in
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2815esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002817 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002818 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823# in a Makefile. We should not override ac_cv_exeext if it was cached,
2824# so that the user can short-circuit this test for compilers unknown to
2825# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002827do
2828 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002829 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002831 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002832 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002833 # We found the default executable, but exeext='' is most
2834 # certainly right.
2835 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002836 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002838 then :; else
2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2840 fi
2841 # We set ac_cv_exeext here because the later test for it is not
2842 # safe: cross compilers may not add the suffix if given an `-o'
2843 # argument, so we may need to know it at that point already.
2844 # Even if this section looks crufty: it has the advantage of
2845 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002846 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002847 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002848 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002849 esac
2850done
Reid Spencera773bd52006-08-04 18:18:08 +00002851test "$ac_cv_exeext" = no && ac_cv_exeext=
2852
John Criswell7a73b802003-06-30 21:59:07 +00002853else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002855sed 's/^/| /' conftest.$ac_ext >&5
2856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858See \`config.log' for more details." >&5
2859echo "$as_me: error: C compiler cannot create executables
2860See \`config.log' for more details." >&2;}
2861 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002862fi
John Criswell7a73b802003-06-30 21:59:07 +00002863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002864ac_exeext=$ac_cv_exeext
2865{ echo "$as_me:$LINENO: result: $ac_file" >&5
2866echo "${ECHO_T}$ac_file" >&6; }
2867
2868# Check that the compiler produces executables we can run. If not, either
2869# the compiler is broken, or we cross compile.
2870{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2873# If not cross compiling, check that we can run a simple program.
2874if test "$cross_compiling" != yes; then
2875 if { ac_try='./$ac_file'
2876 { (case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879esac
2880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_try") 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2885 cross_compiling=no
2886 else
2887 if test "$cross_compiling" = maybe; then
2888 cross_compiling=yes
2889 else
2890 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2891If you meant to cross compile, use \`--host'.
2892See \`config.log' for more details." >&5
2893echo "$as_me: error: cannot run C compiled programs.
2894If you meant to cross compile, use \`--host'.
2895See \`config.log' for more details." >&2;}
2896 { (exit 1); exit 1; }; }
2897 fi
2898 fi
2899fi
2900{ echo "$as_me:$LINENO: result: yes" >&5
2901echo "${ECHO_T}yes" >&6; }
2902
2903rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002904ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002905# Check that the compiler produces executables we can run. If not, either
2906# the compiler is broken, or we cross compile.
2907{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2908echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2909{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2910echo "${ECHO_T}$cross_compiling" >&6; }
2911
2912{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2913echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2914if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002915case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002920 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002921 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2925# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2926# work properly (i.e., refer to `conftest.exe'), while it won't with
2927# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002928for ac_file in conftest.exe conftest conftest.*; do
2929 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002930 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002933 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002934 * ) break;;
2935 esac
2936done
2937else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002938 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2939See \`config.log' for more details." >&5
2940echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2941See \`config.log' for more details." >&2;}
2942 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002943fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944
2945rm -f conftest$ac_cv_exeext
2946{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2947echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002948
2949rm -f conftest.$ac_ext
2950EXEEXT=$ac_cv_exeext
2951ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002952{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2953echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2954if test "${ac_cv_objext+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002956else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957 cat >conftest.$ac_ext <<_ACEOF
2958/* confdefs.h. */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002963
John Criswell7a73b802003-06-30 21:59:07 +00002964int
2965main ()
2966{
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002973if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002974case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002979 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002980 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002983 for ac_file in conftest.o conftest.obj conftest.*; do
2984 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002985 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2988 break;;
2989 esac
2990done
2991else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002993sed 's/^/| /' conftest.$ac_ext >&5
2994
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002995{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2996See \`config.log' for more details." >&5
2997echo "$as_me: error: cannot compute suffix of object files: cannot compile
2998See \`config.log' for more details." >&2;}
2999 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00003000fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003001
John Criswell7a73b802003-06-30 21:59:07 +00003002rm -f conftest.$ac_cv_objext conftest.$ac_ext
3003fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003004{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3005echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003006OBJEXT=$ac_cv_objext
3007ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003008{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3010if test "${ac_cv_c_compiler_gnu+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003013 cat >conftest.$ac_ext <<_ACEOF
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003018/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003019
John Criswell7a73b802003-06-30 21:59:07 +00003020int
3021main ()
3022{
3023#ifndef __GNUC__
3024 choke me
3025#endif
3026
3027 ;
3028 return 0;
3029}
3030_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003031rm -f conftest.$ac_objext
3032if { (ac_try="$ac_compile"
3033case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compile") 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3046 { (case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_try") 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (case "(($ac_try" in
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3059esac
3060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_try") 2>&5
3062 ac_status=$?
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003065 ac_compiler_gnu=yes
3066else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003067 echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003072
Reid Spencera773bd52006-08-04 18:18:08 +00003073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003074ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003075
3076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003077{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3078echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3079GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003080ac_test_CFLAGS=${CFLAGS+set}
3081ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003082{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3083echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3084if test "${ac_cv_prog_cc_g+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003086else
Reid Spencera773bd52006-08-04 18:18:08 +00003087 ac_save_c_werror_flag=$ac_c_werror_flag
3088 ac_c_werror_flag=yes
3089 ac_cv_prog_cc_g=no
3090 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003091 cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h. */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003097
John Criswell7a73b802003-06-30 21:59:07 +00003098int
3099main ()
3100{
3101
3102 ;
3103 return 0;
3104}
3105_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003106rm -f conftest.$ac_objext
3107if { (ac_try="$ac_compile"
3108case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_compile") 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
3120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3121 { (case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124esac
3125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126 (eval "$ac_try") 2>&5
3127 ac_status=$?
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); }; } &&
3130 { ac_try='test -s conftest.$ac_objext'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003140 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145 CFLAGS=""
3146 cat >conftest.$ac_ext <<_ACEOF
3147/* confdefs.h. */
3148_ACEOF
3149cat confdefs.h >>conftest.$ac_ext
3150cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003151/* end confdefs.h. */
3152
3153int
3154main ()
3155{
3156
3157 ;
3158 return 0;
3159}
3160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003161rm -f conftest.$ac_objext
3162if { (ac_try="$ac_compile"
3163case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_compile") 2>conftest.er1
3169 ac_status=$?
3170 grep -v '^ *+' conftest.er1 >conftest.err
3171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } &&
3175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; } &&
3185 { ac_try='test -s conftest.$ac_objext'
3186 { (case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189esac
3190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_try") 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3195 :
Torok Edwin871384f2010-01-26 08:50:50 +00003196else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003197 echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003201 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003202 cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h. */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003217rm -f conftest.$ac_objext
3218if { (ac_try="$ac_compile"
3219case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3225 ac_status=$?
3226 grep -v '^ *+' conftest.er1 >conftest.err
3227 rm -f conftest.er1
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3232 { (case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
3236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_try") 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; } &&
3241 { ac_try='test -s conftest.$ac_objext'
3242 { (case "(($ac_try" in
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3245esac
3246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_try") 2>&5
3248 ac_status=$?
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003251 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003252else
3253 echo "$as_me: failed program was:" >&5
3254sed 's/^/| /' conftest.$ac_ext >&5
3255
3256
John Criswell7a73b802003-06-30 21:59:07 +00003257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003258
Reid Spencera773bd52006-08-04 18:18:08 +00003259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003261
Reid Spencera773bd52006-08-04 18:18:08 +00003262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003264
Reid Spencera773bd52006-08-04 18:18:08 +00003265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003268{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3269echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270if test "$ac_test_CFLAGS" = set; then
3271 CFLAGS=$ac_save_CFLAGS
3272elif test $ac_cv_prog_cc_g = yes; then
3273 if test "$GCC" = yes; then
3274 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003275 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003277 fi
3278else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279 if test "$GCC" = yes; then
3280 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003281 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003283 fi
3284fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003285{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3286echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3287if test "${ac_cv_prog_cc_c89+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289else
Reid Spencera773bd52006-08-04 18:18:08 +00003290 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003292cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h. */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297/* end confdefs.h. */
3298#include <stdarg.h>
3299#include <stdio.h>
3300#include <sys/types.h>
3301#include <sys/stat.h>
3302/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3303struct buf { int x; };
3304FILE * (*rcsopen) (struct buf *, struct stat *, int);
3305static char *e (p, i)
3306 char **p;
3307 int i;
3308{
3309 return p[i];
3310}
3311static char *f (char * (*g) (char **, int), char **p, ...)
3312{
3313 char *s;
3314 va_list v;
3315 va_start (v,p);
3316 s = g (p, va_arg (v,int));
3317 va_end (v);
3318 return s;
3319}
3320
3321/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3322 function prototypes and stuff, but not '\xHH' hex character constants.
3323 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003324 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3326 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003327 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3329
Reid Spencera773bd52006-08-04 18:18:08 +00003330/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3331 inside strings and character constants. */
3332#define FOO(x) 'x'
3333int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3334
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335int test (int i, double x);
3336struct s1 {int (*f) (int a);};
3337struct s2 {int (*f) (double a);};
3338int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3339int argc;
3340char **argv;
3341int
3342main ()
3343{
3344return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3345 ;
3346 return 0;
3347}
3348_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003349for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3350 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003351do
3352 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003353 rm -f conftest.$ac_objext
3354if { (ac_try="$ac_compile"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_compile") 2>conftest.er1
3361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3368 { (case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371esac
3372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_try") 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest.$ac_objext'
3378 { (case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_try") 2>&5
3384 ac_status=$?
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003387 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003394
Reid Spencera773bd52006-08-04 18:18:08 +00003395rm -f core conftest.err conftest.$ac_objext
3396 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397done
Reid Spencera773bd52006-08-04 18:18:08 +00003398rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399CC=$ac_save_CC
3400
3401fi
Reid Spencera773bd52006-08-04 18:18:08 +00003402# AC_CACHE_VAL
3403case "x$ac_cv_prog_cc_c89" in
3404 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003405 { echo "$as_me:$LINENO: result: none needed" >&5
3406echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003407 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003408 { echo "$as_me:$LINENO: result: unsupported" >&5
3409echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003411 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003412 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3413echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003414esac
3415
John Criswell0c38eaf2003-09-10 15:17:25 +00003416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003429{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3430echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003431# On Suns, sometimes $CPP names a directory.
3432if test -n "$CPP" && test -d "$CPP"; then
3433 CPP=
3434fi
3435if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003436 if test "${ac_cv_prog_CPP+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003438else
3439 # Double quotes because CPP needs to be expanded
3440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3441 do
3442 ac_preproc_ok=false
3443for ac_c_preproc_warn_flag in '' yes
3444do
3445 # Use a header file that comes with gcc, so configuring glibc
3446 # with a fresh cross-compiler works.
3447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3448 # <limits.h> exists even on freestanding compilers.
3449 # On the NeXT, cc -E runs the code through the compiler's parser,
3450 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003451 cat >conftest.$ac_ext <<_ACEOF
3452/* confdefs.h. */
3453_ACEOF
3454cat confdefs.h >>conftest.$ac_ext
3455cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456/* end confdefs.h. */
3457#ifdef __STDC__
3458# include <limits.h>
3459#else
3460# include <assert.h>
3461#endif
3462 Syntax error
3463_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003464if { (ac_try="$ac_cpp conftest.$ac_ext"
3465case "(($ac_try" in
3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3468esac
3469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3471 ac_status=$?
3472 grep -v '^ *+' conftest.er1 >conftest.err
3473 rm -f conftest.er1
3474 cat conftest.err >&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); } >/dev/null; then
3477 if test -s conftest.err; then
3478 ac_cpp_err=$ac_c_preproc_warn_flag
3479 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3480 else
3481 ac_cpp_err=
3482 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003483else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003484 ac_cpp_err=yes
3485fi
3486if test -z "$ac_cpp_err"; then
3487 :
3488else
3489 echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003492 # Broken: fails on valid input.
3493continue
3494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003495
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496rm -f conftest.err conftest.$ac_ext
3497
Reid Spencera773bd52006-08-04 18:18:08 +00003498 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003500 cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505/* end confdefs.h. */
3506#include <ac_nonexistent.h>
3507_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003508if { (ac_try="$ac_cpp conftest.$ac_ext"
3509case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512esac
3513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null; then
3521 if test -s conftest.err; then
3522 ac_cpp_err=$ac_c_preproc_warn_flag
3523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3524 else
3525 ac_cpp_err=
3526 fi
3527else
3528 ac_cpp_err=yes
3529fi
3530if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003531 # Broken: success on invalid input.
3532continue
3533else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003534 echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537 # Passes both tests.
3538ac_preproc_ok=:
3539break
3540fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003541
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003542rm -f conftest.err conftest.$ac_ext
3543
3544done
3545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003547if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548 break
3549fi
3550
3551 done
3552 ac_cv_prog_CPP=$CPP
3553
3554fi
3555 CPP=$ac_cv_prog_CPP
3556else
3557 ac_cv_prog_CPP=$CPP
3558fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003559{ echo "$as_me:$LINENO: result: $CPP" >&5
3560echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003561ac_preproc_ok=false
3562for ac_c_preproc_warn_flag in '' yes
3563do
3564 # Use a header file that comes with gcc, so configuring glibc
3565 # with a fresh cross-compiler works.
3566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3567 # <limits.h> exists even on freestanding compilers.
3568 # On the NeXT, cc -E runs the code through the compiler's parser,
3569 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003575/* end confdefs.h. */
3576#ifdef __STDC__
3577# include <limits.h>
3578#else
3579# include <assert.h>
3580#endif
3581 Syntax error
3582_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003583if { (ac_try="$ac_cpp conftest.$ac_ext"
3584case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587esac
3588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3590 ac_status=$?
3591 grep -v '^ *+' conftest.er1 >conftest.err
3592 rm -f conftest.er1
3593 cat conftest.err >&5
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); } >/dev/null; then
3596 if test -s conftest.err; then
3597 ac_cpp_err=$ac_c_preproc_warn_flag
3598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3599 else
3600 ac_cpp_err=
3601 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003602else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003603 ac_cpp_err=yes
3604fi
3605if test -z "$ac_cpp_err"; then
3606 :
3607else
3608 echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003611 # Broken: fails on valid input.
3612continue
3613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003614
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003615rm -f conftest.err conftest.$ac_ext
3616
Reid Spencera773bd52006-08-04 18:18:08 +00003617 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003619 cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h. */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624/* end confdefs.h. */
3625#include <ac_nonexistent.h>
3626_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003627if { (ac_try="$ac_cpp conftest.$ac_ext"
3628case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631esac
3632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev/null; then
3640 if test -s conftest.err; then
3641 ac_cpp_err=$ac_c_preproc_warn_flag
3642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3643 else
3644 ac_cpp_err=
3645 fi
3646else
3647 ac_cpp_err=yes
3648fi
3649if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003650 # Broken: success on invalid input.
3651continue
3652else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003653 echo "$as_me: failed program was:" >&5
3654sed 's/^/| /' conftest.$ac_ext >&5
3655
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003656 # Passes both tests.
3657ac_preproc_ok=:
3658break
3659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003660
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003661rm -f conftest.err conftest.$ac_ext
3662
3663done
3664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3665rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003666if $ac_preproc_ok; then
3667 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003669 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3670See \`config.log' for more details." >&5
3671echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3672See \`config.log' for more details." >&2;}
3673 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003674fi
3675
John Criswell7a73b802003-06-30 21:59:07 +00003676ac_ext=c
3677ac_cpp='$CPP $CPPFLAGS'
3678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681
John Criswell7a73b802003-06-30 21:59:07 +00003682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003683{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3684echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3685if test "${ac_cv_path_GREP+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003688 # Extract the first word of "grep ggrep" to use in msg output
3689if test -z "$GREP"; then
3690set dummy grep ggrep; ac_prog_name=$2
3691if test "${ac_cv_path_GREP+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693else
Reid Spencera773bd52006-08-04 18:18:08 +00003694 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695# Loop through the user's path and test for each of PROGNAME-LIST
3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003697for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003698do
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003701 for ac_prog in grep ggrep; do
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3704 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3705 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003706 # Check for GNU $ac_path_GREP
3707case `"$ac_path_GREP" --version 2>&1` in
3708*GNU*)
3709 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3710*)
3711 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003712 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003713 while :
3714 do
3715 cat "conftest.in" "conftest.in" >"conftest.tmp"
3716 mv "conftest.tmp" "conftest.in"
3717 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003719 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3720 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003721 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003722 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3723 # Best one so far, save it but keep looking for a better one
3724 ac_cv_path_GREP="$ac_path_GREP"
3725 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003726 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003727 # 10*(2^10) chars as input seems more than enough
3728 test $ac_count -gt 10 && break
3729 done
3730 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731esac
3732
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733
3734 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003735 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003736done
3737
3738done
Reid Spencera773bd52006-08-04 18:18:08 +00003739IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740
3741
3742fi
3743
3744GREP="$ac_cv_path_GREP"
3745if test -z "$GREP"; then
3746 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3747echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3748 { (exit 1); exit 1; }; }
3749fi
3750
Reid Spencera773bd52006-08-04 18:18:08 +00003751else
3752 ac_cv_path_GREP=$GREP
3753fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003754
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003755
Reid Spencera773bd52006-08-04 18:18:08 +00003756fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003757{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3758echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003759 GREP="$ac_cv_path_GREP"
3760
3761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762{ echo "$as_me:$LINENO: checking for egrep" >&5
3763echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3764if test "${ac_cv_path_EGREP+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003766else
3767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3768 then ac_cv_path_EGREP="$GREP -E"
3769 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003770 # Extract the first word of "egrep" to use in msg output
3771if test -z "$EGREP"; then
3772set dummy egrep; ac_prog_name=$2
3773if test "${ac_cv_path_EGREP+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
Reid Spencera773bd52006-08-04 18:18:08 +00003776 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777# Loop through the user's path and test for each of PROGNAME-LIST
3778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780do
3781 IFS=$as_save_IFS
3782 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003783 for ac_prog in egrep; do
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3786 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3787 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003788 # Check for GNU $ac_path_EGREP
3789case `"$ac_path_EGREP" --version 2>&1` in
3790*GNU*)
3791 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3792*)
3793 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003794 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003795 while :
3796 do
3797 cat "conftest.in" "conftest.in" >"conftest.tmp"
3798 mv "conftest.tmp" "conftest.in"
3799 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003800 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003801 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003803 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003804 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3805 # Best one so far, save it but keep looking for a better one
3806 ac_cv_path_EGREP="$ac_path_EGREP"
3807 ac_path_EGREP_max=$ac_count
3808 fi
3809 # 10*(2^10) chars as input seems more than enough
3810 test $ac_count -gt 10 && break
3811 done
3812 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3813esac
3814
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003815
3816 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003817 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003818done
3819
3820done
Reid Spencera773bd52006-08-04 18:18:08 +00003821IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003822
3823
3824fi
3825
3826EGREP="$ac_cv_path_EGREP"
3827if test -z "$EGREP"; then
3828 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3829echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3830 { (exit 1); exit 1; }; }
3831fi
3832
Reid Spencera773bd52006-08-04 18:18:08 +00003833else
3834 ac_cv_path_EGREP=$EGREP
3835fi
3836
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003837
Reid Spencera773bd52006-08-04 18:18:08 +00003838 fi
3839fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003840{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3841echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003842 EGREP="$ac_cv_path_EGREP"
3843
3844
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003845{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3846echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3847if test "${ac_cv_header_stdc+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003850 cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003856#include <stdlib.h>
3857#include <stdarg.h>
3858#include <string.h>
3859#include <float.h>
3860
John Criswell0c38eaf2003-09-10 15:17:25 +00003861int
3862main ()
3863{
3864
3865 ;
3866 return 0;
3867}
John Criswell7a73b802003-06-30 21:59:07 +00003868_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003869rm -f conftest.$ac_objext
3870if { (ac_try="$ac_compile"
3871case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874esac
3875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_compile") 2>conftest.er1
3877 ac_status=$?
3878 grep -v '^ *+' conftest.er1 >conftest.err
3879 rm -f conftest.er1
3880 cat conftest.err >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); } &&
3883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3884 { (case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887esac
3888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_try") 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }; } &&
3893 { ac_try='test -s conftest.$ac_objext'
3894 { (case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897esac
3898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899 (eval "$ac_try") 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003903 ac_cv_header_stdc=yes
3904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003905 echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003909fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003910
Reid Spencera773bd52006-08-04 18:18:08 +00003911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003912
3913if test $ac_cv_header_stdc = yes; then
3914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003915 cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003921#include <string.h>
3922
3923_ACEOF
3924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003925 $EGREP "memchr" >/dev/null 2>&1; then
3926 :
John Criswell7a73b802003-06-30 21:59:07 +00003927else
3928 ac_cv_header_stdc=no
3929fi
3930rm -f conftest*
3931
3932fi
3933
3934if test $ac_cv_header_stdc = yes; then
3935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003942#include <stdlib.h>
3943
3944_ACEOF
3945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003946 $EGREP "free" >/dev/null 2>&1; then
3947 :
John Criswell7a73b802003-06-30 21:59:07 +00003948else
3949 ac_cv_header_stdc=no
3950fi
3951rm -f conftest*
3952
3953fi
3954
3955if test $ac_cv_header_stdc = yes; then
3956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003957 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003958 :
3959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003960 cat >conftest.$ac_ext <<_ACEOF
3961/* confdefs.h. */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003966#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003967#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003968#if ((' ' & 0x0FF) == 0x020)
3969# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3970# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3971#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003972# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003973 (('a' <= (c) && (c) <= 'i') \
3974 || ('j' <= (c) && (c) <= 'r') \
3975 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003976# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3977#endif
3978
3979#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3980int
3981main ()
3982{
3983 int i;
3984 for (i = 0; i < 256; i++)
3985 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003986 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003987 return 2;
3988 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003989}
3990_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003991rm -f conftest$ac_exeext
3992if { (ac_try="$ac_link"
3993case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996esac
3997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_link") 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4002 { (case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005esac
4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4007 (eval "$ac_try") 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 :
John Criswell7a73b802003-06-30 21:59:07 +00004012else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004013 echo "$as_me: program exited with status $ac_status" >&5
4014echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017( exit $ac_status )
4018ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004019fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004020rm -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 +00004021fi
4022
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004023
John Criswell7a73b802003-06-30 21:59:07 +00004024fi
4025fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004026{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4027echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004028if test $ac_cv_header_stdc = yes; then
4029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004030cat >>confdefs.h <<\_ACEOF
4031#define STDC_HEADERS 1
4032_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00004033
4034fi
4035
Reid Spencera773bd52006-08-04 18:18:08 +00004036# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004037
4038
4039
4040
4041
4042
4043
4044
4045
Reid Spencera773bd52006-08-04 18:18:08 +00004046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004048do
4049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055 cat >conftest.$ac_ext <<_ACEOF
4056/* confdefs.h. */
4057_ACEOF
4058cat confdefs.h >>conftest.$ac_ext
4059cat >>conftest.$ac_ext <<_ACEOF
4060/* end confdefs.h. */
4061$ac_includes_default
4062
4063#include <$ac_header>
4064_ACEOF
4065rm -f conftest.$ac_objext
4066if { (ac_try="$ac_compile"
4067case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070esac
4071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_compile") 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4080 { (case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083esac
4084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_try") 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093esac
4094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_try") 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; }; then
4099 eval "$as_ac_Header=yes"
4100else
4101 echo "$as_me: failed program was:" >&5
4102sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 eval "$as_ac_Header=no"
4105fi
4106
4107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108fi
4109ac_res=`eval echo '${'$as_ac_Header'}'`
4110 { echo "$as_me:$LINENO: result: $ac_res" >&5
4111echo "${ECHO_T}$ac_res" >&6; }
4112if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004113 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004115_ACEOF
4116
4117fi
4118
4119done
4120
4121
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004122{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4123echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4124if test "${ac_cv_c_bigendian+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004126else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004127 # See if sys/param.h defines the BYTE_ORDER macro.
4128cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004130_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004133/* end confdefs.h. */
4134#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004135#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004136
4137int
4138main ()
4139{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004140#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4141 bogus endian macros
4142#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004143
4144 ;
4145 return 0;
4146}
4147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004148rm -f conftest.$ac_objext
4149if { (ac_try="$ac_compile"
4150case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_compile") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166esac
4167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4169 ac_status=$?
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try='test -s conftest.$ac_objext'
4173 { (case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_try") 2>&5
4179 ac_status=$?
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004182 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004183cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004188/* end confdefs.h. */
4189#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004190#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004191
4192int
4193main ()
4194{
4195#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004196 not big endian
4197#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004198
4199 ;
4200 return 0;
4201}
4202_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004203rm -f conftest.$ac_objext
4204if { (ac_try="$ac_compile"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004237 ac_cv_c_bigendian=yes
4238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004242 ac_cv_c_bigendian=no
4243fi
4244
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 # It does not; compile a test program.
4251if test "$cross_compiling" = yes; then
4252 # try to guess the endianness by grepping values into an object file
4253 ac_cv_c_bigendian=unknown
4254 cat >conftest.$ac_ext <<_ACEOF
4255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
4260short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4261short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4262void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4263short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4264short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4265void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004266int
4267main ()
4268{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004269 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004270 ;
4271 return 0;
4272}
4273_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004274rm -f conftest.$ac_objext
4275if { (ac_try="$ac_compile"
4276case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_compile") 2>conftest.er1
4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } &&
4288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4289 { (case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292esac
4293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; } &&
4298 { ac_try='test -s conftest.$ac_objext'
4299 { (case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_try") 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004309 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004310fi
4311if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4312 if test "$ac_cv_c_bigendian" = unknown; then
4313 ac_cv_c_bigendian=no
4314 else
4315 # finding both strings is unlikely to happen, but who knows?
4316 ac_cv_c_bigendian=unknown
4317 fi
4318fi
Reid Spencera773bd52006-08-04 18:18:08 +00004319else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004323
Torok Edwin871384f2010-01-26 08:50:50 +00004324fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004325
Reid Spencera773bd52006-08-04 18:18:08 +00004326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004328 cat >conftest.$ac_ext <<_ACEOF
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004333/* end confdefs.h. */
4334$ac_includes_default
4335int
4336main ()
4337{
4338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004339 /* Are we little or big endian? From Harbison&Steele. */
4340 union
4341 {
4342 long int l;
4343 char c[sizeof (long int)];
4344 } u;
4345 u.l = 1;
4346 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004347
4348 ;
4349 return 0;
4350}
4351_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004352rm -f conftest$ac_exeext
4353if { (ac_try="$ac_link"
4354case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_link") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4363 { (case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366esac
4367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_try") 2>&5
4369 ac_status=$?
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004372 ac_cv_c_bigendian=no
4373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374 echo "$as_me: program exited with status $ac_status" >&5
4375echo "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378( exit $ac_status )
4379ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004381rm -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 +00004382fi
4383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004384
Reid Spencera773bd52006-08-04 18:18:08 +00004385fi
4386
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388fi
4389{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4390echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4391case $ac_cv_c_bigendian in
4392 yes)
4393 ENDIAN=big
4394 ;;
4395 no)
4396 ENDIAN=little
4397 ;;
4398 *)
4399 { { echo "$as_me:$LINENO: error: unknown endianness
4400presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4401echo "$as_me: error: unknown endianness
4402presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4403 { (exit 1); exit 1; }; } ;;
4404esac
Reid Spencera773bd52006-08-04 18:18:08 +00004405
4406
4407if test "$cross_compiling" = yes; then
4408 LLVM_CROSS_COMPILING=1
4409
4410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004411{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4412echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4413if test "${ac_cv_build_exeext+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004415else
4416 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4417 ac_cv_build_exeext=.exe
4418else
4419 ac_build_prefix=${build_alias}-
4420
4421 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4422set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004427else
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 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 +00004438 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004440 break 2
4441 fi
4442done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443done
Reid Spencera773bd52006-08-04 18:18:08 +00004444IFS=$as_save_IFS
4445
4446fi
4447fi
4448BUILD_CC=$ac_cv_prog_BUILD_CC
4449if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004455fi
4456
4457
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "gcc", so it can be a program name with args.
4460set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004465else
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468else
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 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 +00004476 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004478 break 2
4479 fi
4480done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004481done
Reid Spencera773bd52006-08-04 18:18:08 +00004482IFS=$as_save_IFS
4483
4484fi
4485fi
4486BUILD_CC=$ac_cv_prog_BUILD_CC
4487if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004488 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4489echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004490else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004491 { echo "$as_me:$LINENO: result: no" >&5
4492echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004493fi
4494
4495
4496 if test -z "$BUILD_CC"; then
4497 # Extract the first word of "cc", so it can be a program name with args.
4498set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004503else
4504 if test -n "$BUILD_CC"; then
4505 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4506else
4507 ac_prog_rejected=no
4508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509for as_dir in $PATH
4510do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 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 +00004515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4516 ac_prog_rejected=yes
4517 continue
4518 fi
4519 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004521 break 2
4522 fi
4523done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004524done
Reid Spencera773bd52006-08-04 18:18:08 +00004525IFS=$as_save_IFS
4526
4527if test $ac_prog_rejected = yes; then
4528 # We found a bogon in the path, so make sure we never use it.
4529 set dummy $ac_cv_prog_BUILD_CC
4530 shift
4531 if test $# != 0; then
4532 # We chose a different compiler from the bogus one.
4533 # However, it has the same basename, so the bogon will be chosen
4534 # first if we set BUILD_CC to just the basename; use the full file name.
4535 shift
4536 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4537 fi
4538fi
4539fi
4540fi
4541BUILD_CC=$ac_cv_prog_BUILD_CC
4542if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004543 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4544echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546 { echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004548fi
4549
4550
4551 fi
4552 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4554echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4555 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004556 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4557 rm -f conftest*
4558 echo 'int main () { return 0; }' > conftest.$ac_ext
4559 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004560 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004561 (eval $ac_build_link) 2>&5
4562 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004565 for file in conftest.*; do
4566 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004567 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004568 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4569 esac
4570 done
4571 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4573echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4574 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004575 fi
4576 rm -f conftest*
4577 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4578fi
4579fi
4580
4581BUILD_EXEEXT=""
4582test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4584echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004585ac_build_exeext=$BUILD_EXEEXT
4586
Jim Grosbach673612e2008-10-02 22:56:44 +00004587 ac_build_prefix=${build_alias}-
4588 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4589set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004594else
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 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 +00004605 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004607 break 2
4608 fi
4609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610done
Jim Grosbach673612e2008-10-02 22:56:44 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 { echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004622fi
4623
4624
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "g++", so it can be a program name with args.
4627set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004632else
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635else
4636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637for as_dir in $PATH
4638do
4639 IFS=$as_save_IFS
4640 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 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 +00004643 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004645 break 2
4646 fi
4647done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004648done
Jim Grosbach673612e2008-10-02 22:56:44 +00004649IFS=$as_save_IFS
4650
4651fi
4652fi
4653BUILD_CXX=$ac_cv_prog_BUILD_CXX
4654if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004655 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4656echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004657else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004658 { echo "$as_me:$LINENO: result: no" >&5
4659echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004660fi
4661
4662
4663 if test -z "$BUILD_CXX"; then
4664 # Extract the first word of "c++", so it can be a program name with args.
4665set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004670else
4671 if test -n "$BUILD_CXX"; then
4672 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4673else
4674 ac_prog_rejected=no
4675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676for as_dir in $PATH
4677do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 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 +00004682 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4683 ac_prog_rejected=yes
4684 continue
4685 fi
4686 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004688 break 2
4689 fi
4690done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004691done
Jim Grosbach673612e2008-10-02 22:56:44 +00004692IFS=$as_save_IFS
4693
4694if test $ac_prog_rejected = yes; then
4695 # We found a bogon in the path, so make sure we never use it.
4696 set dummy $ac_cv_prog_BUILD_CXX
4697 shift
4698 if test $# != 0; then
4699 # We chose a different compiler from the bogus one.
4700 # However, it has the same basename, so the bogon will be chosen
4701 # first if we set BUILD_CXX to just the basename; use the full file name.
4702 shift
4703 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4704 fi
4705fi
4706fi
4707fi
4708BUILD_CXX=$ac_cv_prog_BUILD_CXX
4709if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004710 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4711echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004712else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004713 { echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004715fi
4716
4717
4718 fi
4719 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004720else
4721 LLVM_CROSS_COMPILING=0
4722
4723fi
4724
Dan Gohman56fb5f92010-08-04 16:25:01 +00004725if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004726 cvsbuild="yes"
4727 optimize="no"
4728 CVSBUILD=CVSBUILD=1
4729
4730else
4731 cvsbuild="no"
4732 optimize="yes"
4733fi
4734
4735
4736# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004737if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004738 enableval=$enable_optimized;
4739else
4740 enableval=$optimize
4741fi
4742
4743if test ${enableval} = "no" ; then
4744 ENABLE_OPTIMIZED=
4745
4746else
4747 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4748
4749fi
4750
David Greene2a5a12c2009-04-17 14:50:39 +00004751# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004752if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004753 enableval=$enable_profiling;
4754else
4755 enableval="no"
4756fi
4757
4758if test ${enableval} = "no" ; then
4759 ENABLE_PROFILING=
4760
4761else
4762 ENABLE_PROFILING=ENABLE_PROFILING=1
4763
4764fi
4765
Reid Spencera773bd52006-08-04 18:18:08 +00004766# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004767if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004768 enableval=$enable_assertions;
4769else
4770 enableval="yes"
4771fi
4772
4773if test ${enableval} = "yes" ; then
4774 DISABLE_ASSERTIONS=
4775
4776else
4777 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4778
4779fi
4780
David Greenea696d242007-06-28 19:36:08 +00004781# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004782if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004783 enableval=$enable_expensive_checks;
4784else
4785 enableval="no"
4786fi
4787
4788if test ${enableval} = "yes" ; then
4789 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4790
4791 EXPENSIVE_CHECKS=yes
4792
4793else
4794 ENABLE_EXPENSIVE_CHECKS=
4795
4796 EXPENSIVE_CHECKS=no
4797
4798fi
4799
Reid Spencer8b2e1412006-11-17 03:32:33 +00004800# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004801if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004802 enableval=$enable_debug_runtime;
4803else
4804 enableval=no
4805fi
4806
4807if test ${enableval} = "no" ; then
4808 DEBUG_RUNTIME=
4809
4810else
4811 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4812
4813fi
4814
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004815# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004816if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004817 enableval=$enable_debug_symbols;
4818else
4819 enableval=no
4820fi
4821
4822if test ${enableval} = "no" ; then
4823 DEBUG_SYMBOLS=
4824
4825else
4826 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4827
4828fi
4829
Reid Spencera773bd52006-08-04 18:18:08 +00004830# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004831if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004832 enableval=$enable_jit;
4833else
4834 enableval=default
4835fi
4836
4837if test ${enableval} = "no"
4838then
4839 JIT=
4840
4841else
4842 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004843 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004844 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004845 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004846 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004847 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004848 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004849 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004850 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004851 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004852 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004853 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004854 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004855 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004856 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004857 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004858 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004859 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004860 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004861 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004862 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004863 Blackfin) TARGET_HAS_JIT=0
4864 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004865 MBlaze) TARGET_HAS_JIT=0
4866 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004867 PTX) TARGET_HAS_JIT=0
4868 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004869 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004870 ;;
4871 esac
4872fi
4873
4874# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004875if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004876 enableval=$enable_doxygen;
4877else
4878 enableval=default
4879fi
4880
4881case "$enableval" in
4882 yes) ENABLE_DOXYGEN=1
4883 ;;
4884 no) ENABLE_DOXYGEN=0
4885 ;;
4886 default) ENABLE_DOXYGEN=0
4887 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004888 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4889echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4890 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004891esac
4892
4893# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004894if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004895 enableval=$enable_threads;
4896else
Reid Spencer65c5d752006-11-05 17:08:18 +00004897 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004898fi
4899
4900case "$enableval" in
4901 yes) ENABLE_THREADS=1
4902 ;;
4903 no) ENABLE_THREADS=0
4904 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004905 default) ENABLE_THREADS=1
4906 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004907 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4908echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4909 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004910esac
4911
Owen Andersona8603702009-05-19 22:18:56 +00004912cat >>confdefs.h <<_ACEOF
4913#define ENABLE_THREADS $ENABLE_THREADS
4914_ACEOF
4915
4916
Reid Spencer89b0d992006-12-16 22:07:52 +00004917# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004918if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004919 enableval=$enable_pic;
4920else
4921 enableval=default
4922fi
4923
4924case "$enableval" in
4925 yes) ENABLE_PIC=1
4926 ;;
4927 no) ENABLE_PIC=0
4928 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004929 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004930 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004931 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4932echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4933 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004934esac
4935
4936cat >>confdefs.h <<_ACEOF
4937#define ENABLE_PIC $ENABLE_PIC
4938_ACEOF
4939
4940
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004941# Check whether --enable-shared was given.
4942if test "${enable_shared+set}" = set; then
4943 enableval=$enable_shared;
4944else
4945 enableval=default
4946fi
4947
4948case "$enableval" in
4949 yes) ENABLE_SHARED=1
4950 ;;
4951 no) ENABLE_SHARED=0
4952 ;;
4953 default) ENABLE_SHARED=0
4954 ;;
4955 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4956echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4957 { (exit 1); exit 1; }; } ;;
4958esac
4959
Daniel Dunbardd464df2010-05-10 20:11:56 +00004960# Check whether --enable-timestamps was given.
4961if test "${enable_timestamps+set}" = set; then
4962 enableval=$enable_timestamps;
4963else
4964 enableval=default
4965fi
4966
4967case "$enableval" in
4968 yes) ENABLE_TIMESTAMPS=1
4969 ;;
4970 no) ENABLE_TIMESTAMPS=0
4971 ;;
4972 default) ENABLE_TIMESTAMPS=1
4973 ;;
4974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4975echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4977esac
4978
4979cat >>confdefs.h <<_ACEOF
4980#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4981_ACEOF
4982
4983
Reid Spencera773bd52006-08-04 18:18:08 +00004984TARGETS_TO_BUILD=""
4985# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004986if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004987 enableval=$enable_targets;
4988else
4989 enableval=all
4990fi
4991
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004992if test "$enableval" = host-only ; then
4993 enableval=host
4994fi
Reid Spencera773bd52006-08-04 18:18:08 +00004995case "$enableval" in
Chris Lattner60cb5282010-10-11 05:44:40 +00004996 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004997 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4998 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004999 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5000 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5002 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5003 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5004 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5005 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5006 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005007 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5008 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5009 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5010 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5011 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00005012 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005013 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005014 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005015 host) case "$llvm_cv_target_arch" in
5016 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5017 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5018 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5019 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5020 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5021 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5022 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00005023 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005024 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005025 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5026 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00005027 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005028 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00005029 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005030 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5031echo "$as_me: error: Can not set target to build" >&2;}
5032 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005033 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005034 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5035echo "$as_me: error: Unrecognized target $a_target" >&2;}
5036 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005037 esac
5038 done
5039 ;;
5040esac
Reid Spencera773bd52006-08-04 18:18:08 +00005041TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5042
5043
Douglas Gregor0711c302009-06-17 00:43:20 +00005044# Determine whether we are building LLVM support for the native architecture.
5045# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5046for a_target in $TARGETS_TO_BUILD; do
5047 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5048
5049cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005050#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5051_ACEOF
5052
5053 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5054 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5055 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5056
5057cat >>confdefs.h <<_ACEOF
5058#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005059_ACEOF
5060
5061
5062cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005063#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5064_ACEOF
5065
5066
5067cat >>confdefs.h <<_ACEOF
5068#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005069_ACEOF
5070
5071 fi
5072done
5073
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005074# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5075# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005076LLVM_ENUM_TARGETS=""
5077LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005078LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005079LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005080for target_to_build in $TARGETS_TO_BUILD; do
5081 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5082 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5083 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5084 fi
Jim Grosbach7ac16092010-10-01 22:39:28 +00005085 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5086 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5087 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5088 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005089 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5090 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5091 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005092 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5093 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5094 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005095done
5096
5097
5098
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005099
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005100
Reid Spencer65c5d752006-11-05 17:08:18 +00005101# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005102if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005103 enableval=$enable_cbe_printf_a;
5104else
5105 enableval=default
5106fi
5107
5108case "$enableval" in
5109 yes) ENABLE_CBE_PRINTF_A=1
5110 ;;
5111 no) ENABLE_CBE_PRINTF_A=0
5112 ;;
5113 default) ENABLE_CBE_PRINTF_A=1
5114 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005115 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5116echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5117 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005118esac
5119
5120cat >>confdefs.h <<_ACEOF
5121#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5122_ACEOF
5123
5124
Reid Spencera773bd52006-08-04 18:18:08 +00005125
5126# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005127if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005128 withval=$with_llvmgccdir;
5129else
5130 withval=default
5131fi
5132
5133case "$withval" in
5134 default) WITH_LLVMGCCDIR=default ;;
5135 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005136 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5137echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5138 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005139esac
5140
5141
Devang Patel5d28b882007-12-04 22:54:47 +00005142# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005143if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005144 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5145 WITH_LLVMGCCDIR=""
5146fi
5147
5148
5149
5150# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005151if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005152 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5153 WITH_LLVMGCCDIR=""
5154fi
5155
Douglas Gregor01746742009-05-11 18:05:52 +00005156
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005157if test -n "$LLVMGCC"; then
5158 LLVMGCCCOMMAND="$LLVMGCC"
5159fi
5160
5161if test -n "$LLVMGXX"; then
5162 LLVMGXXCOMMAND="$LLVMGXX"
5163fi
Devang Patel5d28b882007-12-04 22:54:47 +00005164
5165if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005166 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5167echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5168 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005169fi
5170
5171if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005172 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5173echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5174 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005175fi
5176
5177
Daniel Dunbar98515672010-02-23 10:00:49 +00005178# Check whether --with-clang was given.
5179if test "${with_clang+set}" = set; then
5180 withval=$with_clang;
5181else
5182 with_clang=default
5183fi
5184
5185
5186
5187# Check whether --with-built-clang was given.
5188if test "${with_built_clang+set}" = set; then
5189 withval=$with_built_clang;
5190else
5191 with_built_clang=check
5192fi
5193
5194
5195{ echo "$as_me:$LINENO: checking clang compiler" >&5
5196echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5197WITH_CLANGPATH=""
5198WITH_BUILT_CLANG=0
5199if test "$with_clang" != "default"; then
5200 WITH_CLANGPATH="$with_clang"
5201 if ! test -x "$WITH_CLANGPATH"; then
5202 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5203echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5204 { (exit 1); exit 1; }; }
5205 fi
5206elif test "$with_built_clang" = "yes"; then
5207 WITH_BUILT_CLANG=1
5208elif test "$with_built_clang" = "no"; then
5209 WITH_BUILT_CLANG=0
5210else
5211 if test "$with_built_clang" != "check"; then
5212 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5213echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5214 { (exit 1); exit 1; }; }
5215 fi
5216
5217 if test -f ${srcdir}/tools/clang/README.txt; then
5218 WITH_BUILT_CLANG=1
5219 fi
5220fi
5221
5222if ! test -z "$WITH_CLANGPATH"; then
5223 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5224echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5225 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5226elif test "$WITH_BUILT_CLANG" = "1"; then
5227 { echo "$as_me:$LINENO: result: built" >&5
5228echo "${ECHO_T}built" >&6; }
5229else
5230 { echo "$as_me:$LINENO: result: none" >&5
5231echo "${ECHO_T}none" >&6; }
5232fi
5233CLANGPATH=$WITH_CLANGPATH
5234
5235CLANGXXPATH=$WITH_CLANGXXPATH
5236
5237ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5238
5239
5240
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005241# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005242if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005243 withval=$with_optimize_option;
5244else
5245 withval=default
5246fi
5247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005248{ echo "$as_me:$LINENO: checking optimization flags" >&5
5249echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005250case "$withval" in
5251 default)
5252 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005253 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005254 MingW) optimize_option=-O2 ;;
5255 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005256 esac ;;
5257 *) optimize_option="$withval" ;;
5258esac
5259OPTIMIZE_OPTION=$optimize_option
5260
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005261{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5262echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005263
5264
Reid Spencera773bd52006-08-04 18:18:08 +00005265# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005266if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005267 withval=$with_extra_options;
5268else
5269 withval=default
5270fi
5271
5272case "$withval" in
5273 default) EXTRA_OPTIONS= ;;
5274 *) EXTRA_OPTIONS=$withval ;;
5275esac
5276EXTRA_OPTIONS=$EXTRA_OPTIONS
5277
5278
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005279# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005280if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005281 enableval=$enable_bindings;
5282else
5283 enableval=default
5284fi
5285
5286BINDINGS_TO_BUILD=""
5287case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005288 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005289 all ) BINDINGS_TO_BUILD="ocaml" ;;
5290 none | no) BINDINGS_TO_BUILD="" ;;
5291 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5292 case "$a_binding" in
5293 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005294 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5295echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5296 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005297 esac
5298 done
5299 ;;
5300esac
5301
Reid Spencera773bd52006-08-04 18:18:08 +00005302
Gordon Henriksenf0915682007-10-02 16:42:22 +00005303# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005304if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005305 withval=$with_ocaml_libdir;
5306else
5307 withval=auto
5308fi
5309
5310case "$withval" in
5311 auto) with_ocaml_libdir="$withval" ;;
5312 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005313 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5314echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5315 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005316esac
5317
5318
Chandler Carruth6b241162010-10-19 08:21:25 +00005319# Check whether --with-clang-resource-dir was given.
5320if test "${with_clang_resource_dir+set}" = set; then
5321 withval=$with_clang_resource_dir;
5322else
5323 withval=""
5324fi
5325
5326
5327cat >>confdefs.h <<_ACEOF
5328#define CLANG_RESOURCE_DIR "$withval"
5329_ACEOF
5330
5331
5332
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005333# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005334if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005335 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005336else
5337 withval=""
5338fi
5339
5340
5341cat >>confdefs.h <<_ACEOF
5342#define C_INCLUDE_DIRS "$withval"
5343_ACEOF
5344
5345
5346
Rafael Espindola420d23c2009-11-16 19:46:55 +00005347# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005348if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005349 withval=$with_cxx_include_root;
5350else
5351 withval=""
5352fi
5353
5354
5355cat >>confdefs.h <<_ACEOF
5356#define CXX_INCLUDE_ROOT "$withval"
5357_ACEOF
5358
5359
5360
5361# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005362if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005363 withval=$with_cxx_include_arch;
5364else
5365 withval=""
5366fi
5367
5368
5369cat >>confdefs.h <<_ACEOF
5370#define CXX_INCLUDE_ARCH "$withval"
5371_ACEOF
5372
5373
5374
5375# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005376if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005377 withval=$with_cxx_include_32bit_dir;
5378else
5379 withval=""
5380fi
5381
5382
5383cat >>confdefs.h <<_ACEOF
5384#define CXX_INCLUDE_32BIT_DIR "$withval"
5385_ACEOF
5386
5387
5388
5389# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005390if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005391 withval=$with_cxx_include_64bit_dir;
5392else
5393 withval=""
5394fi
5395
5396
5397cat >>confdefs.h <<_ACEOF
5398#define CXX_INCLUDE_64BIT_DIR "$withval"
5399_ACEOF
5400
5401
5402
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005403# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005404if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005405 withval=$with_binutils_include;
5406else
5407 withval=default
5408fi
5409
5410case "$withval" in
5411 default) WITH_BINUTILS_INCDIR=default ;;
5412 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005413 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5414echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5415 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005416esac
5417if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5418 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5419
5420 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5421 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005422 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5423echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5424 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005425 fi
5426fi
5427
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005428# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005429if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005430 enableval=$enable_libffi; case "$enableval" in
5431 yes) llvm_cv_enable_libffi="yes" ;;
5432 no) llvm_cv_enable_libffi="no" ;;
5433 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005434echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5435 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005436 esac
5437else
5438 llvm_cv_enable_libffi=no
5439fi
5440
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005441
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005442
Reid Spencera773bd52006-08-04 18:18:08 +00005443ac_ext=c
5444ac_cpp='$CPP $CPPFLAGS'
5445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005448{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5449echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005450# On Suns, sometimes $CPP names a directory.
5451if test -n "$CPP" && test -d "$CPP"; then
5452 CPP=
5453fi
5454if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005455 if test "${ac_cv_prog_CPP+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005457else
5458 # Double quotes because CPP needs to be expanded
5459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5460 do
5461 ac_preproc_ok=false
5462for ac_c_preproc_warn_flag in '' yes
5463do
5464 # Use a header file that comes with gcc, so configuring glibc
5465 # with a fresh cross-compiler works.
5466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5467 # <limits.h> exists even on freestanding compilers.
5468 # On the NeXT, cc -E runs the code through the compiler's parser,
5469 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005470 cat >conftest.$ac_ext <<_ACEOF
5471/* confdefs.h. */
5472_ACEOF
5473cat confdefs.h >>conftest.$ac_ext
5474cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005475/* end confdefs.h. */
5476#ifdef __STDC__
5477# include <limits.h>
5478#else
5479# include <assert.h>
5480#endif
5481 Syntax error
5482_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005483if { (ac_try="$ac_cpp conftest.$ac_ext"
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_c_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5499 else
5500 ac_cpp_err=
5501 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005502else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005503 ac_cpp_err=yes
5504fi
5505if test -z "$ac_cpp_err"; then
5506 :
5507else
5508 echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
Reid Spencera773bd52006-08-04 18:18:08 +00005511 # Broken: fails on valid input.
5512continue
5513fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005514
Reid Spencera773bd52006-08-04 18:18:08 +00005515rm -f conftest.err conftest.$ac_ext
5516
5517 # OK, works on sane cases. Now check whether nonexistent headers
5518 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005519 cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h. */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005524/* end confdefs.h. */
5525#include <ac_nonexistent.h>
5526_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005527if { (ac_try="$ac_cpp conftest.$ac_ext"
5528case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531esac
5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } >/dev/null; then
5540 if test -s conftest.err; then
5541 ac_cpp_err=$ac_c_preproc_warn_flag
5542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5543 else
5544 ac_cpp_err=
5545 fi
5546else
5547 ac_cpp_err=yes
5548fi
5549if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005550 # Broken: success on invalid input.
5551continue
5552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005553 echo "$as_me: failed program was:" >&5
5554sed 's/^/| /' conftest.$ac_ext >&5
5555
Reid Spencera773bd52006-08-04 18:18:08 +00005556 # Passes both tests.
5557ac_preproc_ok=:
5558break
5559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005560
Reid Spencera773bd52006-08-04 18:18:08 +00005561rm -f conftest.err conftest.$ac_ext
5562
5563done
5564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5565rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005567 break
5568fi
5569
5570 done
5571 ac_cv_prog_CPP=$CPP
5572
5573fi
5574 CPP=$ac_cv_prog_CPP
5575else
5576 ac_cv_prog_CPP=$CPP
5577fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005578{ echo "$as_me:$LINENO: result: $CPP" >&5
5579echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005580ac_preproc_ok=false
5581for ac_c_preproc_warn_flag in '' yes
5582do
5583 # Use a header file that comes with gcc, so configuring glibc
5584 # with a fresh cross-compiler works.
5585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586 # <limits.h> exists even on freestanding compilers.
5587 # On the NeXT, cc -E runs the code through the compiler's parser,
5588 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005589 cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h. */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005594/* end confdefs.h. */
5595#ifdef __STDC__
5596# include <limits.h>
5597#else
5598# include <assert.h>
5599#endif
5600 Syntax error
5601_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005602if { (ac_try="$ac_cpp conftest.$ac_ext"
5603case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } >/dev/null; then
5615 if test -s conftest.err; then
5616 ac_cpp_err=$ac_c_preproc_warn_flag
5617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618 else
5619 ac_cpp_err=
5620 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005621else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005622 ac_cpp_err=yes
5623fi
5624if test -z "$ac_cpp_err"; then
5625 :
5626else
5627 echo "$as_me: failed program was:" >&5
5628sed 's/^/| /' conftest.$ac_ext >&5
5629
Reid Spencera773bd52006-08-04 18:18:08 +00005630 # Broken: fails on valid input.
5631continue
5632fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005633
Reid Spencera773bd52006-08-04 18:18:08 +00005634rm -f conftest.err conftest.$ac_ext
5635
5636 # OK, works on sane cases. Now check whether nonexistent headers
5637 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005638 cat >conftest.$ac_ext <<_ACEOF
5639/* confdefs.h. */
5640_ACEOF
5641cat confdefs.h >>conftest.$ac_ext
5642cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005643/* end confdefs.h. */
5644#include <ac_nonexistent.h>
5645_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005646if { (ac_try="$ac_cpp conftest.$ac_ext"
5647case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650esac
5651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } >/dev/null; then
5659 if test -s conftest.err; then
5660 ac_cpp_err=$ac_c_preproc_warn_flag
5661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5662 else
5663 ac_cpp_err=
5664 fi
5665else
5666 ac_cpp_err=yes
5667fi
5668if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005669 # Broken: success on invalid input.
5670continue
5671else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
Reid Spencera773bd52006-08-04 18:18:08 +00005675 # Passes both tests.
5676ac_preproc_ok=:
5677break
5678fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005679
Reid Spencera773bd52006-08-04 18:18:08 +00005680rm -f conftest.err conftest.$ac_ext
5681
5682done
5683# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5684rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005685if $ac_preproc_ok; then
5686 :
Reid Spencera773bd52006-08-04 18:18:08 +00005687else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5689See \`config.log' for more details." >&5
5690echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5691See \`config.log' for more details." >&2;}
5692 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005693fi
5694
5695ac_ext=c
5696ac_cpp='$CPP $CPPFLAGS'
5697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700
5701ac_ext=c
5702ac_cpp='$CPP $CPPFLAGS'
5703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706if test -n "$ac_tool_prefix"; then
5707 for ac_prog in gcc
5708 do
5709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5710set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5713if test "${ac_cv_prog_CC+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005715else
5716 if test -n "$CC"; then
5717 ac_cv_prog_CC="$CC" # Let the user override the test.
5718else
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 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 +00005726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005728 break 2
5729 fi
5730done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731done
Reid Spencera773bd52006-08-04 18:18:08 +00005732IFS=$as_save_IFS
5733
5734fi
5735fi
5736CC=$ac_cv_prog_CC
5737if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005738 { echo "$as_me:$LINENO: result: $CC" >&5
5739echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005741 { echo "$as_me:$LINENO: result: no" >&5
5742echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005743fi
5744
5745
5746 test -n "$CC" && break
5747 done
5748fi
5749if test -z "$CC"; then
5750 ac_ct_CC=$CC
5751 for ac_prog in gcc
5752do
5753 # Extract the first word of "$ac_prog", so it can be a program name with args.
5754set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5757if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005759else
5760 if test -n "$ac_ct_CC"; then
5761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5762else
5763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764for as_dir in $PATH
5765do
5766 IFS=$as_save_IFS
5767 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 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 +00005770 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005772 break 2
5773 fi
5774done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005775done
Reid Spencera773bd52006-08-04 18:18:08 +00005776IFS=$as_save_IFS
5777
5778fi
5779fi
5780ac_ct_CC=$ac_cv_prog_ac_ct_CC
5781if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005782 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5783echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005784else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005785 { echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005787fi
5788
5789
5790 test -n "$ac_ct_CC" && break
5791done
5792
5793 if test "x$ac_ct_CC" = x; then
5794 CC=""
5795 else
5796 case $cross_compiling:$ac_tool_warned in
5797yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005798{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5799whose name does not start with the host triplet. If you think this
5800configuration is useful to you, please write to autoconf@gnu.org." >&5
5801echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5802whose name does not start with the host triplet. If you think this
5803configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005804ac_tool_warned=yes ;;
5805esac
5806 CC=$ac_ct_CC
5807 fi
5808fi
5809
5810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005811test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5812See \`config.log' for more details." >&5
5813echo "$as_me: error: no acceptable C compiler found in \$PATH
5814See \`config.log' for more details." >&2;}
5815 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005816
5817# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005818echo "$as_me:$LINENO: checking for C compiler version" >&5
5819ac_compiler=`set X $ac_compile; echo $2`
5820{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005821case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005827 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }
5830{ (ac_try="$ac_compiler -v >&5"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
5835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compiler -v >&5") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }
5840{ (ac_try="$ac_compiler -V >&5"
5841case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844esac
5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compiler -V >&5") 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005851{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5852echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5853if test "${ac_cv_c_compiler_gnu+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005855else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005856 cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h. */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005861/* end confdefs.h. */
5862
5863int
5864main ()
5865{
5866#ifndef __GNUC__
5867 choke me
5868#endif
5869
5870 ;
5871 return 0;
5872}
5873_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874rm -f conftest.$ac_objext
5875if { (ac_try="$ac_compile"
5876case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_compile") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5889 { (case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892esac
5893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_try") 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; } &&
5898 { ac_try='test -s conftest.$ac_objext'
5899 { (case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902esac
5903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_try") 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005908 ac_compiler_gnu=yes
5909else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005914fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005915
Reid Spencera773bd52006-08-04 18:18:08 +00005916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5917ac_cv_c_compiler_gnu=$ac_compiler_gnu
5918
5919fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005920{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5921echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5922GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005923ac_test_CFLAGS=${CFLAGS+set}
5924ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005925{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5926echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5927if test "${ac_cv_prog_cc_g+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005929else
5930 ac_save_c_werror_flag=$ac_c_werror_flag
5931 ac_c_werror_flag=yes
5932 ac_cv_prog_cc_g=no
5933 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934 cat >conftest.$ac_ext <<_ACEOF
5935/* confdefs.h. */
5936_ACEOF
5937cat confdefs.h >>conftest.$ac_ext
5938cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005939/* end confdefs.h. */
5940
5941int
5942main ()
5943{
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005949rm -f conftest.$ac_objext
5950if { (ac_try="$ac_compile"
5951case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_compile") 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } &&
5963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5964 { (case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967esac
5968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_try") 2>&5
5970 ac_status=$?
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; } &&
5973 { ac_try='test -s conftest.$ac_objext'
5974 { (case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977esac
5978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_try") 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005983 ac_cv_prog_cc_g=yes
5984else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005985 echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 CFLAGS=""
5989 cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005994/* end confdefs.h. */
5995
5996int
5997main ()
5998{
5999
6000 ;
6001 return 0;
6002}
6003_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006004rm -f conftest.$ac_objext
6005if { (ac_try="$ac_compile"
6006case "(($ac_try" in
6007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6009esac
6010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6012 ac_status=$?
6013 grep -v '^ *+' conftest.er1 >conftest.err
6014 rm -f conftest.er1
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032esac
6033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_try") 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 :
Torok Edwin871384f2010-01-26 08:50:50 +00006039else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040 echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006044 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006045 cat >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
6052int
6053main ()
6054{
6055
6056 ;
6057 return 0;
6058}
6059_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060rm -f conftest.$ac_objext
6061if { (ac_try="$ac_compile"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6075 { (case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_try") 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088esac
6089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_try") 2>&5
6091 ac_status=$?
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006094 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006095else
6096 echo "$as_me: failed program was:" >&5
6097sed 's/^/| /' conftest.$ac_ext >&5
6098
6099
Reid Spencera773bd52006-08-04 18:18:08 +00006100fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006101
Reid Spencera773bd52006-08-04 18:18:08 +00006102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006104
Reid Spencera773bd52006-08-04 18:18:08 +00006105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006107
Reid Spencera773bd52006-08-04 18:18:08 +00006108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 ac_c_werror_flag=$ac_save_c_werror_flag
6110fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006111{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6112echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006113if test "$ac_test_CFLAGS" = set; then
6114 CFLAGS=$ac_save_CFLAGS
6115elif test $ac_cv_prog_cc_g = yes; then
6116 if test "$GCC" = yes; then
6117 CFLAGS="-g -O2"
6118 else
6119 CFLAGS="-g"
6120 fi
6121else
6122 if test "$GCC" = yes; then
6123 CFLAGS="-O2"
6124 else
6125 CFLAGS=
6126 fi
6127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006128{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6129echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6130if test "${ac_cv_prog_cc_c89+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006132else
6133 ac_cv_prog_cc_c89=no
6134ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006135cat >conftest.$ac_ext <<_ACEOF
6136/* confdefs.h. */
6137_ACEOF
6138cat confdefs.h >>conftest.$ac_ext
6139cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006140/* end confdefs.h. */
6141#include <stdarg.h>
6142#include <stdio.h>
6143#include <sys/types.h>
6144#include <sys/stat.h>
6145/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6146struct buf { int x; };
6147FILE * (*rcsopen) (struct buf *, struct stat *, int);
6148static char *e (p, i)
6149 char **p;
6150 int i;
6151{
6152 return p[i];
6153}
6154static char *f (char * (*g) (char **, int), char **p, ...)
6155{
6156 char *s;
6157 va_list v;
6158 va_start (v,p);
6159 s = g (p, va_arg (v,int));
6160 va_end (v);
6161 return s;
6162}
6163
6164/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6165 function prototypes and stuff, but not '\xHH' hex character constants.
6166 These don't provoke an error unfortunately, instead are silently treated
6167 as 'x'. The following induces an error, until -std is added to get
6168 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6169 array size at least. It's necessary to write '\x00'==0 to get something
6170 that's true only with -std. */
6171int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6172
6173/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6174 inside strings and character constants. */
6175#define FOO(x) 'x'
6176int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6177
6178int test (int i, double x);
6179struct s1 {int (*f) (int a);};
6180struct s2 {int (*f) (double a);};
6181int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6182int argc;
6183char **argv;
6184int
6185main ()
6186{
6187return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6188 ;
6189 return 0;
6190}
6191_ACEOF
6192for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6193 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6194do
6195 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006196 rm -f conftest.$ac_objext
6197if { (ac_try="$ac_compile"
6198case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6201esac
6202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_compile") 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } &&
6210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211 { (case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_try") 2>&5
6217 ac_status=$?
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); }; } &&
6220 { ac_try='test -s conftest.$ac_objext'
6221 { (case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224esac
6225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_try") 2>&5
6227 ac_status=$?
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006230 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006231else
6232 echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
Reid Spencera773bd52006-08-04 18:18:08 +00006236fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006237
Reid Spencera773bd52006-08-04 18:18:08 +00006238rm -f core conftest.err conftest.$ac_objext
6239 test "x$ac_cv_prog_cc_c89" != "xno" && break
6240done
6241rm -f conftest.$ac_ext
6242CC=$ac_save_CC
6243
6244fi
6245# AC_CACHE_VAL
6246case "x$ac_cv_prog_cc_c89" in
6247 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006248 { echo "$as_me:$LINENO: result: none needed" >&5
6249echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006250 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006251 { echo "$as_me:$LINENO: result: unsupported" >&5
6252echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006253 *)
6254 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006255 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6256echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006257esac
6258
6259
6260ac_ext=c
6261ac_cpp='$CPP $CPPFLAGS'
6262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265
6266ac_ext=cpp
6267ac_cpp='$CXXCPP $CPPFLAGS'
6268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6271if test -z "$CXX"; then
6272 if test -n "$CCC"; then
6273 CXX=$CCC
6274 else
6275 if test -n "$ac_tool_prefix"; then
6276 for ac_prog in g++
6277 do
6278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6282if test "${ac_cv_prog_CXX+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006284else
6285 if test -n "$CXX"; then
6286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293 for ac_exec_ext in '' $ac_executable_extensions; do
6294 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 +00006295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006297 break 2
6298 fi
6299done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300done
Reid Spencera773bd52006-08-04 18:18:08 +00006301IFS=$as_save_IFS
6302
6303fi
6304fi
6305CXX=$ac_cv_prog_CXX
6306if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006307 { echo "$as_me:$LINENO: result: $CXX" >&5
6308echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006309else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006310 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006312fi
6313
6314
6315 test -n "$CXX" && break
6316 done
6317fi
6318if test -z "$CXX"; then
6319 ac_ct_CXX=$CXX
6320 for ac_prog in g++
6321do
6322 # Extract the first word of "$ac_prog", so it can be a program name with args.
6323set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006328else
6329 if test -n "$ac_ct_CXX"; then
6330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 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 +00006339 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006341 break 2
6342 fi
6343done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006344done
Reid Spencera773bd52006-08-04 18:18:08 +00006345IFS=$as_save_IFS
6346
6347fi
6348fi
6349ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6350if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006351 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6352echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006353else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006354 { echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006356fi
6357
6358
6359 test -n "$ac_ct_CXX" && break
6360done
6361
6362 if test "x$ac_ct_CXX" = x; then
6363 CXX="g++"
6364 else
6365 case $cross_compiling:$ac_tool_warned in
6366yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006367{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6368whose name does not start with the host triplet. If you think this
6369configuration is useful to you, please write to autoconf@gnu.org." >&5
6370echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6371whose name does not start with the host triplet. If you think this
6372configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006373ac_tool_warned=yes ;;
6374esac
6375 CXX=$ac_ct_CXX
6376 fi
6377fi
6378
6379 fi
6380fi
6381# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006382echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6383ac_compiler=`set X $ac_compile; echo $2`
6384{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006385case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006391 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }
6394{ (ac_try="$ac_compiler -v >&5"
6395case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398esac
6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_compiler -v >&5") 2>&5
6401 ac_status=$?
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); }
6404{ (ac_try="$ac_compiler -V >&5"
6405case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6408esac
6409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compiler -V >&5") 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006414
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006415{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6416echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6417if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006420 cat >conftest.$ac_ext <<_ACEOF
6421/* confdefs.h. */
6422_ACEOF
6423cat confdefs.h >>conftest.$ac_ext
6424cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006425/* end confdefs.h. */
6426
6427int
6428main ()
6429{
6430#ifndef __GNUC__
6431 choke me
6432#endif
6433
6434 ;
6435 return 0;
6436}
6437_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438rm -f conftest.$ac_objext
6439if { (ac_try="$ac_compile"
6440case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443esac
6444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6453 { (case "(($ac_try" in
6454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6455 *) ac_try_echo=$ac_try;;
6456esac
6457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_try") 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466esac
6467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_try") 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006472 ac_compiler_gnu=yes
6473else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006474 echo "$as_me: failed program was:" >&5
6475sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006478fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006479
Reid Spencera773bd52006-08-04 18:18:08 +00006480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6482
6483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006484{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6485echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6486GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006487ac_test_CXXFLAGS=${CXXFLAGS+set}
6488ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006489{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6490echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6491if test "${ac_cv_prog_cxx_g+set}" = set; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006493else
6494 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6495 ac_cxx_werror_flag=yes
6496 ac_cv_prog_cxx_g=no
6497 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498 cat >conftest.$ac_ext <<_ACEOF
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006503/* end confdefs.h. */
6504
6505int
6506main ()
6507{
6508
6509 ;
6510 return 0;
6511}
6512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006513rm -f conftest.$ac_objext
6514if { (ac_try="$ac_compile"
6515case "(($ac_try" in
6516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6517 *) ac_try_echo=$ac_try;;
6518esac
6519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6520 (eval "$ac_compile") 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
6527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6528 { (case "(($ac_try" in
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6531esac
6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_try") 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (case "(($ac_try" in
6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6541esac
6542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_try") 2>&5
6544 ac_status=$?
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006547 ac_cv_prog_cxx_g=yes
6548else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006549 echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 CXXFLAGS=""
6553 cat >conftest.$ac_ext <<_ACEOF
6554/* confdefs.h. */
6555_ACEOF
6556cat confdefs.h >>conftest.$ac_ext
6557cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006558/* end confdefs.h. */
6559
6560int
6561main ()
6562{
6563
6564 ;
6565 return 0;
6566}
6567_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006568rm -f conftest.$ac_objext
6569if { (ac_try="$ac_compile"
6570case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573esac
6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_compile") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6586esac
6587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596esac
6597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_try") 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 :
Torok Edwin871384f2010-01-26 08:50:50 +00006603else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
6607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006608 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006609 cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h. */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006614/* end confdefs.h. */
6615
6616int
6617main ()
6618{
6619
6620 ;
6621 return 0;
6622}
6623_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624rm -f conftest.$ac_objext
6625if { (ac_try="$ac_compile"
6626case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6629esac
6630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } &&
6638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6639 { (case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642esac
6643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_try") 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_try") 2>&5
6655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006658 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006659else
6660 echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663
Reid Spencera773bd52006-08-04 18:18:08 +00006664fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006665
Reid Spencera773bd52006-08-04 18:18:08 +00006666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006668
Reid Spencera773bd52006-08-04 18:18:08 +00006669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6670fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006671
Reid Spencera773bd52006-08-04 18:18:08 +00006672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6674fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006675{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6676echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006677if test "$ac_test_CXXFLAGS" = set; then
6678 CXXFLAGS=$ac_save_CXXFLAGS
6679elif test $ac_cv_prog_cxx_g = yes; then
6680 if test "$GXX" = yes; then
6681 CXXFLAGS="-g -O2"
6682 else
6683 CXXFLAGS="-g"
6684 fi
6685else
6686 if test "$GXX" = yes; then
6687 CXXFLAGS="-O2"
6688 else
6689 CXXFLAGS=
6690 fi
6691fi
6692ac_ext=c
6693ac_cpp='$CPP $CPPFLAGS'
6694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697
Reid Spencera773bd52006-08-04 18:18:08 +00006698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006699{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6700echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6701if test "${lt_cv_path_NM+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006703else
6704 if test -n "$NM"; then
6705 # Let the user override the test.
6706 lt_cv_path_NM="$NM"
6707else
6708 lt_nm_to_check="${ac_tool_prefix}nm"
6709 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6710 lt_nm_to_check="$lt_nm_to_check nm"
6711 fi
6712 for lt_tmp_nm in $lt_nm_to_check; do
6713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6714 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6715 IFS="$lt_save_ifs"
6716 test -z "$ac_dir" && ac_dir=.
6717 tmp_nm="$ac_dir/$lt_tmp_nm"
6718 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6719 # Check to see if the nm accepts a BSD-compat flag.
6720 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6721 # nm: unknown option "B" ignored
6722 # Tru64's nm complains that /dev/null is an invalid object file
6723 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6724 */dev/null* | *'Invalid file or object type'*)
6725 lt_cv_path_NM="$tmp_nm -B"
6726 break
6727 ;;
6728 *)
6729 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6730 */dev/null*)
6731 lt_cv_path_NM="$tmp_nm -p"
6732 break
6733 ;;
6734 *)
6735 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6736 continue # so that we can try to find one that supports BSD flags
6737 ;;
6738 esac
6739 ;;
6740 esac
6741 fi
6742 done
6743 IFS="$lt_save_ifs"
6744 done
6745 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6746fi
6747fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6749echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006750NM="$lt_cv_path_NM"
6751
6752
6753
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006754{ echo "$as_me:$LINENO: checking for GNU make" >&5
6755echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6756if test "${llvm_cv_gnu_make_command+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006758else
6759 llvm_cv_gnu_make_command=''
6760 for a in "$MAKE" make gmake gnumake ; do
6761 if test -z "$a" ; then continue ; fi ;
6762 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6763 then
6764 llvm_cv_gnu_make_command=$a ;
6765 break;
6766 fi
6767 done
6768fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006769{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6770echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006771 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6772 ifGNUmake='' ;
6773 else
6774 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006775 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6776echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006777 fi
6778
6779
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006780{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6781echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006782LN_S=$as_ln_s
6783if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006784 { echo "$as_me:$LINENO: result: yes" >&5
6785echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006786else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006787 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6788echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006789fi
6790
6791# Extract the first word of "cmp", so it can be a program name with args.
6792set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795if test "${ac_cv_path_CMP+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006797else
6798 case $CMP in
6799 [\\/]* | ?:[\\/]*)
6800 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6801 ;;
6802 *)
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 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 +00006810 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006812 break 2
6813 fi
6814done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006815done
Reid Spencera773bd52006-08-04 18:18:08 +00006816IFS=$as_save_IFS
6817
6818 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6819 ;;
6820esac
6821fi
6822CMP=$ac_cv_path_CMP
6823if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824 { echo "$as_me:$LINENO: result: $CMP" >&5
6825echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006826else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006827 { echo "$as_me:$LINENO: result: no" >&5
6828echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006829fi
6830
6831
6832# Extract the first word of "cp", so it can be a program name with args.
6833set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6836if test "${ac_cv_path_CP+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006838else
6839 case $CP in
6840 [\\/]* | ?:[\\/]*)
6841 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6842 ;;
6843 *)
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 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 +00006851 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006853 break 2
6854 fi
6855done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006856done
Reid Spencera773bd52006-08-04 18:18:08 +00006857IFS=$as_save_IFS
6858
6859 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6860 ;;
6861esac
6862fi
6863CP=$ac_cv_path_CP
6864if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865 { echo "$as_me:$LINENO: result: $CP" >&5
6866echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006868 { echo "$as_me:$LINENO: result: no" >&5
6869echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006870fi
6871
6872
6873# Extract the first word of "date", so it can be a program name with args.
6874set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006875{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6877if test "${ac_cv_path_DATE+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006879else
6880 case $DATE in
6881 [\\/]* | ?:[\\/]*)
6882 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6883 ;;
6884 *)
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886for as_dir in $PATH
6887do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 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 +00006892 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006894 break 2
6895 fi
6896done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006897done
Reid Spencera773bd52006-08-04 18:18:08 +00006898IFS=$as_save_IFS
6899
6900 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6901 ;;
6902esac
6903fi
6904DATE=$ac_cv_path_DATE
6905if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906 { echo "$as_me:$LINENO: result: $DATE" >&5
6907echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006908else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006909 { echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006911fi
6912
6913
6914# Extract the first word of "find", so it can be a program name with args.
6915set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006916{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918if test "${ac_cv_path_FIND+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006920else
6921 case $FIND in
6922 [\\/]* | ?:[\\/]*)
6923 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6924 ;;
6925 *)
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 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 +00006933 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006935 break 2
6936 fi
6937done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006938done
Reid Spencera773bd52006-08-04 18:18:08 +00006939IFS=$as_save_IFS
6940
6941 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6942 ;;
6943esac
6944fi
6945FIND=$ac_cv_path_FIND
6946if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947 { echo "$as_me:$LINENO: result: $FIND" >&5
6948echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006949else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006950 { echo "$as_me:$LINENO: result: no" >&5
6951echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006952fi
6953
6954
6955# Extract the first word of "grep", so it can be a program name with args.
6956set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6959if test "${ac_cv_path_GREP+set}" = set; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006961else
6962 case $GREP in
6963 [\\/]* | ?:[\\/]*)
6964 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6965 ;;
6966 *)
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 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 +00006974 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006976 break 2
6977 fi
6978done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006979done
Reid Spencera773bd52006-08-04 18:18:08 +00006980IFS=$as_save_IFS
6981
6982 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6983 ;;
6984esac
6985fi
6986GREP=$ac_cv_path_GREP
6987if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988 { echo "$as_me:$LINENO: result: $GREP" >&5
6989echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006990else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006991 { echo "$as_me:$LINENO: result: no" >&5
6992echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006993fi
6994
6995
6996# Extract the first word of "mkdir", so it can be a program name with args.
6997set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7000if test "${ac_cv_path_MKDIR+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007002else
7003 case $MKDIR in
7004 [\\/]* | ?:[\\/]*)
7005 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7006 ;;
7007 *)
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 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 +00007015 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007017 break 2
7018 fi
7019done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007020done
Reid Spencera773bd52006-08-04 18:18:08 +00007021IFS=$as_save_IFS
7022
7023 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7024 ;;
7025esac
7026fi
7027MKDIR=$ac_cv_path_MKDIR
7028if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007029 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7030echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007031else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007032 { echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007034fi
7035
7036
7037# Extract the first word of "mv", so it can be a program name with args.
7038set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_path_MV+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007043else
7044 case $MV in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 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 +00007056 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007058 break 2
7059 fi
7060done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007061done
Reid Spencera773bd52006-08-04 18:18:08 +00007062IFS=$as_save_IFS
7063
7064 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7065 ;;
7066esac
7067fi
7068MV=$ac_cv_path_MV
7069if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 { echo "$as_me:$LINENO: result: $MV" >&5
7071echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007072else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007073 { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007075fi
7076
7077
7078if test -n "$ac_tool_prefix"; then
7079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7080set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083if test "${ac_cv_prog_RANLIB+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007085else
7086 if test -n "$RANLIB"; then
7087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7088else
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 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 +00007096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007098 break 2
7099 fi
7100done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007101done
Reid Spencera773bd52006-08-04 18:18:08 +00007102IFS=$as_save_IFS
7103
7104fi
7105fi
7106RANLIB=$ac_cv_prog_RANLIB
7107if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007108 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7109echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007110else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007111 { echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007113fi
7114
7115
7116fi
7117if test -z "$ac_cv_prog_RANLIB"; then
7118 ac_ct_RANLIB=$RANLIB
7119 # Extract the first word of "ranlib", so it can be a program name with args.
7120set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007125else
7126 if test -n "$ac_ct_RANLIB"; then
7127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7128else
7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130for as_dir in $PATH
7131do
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 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 +00007136 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007138 break 2
7139 fi
7140done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007141done
Reid Spencera773bd52006-08-04 18:18:08 +00007142IFS=$as_save_IFS
7143
7144fi
7145fi
7146ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7147if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007148 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7149echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007150else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007151 { echo "$as_me:$LINENO: result: no" >&5
7152echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007153fi
7154
7155 if test "x$ac_ct_RANLIB" = x; then
7156 RANLIB=":"
7157 else
7158 case $cross_compiling:$ac_tool_warned in
7159yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007160{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7161whose name does not start with the host triplet. If you think this
7162configuration is useful to you, please write to autoconf@gnu.org." >&5
7163echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7164whose name does not start with the host triplet. If you think this
7165configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007166ac_tool_warned=yes ;;
7167esac
7168 RANLIB=$ac_ct_RANLIB
7169 fi
7170else
7171 RANLIB="$ac_cv_prog_RANLIB"
7172fi
7173
Torok Edwin871384f2010-01-26 08:50:50 +00007174if test -n "$ac_tool_prefix"; then
7175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7176set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7179if test "${ac_cv_prog_AR+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007181else
7182 if test -n "$AR"; then
7183 ac_cv_prog_AR="$AR" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 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 +00007192 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007194 break 2
7195 fi
7196done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007197done
Torok Edwin871384f2010-01-26 08:50:50 +00007198IFS=$as_save_IFS
7199
7200fi
7201fi
7202AR=$ac_cv_prog_AR
7203if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007204 { echo "$as_me:$LINENO: result: $AR" >&5
7205echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007206else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007207 { echo "$as_me:$LINENO: result: no" >&5
7208echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007209fi
7210
7211
7212fi
7213if test -z "$ac_cv_prog_AR"; then
7214 ac_ct_AR=$AR
7215 # Extract the first word of "ar", so it can be a program name with args.
7216set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007221else
7222 if test -n "$ac_ct_AR"; then
7223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 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 +00007232 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007234 break 2
7235 fi
7236done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007237done
Torok Edwin871384f2010-01-26 08:50:50 +00007238IFS=$as_save_IFS
7239
7240fi
7241fi
7242ac_ct_AR=$ac_cv_prog_ac_ct_AR
7243if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007244 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7245echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007246else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007247 { echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007249fi
7250
7251 if test "x$ac_ct_AR" = x; then
7252 AR="false"
7253 else
7254 case $cross_compiling:$ac_tool_warned in
7255yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007256{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7257whose name does not start with the host triplet. If you think this
7258configuration is useful to you, please write to autoconf@gnu.org." >&5
7259echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7260whose name does not start with the host triplet. If you think this
7261configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007262ac_tool_warned=yes ;;
7263esac
7264 AR=$ac_ct_AR
7265 fi
7266else
7267 AR="$ac_cv_prog_AR"
7268fi
7269
Reid Spencera773bd52006-08-04 18:18:08 +00007270# Extract the first word of "rm", so it can be a program name with args.
7271set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274if test "${ac_cv_path_RM+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007276else
7277 case $RM in
7278 [\\/]* | ?:[\\/]*)
7279 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7280 ;;
7281 *)
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283for as_dir in $PATH
7284do
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 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 +00007289 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007291 break 2
7292 fi
7293done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007294done
Reid Spencera773bd52006-08-04 18:18:08 +00007295IFS=$as_save_IFS
7296
7297 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7298 ;;
7299esac
7300fi
7301RM=$ac_cv_path_RM
7302if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303 { echo "$as_me:$LINENO: result: $RM" >&5
7304echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007306 { echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007308fi
7309
7310
7311# Extract the first word of "sed", so it can be a program name with args.
7312set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315if test "${ac_cv_path_SED+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007317else
7318 case $SED in
7319 [\\/]* | ?:[\\/]*)
7320 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7321 ;;
7322 *)
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324for as_dir in $PATH
7325do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 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 +00007330 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007332 break 2
7333 fi
7334done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007335done
Reid Spencera773bd52006-08-04 18:18:08 +00007336IFS=$as_save_IFS
7337
7338 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7339 ;;
7340esac
7341fi
7342SED=$ac_cv_path_SED
7343if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344 { echo "$as_me:$LINENO: result: $SED" >&5
7345echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007347 { echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007349fi
7350
7351
7352# Extract the first word of "tar", so it can be a program name with args.
7353set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356if test "${ac_cv_path_TAR+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007358else
7359 case $TAR in
7360 [\\/]* | ?:[\\/]*)
7361 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365for as_dir in $PATH
7366do
7367 IFS=$as_save_IFS
7368 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 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 +00007371 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007373 break 2
7374 fi
7375done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007376done
Reid Spencera773bd52006-08-04 18:18:08 +00007377IFS=$as_save_IFS
7378
7379 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7380 ;;
7381esac
7382fi
7383TAR=$ac_cv_path_TAR
7384if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 { echo "$as_me:$LINENO: result: $TAR" >&5
7386echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007387else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007390fi
7391
7392
7393# Extract the first word of "pwd", so it can be a program name with args.
7394set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397if test "${ac_cv_path_BINPWD+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007399else
7400 case $BINPWD in
7401 [\\/]* | ?:[\\/]*)
7402 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7403 ;;
7404 *)
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 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 +00007412 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007414 break 2
7415 fi
7416done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417done
Reid Spencera773bd52006-08-04 18:18:08 +00007418IFS=$as_save_IFS
7419
7420 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7421 ;;
7422esac
7423fi
7424BINPWD=$ac_cv_path_BINPWD
7425if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7427echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007428else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007429 { echo "$as_me:$LINENO: result: no" >&5
7430echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007431fi
7432
7433
7434
7435# Extract the first word of "Graphviz", so it can be a program name with args.
7436set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007441else
7442 case $GRAPHVIZ in
7443 [\\/]* | ?:[\\/]*)
7444 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7445 ;;
7446 *)
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448for as_dir in $PATH
7449do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 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 +00007454 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007456 break 2
7457 fi
7458done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007459done
Reid Spencera773bd52006-08-04 18:18:08 +00007460IFS=$as_save_IFS
7461
7462 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7463 ;;
7464esac
7465fi
7466GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7467if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007468 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7469echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007470else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007471 { echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007473fi
7474
7475
7476if test "$GRAPHVIZ" != "echo Graphviz" ; then
7477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007478cat >>confdefs.h <<\_ACEOF
7479#define HAVE_GRAPHVIZ 1
7480_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007481
Jeff Cohen28783c32007-01-12 18:22:38 +00007482 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007483 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7484 fi
7485
7486cat >>confdefs.h <<_ACEOF
7487#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7488_ACEOF
7489
7490fi
7491# Extract the first word of "dot", so it can be a program name with args.
7492set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_DOT+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007497else
7498 case $DOT in
7499 [\\/]* | ?:[\\/]*)
7500 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7501 ;;
7502 *)
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 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 +00007510 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007512 break 2
7513 fi
7514done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007515done
Reid Spencera773bd52006-08-04 18:18:08 +00007516IFS=$as_save_IFS
7517
7518 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7519 ;;
7520esac
7521fi
7522DOT=$ac_cv_path_DOT
7523if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007524 { echo "$as_me:$LINENO: result: $DOT" >&5
7525echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007527 { echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007529fi
7530
7531
7532if test "$DOT" != "echo dot" ; then
7533
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007534cat >>confdefs.h <<\_ACEOF
7535#define HAVE_DOT 1
7536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007537
Jeff Cohen28783c32007-01-12 18:22:38 +00007538 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007539 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7540 fi
7541
7542cat >>confdefs.h <<_ACEOF
7543#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7544_ACEOF
7545
7546fi
David Greenef0b9eff2009-07-09 17:16:26 +00007547# Extract the first word of "fdp", so it can be a program name with args.
7548set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551if test "${ac_cv_path_FDP+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007553else
7554 case $FDP in
7555 [\\/]* | ?:[\\/]*)
7556 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7557 ;;
7558 *)
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 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 +00007566 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007568 break 2
7569 fi
7570done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007571done
David Greenef0b9eff2009-07-09 17:16:26 +00007572IFS=$as_save_IFS
7573
7574 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7575 ;;
7576esac
7577fi
7578FDP=$ac_cv_path_FDP
7579if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007580 { echo "$as_me:$LINENO: result: $FDP" >&5
7581echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007583 { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007585fi
7586
7587
7588if test "$FDP" != "echo fdp" ; then
7589
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007590cat >>confdefs.h <<\_ACEOF
7591#define HAVE_FDP 1
7592_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007593
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7596 fi
7597
7598cat >>confdefs.h <<_ACEOF
7599#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7600_ACEOF
7601
7602fi
7603# Extract the first word of "neato", so it can be a program name with args.
7604set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607if test "${ac_cv_path_NEATO+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007609else
7610 case $NEATO in
7611 [\\/]* | ?:[\\/]*)
7612 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7613 ;;
7614 *)
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 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 +00007622 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007624 break 2
7625 fi
7626done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007627done
David Greenef0b9eff2009-07-09 17:16:26 +00007628IFS=$as_save_IFS
7629
7630 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7631 ;;
7632esac
7633fi
7634NEATO=$ac_cv_path_NEATO
7635if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007636 { echo "$as_me:$LINENO: result: $NEATO" >&5
7637echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007638else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007639 { echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007641fi
7642
7643
7644if test "$NEATO" != "echo neato" ; then
7645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_NEATO 1
7648_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007649
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7652 fi
7653
7654cat >>confdefs.h <<_ACEOF
7655#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7656_ACEOF
7657
7658fi
7659# Extract the first word of "twopi", so it can be a program name with args.
7660set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663if test "${ac_cv_path_TWOPI+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007665else
7666 case $TWOPI in
7667 [\\/]* | ?:[\\/]*)
7668 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7669 ;;
7670 *)
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 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 +00007678 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007680 break 2
7681 fi
7682done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007683done
David Greenef0b9eff2009-07-09 17:16:26 +00007684IFS=$as_save_IFS
7685
7686 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7687 ;;
7688esac
7689fi
7690TWOPI=$ac_cv_path_TWOPI
7691if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007692 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7693echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007695 { echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007697fi
7698
7699
7700if test "$TWOPI" != "echo twopi" ; then
7701
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007702cat >>confdefs.h <<\_ACEOF
7703#define HAVE_TWOPI 1
7704_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007705
7706 if test "$llvm_cv_os_type" = "MingW" ; then
7707 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7708 fi
7709
7710cat >>confdefs.h <<_ACEOF
7711#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7712_ACEOF
7713
7714fi
7715# Extract the first word of "circo", so it can be a program name with args.
7716set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719if test "${ac_cv_path_CIRCO+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007721else
7722 case $CIRCO in
7723 [\\/]* | ?:[\\/]*)
7724 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7725 ;;
7726 *)
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 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 +00007734 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007736 break 2
7737 fi
7738done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739done
David Greenef0b9eff2009-07-09 17:16:26 +00007740IFS=$as_save_IFS
7741
7742 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7743 ;;
7744esac
7745fi
7746CIRCO=$ac_cv_path_CIRCO
7747if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007748 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7749echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007750else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007751 { echo "$as_me:$LINENO: result: no" >&5
7752echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007753fi
7754
7755
7756if test "$CIRCO" != "echo circo" ; then
7757
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007758cat >>confdefs.h <<\_ACEOF
7759#define HAVE_CIRCO 1
7760_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007761
7762 if test "$llvm_cv_os_type" = "MingW" ; then
7763 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7764 fi
7765
7766cat >>confdefs.h <<_ACEOF
7767#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7768_ACEOF
7769
7770fi
Reid Spencera773bd52006-08-04 18:18:08 +00007771for ac_prog in gv gsview32
7772do
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7777if test "${ac_cv_path_GV+set}" = set; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007779else
7780 case $GV in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7783 ;;
7784 *)
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786for as_dir in $PATH
7787do
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 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 +00007792 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007794 break 2
7795 fi
7796done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007797done
Reid Spencera773bd52006-08-04 18:18:08 +00007798IFS=$as_save_IFS
7799
7800 ;;
7801esac
7802fi
7803GV=$ac_cv_path_GV
7804if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805 { echo "$as_me:$LINENO: result: $GV" >&5
7806echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007807else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808 { echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007810fi
7811
7812
7813 test -n "$GV" && break
7814done
7815test -n "$GV" || GV="echo gv"
7816
7817if test "$GV" != "echo gv" ; then
7818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007819cat >>confdefs.h <<\_ACEOF
7820#define HAVE_GV 1
7821_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007822
Jeff Cohen28783c32007-01-12 18:22:38 +00007823 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007824 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7825 fi
7826
7827cat >>confdefs.h <<_ACEOF
7828#define LLVM_PATH_GV "$GV${EXEEXT}"
7829_ACEOF
7830
7831fi
7832# Extract the first word of "dotty", so it can be a program name with args.
7833set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7836if test "${ac_cv_path_DOTTY+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007838else
7839 case $DOTTY in
7840 [\\/]* | ?:[\\/]*)
7841 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7842 ;;
7843 *)
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 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 +00007851 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007853 break 2
7854 fi
7855done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856done
Reid Spencera773bd52006-08-04 18:18:08 +00007857IFS=$as_save_IFS
7858
7859 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7860 ;;
7861esac
7862fi
7863DOTTY=$ac_cv_path_DOTTY
7864if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7866echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007870fi
7871
7872
7873if test "$DOTTY" != "echo dotty" ; then
7874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007875cat >>confdefs.h <<\_ACEOF
7876#define HAVE_DOTTY 1
7877_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007878
Jeff Cohen28783c32007-01-12 18:22:38 +00007879 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007880 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7881 fi
7882
7883cat >>confdefs.h <<_ACEOF
7884#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7885_ACEOF
7886
7887fi
Dan Gohman48fd5a72010-09-27 16:28:34 +00007888# Extract the first word of "xdot.py", so it can be a program name with args.
7889set dummy xdot.py; ac_word=$2
7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_XDOT_PY+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895 case $XDOT_PY in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7898 ;;
7899 *)
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911done
7912done
7913IFS=$as_save_IFS
7914
7915 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7916 ;;
7917esac
7918fi
7919XDOT_PY=$ac_cv_path_XDOT_PY
7920if test -n "$XDOT_PY"; then
7921 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7922echo "${ECHO_T}$XDOT_PY" >&6; }
7923else
7924 { echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6; }
7926fi
7927
7928
7929if test "$XDOT_PY" != "echo xdot.py" ; then
7930
7931cat >>confdefs.h <<\_ACEOF
7932#define HAVE_XDOT_PY 1
7933_ACEOF
7934
7935 if test "$llvm_cv_os_type" = "MingW" ; then
7936 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7937 fi
7938
7939cat >>confdefs.h <<_ACEOF
7940#define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7941_ACEOF
7942
7943fi
Reid Spencera773bd52006-08-04 18:18:08 +00007944
7945
7946# Extract the first word of "perl", so it can be a program name with args.
7947set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7950if test "${ac_cv_path_PERL+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007952else
7953 case $PERL in
7954 [\\/]* | ?:[\\/]*)
7955 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7956 ;;
7957 *)
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 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 +00007965 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007967 break 2
7968 fi
7969done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007970done
Reid Spencera773bd52006-08-04 18:18:08 +00007971IFS=$as_save_IFS
7972
7973 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7974 ;;
7975esac
7976fi
7977PERL=$ac_cv_path_PERL
7978if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007979 { echo "$as_me:$LINENO: result: $PERL" >&5
7980echo "${ECHO_T}$PERL" >&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
7987if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007988 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7989echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007990 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991 { echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007993 else
7994 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007995 { echo "$as_me:$LINENO: result: not found" >&5
7996echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007997 fi
7998fi
7999
8000
8001if test x"$PERL" = xnone; then
8002 HAVE_PERL=0
8003
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008004 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8005echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8006 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008007else
8008 HAVE_PERL=1
8009
8010fi
8011
8012# Find a good install program. We prefer a C program (faster),
8013# so one script is as good as another. But avoid the broken or
8014# incompatible versions:
8015# SysV /etc/install, /usr/sbin/install
8016# SunOS /usr/etc/install
8017# IRIX /sbin/install
8018# AIX /bin/install
8019# AmigaOS /C/install, which installs bootblocks on floppy discs
8020# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8021# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8022# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8023# OS/2's system install, which has a completely different semantic
8024# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8026echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008027if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008028if test "${ac_cv_path_install+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008030else
8031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008036 # Account for people who put trailing slashes in PATH elements.
8037case $as_dir/ in
8038 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008040 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00008041 /usr/ucb/* ) ;;
8042 *)
8043 # OSF1 and SCO ODT 3.0 have their own names for install.
8044 # Don't use installbsd from OSF since it installs stuff as root
8045 # by default.
8046 for ac_prog in ginstall scoinst install; do
8047 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008048 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 +00008049 if test $ac_prog = install &&
8050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8051 # AIX install. It has an incompatible calling convention.
8052 :
8053 elif test $ac_prog = install &&
8054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8055 # program-specific install script used by HP pwplus--don't use.
8056 :
8057 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008058 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8059 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00008060 fi
8061 fi
8062 done
8063 done
8064 ;;
8065esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008066done
Reid Spencera773bd52006-08-04 18:18:08 +00008067IFS=$as_save_IFS
8068
8069
8070fi
8071 if test "${ac_cv_path_install+set}" = set; then
8072 INSTALL=$ac_cv_path_install
8073 else
8074 # As a last resort, use the slow shell script. Don't cache a
8075 # value for INSTALL within a source directory, because that will
8076 # break other packages using the cache if that directory is
8077 # removed, or if the value is a relative name.
8078 INSTALL=$ac_install_sh
8079 fi
8080fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008081{ echo "$as_me:$LINENO: result: $INSTALL" >&5
8082echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008083
8084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8085# It thinks the first close brace ends the variable substitution.
8086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8087
8088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8089
8090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8091
Eric Christopher2a1a44f2010-07-22 21:13:48 +00008092case "$INSTALL" in
8093 [\\/$]* | ?:[\\/]* ) ;;
8094 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8095esac
Reid Spencera773bd52006-08-04 18:18:08 +00008096
8097# Extract the first word of "bzip2", so it can be a program name with args.
8098set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101if test "${ac_cv_path_BZIP2+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008103else
8104 case $BZIP2 in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8107 ;;
8108 *)
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008116 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008118 break 2
8119 fi
8120done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008121done
Reid Spencera773bd52006-08-04 18:18:08 +00008122IFS=$as_save_IFS
8123
Reid Spencera773bd52006-08-04 18:18:08 +00008124 ;;
8125esac
8126fi
8127BZIP2=$ac_cv_path_BZIP2
8128if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8130echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008131else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008132 { echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008134fi
8135
8136
mike-m68cb3192010-05-06 23:45:43 +00008137# Extract the first word of "cat", so it can be a program name with args.
8138set dummy cat; ac_word=$2
8139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_CAT+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 case $CAT in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8147 ;;
8148 *)
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161done
8162IFS=$as_save_IFS
8163
8164 ;;
8165esac
8166fi
8167CAT=$ac_cv_path_CAT
8168if test -n "$CAT"; then
8169 { echo "$as_me:$LINENO: result: $CAT" >&5
8170echo "${ECHO_T}$CAT" >&6; }
8171else
8172 { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
8174fi
8175
8176
Reid Spencera773bd52006-08-04 18:18:08 +00008177# Extract the first word of "doxygen", so it can be a program name with args.
8178set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008179{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181if test "${ac_cv_path_DOXYGEN+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008183else
8184 case $DOXYGEN in
8185 [\\/]* | ?:[\\/]*)
8186 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8187 ;;
8188 *)
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190for as_dir in $PATH
8191do
8192 IFS=$as_save_IFS
8193 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008196 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008198 break 2
8199 fi
8200done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008201done
Reid Spencera773bd52006-08-04 18:18:08 +00008202IFS=$as_save_IFS
8203
Reid Spencera773bd52006-08-04 18:18:08 +00008204 ;;
8205esac
8206fi
8207DOXYGEN=$ac_cv_path_DOXYGEN
8208if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8210echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008211else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008212 { echo "$as_me:$LINENO: result: no" >&5
8213echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008214fi
8215
8216
Reid Spencera773bd52006-08-04 18:18:08 +00008217# Extract the first word of "groff", so it can be a program name with args.
8218set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221if test "${ac_cv_path_GROFF+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008223else
8224 case $GROFF in
8225 [\\/]* | ?:[\\/]*)
8226 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8227 ;;
8228 *)
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008236 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008238 break 2
8239 fi
8240done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008241done
Reid Spencera773bd52006-08-04 18:18:08 +00008242IFS=$as_save_IFS
8243
Reid Spencera773bd52006-08-04 18:18:08 +00008244 ;;
8245esac
8246fi
8247GROFF=$ac_cv_path_GROFF
8248if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: $GROFF" >&5
8250echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008252 { echo "$as_me:$LINENO: result: no" >&5
8253echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008254fi
8255
8256
8257# Extract the first word of "gzip", so it can be a program name with args.
8258set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8261if test "${ac_cv_path_GZIP+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008263else
8264 case $GZIP in
8265 [\\/]* | ?:[\\/]*)
8266 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8267 ;;
8268 *)
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 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 +00008276 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008278 break 2
8279 fi
8280done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008281done
Reid Spencera773bd52006-08-04 18:18:08 +00008282IFS=$as_save_IFS
8283
Reid Spencera773bd52006-08-04 18:18:08 +00008284 ;;
8285esac
8286fi
8287GZIP=$ac_cv_path_GZIP
8288if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008289 { echo "$as_me:$LINENO: result: $GZIP" >&5
8290echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008292 { echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008294fi
8295
8296
8297# Extract the first word of "pod2html", so it can be a program name with args.
8298set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8301if test "${ac_cv_path_POD2HTML+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008303else
8304 case $POD2HTML in
8305 [\\/]* | ?:[\\/]*)
8306 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8307 ;;
8308 *)
8309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310for as_dir in $PATH
8311do
8312 IFS=$as_save_IFS
8313 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 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 +00008316 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008318 break 2
8319 fi
8320done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008321done
Reid Spencera773bd52006-08-04 18:18:08 +00008322IFS=$as_save_IFS
8323
Reid Spencera773bd52006-08-04 18:18:08 +00008324 ;;
8325esac
8326fi
8327POD2HTML=$ac_cv_path_POD2HTML
8328if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8330echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008332 { echo "$as_me:$LINENO: result: no" >&5
8333echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008334fi
8335
8336
8337# Extract the first word of "pod2man", so it can be a program name with args.
8338set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008339{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8341if test "${ac_cv_path_POD2MAN+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008343else
8344 case $POD2MAN in
8345 [\\/]* | ?:[\\/]*)
8346 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8347 ;;
8348 *)
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350for as_dir in $PATH
8351do
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 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 +00008356 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008358 break 2
8359 fi
8360done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008361done
Reid Spencera773bd52006-08-04 18:18:08 +00008362IFS=$as_save_IFS
8363
Reid Spencera773bd52006-08-04 18:18:08 +00008364 ;;
8365esac
8366fi
8367POD2MAN=$ac_cv_path_POD2MAN
8368if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008369 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8370echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008371else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372 { echo "$as_me:$LINENO: result: no" >&5
8373echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008374fi
8375
8376
mike-m68cb3192010-05-06 23:45:43 +00008377# Extract the first word of "pdfroff", so it can be a program name with args.
8378set dummy pdfroff; ac_word=$2
8379{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381if test "${ac_cv_path_PDFROFF+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383else
8384 case $PDFROFF in
8385 [\\/]* | ?:[\\/]*)
8386 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8387 ;;
8388 *)
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390for as_dir in $PATH
8391do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8399 fi
8400done
8401done
8402IFS=$as_save_IFS
8403
8404 ;;
8405esac
8406fi
8407PDFROFF=$ac_cv_path_PDFROFF
8408if test -n "$PDFROFF"; then
8409 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8410echo "${ECHO_T}$PDFROFF" >&6; }
8411else
8412 { echo "$as_me:$LINENO: result: no" >&5
8413echo "${ECHO_T}no" >&6; }
8414fi
8415
8416
Reid Spencera773bd52006-08-04 18:18:08 +00008417# Extract the first word of "runtest", so it can be a program name with args.
8418set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8421if test "${ac_cv_path_RUNTEST+set}" = set; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008423else
8424 case $RUNTEST in
8425 [\\/]* | ?:[\\/]*)
8426 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8427 ;;
8428 *)
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430for as_dir in $PATH
8431do
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 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 +00008436 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008438 break 2
8439 fi
8440done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008441done
Reid Spencera773bd52006-08-04 18:18:08 +00008442IFS=$as_save_IFS
8443
Reid Spencera773bd52006-08-04 18:18:08 +00008444 ;;
8445esac
8446fi
8447RUNTEST=$ac_cv_path_RUNTEST
8448if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008449 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8450echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008452 { echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008454fi
8455
8456
8457
8458no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8460echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008461
8462# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008463if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008464 withval=$with_tclinclude; with_tclinclude=${withval}
8465else
8466 with_tclinclude=''
8467fi
8468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008469if test "${ac_cv_path_tclsh+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008471else
8472
8473if test x"${with_tclinclude}" != x ; then
8474 if test -f ${with_tclinclude}/tclsh ; then
8475 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8476 elif test -f ${with_tclinclude}/src/tclsh ; then
8477 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8478 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008479 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8480echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8481 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008482 fi
8483fi
Torok Edwin871384f2010-01-26 08:50:50 +00008484fi
8485
Reid Spencera773bd52006-08-04 18:18:08 +00008486
8487if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008488 { echo "$as_me:$LINENO: result: none" >&5
8489echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008490 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
8491do
8492 # Extract the first word of "$ac_prog", so it can be a program name with args.
8493set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008494{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8496if test "${ac_cv_path_TCLSH+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008498else
8499 case $TCLSH in
8500 [\\/]* | ?:[\\/]*)
8501 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8502 ;;
8503 *)
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 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 +00008511 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008513 break 2
8514 fi
8515done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008516done
Reid Spencera773bd52006-08-04 18:18:08 +00008517IFS=$as_save_IFS
8518
8519 ;;
8520esac
8521fi
8522TCLSH=$ac_cv_path_TCLSH
8523if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008524 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8525echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008527 { echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008529fi
8530
8531
8532 test -n "$TCLSH" && break
8533done
8534
8535 if test x"${TCLSH}" = x ; then
8536 ac_cv_path_tclsh='';
8537 else
8538 ac_cv_path_tclsh="${TCLSH}";
8539 fi
8540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008541 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8542echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008543 TCLSH="${ac_cv_path_tclsh}"
8544
8545fi
8546
Reid Spencera773bd52006-08-04 18:18:08 +00008547# Extract the first word of "zip", so it can be a program name with args.
8548set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008549{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8551if test "${ac_cv_path_ZIP+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008553else
8554 case $ZIP in
8555 [\\/]* | ?:[\\/]*)
8556 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8557 ;;
8558 *)
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 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 +00008566 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008568 break 2
8569 fi
8570done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008571done
Reid Spencera773bd52006-08-04 18:18:08 +00008572IFS=$as_save_IFS
8573
Reid Spencera773bd52006-08-04 18:18:08 +00008574 ;;
8575esac
8576fi
8577ZIP=$ac_cv_path_ZIP
8578if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008579 { echo "$as_me:$LINENO: result: $ZIP" >&5
8580echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008582 { echo "$as_me:$LINENO: result: no" >&5
8583echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008584fi
8585
8586
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008587for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008588do
8589 # Extract the first word of "$ac_prog", so it can be a program name with args.
8590set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8593if test "${ac_cv_path_OCAMLC+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008595else
8596 case $OCAMLC in
8597 [\\/]* | ?:[\\/]*)
8598 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8599 ;;
8600 *)
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 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 +00008608 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008610 break 2
8611 fi
8612done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008613done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008614IFS=$as_save_IFS
8615
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008616 ;;
8617esac
8618fi
8619OCAMLC=$ac_cv_path_OCAMLC
8620if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008621 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8622echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008623else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008624 { echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008626fi
8627
8628
Gordon Henriksene7072162008-03-07 18:20:01 +00008629 test -n "$OCAMLC" && break
8630done
8631
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008632for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008633do
8634 # Extract the first word of "$ac_prog", so it can be a program name with args.
8635set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8638if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008640else
8641 case $OCAMLOPT in
8642 [\\/]* | ?:[\\/]*)
8643 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8644 ;;
8645 *)
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647for as_dir in $PATH
8648do
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 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 +00008653 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008655 break 2
8656 fi
8657done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008658done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008659IFS=$as_save_IFS
8660
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008661 ;;
8662esac
8663fi
8664OCAMLOPT=$ac_cv_path_OCAMLOPT
8665if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8667echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008668else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008669 { echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008671fi
8672
8673
Gordon Henriksene7072162008-03-07 18:20:01 +00008674 test -n "$OCAMLOPT" && break
8675done
8676
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008677for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008678do
8679 # Extract the first word of "$ac_prog", so it can be a program name with args.
8680set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8683if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008685else
8686 case $OCAMLDEP in
8687 [\\/]* | ?:[\\/]*)
8688 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8689 ;;
8690 *)
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692for as_dir in $PATH
8693do
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 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 +00008698 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008700 break 2
8701 fi
8702done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008703done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008704IFS=$as_save_IFS
8705
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008706 ;;
8707esac
8708fi
8709OCAMLDEP=$ac_cv_path_OCAMLDEP
8710if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008711 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8712echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008713else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008714 { echo "$as_me:$LINENO: result: no" >&5
8715echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008716fi
8717
8718
Gordon Henriksene7072162008-03-07 18:20:01 +00008719 test -n "$OCAMLDEP" && break
8720done
8721
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008722for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008723do
8724 # Extract the first word of "$ac_prog", so it can be a program name with args.
8725set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8728if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008730else
8731 case $OCAMLDOC in
8732 [\\/]* | ?:[\\/]*)
8733 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8734 ;;
8735 *)
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737for as_dir in $PATH
8738do
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 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 +00008743 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008745 break 2
8746 fi
8747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008748done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008749IFS=$as_save_IFS
8750
8751 ;;
8752esac
8753fi
8754OCAMLDOC=$ac_cv_path_OCAMLDOC
8755if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008756 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8757echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008758else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759 { echo "$as_me:$LINENO: result: no" >&5
8760echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008761fi
8762
8763
8764 test -n "$OCAMLDOC" && break
8765done
8766
Torok Edwincc499a42008-10-22 09:56:27 +00008767for ac_prog in gas as
8768do
8769 # Extract the first word of "$ac_prog", so it can be a program name with args.
8770set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8773if test "${ac_cv_path_GAS+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008775else
8776 case $GAS in
8777 [\\/]* | ?:[\\/]*)
8778 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8779 ;;
8780 *)
8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 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 +00008788 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008790 break 2
8791 fi
8792done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008793done
Torok Edwincc499a42008-10-22 09:56:27 +00008794IFS=$as_save_IFS
8795
8796 ;;
8797esac
8798fi
8799GAS=$ac_cv_path_GAS
8800if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008801 { echo "$as_me:$LINENO: result: $GAS" >&5
8802echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008803else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008804 { echo "$as_me:$LINENO: result: no" >&5
8805echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008806fi
8807
8808
8809 test -n "$GAS" && break
8810done
8811
Reid Spencera773bd52006-08-04 18:18:08 +00008812
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008813{ echo "$as_me:$LINENO: checking for linker version" >&5
8814echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8815if test "${llvm_cv_link_version+set}" = set; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8817else
8818
8819 version_string="$(ld -v 2>&1 | head -1)"
8820
8821 # Check for ld64.
8822 if (echo "$version_string" | grep -q "ld64"); then
8823 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8824 else
8825 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8826 fi
8827
8828fi
8829{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8830echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8831
8832cat >>confdefs.h <<_ACEOF
8833#define HOST_LINK_VERSION "$llvm_cv_link_version"
8834_ACEOF
8835
8836
8837
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008838{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8839echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8840if test "${llvm_cv_link_use_r+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008842else
8843 ac_ext=c
8844ac_cpp='$CPP $CPPFLAGS'
8845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8847ac_compiler_gnu=$ac_cv_c_compiler_gnu
8848
8849 oldcflags="$CFLAGS"
8850 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008851 cat >conftest.$ac_ext <<_ACEOF
8852/* confdefs.h. */
8853_ACEOF
8854cat confdefs.h >>conftest.$ac_ext
8855cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008856/* end confdefs.h. */
8857
8858int
8859main ()
8860{
Dan Gohman39ed6782010-04-25 00:12:20 +00008861
Reid Spencera773bd52006-08-04 18:18:08 +00008862 ;
8863 return 0;
8864}
8865_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008866rm -f conftest.$ac_objext conftest$ac_exeext
8867if { (ac_try="$ac_link"
8868case "(($ac_try" in
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8871esac
8872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_link") 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } &&
8880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8887 ac_status=$?
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; } &&
8890 { ac_try='test -s conftest$ac_exeext'
8891 { (case "(($ac_try" in
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8894esac
8895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_try") 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008900 llvm_cv_link_use_r=yes
8901else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008902 echo "$as_me: failed program was:" >&5
8903sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008907
Bill Wendlingebcceee2009-04-18 11:20:33 +00008908rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008909 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008910 CFLAGS="$oldcflags"
8911 ac_ext=c
8912ac_cpp='$CPP $CPPFLAGS'
8913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8915ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916
8917
8918fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008919{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8920echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008921if test "$llvm_cv_link_use_r" = yes ; then
8922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008923cat >>confdefs.h <<\_ACEOF
8924#define HAVE_LINK_R 1
8925_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008926
8927 fi
8928
8929
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008930{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8931echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8932if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008934else
8935 ac_ext=c
8936ac_cpp='$CPP $CPPFLAGS'
8937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941 oldcflags="$CFLAGS"
8942 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008943 cat >conftest.$ac_ext <<_ACEOF
8944/* confdefs.h. */
8945_ACEOF
8946cat confdefs.h >>conftest.$ac_ext
8947cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008948/* end confdefs.h. */
8949
8950int
8951main ()
8952{
Dan Gohman39ed6782010-04-25 00:12:20 +00008953
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008954 ;
8955 return 0;
8956}
8957_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (ac_try="$ac_link"
8960case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963esac
8964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976esac
8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986esac
8987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008992 llvm_cv_link_use_export_dynamic=yes
8993else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008994 echo "$as_me: failed program was:" >&5
8995sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008998fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008999
Bill Wendlingebcceee2009-04-18 11:20:33 +00009000rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009001 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009002 CFLAGS="$oldcflags"
9003 ac_ext=c
9004ac_cpp='$CPP $CPPFLAGS'
9005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007ac_compiler_gnu=$ac_cv_c_compiler_gnu
9008
9009
9010fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009011{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9012echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009013if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9014
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009015cat >>confdefs.h <<\_ACEOF
9016#define HAVE_LINK_EXPORT_DYNAMIC 1
9017_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00009018
9019 fi
9020
9021
Dan Gohmanda612d62010-06-01 14:56:56 +00009022{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9023echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9024if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00009025 echo $ECHO_N "(cached) $ECHO_C" >&6
9026else
9027 ac_ext=c
9028ac_cpp='$CPP $CPPFLAGS'
9029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033 oldcflags="$CFLAGS"
9034
9035 # The following code is from the autoconf manual,
9036 # "11.13: Limitations of Usual Tools".
9037 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9038 # Use mktemp if possible; otherwise fall back on mkdir,
9039 # with $RANDOM to make collisions less likely.
9040 : ${TMPDIR=/tmp}
9041 {
9042 tmp=`
9043 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9044 ` &&
9045 test -n "$tmp" && test -d "$tmp"
9046 } || {
9047 tmp=$TMPDIR/foo$$-$RANDOM
9048 (umask 077 && mkdir "$tmp")
9049 } || exit $?
9050
Dan Gohmanda612d62010-06-01 14:56:56 +00009051 echo "{" > "$tmp/export.map"
9052 echo " global: main;" >> "$tmp/export.map"
9053 echo " local: *;" >> "$tmp/export.map"
9054 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009055
Dan Gohmanda612d62010-06-01 14:56:56 +00009056 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009057 cat >conftest.$ac_ext <<_ACEOF
9058/* confdefs.h. */
9059_ACEOF
9060cat confdefs.h >>conftest.$ac_ext
9061cat >>conftest.$ac_ext <<_ACEOF
9062/* end confdefs.h. */
9063
9064int
9065main ()
9066{
Dan Gohman39ed6782010-04-25 00:12:20 +00009067
Dan Gohman391569c2010-04-16 22:59:06 +00009068 ;
9069 return 0;
9070}
9071_ACEOF
9072rm -f conftest.$ac_objext conftest$ac_exeext
9073if { (ac_try="$ac_link"
9074case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9077esac
9078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9079 (eval "$ac_link") 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } &&
9086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9087 { (case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_try") 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100esac
9101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9102 (eval "$ac_try") 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00009106 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009107else
9108 echo "$as_me: failed program was:" >&5
9109sed 's/^/| /' conftest.$ac_ext >&5
9110
Dan Gohman943005e2010-06-01 16:22:27 +00009111 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009112fi
9113
9114rm -f core conftest.err conftest.$ac_objext \
9115 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009116 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009117 rmdir "$tmp"
9118 CFLAGS="$oldcflags"
9119 ac_ext=c
9120ac_cpp='$CPP $CPPFLAGS'
9121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9123ac_compiler_gnu=$ac_cv_c_compiler_gnu
9124
9125
9126fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009127{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9128echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9129if test "$llvm_cv_link_use_version_script" = yes ; then
9130 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009131
9132 fi
9133
9134
Reid Spencera773bd52006-08-04 18:18:08 +00009135
9136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009137{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9138echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9139if test "${ac_cv_c_const+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009141else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009142 cat >conftest.$ac_ext <<_ACEOF
9143/* confdefs.h. */
9144_ACEOF
9145cat confdefs.h >>conftest.$ac_ext
9146cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009147/* end confdefs.h. */
9148
9149int
9150main ()
9151{
9152/* FIXME: Include the comments suggested by Paul. */
9153#ifndef __cplusplus
9154 /* Ultrix mips cc rejects this. */
9155 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009156 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009157 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009158 char const *const *ccp;
9159 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009160 /* NEC SVR4.0.2 mips cc rejects this. */
9161 struct point {int x, y;};
9162 static struct point const zero = {0,0};
9163 /* AIX XL C 1.02.0.0 rejects this.
9164 It does not let you subtract one const X* pointer from another in
9165 an arm of an if-expression whose if-part is not a constant
9166 expression */
9167 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009168 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009169 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009170 ++ccp;
9171 p = (char**) ccp;
9172 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009173 { /* SCO 3.2v4 cc rejects this. */
9174 char *t;
9175 char const *s = 0 ? (char *) 0 : (char const *) 0;
9176
9177 *t++ = 0;
9178 if (s) return 0;
9179 }
9180 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9181 int x[] = {25, 17};
9182 const int *foo = &x[0];
9183 ++foo;
9184 }
9185 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9186 typedef const int *iptr;
9187 iptr p = 0;
9188 ++p;
9189 }
9190 { /* AIX XL C 1.02.0.0 rejects this saying
9191 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9192 struct s { int j; const int *ap[3]; };
9193 struct s *b; b->j = 5;
9194 }
9195 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9196 const int foo = 10;
9197 if (!foo) return 0;
9198 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009199 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009200#endif
9201
9202 ;
9203 return 0;
9204}
9205_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009206rm -f conftest.$ac_objext
9207if { (ac_try="$ac_compile"
9208case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9211esac
9212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_compile") 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221 { (case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224esac
9225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_try") 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest.$ac_objext'
9231 { (case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234esac
9235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_try") 2>&5
9237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009240 ac_cv_c_const=yes
9241else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009242 echo "$as_me: failed program was:" >&5
9243sed 's/^/| /' conftest.$ac_ext >&5
9244
9245 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009247
Reid Spencera773bd52006-08-04 18:18:08 +00009248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009250{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9251echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009252if test $ac_cv_c_const = no; then
9253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009254cat >>confdefs.h <<\_ACEOF
9255#define const
9256_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009257
9258fi
9259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009260
9261
9262
9263
9264
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009265ac_header_dirent=no
9266for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009267 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9268{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9269echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009273 cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009278/* end confdefs.h. */
9279#include <sys/types.h>
9280#include <$ac_hdr>
9281
9282int
9283main ()
9284{
9285if ((DIR *) 0)
9286return 0;
9287 ;
9288 return 0;
9289}
9290_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009291rm -f conftest.$ac_objext
9292if { (ac_try="$ac_compile"
9293case "(($ac_try" in
9294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295 *) ac_try_echo=$ac_try;;
9296esac
9297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298 (eval "$ac_compile") 2>conftest.er1
9299 ac_status=$?
9300 grep -v '^ *+' conftest.er1 >conftest.err
9301 rm -f conftest.er1
9302 cat conftest.err >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9306 { (case "(($ac_try" in
9307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308 *) ac_try_echo=$ac_try;;
9309esac
9310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9311 (eval "$ac_try") 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest.$ac_objext'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319esac
9320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325 eval "$as_ac_Header=yes"
9326else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009327 echo "$as_me: failed program was:" >&5
9328sed 's/^/| /' conftest.$ac_ext >&5
9329
9330 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009332
Reid Spencera773bd52006-08-04 18:18:08 +00009333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009335ac_res=`eval echo '${'$as_ac_Header'}'`
9336 { echo "$as_me:$LINENO: result: $ac_res" >&5
9337echo "${ECHO_T}$ac_res" >&6; }
9338if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009339 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009340#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341_ACEOF
9342
9343ac_header_dirent=$ac_hdr; break
9344fi
9345
9346done
9347# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9348if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009349 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9350echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9351if test "${ac_cv_search_opendir+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009353else
9354 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009355cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h. */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360/* end confdefs.h. */
9361
Reid Spencera773bd52006-08-04 18:18:08 +00009362/* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009365#ifdef __cplusplus
9366extern "C"
9367#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009368char opendir ();
9369int
9370main ()
9371{
Reid Spencera773bd52006-08-04 18:18:08 +00009372return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009373 ;
9374 return 0;
9375}
9376_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009377for ac_lib in '' dir; do
9378 if test -z "$ac_lib"; then
9379 ac_res="none required"
9380 else
9381 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009383 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009384 rm -f conftest.$ac_objext conftest$ac_exeext
9385if { (ac_try="$ac_link"
9386case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389esac
9390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_link") 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } &&
9398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9399 { (case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402esac
9403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_try") 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412esac
9413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_try") 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009418 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009419else
9420 echo "$as_me: failed program was:" >&5
9421sed 's/^/| /' conftest.$ac_ext >&5
9422
9423
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009424fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009425
Bill Wendlingebcceee2009-04-18 11:20:33 +00009426rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009427 conftest$ac_exeext
9428 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009429 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430fi
John Criswell7a73b802003-06-30 21:59:07 +00009431done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009432if test "${ac_cv_search_opendir+set}" = set; then
9433 :
Reid Spencera773bd52006-08-04 18:18:08 +00009434else
9435 ac_cv_search_opendir=no
9436fi
9437rm conftest.$ac_ext
9438LIBS=$ac_func_search_save_LIBS
9439fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009440{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9441echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009442ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009443if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009445
Reid Spencera773bd52006-08-04 18:18:08 +00009446fi
9447
9448else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009449 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9450echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9451if test "${ac_cv_search_opendir+set}" = set; then
9452 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009453else
9454 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009455cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009460/* end confdefs.h. */
9461
9462/* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
9465#ifdef __cplusplus
9466extern "C"
9467#endif
9468char opendir ();
9469int
9470main ()
9471{
9472return opendir ();
9473 ;
9474 return 0;
9475}
9476_ACEOF
9477for ac_lib in '' x; do
9478 if test -z "$ac_lib"; then
9479 ac_res="none required"
9480 else
9481 ac_res=-l$ac_lib
9482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9483 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009484 rm -f conftest.$ac_objext conftest$ac_exeext
9485if { (ac_try="$ac_link"
9486case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489esac
9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9499 { (case "(($ac_try" in
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9502esac
9503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_try") 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512esac
9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_try") 2>&5
9515 ac_status=$?
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009518 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009519else
9520 echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
9523
Reid Spencera773bd52006-08-04 18:18:08 +00009524fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009525
Bill Wendlingebcceee2009-04-18 11:20:33 +00009526rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009527 conftest$ac_exeext
9528 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009529 break
9530fi
9531done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009532if test "${ac_cv_search_opendir+set}" = set; then
9533 :
Reid Spencera773bd52006-08-04 18:18:08 +00009534else
9535 ac_cv_search_opendir=no
9536fi
9537rm conftest.$ac_ext
9538LIBS=$ac_func_search_save_LIBS
9539fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009540{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9541echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009542ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009543if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9545
9546fi
9547
9548fi
John Criswell7a73b802003-06-30 21:59:07 +00009549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009550
John Criswell7a73b802003-06-30 21:59:07 +00009551for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009552do
9553as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559fi
9560ac_res=`eval echo '${'$as_ac_Header'}'`
9561 { echo "$as_me:$LINENO: result: $ac_res" >&5
9562echo "${ECHO_T}$ac_res" >&6; }
9563else
9564 # Is the header compilable?
9565{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9567cat >conftest.$ac_ext <<_ACEOF
9568/* confdefs.h. */
9569_ACEOF
9570cat confdefs.h >>conftest.$ac_ext
9571cat >>conftest.$ac_ext <<_ACEOF
9572/* end confdefs.h. */
9573$ac_includes_default
9574#include <$ac_header>
9575_ACEOF
9576rm -f conftest.$ac_objext
9577if { (ac_try="$ac_compile"
9578case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581esac
9582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_compile") 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9591 { (case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_try") 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest.$ac_objext'
9601 { (case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604esac
9605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_try") 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 ac_header_compiler=yes
9611else
9612 echo "$as_me: failed program was:" >&5
9613sed 's/^/| /' conftest.$ac_ext >&5
9614
9615 ac_header_compiler=no
9616fi
9617
9618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9620echo "${ECHO_T}$ac_header_compiler" >&6; }
9621
9622# Is the header present?
9623{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h. */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */
9631#include <$ac_header>
9632_ACEOF
9633if { (ac_try="$ac_cpp conftest.$ac_ext"
9634case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } >/dev/null; then
9646 if test -s conftest.err; then
9647 ac_cpp_err=$ac_c_preproc_warn_flag
9648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9649 else
9650 ac_cpp_err=
9651 fi
9652else
9653 ac_cpp_err=yes
9654fi
9655if test -z "$ac_cpp_err"; then
9656 ac_header_preproc=yes
9657else
9658 echo "$as_me: failed program was:" >&5
9659sed 's/^/| /' conftest.$ac_ext >&5
9660
9661 ac_header_preproc=no
9662fi
9663
9664rm -f conftest.err conftest.$ac_ext
9665{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9666echo "${ECHO_T}$ac_header_preproc" >&6; }
9667
9668# So? What about this header?
9669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9670 yes:no: )
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9675 ac_header_preproc=yes
9676 ;;
9677 no:yes:* )
9678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9690 ( cat <<\_ASBOX
9691## ----------------------------------- ##
9692## Report this to llvmbugs@cs.uiuc.edu ##
9693## ----------------------------------- ##
9694_ASBOX
9695 ) | sed "s/^/$as_me: WARNING: /" >&2
9696 ;;
9697esac
9698{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703 eval "$as_ac_Header=\$ac_header_preproc"
9704fi
9705ac_res=`eval echo '${'$as_ac_Header'}'`
9706 { echo "$as_me:$LINENO: result: $ac_res" >&5
9707echo "${ECHO_T}$ac_res" >&6; }
9708
9709fi
9710if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009711 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009713_ACEOF
9714
9715fi
9716
9717done
9718
Reid Spencera773bd52006-08-04 18:18:08 +00009719# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009720if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009721 enableval=$enable_ltdl_install;
9722fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009723
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009725
9726
9727if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728 INSTALL_LTDL_TRUE=
9729 INSTALL_LTDL_FALSE='#'
9730else
9731 INSTALL_LTDL_TRUE='#'
9732 INSTALL_LTDL_FALSE=
9733fi
9734
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009735
9736
9737if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009738 CONVENIENCE_LTDL_TRUE=
9739 CONVENIENCE_LTDL_FALSE='#'
9740else
9741 CONVENIENCE_LTDL_TRUE='#'
9742 CONVENIENCE_LTDL_FALSE=
9743fi
9744
9745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009746{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9747echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748library_names_spec=
9749libname_spec='lib$name'
9750soname_spec=
9751shrext_cmds=".so"
9752postinstall_cmds=
9753postuninstall_cmds=
9754finish_cmds=
9755finish_eval=
9756shlibpath_var=
9757shlibpath_overrides_runpath=unknown
9758version_type=none
9759dynamic_linker="$host_os ld.so"
9760sys_lib_dlsearch_path_spec="/lib /usr/lib"
9761if test "$GCC" = yes; then
9762 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9763 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9764 # if the path contains ";" then we assume it to be the separator
9765 # otherwise default to the standard path separator (i.e. ":") - it is
9766 # assumed that no part of a normal pathname contains ";" but that should
9767 # okay in the real world where ";" in dirpaths is itself problematic.
9768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9769 else
9770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9771 fi
9772else
9773 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9774fi
9775need_lib_prefix=unknown
9776hardcode_into_libs=no
9777
9778# when you set need_version to no, make sure it does not cause -set_version
9779# flags to be left without arguments
9780need_version=unknown
9781
9782case $host_os in
9783aix3*)
9784 version_type=linux
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9786 shlibpath_var=LIBPATH
9787
9788 # AIX 3 has no versioning support, so we append a major version to the name.
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 ;;
9791
9792aix4* | aix5*)
9793 version_type=linux
9794 need_lib_prefix=no
9795 need_version=no
9796 hardcode_into_libs=yes
9797 if test "$host_cpu" = ia64; then
9798 # AIX 5 supports IA64
9799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9800 shlibpath_var=LD_LIBRARY_PATH
9801 else
9802 # With GCC up to 2.95.x, collect2 would create an import file
9803 # for dependence libraries. The import file would start with
9804 # the line `#! .'. This would cause the generated library to
9805 # depend on `.', always an invalid library. This was fixed in
9806 # development snapshots of GCC prior to 3.0.
9807 case $host_os in
9808 aix4 | aix4.[01] | aix4.[01].*)
9809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9810 echo ' yes '
9811 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9812 :
9813 else
9814 can_build_shared=no
9815 fi
9816 ;;
9817 esac
9818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9819 # soname into executable. Probably we can add versioning support to
9820 # collect2, so additional links can be useful in future.
9821 if test "$aix_use_runtimelinking" = yes; then
9822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9823 # instead of lib<name>.a to let people know that these are not
9824 # typical AIX shared libraries.
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9826 else
9827 # We preserve .a as extension for shared libraries through AIX4.2
9828 # and later when we are not doing run time linking.
9829 library_names_spec='${libname}${release}.a $libname.a'
9830 soname_spec='${libname}${release}${shared_ext}$major'
9831 fi
9832 shlibpath_var=LIBPATH
9833 fi
9834 ;;
9835
9836amigaos*)
9837 library_names_spec='$libname.ixlibrary $libname.a'
9838 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9839 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'
9840 ;;
9841
9842beos*)
9843 library_names_spec='${libname}${shared_ext}'
9844 dynamic_linker="$host_os ld.so"
9845 shlibpath_var=LIBRARY_PATH
9846 ;;
9847
9848bsdi[45]*)
9849 version_type=linux
9850 need_version=no
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9856 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9857 # the default ld.so.conf also contains /usr/contrib/lib and
9858 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9859 # libtool to hard-code these into programs
9860 ;;
9861
9862cygwin* | mingw* | pw32*)
9863 version_type=windows
9864 shrext_cmds=".dll"
9865 need_version=no
9866 need_lib_prefix=no
9867
9868 case $GCC,$host_os in
9869 yes,cygwin* | yes,mingw* | yes,pw32*)
9870 library_names_spec='$libname.dll.a'
9871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9872 postinstall_cmds='base_file=`basename \${file}`~
9873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9874 dldir=$destdir/`dirname \$dlpath`~
9875 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009876 $install_prog $dir/$dlname \$dldir/$dlname~
9877 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9879 dlpath=$dir/\$dldll~
9880 $rm \$dlpath'
9881 shlibpath_overrides_runpath=yes
9882
9883 case $host_os in
9884 cygwin*)
9885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9888 ;;
9889 mingw*)
9890 # MinGW DLLs use traditional 'lib' prefix
9891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9893 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9894 # It is most probably a Windows format PATH printed by
9895 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9896 # path with ; separators, and with drive letters. We can handle the
9897 # drive letters (cygwin fileutils understands them), so leave them,
9898 # especially as we might pass files found there to a mingw objdump,
9899 # which wouldn't understand a cygwinified path. Ahh.
9900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901 else
9902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9903 fi
9904 ;;
9905 pw32*)
9906 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009907 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 +00009908 ;;
9909 esac
9910 ;;
9911
9912 *)
9913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9914 ;;
9915 esac
9916 dynamic_linker='Win32 ld.exe'
9917 # FIXME: first we should search . and the directory the executable is in
9918 shlibpath_var=PATH
9919 ;;
9920
9921darwin* | rhapsody*)
9922 dynamic_linker="$host_os dyld"
9923 version_type=darwin
9924 need_lib_prefix=no
9925 need_version=no
9926 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9927 soname_spec='${libname}${release}${major}$shared_ext'
9928 shlibpath_overrides_runpath=yes
9929 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009930 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009931 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9932 if test "$GCC" = yes; then
9933 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"`
9934 else
9935 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9936 fi
9937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9938 ;;
9939
9940dgux*)
9941 version_type=linux
9942 need_lib_prefix=no
9943 need_version=no
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 ;;
9948
9949freebsd1*)
9950 dynamic_linker=no
9951 ;;
9952
9953kfreebsd*-gnu)
9954 version_type=linux
9955 need_lib_prefix=no
9956 need_version=no
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 shlibpath_overrides_runpath=no
9961 hardcode_into_libs=yes
9962 dynamic_linker='GNU ld.so'
9963 ;;
9964
Reid Spencera773bd52006-08-04 18:18:08 +00009965freebsd* | dragonfly*)
9966 # DragonFly does not have aout. When/if they implement a new
9967 # versioning mechanism, adjust this.
9968 if test -x /usr/bin/objformat; then
9969 objformat=`/usr/bin/objformat`
9970 else
9971 case $host_os in
9972 freebsd[123]*) objformat=aout ;;
9973 *) objformat=elf ;;
9974 esac
9975 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976 version_type=freebsd-$objformat
9977 case $version_type in
9978 freebsd-elf*)
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9980 need_version=no
9981 need_lib_prefix=no
9982 ;;
9983 freebsd-*)
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9985 need_version=yes
9986 ;;
9987 esac
9988 shlibpath_var=LD_LIBRARY_PATH
9989 case $host_os in
9990 freebsd2*)
9991 shlibpath_overrides_runpath=yes
9992 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009993 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994 shlibpath_overrides_runpath=yes
9995 hardcode_into_libs=yes
9996 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009997 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9998 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999 shlibpath_overrides_runpath=no
10000 hardcode_into_libs=yes
10001 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010002 freebsd*) # from 4.6 on
10003 shlibpath_overrides_runpath=yes
10004 hardcode_into_libs=yes
10005 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006 esac
10007 ;;
10008
10009gnu*)
10010 version_type=linux
10011 need_lib_prefix=no
10012 need_version=no
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 shlibpath_var=LD_LIBRARY_PATH
10016 hardcode_into_libs=yes
10017 ;;
10018
10019hpux9* | hpux10* | hpux11*)
10020 # Give a soname corresponding to the major version so that dld.sl refuses to
10021 # link against other versions.
10022 version_type=sunos
10023 need_lib_prefix=no
10024 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000010025 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026 ia64*)
10027 shrext_cmds='.so'
10028 hardcode_into_libs=yes
10029 dynamic_linker="$host_os dld.so"
10030 shlibpath_var=LD_LIBRARY_PATH
10031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10034 if test "X$HPUX_IA64_MODE" = X32; then
10035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10036 else
10037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10038 fi
10039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040 ;;
10041 hppa*64*)
10042 shrext_cmds='.sl'
10043 hardcode_into_libs=yes
10044 dynamic_linker="$host_os dld.sl"
10045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10051 ;;
10052 *)
10053 shrext_cmds='.sl'
10054 dynamic_linker="$host_os dld.sl"
10055 shlibpath_var=SHLIB_PATH
10056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 soname_spec='${libname}${release}${shared_ext}$major'
10059 ;;
10060 esac
10061 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10062 postinstall_cmds='chmod 555 $lib'
10063 ;;
10064
Reid Spencera773bd52006-08-04 18:18:08 +000010065interix3*)
10066 version_type=linux
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=no
10074 hardcode_into_libs=yes
10075 ;;
10076
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077irix5* | irix6* | nonstopux*)
10078 case $host_os in
10079 nonstopux*) version_type=nonstopux ;;
10080 *)
10081 if test "$lt_cv_prog_gnu_ld" = yes; then
10082 version_type=linux
10083 else
10084 version_type=irix
10085 fi ;;
10086 esac
10087 need_lib_prefix=no
10088 need_version=no
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10091 case $host_os in
10092 irix5* | nonstopux*)
10093 libsuff= shlibsuff=
10094 ;;
10095 *)
10096 case $LD in # libtool.m4 will add one of these switches to LD
10097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10098 libsuff= shlibsuff= libmagic=32-bit;;
10099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10100 libsuff=32 shlibsuff=N32 libmagic=N32;;
10101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10103 *) libsuff= shlibsuff= libmagic=never-match;;
10104 esac
10105 ;;
10106 esac
10107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10108 shlibpath_overrides_runpath=no
10109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10111 hardcode_into_libs=yes
10112 ;;
10113
10114# No shared lib support for Linux oldld, aout, or coff.
10115linux*oldld* | linux*aout* | linux*coff*)
10116 dynamic_linker=no
10117 ;;
10118
10119# This must be Linux ELF.
10120linux*)
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=no
10129 # This implies no fast_install, which is unacceptable.
10130 # Some rework will be needed to allow for fast_install
10131 # before this can be enabled.
10132 hardcode_into_libs=yes
10133
10134 # Append ld.so.conf contents to the search path
10135 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010136 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 +000010137 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10138 fi
10139
10140 # We used to test for /lib/ld.so.1 and disable shared libraries on
10141 # powerpc, because MkLinux only supported shared libraries with the
10142 # GNU dynamic linker. Since this was broken with cross compilers,
10143 # most powerpc-linux boxes support dynamic linking these days and
10144 # people can always --disable-shared, the test was removed, and we
10145 # assume the GNU/Linux dynamic linker is in use.
10146 dynamic_linker='GNU/Linux ld.so'
10147 ;;
10148
10149knetbsd*-gnu)
10150 version_type=linux
10151 need_lib_prefix=no
10152 need_version=no
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10158 dynamic_linker='GNU ld.so'
10159 ;;
10160
10161netbsd*)
10162 version_type=sunos
10163 need_lib_prefix=no
10164 need_version=no
10165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10167 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10168 dynamic_linker='NetBSD (a.out) ld.so'
10169 else
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 dynamic_linker='NetBSD ld.elf_so'
10173 fi
10174 shlibpath_var=LD_LIBRARY_PATH
10175 shlibpath_overrides_runpath=yes
10176 hardcode_into_libs=yes
10177 ;;
10178
10179newsos6)
10180 version_type=linux
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=yes
10184 ;;
10185
10186nto-qnx*)
10187 version_type=linux
10188 need_lib_prefix=no
10189 need_version=no
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10191 soname_spec='${libname}${release}${shared_ext}$major'
10192 shlibpath_var=LD_LIBRARY_PATH
10193 shlibpath_overrides_runpath=yes
10194 ;;
10195
10196openbsd*)
10197 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010198 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10201 case $host_os in
10202 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10203 *) need_version=no ;;
10204 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10207 shlibpath_var=LD_LIBRARY_PATH
10208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10209 case $host_os in
10210 openbsd2.[89] | openbsd2.[89].*)
10211 shlibpath_overrides_runpath=no
10212 ;;
10213 *)
10214 shlibpath_overrides_runpath=yes
10215 ;;
10216 esac
10217 else
10218 shlibpath_overrides_runpath=yes
10219 fi
10220 ;;
10221
10222os2*)
10223 libname_spec='$name'
10224 shrext_cmds=".dll"
10225 need_lib_prefix=no
10226 library_names_spec='$libname${shared_ext} $libname.a'
10227 dynamic_linker='OS/2 ld.exe'
10228 shlibpath_var=LIBPATH
10229 ;;
10230
10231osf3* | osf4* | osf5*)
10232 version_type=osf
10233 need_lib_prefix=no
10234 need_version=no
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10240 ;;
10241
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010242solaris*)
10243 version_type=linux
10244 need_lib_prefix=no
10245 need_version=no
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes
10250 hardcode_into_libs=yes
10251 # ldd complains unless libraries are executable
10252 postinstall_cmds='chmod +x $lib'
10253 ;;
10254
10255sunos4*)
10256 version_type=sunos
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=yes
10261 if test "$with_gnu_ld" = yes; then
10262 need_lib_prefix=no
10263 fi
10264 need_version=yes
10265 ;;
10266
Reid Spencera773bd52006-08-04 18:18:08 +000010267sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268 version_type=linux
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 case $host_vendor in
10273 sni)
10274 shlibpath_overrides_runpath=no
10275 need_lib_prefix=no
10276 export_dynamic_flag_spec='${wl}-Blargedynsym'
10277 runpath_var=LD_RUN_PATH
10278 ;;
10279 siemens)
10280 need_lib_prefix=no
10281 ;;
10282 motorola)
10283 need_lib_prefix=no
10284 need_version=no
10285 shlibpath_overrides_runpath=no
10286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10287 ;;
10288 esac
10289 ;;
10290
10291sysv4*MP*)
10292 if test -d /usr/nec ;then
10293 version_type=linux
10294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10295 soname_spec='$libname${shared_ext}.$major'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 fi
10298 ;;
10299
Reid Spencera773bd52006-08-04 18:18:08 +000010300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10301 version_type=freebsd-elf
10302 need_lib_prefix=no
10303 need_version=no
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 hardcode_into_libs=yes
10308 if test "$with_gnu_ld" = yes; then
10309 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10310 shlibpath_overrides_runpath=no
10311 else
10312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10313 shlibpath_overrides_runpath=yes
10314 case $host_os in
10315 sco3.2v5*)
10316 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10317 ;;
10318 esac
10319 fi
10320 sys_lib_dlsearch_path_spec='/usr/lib'
10321 ;;
10322
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323uts4*)
10324 version_type=linux
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 shlibpath_var=LD_LIBRARY_PATH
10328 ;;
10329
10330*)
10331 dynamic_linker=no
10332 ;;
10333esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010334{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10335echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010336test "$dynamic_linker" = no && can_build_shared=no
10337
Reid Spencera773bd52006-08-04 18:18:08 +000010338variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10339if test "$GCC" = yes; then
10340 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10341fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010342
Reid Spencera773bd52006-08-04 18:18:08 +000010343
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010344{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10345echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10346if test "${libltdl_cv_shlibext+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010348else
10349
10350module=yes
10351eval libltdl_cv_shlibext=$shrext_cmds
10352
10353fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010354{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10355echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010356if test -n "$libltdl_cv_shlibext"; then
10357
10358cat >>confdefs.h <<_ACEOF
10359#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10360_ACEOF
10361
10362fi
10363
10364
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010365{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10366echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10367if test "${libltdl_cv_shlibpath_var+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369else
10370 libltdl_cv_shlibpath_var="$shlibpath_var"
10371fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010372{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10373echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010374if test -n "$libltdl_cv_shlibpath_var"; then
10375
10376cat >>confdefs.h <<_ACEOF
10377#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10378_ACEOF
10379
10380fi
10381
10382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010383{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10384echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10385if test "${libltdl_cv_sys_search_path+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010387else
10388 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10389fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010390{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10391echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392if test -n "$libltdl_cv_sys_search_path"; then
10393 sys_search_path=
10394 for dir in $libltdl_cv_sys_search_path; do
10395 if test -z "$sys_search_path"; then
10396 sys_search_path="$dir"
10397 else
10398 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10399 fi
10400 done
10401
10402cat >>confdefs.h <<_ACEOF
10403#define LTDL_SYSSEARCHPATH "$sys_search_path"
10404_ACEOF
10405
10406fi
10407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010408{ echo "$as_me:$LINENO: checking for objdir" >&5
10409echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10410if test "${libltdl_cv_objdir+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010412else
10413 libltdl_cv_objdir="$objdir"
10414 if test -n "$objdir"; then
10415 :
10416 else
10417 rm -f .libs 2>/dev/null
10418 mkdir .libs 2>/dev/null
10419 if test -d .libs; then
10420 libltdl_cv_objdir=.libs
10421 else
10422 # MS-DOS does not allow filenames that begin with a dot.
10423 libltdl_cv_objdir=_libs
10424 fi
10425 rmdir .libs 2>/dev/null
10426 fi
10427
10428fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010429{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10430echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431
10432cat >>confdefs.h <<_ACEOF
10433#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10434_ACEOF
10435
10436
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010437
10438
10439
10440
10441# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010442{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10443echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10444if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010446else
10447
10448# These are sane defaults that work on at least a few old systems.
10449# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10450
10451# Character class describing NM global symbol codes.
10452symcode='[BCDEGRST]'
10453
10454# Regexp to match symbols that can be accessed directly from C.
10455sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10456
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457# Transform an extracted symbol line into a proper C declaration
10458lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10459
10460# Transform an extracted symbol line into symbol name and symbol address
10461lt_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'"
10462
10463# Define system-specific variables.
10464case $host_os in
10465aix*)
10466 symcode='[BCDT]'
10467 ;;
10468cygwin* | mingw* | pw32*)
10469 symcode='[ABCDGISTW]'
10470 ;;
10471hpux*) # Its linker distinguishes data from code symbols
10472 if test "$host_cpu" = ia64; then
10473 symcode='[ABCDEGRST]'
10474 fi
10475 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10476 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'"
10477 ;;
10478linux*)
10479 if test "$host_cpu" = ia64; then
10480 symcode='[ABCDGIRSTW]'
10481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10482 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'"
10483 fi
10484 ;;
10485irix* | nonstopux*)
10486 symcode='[BCDEGRST]'
10487 ;;
10488osf*)
10489 symcode='[BCDEGQRST]'
10490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010491solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492 symcode='[BDRT]'
10493 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010494sco3.2v5*)
10495 symcode='[DT]'
10496 ;;
10497sysv4.2uw2*)
10498 symcode='[DT]'
10499 ;;
10500sysv5* | sco5v6* | unixware* | OpenUNIX*)
10501 symcode='[ABDT]'
10502 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503sysv4)
10504 symcode='[DFNSTU]'
10505 ;;
10506esac
10507
10508# Handle CRLF in mingw tool chain
10509opt_cr=
10510case $build_os in
10511mingw*)
10512 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10513 ;;
10514esac
10515
10516# If we're using GNU nm, then use its standard symbol codes.
10517case `$NM -V 2>&1` in
10518*GNU* | *'with BFD'*)
10519 symcode='[ABCDGIRSTW]' ;;
10520esac
10521
10522# Try without a prefix undercore, then with it.
10523for ac_symprfx in "" "_"; do
10524
Reid Spencera773bd52006-08-04 18:18:08 +000010525 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10526 symxfrm="\\1 $ac_symprfx\\2 \\2"
10527
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010529 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 +000010530
10531 # Check to see that the pipe works correctly.
10532 pipe_works=no
10533
10534 rm -f conftest*
10535 cat > conftest.$ac_ext <<EOF
10536#ifdef __cplusplus
10537extern "C" {
10538#endif
10539char nm_test_var;
10540void nm_test_func(){}
10541#ifdef __cplusplus
10542}
10543#endif
10544int main(){nm_test_var='a';nm_test_func();return(0);}
10545EOF
10546
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548 (eval $ac_compile) 2>&5
10549 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552 # Now try to grab the symbols.
10553 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010554 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 +000010555 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10556 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559 # Try sorting and uniquifying the output.
10560 if sort "$nlist" | uniq > "$nlist"T; then
10561 mv -f "$nlist"T "$nlist"
10562 else
10563 rm -f "$nlist"T
10564 fi
10565
10566 # Make sure that we snagged all the symbols we need.
10567 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10568 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10569 cat <<EOF > conftest.$ac_ext
10570#ifdef __cplusplus
10571extern "C" {
10572#endif
10573
10574EOF
10575 # Now generate the symbol file.
10576 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10577
10578 cat <<EOF >> conftest.$ac_ext
10579#if defined (__STDC__) && __STDC__
10580# define lt_ptr_t void *
10581#else
10582# define lt_ptr_t char *
10583# define const
10584#endif
10585
10586/* The mapping between symbol names and symbols. */
10587const struct {
10588 const char *name;
10589 lt_ptr_t address;
10590}
10591lt_preloaded_symbols[] =
10592{
10593EOF
10594 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10595 cat <<\EOF >> conftest.$ac_ext
10596 {0, (lt_ptr_t) 0}
10597};
10598
10599#ifdef __cplusplus
10600}
10601#endif
10602EOF
10603 # Now try linking the two files.
10604 mv conftest.$ac_objext conftstm.$ac_objext
10605 lt_save_LIBS="$LIBS"
10606 lt_save_CFLAGS="$CFLAGS"
10607 LIBS="conftstm.$ac_objext"
10608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010610 (eval $ac_link) 2>&5
10611 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614 pipe_works=yes
10615 fi
10616 LIBS="$lt_save_LIBS"
10617 CFLAGS="$lt_save_CFLAGS"
10618 else
10619 echo "cannot find nm_test_func in $nlist" >&5
10620 fi
10621 else
10622 echo "cannot find nm_test_var in $nlist" >&5
10623 fi
10624 else
10625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10626 fi
10627 else
10628 echo "$progname: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10630 fi
10631 rm -f conftest* conftst*
10632
10633 # Do not use the global_symbol_pipe unless it works.
10634 if test "$pipe_works" = yes; then
10635 break
10636 else
10637 lt_cv_sys_global_symbol_pipe=
10638 fi
10639done
10640
10641fi
10642
10643if test -z "$lt_cv_sys_global_symbol_pipe"; then
10644 lt_cv_sys_global_symbol_to_cdecl=
10645fi
10646if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010647 { echo "$as_me:$LINENO: result: failed" >&5
10648echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010650 { echo "$as_me:$LINENO: result: ok" >&5
10651echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652fi
10653
10654
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010655{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10656echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10657if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659else
10660 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10661 libltdl_cv_preloaded_symbols=yes
10662 else
10663 libltdl_cv_preloaded_symbols=no
10664 fi
10665
10666fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10668echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010669if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010671cat >>confdefs.h <<\_ACEOF
10672#define HAVE_PRELOADED_SYMBOLS 1
10673_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674
10675fi
10676
10677LIBADD_DL=
10678
10679ac_ext=c
10680ac_cpp='$CPP $CPPFLAGS'
10681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10683ac_compiler_gnu=$ac_cv_c_compiler_gnu
10684
10685
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010686{ echo "$as_me:$LINENO: checking for shl_load" >&5
10687echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10688if test "${ac_cv_func_shl_load+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690else
10691 cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10699#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010701/* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char shl_load (); below.
10703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704 <limits.h> exists even on freestanding compilers. */
10705
10706#ifdef __STDC__
10707# include <limits.h>
10708#else
10709# include <assert.h>
10710#endif
10711
10712#undef shl_load
10713
10714/* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10717#ifdef __cplusplus
10718extern "C"
10719#endif
10720char shl_load ();
10721/* The GNU C library defines this for functions which it implements
10722 to always fail with ENOSYS. Some functions are actually named
10723 something starting with __ and the normal name is an alias. */
10724#if defined __stub_shl_load || defined __stub___shl_load
10725choke me
10726#endif
10727
10728int
10729main ()
10730{
10731return shl_load ();
10732 ;
10733 return 0;
10734}
10735_ACEOF
10736rm -f conftest.$ac_objext conftest$ac_exeext
10737if { (ac_try="$ac_link"
10738case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741esac
10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_link") 2>conftest.er1
10744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754esac
10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_try") 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; } &&
10760 { ac_try='test -s conftest$ac_exeext'
10761 { (case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_try") 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
10770 ac_cv_func_shl_load=yes
10771else
10772 echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_cv_func_shl_load=no
10776fi
10777
10778rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780fi
10781{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10782echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10783if test $ac_cv_func_shl_load = yes; then
10784
10785cat >>confdefs.h <<\_ACEOF
10786#define HAVE_SHL_LOAD 1
10787_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788
10789else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010790 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10791echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10792if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10793 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794else
10795 ac_check_lib_save_LIBS=$LIBS
10796LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010797cat >conftest.$ac_ext <<_ACEOF
10798/* confdefs.h. */
10799_ACEOF
10800cat confdefs.h >>conftest.$ac_ext
10801cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802/* end confdefs.h. */
10803
Reid Spencera773bd52006-08-04 18:18:08 +000010804/* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010807#ifdef __cplusplus
10808extern "C"
10809#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810char shl_load ();
10811int
10812main ()
10813{
Reid Spencera773bd52006-08-04 18:18:08 +000010814return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815 ;
10816 return 0;
10817}
10818_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010819rm -f conftest.$ac_objext conftest$ac_exeext
10820if { (ac_try="$ac_link"
10821case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_link") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10834 { (case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837esac
10838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_try") 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest$ac_exeext'
10844 { (case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847esac
10848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_try") 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853 ac_cv_lib_dld_shl_load=yes
10854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010855 echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010860
Bill Wendlingebcceee2009-04-18 11:20:33 +000010861rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010862 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010863LIBS=$ac_check_lib_save_LIBS
10864fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010865{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10866echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10867if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010869cat >>confdefs.h <<\_ACEOF
10870#define HAVE_SHL_LOAD 1
10871_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010872
10873 LIBADD_DL="$LIBADD_DL -ldld"
10874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010875 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10876echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10877if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879else
10880 ac_check_lib_save_LIBS=$LIBS
10881LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010882cat >conftest.$ac_ext <<_ACEOF
10883/* confdefs.h. */
10884_ACEOF
10885cat confdefs.h >>conftest.$ac_ext
10886cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887/* end confdefs.h. */
10888
Reid Spencera773bd52006-08-04 18:18:08 +000010889/* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892#ifdef __cplusplus
10893extern "C"
10894#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010895char dlopen ();
10896int
10897main ()
10898{
Reid Spencera773bd52006-08-04 18:18:08 +000010899return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900 ;
10901 return 0;
10902}
10903_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010904rm -f conftest.$ac_objext conftest$ac_exeext
10905if { (ac_try="$ac_link"
10906case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10909esac
10910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_link") 2>conftest.er1
10912 ac_status=$?
10913 grep -v '^ *+' conftest.er1 >conftest.err
10914 rm -f conftest.er1
10915 cat conftest.err >&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); } &&
10918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10919 { (case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922esac
10923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_try") 2>&5
10925 ac_status=$?
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; } &&
10928 { ac_try='test -s conftest$ac_exeext'
10929 { (case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_try") 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938 ac_cv_lib_dl_dlopen=yes
10939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010940 echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010945
Bill Wendlingebcceee2009-04-18 11:20:33 +000010946rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010947 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948LIBS=$ac_check_lib_save_LIBS
10949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010950{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10951echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10952if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010954cat >>confdefs.h <<\_ACEOF
10955#define HAVE_LIBDL 1
10956_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957
10958 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10959else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010960 cat >conftest.$ac_ext <<_ACEOF
10961/* confdefs.h. */
10962_ACEOF
10963cat confdefs.h >>conftest.$ac_ext
10964cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965/* end confdefs.h. */
10966#if HAVE_DLFCN_H
10967# include <dlfcn.h>
10968#endif
10969
10970int
10971main ()
10972{
10973dlopen(0, 0);
10974 ;
10975 return 0;
10976}
10977_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010978rm -f conftest.$ac_objext conftest$ac_exeext
10979if { (ac_try="$ac_link"
10980case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10983esac
10984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_link") 2>conftest.er1
10986 ac_status=$?
10987 grep -v '^ *+' conftest.er1 >conftest.err
10988 rm -f conftest.er1
10989 cat conftest.err >&5
10990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } &&
10992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10993 { (case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10996esac
10997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_try") 2>&5
10999 ac_status=$?
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11001 (exit $ac_status); }; } &&
11002 { ac_try='test -s conftest$ac_exeext'
11003 { (case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11006esac
11007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11008 (eval "$ac_try") 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011013cat >>confdefs.h <<\_ACEOF
11014#define HAVE_LIBDL 1
11015_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016 libltdl_cv_func_dlopen="yes"
11017else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011018 echo "$as_me: failed program was:" >&5
11019sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11022echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11023if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025else
11026 ac_check_lib_save_LIBS=$LIBS
11027LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011028cat >conftest.$ac_ext <<_ACEOF
11029/* confdefs.h. */
11030_ACEOF
11031cat confdefs.h >>conftest.$ac_ext
11032cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033/* end confdefs.h. */
11034
Reid Spencera773bd52006-08-04 18:18:08 +000011035/* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038#ifdef __cplusplus
11039extern "C"
11040#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041char dlopen ();
11042int
11043main ()
11044{
Reid Spencera773bd52006-08-04 18:18:08 +000011045return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046 ;
11047 return 0;
11048}
11049_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011050rm -f conftest.$ac_objext conftest$ac_exeext
11051if { (ac_try="$ac_link"
11052case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
11058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11065 { (case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11068esac
11069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_try") 2>&5
11071 ac_status=$?
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; } &&
11074 { ac_try='test -s conftest$ac_exeext'
11075 { (case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078esac
11079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_try") 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084 ac_cv_lib_svld_dlopen=yes
11085else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011086 echo "$as_me: failed program was:" >&5
11087sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011090fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011091
Bill Wendlingebcceee2009-04-18 11:20:33 +000011092rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011093 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094LIBS=$ac_check_lib_save_LIBS
11095fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011096{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11097echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11098if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011099
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011100cat >>confdefs.h <<\_ACEOF
11101#define HAVE_LIBDL 1
11102_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103
11104 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11105else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011106 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11107echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11108if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11109 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110else
11111 ac_check_lib_save_LIBS=$LIBS
11112LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011113cat >conftest.$ac_ext <<_ACEOF
11114/* confdefs.h. */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118/* end confdefs.h. */
11119
Reid Spencera773bd52006-08-04 18:18:08 +000011120/* Override any GCC internal prototype to avoid an error.
11121 Use char because int might match the return type of a GCC
11122 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123#ifdef __cplusplus
11124extern "C"
11125#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126char dld_link ();
11127int
11128main ()
11129{
Reid Spencera773bd52006-08-04 18:18:08 +000011130return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011131 ;
11132 return 0;
11133}
11134_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011135rm -f conftest.$ac_objext conftest$ac_exeext
11136if { (ac_try="$ac_link"
11137case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140esac
11141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } &&
11149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11163esac
11164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169 ac_cv_lib_dld_dld_link=yes
11170else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011171 echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011175fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011176
Bill Wendlingebcceee2009-04-18 11:20:33 +000011177rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011178 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011179LIBS=$ac_check_lib_save_LIBS
11180fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011181{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11182echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11183if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011185cat >>confdefs.h <<\_ACEOF
11186#define HAVE_DLD 1
11187_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188
11189 LIBADD_DL="$LIBADD_DL -ldld"
11190else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011191 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11192echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11193if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195else
11196 cat >conftest.$ac_ext <<_ACEOF
11197/* confdefs.h. */
11198_ACEOF
11199cat confdefs.h >>conftest.$ac_ext
11200cat >>conftest.$ac_ext <<_ACEOF
11201/* end confdefs.h. */
11202/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11204#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011206/* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char _dyld_func_lookup (); below.
11208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011211#ifdef __STDC__
11212# include <limits.h>
11213#else
11214# include <assert.h>
11215#endif
11216
11217#undef _dyld_func_lookup
11218
11219/* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11222#ifdef __cplusplus
11223extern "C"
11224#endif
11225char _dyld_func_lookup ();
11226/* The GNU C library defines this for functions which it implements
11227 to always fail with ENOSYS. Some functions are actually named
11228 something starting with __ and the normal name is an alias. */
11229#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11230choke me
11231#endif
11232
11233int
11234main ()
11235{
11236return _dyld_func_lookup ();
11237 ;
11238 return 0;
11239}
11240_ACEOF
11241rm -f conftest.$ac_objext conftest$ac_exeext
11242if { (ac_try="$ac_link"
11243case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } &&
11255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256 { (case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
11260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_try") 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest$ac_exeext'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
11275 ac_cv_func__dyld_func_lookup=yes
11276else
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281fi
Reid Spencera773bd52006-08-04 18:18:08 +000011282
Bill Wendlingebcceee2009-04-18 11:20:33 +000011283rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011284 conftest$ac_exeext conftest.$ac_ext
11285fi
11286{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11287echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11288if test $ac_cv_func__dyld_func_lookup = yes; then
11289
11290cat >>confdefs.h <<\_ACEOF
11291#define HAVE_DYLD 1
11292_ACEOF
11293
11294fi
11295
11296
11297fi
11298
11299
11300fi
11301
11302
11303fi
11304
11305rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011307
11308fi
11309
11310
11311fi
11312
11313
11314fi
11315
11316
11317if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11318then
11319 lt_save_LIBS="$LIBS"
11320 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011321
11322for ac_func in dlerror
11323do
11324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329else
11330 cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
11336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11338#define $ac_func innocuous_$ac_func
11339
11340/* System header to define __stub macros and hopefully few prototypes,
11341 which can conflict with char $ac_func (); below.
11342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11343 <limits.h> exists even on freestanding compilers. */
11344
11345#ifdef __STDC__
11346# include <limits.h>
11347#else
11348# include <assert.h>
11349#endif
11350
11351#undef $ac_func
11352
11353/* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11356#ifdef __cplusplus
11357extern "C"
11358#endif
11359char $ac_func ();
11360/* The GNU C library defines this for functions which it implements
11361 to always fail with ENOSYS. Some functions are actually named
11362 something starting with __ and the normal name is an alias. */
11363#if defined __stub_$ac_func || defined __stub___$ac_func
11364choke me
11365#endif
11366
11367int
11368main ()
11369{
11370return $ac_func ();
11371 ;
11372 return 0;
11373}
11374_ACEOF
11375rm -f conftest.$ac_objext conftest$ac_exeext
11376if { (ac_try="$ac_link"
11377case "(($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_link") 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393esac
11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest$ac_exeext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
11409 eval "$as_ac_var=yes"
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414 eval "$as_ac_var=no"
11415fi
11416
11417rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11419fi
11420ac_res=`eval echo '${'$as_ac_var'}'`
11421 { echo "$as_me:$LINENO: result: $ac_res" >&5
11422echo "${ECHO_T}$ac_res" >&6; }
11423if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011426_ACEOF
11427
11428fi
11429done
11430
11431 LIBS="$lt_save_LIBS"
11432fi
11433ac_ext=c
11434ac_cpp='$CPP $CPPFLAGS'
11435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438
11439
11440
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011441{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11442echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11443if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445else
11446 ac_cv_sys_symbol_underscore=no
11447 cat > conftest.$ac_ext <<EOF
11448void nm_test_func(){}
11449int main(){nm_test_func;return 0;}
11450EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452 (eval $ac_compile) 2>&5
11453 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456 # Now try to grab the symbols.
11457 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011458 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 +000011459 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11460 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463 # See whether the symbols have a leading underscore.
11464 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11465 ac_cv_sys_symbol_underscore=yes
11466 else
11467 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11468 :
11469 else
11470 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11471 fi
11472 fi
11473 else
11474 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11475 fi
11476 else
11477 echo "configure: failed program was:" >&5
11478 cat conftest.c >&5
11479 fi
11480 rm -rf conftest*
11481
11482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011483{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11484echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485
11486
11487if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11488 if test x"$libltdl_cv_func_dlopen" = xyes ||
11489 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011490 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11491echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11492if test "${libltdl_cv_need_uscore+set}" = set; then
11493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011494else
11495 libltdl_cv_need_uscore=unknown
11496 save_LIBS="$LIBS"
11497 LIBS="$LIBS $LIBADD_DL"
11498 if test "$cross_compiling" = yes; then :
11499 libltdl_cv_need_uscore=cross
11500else
11501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11502 lt_status=$lt_dlunknown
11503 cat > conftest.$ac_ext <<EOF
Tobias Grossera84b5672010-11-10 16:31:34 +000011504#line 11504 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505#include "confdefs.h"
11506
11507#if HAVE_DLFCN_H
11508#include <dlfcn.h>
11509#endif
11510
11511#include <stdio.h>
11512
11513#ifdef RTLD_GLOBAL
11514# define LT_DLGLOBAL RTLD_GLOBAL
11515#else
11516# ifdef DL_GLOBAL
11517# define LT_DLGLOBAL DL_GLOBAL
11518# else
11519# define LT_DLGLOBAL 0
11520# endif
11521#endif
11522
11523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11524 find out it does not work in some platform. */
11525#ifndef LT_DLLAZY_OR_NOW
11526# ifdef RTLD_LAZY
11527# define LT_DLLAZY_OR_NOW RTLD_LAZY
11528# else
11529# ifdef DL_LAZY
11530# define LT_DLLAZY_OR_NOW DL_LAZY
11531# else
11532# ifdef RTLD_NOW
11533# define LT_DLLAZY_OR_NOW RTLD_NOW
11534# else
11535# ifdef DL_NOW
11536# define LT_DLLAZY_OR_NOW DL_NOW
11537# else
11538# define LT_DLLAZY_OR_NOW 0
11539# endif
11540# endif
11541# endif
11542# endif
11543#endif
11544
11545#ifdef __cplusplus
11546extern "C" void exit (int);
11547#endif
11548
11549void fnord() { int i=42;}
11550int main ()
11551{
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11554
11555 if (self)
11556 {
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11559 /* dlclose (self); */
11560 }
Reid Spencera773bd52006-08-04 18:18:08 +000011561 else
11562 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563
11564 exit (status);
11565}
11566EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568 (eval $ac_link) 2>&5
11569 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011572 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573 lt_status=$?
11574 case x$lt_status in
11575 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11576 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011577 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578 esac
11579 else :
11580 # compilation failed
11581
11582 fi
11583fi
11584rm -fr conftest*
11585
11586 LIBS="$save_LIBS"
11587
11588fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011589{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11590echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591 fi
11592fi
11593
11594if test x"$libltdl_cv_need_uscore" = xyes; then
11595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011596cat >>confdefs.h <<\_ACEOF
11597#define NEED_USCORE 1
11598_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599
11600fi
11601
11602
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011603{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11604echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11605if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607else
11608 # PORTME does your system automatically load deplibs for dlopen?
11609 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11610 # For now, we just catch OSes we know something about -- in the
11611 # future, we'll try test this programmatically.
11612 libltdl_cv_sys_dlopen_deplibs=unknown
11613 case "$host_os" in
11614 aix3*|aix4.1.*|aix4.2.*)
11615 # Unknown whether this is true for these versions of AIX, but
11616 # we want this `case' here to explicitly catch those versions.
11617 libltdl_cv_sys_dlopen_deplibs=unknown
11618 ;;
11619 aix[45]*)
11620 libltdl_cv_sys_dlopen_deplibs=yes
11621 ;;
11622 darwin*)
11623 # Assuming the user has installed a libdl from somewhere, this is true
11624 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11625 libltdl_cv_sys_dlopen_deplibs=yes
11626 ;;
11627 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11628 # GNU and its variants, using gnu ld.so (Glibc)
11629 libltdl_cv_sys_dlopen_deplibs=yes
11630 ;;
11631 hpux10*|hpux11*)
11632 libltdl_cv_sys_dlopen_deplibs=yes
11633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011634 interix*)
11635 libltdl_cv_sys_dlopen_deplibs=yes
11636 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637 irix[12345]*|irix6.[01]*)
11638 # Catch all versions of IRIX before 6.2, and indicate that we don't
11639 # know how it worked for any of those versions.
11640 libltdl_cv_sys_dlopen_deplibs=unknown
11641 ;;
11642 irix*)
11643 # The case above catches anything before 6.2, and it's known that
11644 # at 6.2 and later dlopen does load deplibs.
11645 libltdl_cv_sys_dlopen_deplibs=yes
11646 ;;
11647 netbsd*)
11648 libltdl_cv_sys_dlopen_deplibs=yes
11649 ;;
11650 openbsd*)
11651 libltdl_cv_sys_dlopen_deplibs=yes
11652 ;;
11653 osf[1234]*)
11654 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11655 # it did *not* use an RPATH in a shared library to find objects the
11656 # library depends on, so we explictly say `no'.
11657 libltdl_cv_sys_dlopen_deplibs=no
11658 ;;
11659 osf5.0|osf5.0a|osf5.1)
11660 # dlopen *does* load deplibs and with the right loader patch applied
11661 # it even uses RPATH in a shared library to search for shared objects
11662 # that the library depends on, but there's no easy way to know if that
11663 # patch is installed. Since this is the case, all we can really
11664 # say is unknown -- it depends on the patch being installed. If
11665 # it is, this changes to `yes'. Without it, it would be `no'.
11666 libltdl_cv_sys_dlopen_deplibs=unknown
11667 ;;
11668 osf*)
11669 # the two cases above should catch all versions of osf <= 5.1. Read
11670 # the comments above for what we know about them.
11671 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11672 # is used to find them so we can finally say `yes'.
11673 libltdl_cv_sys_dlopen_deplibs=yes
11674 ;;
11675 solaris*)
11676 libltdl_cv_sys_dlopen_deplibs=yes
11677 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11679 libltdl_cv_sys_dlopen_deplibs=yes
11680 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011681 esac
11682
11683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011684{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11685echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011688cat >>confdefs.h <<\_ACEOF
11689#define LTDL_DLOPEN_DEPLIBS 1
11690_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691
11692fi
11693
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011694
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011696do
11697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703fi
11704ac_res=`eval echo '${'$as_ac_Header'}'`
11705 { echo "$as_me:$LINENO: result: $ac_res" >&5
11706echo "${ECHO_T}$ac_res" >&6; }
11707else
11708 # Is the header compilable?
11709{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11711cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h. */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h. */
11717$ac_includes_default
11718#include <$ac_header>
11719_ACEOF
11720rm -f conftest.$ac_objext
11721if { (ac_try="$ac_compile"
11722case "(($ac_try" in
11723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11725esac
11726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_compile") 2>conftest.er1
11728 ac_status=$?
11729 grep -v '^ *+' conftest.er1 >conftest.err
11730 rm -f conftest.er1
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } &&
11734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11735 { (case "(($ac_try" in
11736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737 *) ac_try_echo=$ac_try;;
11738esac
11739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740 (eval "$ac_try") 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_try") 2>&5
11751 ac_status=$?
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; }; then
11754 ac_header_compiler=yes
11755else
11756 echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 ac_header_compiler=no
11760fi
11761
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11764echo "${ECHO_T}$ac_header_compiler" >&6; }
11765
11766# Is the header present?
11767{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11768echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11769cat >conftest.$ac_ext <<_ACEOF
11770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
11775#include <$ac_header>
11776_ACEOF
11777if { (ac_try="$ac_cpp conftest.$ac_ext"
11778case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781esac
11782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11784 ac_status=$?
11785 grep -v '^ *+' conftest.er1 >conftest.err
11786 rm -f conftest.er1
11787 cat conftest.err >&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); } >/dev/null; then
11790 if test -s conftest.err; then
11791 ac_cpp_err=$ac_c_preproc_warn_flag
11792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11793 else
11794 ac_cpp_err=
11795 fi
11796else
11797 ac_cpp_err=yes
11798fi
11799if test -z "$ac_cpp_err"; then
11800 ac_header_preproc=yes
11801else
11802 echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ac_header_preproc=no
11806fi
11807
11808rm -f conftest.err conftest.$ac_ext
11809{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11810echo "${ECHO_T}$ac_header_preproc" >&6; }
11811
11812# So? What about this header?
11813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11814 yes:no: )
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11819 ac_header_preproc=yes
11820 ;;
11821 no:yes:* )
11822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11834 ( cat <<\_ASBOX
11835## ----------------------------------- ##
11836## Report this to llvmbugs@cs.uiuc.edu ##
11837## ----------------------------------- ##
11838_ASBOX
11839 ) | sed "s/^/$as_me: WARNING: /" >&2
11840 ;;
11841esac
11842{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11846else
11847 eval "$as_ac_Header=\$ac_header_preproc"
11848fi
11849ac_res=`eval echo '${'$as_ac_Header'}'`
11850 { echo "$as_me:$LINENO: result: $ac_res" >&5
11851echo "${ECHO_T}$ac_res" >&6; }
11852
11853fi
11854if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857_ACEOF
11858
11859fi
11860
11861done
11862
11863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011864{ echo "$as_me:$LINENO: checking for error_t" >&5
11865echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11866if test "${ac_cv_type_error_t+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868else
11869 cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h. */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h. */
11875#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876# include <argz.h>
11877#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011878
11879typedef error_t ac__type_new_;
11880int
11881main ()
11882{
11883if ((ac__type_new_ *) 0)
11884 return 0;
11885if (sizeof (ac__type_new_))
11886 return 0;
11887 ;
11888 return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext
11892if { (ac_try="$ac_compile"
11893case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896esac
11897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_compile") 2>conftest.er1
11899 ac_status=$?
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } &&
11905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906 { (case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_try") 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919esac
11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; }; then
11925 ac_cv_type_error_t=yes
11926else
11927 echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 ac_cv_type_error_t=no
11931fi
11932
11933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934fi
11935{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11936echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11937if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938
11939cat >>confdefs.h <<_ACEOF
11940#define HAVE_ERROR_T 1
11941_ACEOF
11942
11943
11944else
11945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011946cat >>confdefs.h <<\_ACEOF
11947#define error_t int
11948_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011949
11950fi
11951
11952
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011953
11954
11955
11956
11957
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011958for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011959do
11960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11963if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 cat >conftest.$ac_ext <<_ACEOF
11967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
11972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974#define $ac_func innocuous_$ac_func
11975
11976/* System header to define __stub macros and hopefully few prototypes,
11977 which can conflict with char $ac_func (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
11980
11981#ifdef __STDC__
11982# include <limits.h>
11983#else
11984# include <assert.h>
11985#endif
11986
11987#undef $ac_func
11988
11989/* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992#ifdef __cplusplus
11993extern "C"
11994#endif
11995char $ac_func ();
11996/* The GNU C library defines this for functions which it implements
11997 to always fail with ENOSYS. Some functions are actually named
11998 something starting with __ and the normal name is an alias. */
11999#if defined __stub_$ac_func || defined __stub___$ac_func
12000choke me
12001#endif
12002
12003int
12004main ()
12005{
12006return $ac_func ();
12007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext conftest$ac_exeext
12012if { (ac_try="$ac_link"
12013case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_link") 2>conftest.er1
12019 ac_status=$?
12020 grep -v '^ *+' conftest.er1 >conftest.err
12021 rm -f conftest.er1
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); } &&
12025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12026 { (case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12029esac
12030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_try") 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; } &&
12035 { ac_try='test -s conftest$ac_exeext'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039esac
12040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 eval "$as_ac_var=yes"
12046else
12047 echo "$as_me: failed program was:" >&5
12048sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 eval "$as_ac_var=no"
12051fi
12052
12053rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055fi
12056ac_res=`eval echo '${'$as_ac_var'}'`
12057 { echo "$as_me:$LINENO: result: $ac_res" >&5
12058echo "${ECHO_T}$ac_res" >&6; }
12059if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062_ACEOF
12063
12064fi
12065done
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012086
12087
12088
12089
12090
12091
12092
12093
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012094for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12095 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012096do
12097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103fi
12104ac_res=`eval echo '${'$as_ac_Header'}'`
12105 { echo "$as_me:$LINENO: result: $ac_res" >&5
12106echo "${ECHO_T}$ac_res" >&6; }
12107else
12108 # Is the header compilable?
12109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12111cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117$ac_includes_default
12118#include <$ac_header>
12119_ACEOF
12120rm -f conftest.$ac_objext
12121if { (ac_try="$ac_compile"
12122case "(($ac_try" in
12123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12124 *) ac_try_echo=$ac_try;;
12125esac
12126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_compile") 2>conftest.er1
12128 ac_status=$?
12129 grep -v '^ *+' conftest.er1 >conftest.err
12130 rm -f conftest.er1
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12135 { (case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12148esac
12149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_try") 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 ac_header_compiler=yes
12155else
12156 echo "$as_me: failed program was:" >&5
12157sed 's/^/| /' conftest.$ac_ext >&5
12158
12159 ac_header_compiler=no
12160fi
12161
12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12164echo "${ECHO_T}$ac_header_compiler" >&6; }
12165
12166# Is the header present?
12167{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12169cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175#include <$ac_header>
12176_ACEOF
12177if { (ac_try="$ac_cpp conftest.$ac_ext"
12178case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12181esac
12182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } >/dev/null; then
12190 if test -s conftest.err; then
12191 ac_cpp_err=$ac_c_preproc_warn_flag
12192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12193 else
12194 ac_cpp_err=
12195 fi
12196else
12197 ac_cpp_err=yes
12198fi
12199if test -z "$ac_cpp_err"; then
12200 ac_header_preproc=yes
12201else
12202 echo "$as_me: failed program was:" >&5
12203sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 ac_header_preproc=no
12206fi
12207
12208rm -f conftest.err conftest.$ac_ext
12209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12210echo "${ECHO_T}$ac_header_preproc" >&6; }
12211
12212# So? What about this header?
12213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214 yes:no: )
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12219 ac_header_preproc=yes
12220 ;;
12221 no:yes:* )
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12234 ( cat <<\_ASBOX
12235## ----------------------------------- ##
12236## Report this to llvmbugs@cs.uiuc.edu ##
12237## ----------------------------------- ##
12238_ASBOX
12239 ) | sed "s/^/$as_me: WARNING: /" >&2
12240 ;;
12241esac
12242{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247 eval "$as_ac_Header=\$ac_header_preproc"
12248fi
12249ac_res=`eval echo '${'$as_ac_Header'}'`
12250 { echo "$as_me:$LINENO: result: $ac_res" >&5
12251echo "${ECHO_T}$ac_res" >&6; }
12252
12253fi
12254if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257_ACEOF
12258
12259fi
12260
12261done
12262
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012263
12264
12265
12266
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012267for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012268do
12269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12275fi
12276ac_res=`eval echo '${'$as_ac_Header'}'`
12277 { echo "$as_me:$LINENO: result: $ac_res" >&5
12278echo "${ECHO_T}$ac_res" >&6; }
12279else
12280 # Is the header compilable?
12281{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12283cat >conftest.$ac_ext <<_ACEOF
12284/* confdefs.h. */
12285_ACEOF
12286cat confdefs.h >>conftest.$ac_ext
12287cat >>conftest.$ac_ext <<_ACEOF
12288/* end confdefs.h. */
12289$ac_includes_default
12290#include <$ac_header>
12291_ACEOF
12292rm -f conftest.$ac_objext
12293if { (ac_try="$ac_compile"
12294case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_compile") 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12310esac
12311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12313 ac_status=$?
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; } &&
12316 { ac_try='test -s conftest.$ac_objext'
12317 { (case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320esac
12321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_try") 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_header_compiler=yes
12327else
12328 echo "$as_me: failed program was:" >&5
12329sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 ac_header_compiler=no
12332fi
12333
12334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12336echo "${ECHO_T}$ac_header_compiler" >&6; }
12337
12338# Is the header present?
12339{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12340echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12341cat >conftest.$ac_ext <<_ACEOF
12342/* confdefs.h. */
12343_ACEOF
12344cat confdefs.h >>conftest.$ac_ext
12345cat >>conftest.$ac_ext <<_ACEOF
12346/* end confdefs.h. */
12347#include <$ac_header>
12348_ACEOF
12349if { (ac_try="$ac_cpp conftest.$ac_ext"
12350case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353esac
12354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } >/dev/null; then
12362 if test -s conftest.err; then
12363 ac_cpp_err=$ac_c_preproc_warn_flag
12364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12365 else
12366 ac_cpp_err=
12367 fi
12368else
12369 ac_cpp_err=yes
12370fi
12371if test -z "$ac_cpp_err"; then
12372 ac_header_preproc=yes
12373else
12374 echo "$as_me: failed program was:" >&5
12375sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ac_header_preproc=no
12378fi
12379
12380rm -f conftest.err conftest.$ac_ext
12381{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12382echo "${ECHO_T}$ac_header_preproc" >&6; }
12383
12384# So? What about this header?
12385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12386 yes:no: )
12387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12391 ac_header_preproc=yes
12392 ;;
12393 no:yes:* )
12394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12406 ( cat <<\_ASBOX
12407## ----------------------------------- ##
12408## Report this to llvmbugs@cs.uiuc.edu ##
12409## ----------------------------------- ##
12410_ASBOX
12411 ) | sed "s/^/$as_me: WARNING: /" >&2
12412 ;;
12413esac
12414{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12418else
12419 eval "$as_ac_Header=\$ac_header_preproc"
12420fi
12421ac_res=`eval echo '${'$as_ac_Header'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423echo "${ECHO_T}$ac_res" >&6; }
12424
12425fi
12426if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012427 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429_ACEOF
12430
12431fi
12432
12433done
12434
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012435
12436
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012437for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012438do
12439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445fi
12446ac_res=`eval echo '${'$as_ac_Header'}'`
12447 { echo "$as_me:$LINENO: result: $ac_res" >&5
12448echo "${ECHO_T}$ac_res" >&6; }
12449else
12450 # Is the header compilable?
12451{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12453cat >conftest.$ac_ext <<_ACEOF
12454/* confdefs.h. */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h. */
12459$ac_includes_default
12460#include <$ac_header>
12461_ACEOF
12462rm -f conftest.$ac_objext
12463if { (ac_try="$ac_compile"
12464case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467esac
12468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_compile") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } &&
12476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12477 { (case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480esac
12481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_try") 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; } &&
12486 { ac_try='test -s conftest.$ac_objext'
12487 { (case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12490esac
12491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_try") 2>&5
12493 ac_status=$?
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12496 ac_header_compiler=yes
12497else
12498 echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501 ac_header_compiler=no
12502fi
12503
12504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12506echo "${ECHO_T}$ac_header_compiler" >&6; }
12507
12508# Is the header present?
12509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12511cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517#include <$ac_header>
12518_ACEOF
12519if { (ac_try="$ac_cpp conftest.$ac_ext"
12520case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12523esac
12524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } >/dev/null; then
12532 if test -s conftest.err; then
12533 ac_cpp_err=$ac_c_preproc_warn_flag
12534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12535 else
12536 ac_cpp_err=
12537 fi
12538else
12539 ac_cpp_err=yes
12540fi
12541if test -z "$ac_cpp_err"; then
12542 ac_header_preproc=yes
12543else
12544 echo "$as_me: failed program was:" >&5
12545sed 's/^/| /' conftest.$ac_ext >&5
12546
12547 ac_header_preproc=no
12548fi
12549
12550rm -f conftest.err conftest.$ac_ext
12551{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12552echo "${ECHO_T}$ac_header_preproc" >&6; }
12553
12554# So? What about this header?
12555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12556 yes:no: )
12557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12561 ac_header_preproc=yes
12562 ;;
12563 no:yes:* )
12564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12576 ( cat <<\_ASBOX
12577## ----------------------------------- ##
12578## Report this to llvmbugs@cs.uiuc.edu ##
12579## ----------------------------------- ##
12580_ASBOX
12581 ) | sed "s/^/$as_me: WARNING: /" >&2
12582 ;;
12583esac
12584{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588else
12589 eval "$as_ac_Header=\$ac_header_preproc"
12590fi
12591ac_res=`eval echo '${'$as_ac_Header'}'`
12592 { echo "$as_me:$LINENO: result: $ac_res" >&5
12593echo "${ECHO_T}$ac_res" >&6; }
12594
12595fi
12596if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012599_ACEOF
12600 break
12601fi
12602
12603done
12604
12605
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012606
12607
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012608for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012609do
12610as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12611{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12612echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12613if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12615else
12616 cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12624#define $ac_func innocuous_$ac_func
12625
12626/* System header to define __stub macros and hopefully few prototypes,
12627 which can conflict with char $ac_func (); below.
12628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629 <limits.h> exists even on freestanding compilers. */
12630
12631#ifdef __STDC__
12632# include <limits.h>
12633#else
12634# include <assert.h>
12635#endif
12636
12637#undef $ac_func
12638
12639/* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12642#ifdef __cplusplus
12643extern "C"
12644#endif
12645char $ac_func ();
12646/* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649#if defined __stub_$ac_func || defined __stub___$ac_func
12650choke me
12651#endif
12652
12653int
12654main ()
12655{
12656return $ac_func ();
12657 ;
12658 return 0;
12659}
12660_ACEOF
12661rm -f conftest.$ac_objext conftest$ac_exeext
12662if { (ac_try="$ac_link"
12663case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12666esac
12667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12679esac
12680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12689esac
12690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 eval "$as_ac_var=yes"
12696else
12697 echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 eval "$as_ac_var=no"
12701fi
12702
12703rm -f core conftest.err conftest.$ac_objext \
12704 conftest$ac_exeext conftest.$ac_ext
12705fi
12706ac_res=`eval echo '${'$as_ac_var'}'`
12707 { echo "$as_me:$LINENO: result: $ac_res" >&5
12708echo "${ECHO_T}$ac_res" >&6; }
12709if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012710 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712_ACEOF
12713 break
12714fi
12715done
12716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012717
12718
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012719for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012720do
12721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12722{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12724if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12735#define $ac_func innocuous_$ac_func
12736
12737/* System header to define __stub macros and hopefully few prototypes,
12738 which can conflict with char $ac_func (); below.
12739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12740 <limits.h> exists even on freestanding compilers. */
12741
12742#ifdef __STDC__
12743# include <limits.h>
12744#else
12745# include <assert.h>
12746#endif
12747
12748#undef $ac_func
12749
12750/* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756char $ac_func ();
12757/* The GNU C library defines this for functions which it implements
12758 to always fail with ENOSYS. Some functions are actually named
12759 something starting with __ and the normal name is an alias. */
12760#if defined __stub_$ac_func || defined __stub___$ac_func
12761choke me
12762#endif
12763
12764int
12765main ()
12766{
12767return $ac_func ();
12768 ;
12769 return 0;
12770}
12771_ACEOF
12772rm -f conftest.$ac_objext conftest$ac_exeext
12773if { (ac_try="$ac_link"
12774case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
12797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 eval "$as_ac_var=yes"
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 eval "$as_ac_var=no"
12812fi
12813
12814rm -f core conftest.err conftest.$ac_objext \
12815 conftest$ac_exeext conftest.$ac_ext
12816fi
12817ac_res=`eval echo '${'$as_ac_var'}'`
12818 { echo "$as_me:$LINENO: result: $ac_res" >&5
12819echo "${ECHO_T}$ac_res" >&6; }
12820if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012821 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012822#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012823_ACEOF
12824 break
12825fi
12826done
12827
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012828
12829
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012830for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012831do
12832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837else
12838 cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
12844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12846#define $ac_func innocuous_$ac_func
12847
12848/* System header to define __stub macros and hopefully few prototypes,
12849 which can conflict with char $ac_func (); below.
12850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12851 <limits.h> exists even on freestanding compilers. */
12852
12853#ifdef __STDC__
12854# include <limits.h>
12855#else
12856# include <assert.h>
12857#endif
12858
12859#undef $ac_func
12860
12861/* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864#ifdef __cplusplus
12865extern "C"
12866#endif
12867char $ac_func ();
12868/* The GNU C library defines this for functions which it implements
12869 to always fail with ENOSYS. Some functions are actually named
12870 something starting with __ and the normal name is an alias. */
12871#if defined __stub_$ac_func || defined __stub___$ac_func
12872choke me
12873#endif
12874
12875int
12876main ()
12877{
12878return $ac_func ();
12879 ;
12880 return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext conftest$ac_exeext
12884if { (ac_try="$ac_link"
12885case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12888esac
12889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_link") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } &&
12897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12898 { (case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901esac
12902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest$ac_exeext'
12908 { (case "(($ac_try" in
12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12911esac
12912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_try") 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 eval "$as_ac_var=yes"
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922 eval "$as_ac_var=no"
12923fi
12924
12925rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927fi
12928ac_res=`eval echo '${'$as_ac_var'}'`
12929 { echo "$as_me:$LINENO: result: $ac_res" >&5
12930echo "${ECHO_T}$ac_res" >&6; }
12931if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012932 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012934_ACEOF
12935 break
12936fi
12937done
12938
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012939
12940
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012941for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012942do
12943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */
12955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12957#define $ac_func innocuous_$ac_func
12958
12959/* System header to define __stub macros and hopefully few prototypes,
12960 which can conflict with char $ac_func (); below.
12961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962 <limits.h> exists even on freestanding compilers. */
12963
12964#ifdef __STDC__
12965# include <limits.h>
12966#else
12967# include <assert.h>
12968#endif
12969
12970#undef $ac_func
12971
12972/* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12975#ifdef __cplusplus
12976extern "C"
12977#endif
12978char $ac_func ();
12979/* The GNU C library defines this for functions which it implements
12980 to always fail with ENOSYS. Some functions are actually named
12981 something starting with __ and the normal name is an alias. */
12982#if defined __stub_$ac_func || defined __stub___$ac_func
12983choke me
12984#endif
12985
12986int
12987main ()
12988{
12989return $ac_func ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext conftest$ac_exeext
12995if { (ac_try="$ac_link"
12996case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999esac
13000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
13023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 eval "$as_ac_var=yes"
13029else
13030 echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 eval "$as_ac_var=no"
13034fi
13035
13036rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038fi
13039ac_res=`eval echo '${'$as_ac_var'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041echo "${ECHO_T}$ac_res" >&6; }
13042if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013043 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013045_ACEOF
13046
13047fi
13048done
13049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013050
13051
13052
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013053for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013054do
13055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13056{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060else
13061 cat >conftest.$ac_ext <<_ACEOF
13062/* confdefs.h. */
13063_ACEOF
13064cat confdefs.h >>conftest.$ac_ext
13065cat >>conftest.$ac_ext <<_ACEOF
13066/* end confdefs.h. */
13067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13069#define $ac_func innocuous_$ac_func
13070
13071/* System header to define __stub macros and hopefully few prototypes,
13072 which can conflict with char $ac_func (); below.
13073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13074 <limits.h> exists even on freestanding compilers. */
13075
13076#ifdef __STDC__
13077# include <limits.h>
13078#else
13079# include <assert.h>
13080#endif
13081
13082#undef $ac_func
13083
13084/* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13087#ifdef __cplusplus
13088extern "C"
13089#endif
13090char $ac_func ();
13091/* The GNU C library defines this for functions which it implements
13092 to always fail with ENOSYS. Some functions are actually named
13093 something starting with __ and the normal name is an alias. */
13094#if defined __stub_$ac_func || defined __stub___$ac_func
13095choke me
13096#endif
13097
13098int
13099main ()
13100{
13101return $ac_func ();
13102 ;
13103 return 0;
13104}
13105_ACEOF
13106rm -f conftest.$ac_objext conftest$ac_exeext
13107if { (ac_try="$ac_link"
13108case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111esac
13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } &&
13120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13121 { (case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_try") 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_try") 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13140 eval "$as_ac_var=yes"
13141else
13142 echo "$as_me: failed program was:" >&5
13143sed 's/^/| /' conftest.$ac_ext >&5
13144
13145 eval "$as_ac_var=no"
13146fi
13147
13148rm -f core conftest.err conftest.$ac_objext \
13149 conftest$ac_exeext conftest.$ac_ext
13150fi
13151ac_res=`eval echo '${'$as_ac_var'}'`
13152 { echo "$as_me:$LINENO: result: $ac_res" >&5
13153echo "${ECHO_T}$ac_res" >&6; }
13154if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013155 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013157_ACEOF
13158
13159fi
13160done
13161
13162
Douglas Gregor01746742009-05-11 18:05:52 +000013163
Reid Spencer7931a782004-12-27 06:15:02 +000013164if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013165 LLVMGCC="llvm-gcc${EXEEXT}"
13166 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013167 LLVMGCCCOMMAND="$LLVMGCC"
13168 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013169 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13170
13171 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13172
Reid Spencerc84492c2005-06-02 22:34:49 +000013173 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13174set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13177if test "${ac_cv_path_LLVMGCC+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013179else
13180 case $LLVMGCC in
13181 [\\/]* | ?:[\\/]*)
13182 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13183 ;;
13184 *)
13185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13186for as_dir in $PATH
13187do
13188 IFS=$as_save_IFS
13189 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013190 for ac_exec_ext in '' $ac_executable_extensions; do
13191 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 +000013192 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013194 break 2
13195 fi
13196done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197done
Reid Spencera773bd52006-08-04 18:18:08 +000013198IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013199
Reid Spencer59473af2004-12-25 07:31:29 +000013200 ;;
13201esac
13202fi
13203LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013204if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013205 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13206echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013207else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013208 { echo "$as_me:$LINENO: result: no" >&5
13209echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013210fi
13211
Reid Spencera773bd52006-08-04 18:18:08 +000013212
Reid Spencerc84492c2005-06-02 22:34:49 +000013213 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13214set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13217if test "${ac_cv_path_LLVMGXX+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013219else
13220 case $LLVMGXX in
13221 [\\/]* | ?:[\\/]*)
13222 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13223 ;;
13224 *)
13225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226for as_dir in $PATH
13227do
13228 IFS=$as_save_IFS
13229 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013230 for ac_exec_ext in '' $ac_executable_extensions; do
13231 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 +000013232 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013234 break 2
13235 fi
13236done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013237done
Reid Spencera773bd52006-08-04 18:18:08 +000013238IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013239
Reid Spencer59473af2004-12-25 07:31:29 +000013240 ;;
13241esac
13242fi
13243LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013244if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013245 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13246echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013247else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013248 { echo "$as_me:$LINENO: result: no" >&5
13249echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013250fi
13251
Reid Spencera773bd52006-08-04 18:18:08 +000013252
Reid Spencer59473af2004-12-25 07:31:29 +000013253else
Devang Patel5d28b882007-12-04 22:54:47 +000013254 if test -z "$LLVMGCC"; then
13255 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013256 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013257 fi
13258 if test -z "$LLVMGXX"; then
13259 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013260 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013261 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013262
Reid Spencer59473af2004-12-25 07:31:29 +000013263 LLVMGCC=$LLVMGCC
13264
13265 LLVMGXX=$LLVMGXX
13266
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013267 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13268
13269 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13270
Reid Spencer59473af2004-12-25 07:31:29 +000013271fi
13272
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013273
Daniel Dunbar98515672010-02-23 10:00:49 +000013274# Check whether --with-llvmcc was given.
13275if test "${with_llvmcc+set}" = set; then
13276 withval=$with_llvmcc;
13277else
13278 with_llvmcc=check
13279fi
13280
13281{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13282echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13283if test "$with_llvmcc" != "check"; then
13284 if (test "$with_llvmcc" != "llvm-gcc" &&
13285 test "$with_llvmcc" != "clang" &&
13286 test "$with_llvmcc" != "none"); then
13287 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13288echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13289 { (exit 1); exit 1; }; }
13290 fi
13291 WITH_LLVMCC="$with_llvmcc"
13292elif test -n "$LLVMGCC"; then
13293 WITH_LLVMCC=llvm-gcc
13294elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13295 WITH_LLVMCC=clang
13296else
13297 WITH_LLVMCC=none
13298fi
13299{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13300echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13301LLVMCC_OPTION=$WITH_LLVMCC
13302
13303
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013304{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13305echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013306
Reid Spencer86901802004-12-08 23:07:27 +000013307ICC=no
13308IXX=no
13309case $CC in
13310 icc*|icpc*)
13311 ICC=yes
13312 IXX=yes
13313 ;;
13314 *)
13315 ;;
13316esac
13317
Duraid Madina937c60a2006-02-15 07:57:42 +000013318if test "$GCC" != "yes" && test "$ICC" != "yes"
13319then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013320 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13321echo "$as_me: error: gcc|icc required but not found" >&2;}
13322 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013323fi
13324
13325if test "$GXX" != "yes" && test "$IXX" != "yes"
13326then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013327 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13328echo "$as_me: error: g++|icc required but not found" >&2;}
13329 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013330fi
13331
Reid Spencer86901802004-12-08 23:07:27 +000013332if test "$GCC" = "yes"
13333then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013334 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013335#if !defined(__GNUC__) || __GNUC__ < 3
13336#error Unsupported GCC version
13337#endif
13338
13339_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013340rm -f conftest.$ac_objext
13341if { (ac_try="$ac_compile"
13342case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345esac
13346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
13348 ac_status=$?
13349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358esac
13359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_try") 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013375else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376 echo "$as_me: failed program was:" >&5
13377sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13380echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13381 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013382fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013383
Chris Lattner399c7c72008-02-05 19:43:53 +000013384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013385fi
13386
13387if test -z "$llvm_cv_gnu_make_command"
13388then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013389 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13390echo "$as_me: error: GNU Make required but not found" >&2;}
13391 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013392fi
13393
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013394{ echo "$as_me:$LINENO: result: ok" >&5
13395echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013397{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13398echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013399NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13400
13401NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13402
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013403{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13404echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013405
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013407
13408{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13409echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13410if test "${ac_cv_lib_m_sin+set}" = set; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013412else
13413 ac_check_lib_save_LIBS=$LIBS
13414LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013415cat >conftest.$ac_ext <<_ACEOF
13416/* confdefs.h. */
13417_ACEOF
13418cat confdefs.h >>conftest.$ac_ext
13419cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013420/* end confdefs.h. */
13421
Reid Spencera773bd52006-08-04 18:18:08 +000013422/* Override any GCC internal prototype to avoid an error.
13423 Use char because int might match the return type of a GCC
13424 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013425#ifdef __cplusplus
13426extern "C"
13427#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013428char sin ();
13429int
13430main ()
13431{
Reid Spencera773bd52006-08-04 18:18:08 +000013432return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013433 ;
13434 return 0;
13435}
13436_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013437rm -f conftest.$ac_objext conftest$ac_exeext
13438if { (ac_try="$ac_link"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_link") 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013471 ac_cv_lib_m_sin=yes
13472else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
13476 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013478
Bill Wendlingebcceee2009-04-18 11:20:33 +000013479rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013480 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013481LIBS=$ac_check_lib_save_LIBS
13482fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013483{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13484echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13485if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013486 cat >>confdefs.h <<_ACEOF
13487#define HAVE_LIBM 1
13488_ACEOF
13489
13490 LIBS="-lm $LIBS"
13491
13492fi
13493
Jeff Cohen28783c32007-01-12 18:22:38 +000013494if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013495
13496{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13497echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13498if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013500else
13501 ac_check_lib_save_LIBS=$LIBS
13502LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013503cat >conftest.$ac_ext <<_ACEOF
13504/* confdefs.h. */
13505_ACEOF
13506cat confdefs.h >>conftest.$ac_ext
13507cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013508/* end confdefs.h. */
13509
Reid Spencer48fdf912006-06-01 19:03:21 +000013510
Reid Spencer484fc8e2006-06-01 16:55:59 +000013511int
13512main ()
13513{
Reid Spencera773bd52006-08-04 18:18:08 +000013514return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013515 ;
13516 return 0;
13517}
13518_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013519rm -f conftest.$ac_objext conftest$ac_exeext
13520if { (ac_try="$ac_link"
13521case "(($ac_try" in
13522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523 *) ac_try_echo=$ac_try;;
13524esac
13525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526 (eval "$ac_link") 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13534 { (case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_try") 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest$ac_exeext'
13544 { (case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13547esac
13548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_try") 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013553 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013555 echo "$as_me: failed program was:" >&5
13556sed 's/^/| /' conftest.$ac_ext >&5
13557
13558 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013560
Bill Wendlingebcceee2009-04-18 11:20:33 +000013561rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013562 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013563LIBS=$ac_check_lib_save_LIBS
13564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013565{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13566echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13567if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013568 cat >>confdefs.h <<_ACEOF
13569#define HAVE_LIBIMAGEHLP 1
13570_ACEOF
13571
13572 LIBS="-limagehlp $LIBS"
13573
13574fi
13575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013576
13577{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13578echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13579if test "${ac_cv_lib_psapi_main+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013581else
13582 ac_check_lib_save_LIBS=$LIBS
13583LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013589/* end confdefs.h. */
13590
Reid Spencer48fdf912006-06-01 19:03:21 +000013591
Reid Spencer484fc8e2006-06-01 16:55:59 +000013592int
13593main ()
13594{
Reid Spencera773bd52006-08-04 18:18:08 +000013595return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013596 ;
13597 return 0;
13598}
13599_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013600rm -f conftest.$ac_objext conftest$ac_exeext
13601if { (ac_try="$ac_link"
13602case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605esac
13606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_link") 2>conftest.er1
13608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
13614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13615 { (case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13618esac
13619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_try") 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13628esac
13629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_try") 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013634 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013636 echo "$as_me: failed program was:" >&5
13637sed 's/^/| /' conftest.$ac_ext >&5
13638
13639 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013640fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013641
Bill Wendlingebcceee2009-04-18 11:20:33 +000013642rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013644LIBS=$ac_check_lib_save_LIBS
13645fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013646{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13647echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13648if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013649 cat >>confdefs.h <<_ACEOF
13650#define HAVE_LIBPSAPI 1
13651_ACEOF
13652
13653 LIBS="-lpsapi $LIBS"
13654
13655fi
13656
13657fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013659{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13660echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13661if test "${ac_cv_search_dlopen+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013663else
13664 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013665cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013670/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013671
Reid Spencera773bd52006-08-04 18:18:08 +000013672/* Override any GCC internal prototype to avoid an error.
13673 Use char because int might match the return type of a GCC
13674 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013675#ifdef __cplusplus
13676extern "C"
13677#endif
John Criswell7a73b802003-06-30 21:59:07 +000013678char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013679int
13680main ()
13681{
Reid Spencera773bd52006-08-04 18:18:08 +000013682return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013683 ;
13684 return 0;
13685}
13686_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013687for ac_lib in '' dl; do
13688 if test -z "$ac_lib"; then
13689 ac_res="none required"
13690 else
13691 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013692 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013693 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013694 rm -f conftest.$ac_objext conftest$ac_exeext
13695if { (ac_try="$ac_link"
13696case "(($ac_try" in
13697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13698 *) ac_try_echo=$ac_try;;
13699esac
13700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13701 (eval "$ac_link") 2>conftest.er1
13702 ac_status=$?
13703 grep -v '^ *+' conftest.er1 >conftest.err
13704 rm -f conftest.er1
13705 cat conftest.err >&5
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); } &&
13708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13709 { (case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13712esac
13713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_try") 2>&5
13715 ac_status=$?
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; } &&
13718 { ac_try='test -s conftest$ac_exeext'
13719 { (case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13722esac
13723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_try") 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013728 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013729else
13730 echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
13733
John Criswell7a73b802003-06-30 21:59:07 +000013734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735
Bill Wendlingebcceee2009-04-18 11:20:33 +000013736rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013737 conftest$ac_exeext
13738 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013739 break
John Criswell7a73b802003-06-30 21:59:07 +000013740fi
Reid Spencera773bd52006-08-04 18:18:08 +000013741done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013742if test "${ac_cv_search_dlopen+set}" = set; then
13743 :
Reid Spencera773bd52006-08-04 18:18:08 +000013744else
13745 ac_cv_search_dlopen=no
13746fi
13747rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013748LIBS=$ac_func_search_save_LIBS
13749fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013750{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13751echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013752ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013755
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013756cat >>confdefs.h <<\_ACEOF
13757#define HAVE_DLOPEN 1
13758_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013759
13760else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013761 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13762echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013763fi
13764
13765
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013766if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013767 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13768echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13769if test "${ac_cv_search_ffi_call+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013771else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013772 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013773cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013778/* end confdefs.h. */
13779
13780/* Override any GCC internal prototype to avoid an error.
13781 Use char because int might match the return type of a GCC
13782 builtin and then its argument prototype would still apply. */
13783#ifdef __cplusplus
13784extern "C"
13785#endif
13786char ffi_call ();
13787int
13788main ()
13789{
13790return ffi_call ();
13791 ;
13792 return 0;
13793}
13794_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013795for ac_lib in '' ffi; do
13796 if test -z "$ac_lib"; then
13797 ac_res="none required"
13798 else
13799 ac_res=-l$ac_lib
13800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13801 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013802 rm -f conftest.$ac_objext conftest$ac_exeext
13803if { (ac_try="$ac_link"
13804case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807esac
13808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>conftest.er1
13810 ac_status=$?
13811 grep -v '^ *+' conftest.er1 >conftest.err
13812 rm -f conftest.er1
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820esac
13821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest$ac_exeext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13830esac
13831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13833 ac_status=$?
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013836 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013837else
13838 echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
13840
13841
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013843
Bill Wendlingebcceee2009-04-18 11:20:33 +000013844rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013845 conftest$ac_exeext
13846 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013847 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013848fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013849done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013850if test "${ac_cv_search_ffi_call+set}" = set; then
13851 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013852else
13853 ac_cv_search_ffi_call=no
13854fi
13855rm conftest.$ac_ext
13856LIBS=$ac_func_search_save_LIBS
13857fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13859echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013860ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013861if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13863
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013864cat >>confdefs.h <<\_ACEOF
13865#define HAVE_FFI_CALL 1
13866_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013867
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013868else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013869 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13870echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13871 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013872fi
13873
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013874fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013876{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13877echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13878if test "${ac_cv_search_mallinfo+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013880else
13881 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013882cat >conftest.$ac_ext <<_ACEOF
13883/* confdefs.h. */
13884_ACEOF
13885cat confdefs.h >>conftest.$ac_ext
13886cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013887/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013888
Reid Spencera773bd52006-08-04 18:18:08 +000013889/* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013892#ifdef __cplusplus
13893extern "C"
13894#endif
John Criswell7a73b802003-06-30 21:59:07 +000013895char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013896int
13897main ()
13898{
Reid Spencera773bd52006-08-04 18:18:08 +000013899return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013900 ;
13901 return 0;
13902}
13903_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013904for ac_lib in '' malloc; do
13905 if test -z "$ac_lib"; then
13906 ac_res="none required"
13907 else
13908 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013910 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013911 rm -f conftest.$ac_objext conftest$ac_exeext
13912if { (ac_try="$ac_link"
13913case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13916esac
13917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_link") 2>conftest.er1
13919 ac_status=$?
13920 grep -v '^ *+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } &&
13925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13926 { (case "(($ac_try" in
13927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13929esac
13930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest$ac_exeext'
13936 { (case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13939esac
13940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_try") 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013945 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013946else
13947 echo "$as_me: failed program was:" >&5
13948sed 's/^/| /' conftest.$ac_ext >&5
13949
13950
John Criswell7a73b802003-06-30 21:59:07 +000013951fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013952
Bill Wendlingebcceee2009-04-18 11:20:33 +000013953rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013954 conftest$ac_exeext
13955 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013956 break
John Criswell7a73b802003-06-30 21:59:07 +000013957fi
Reid Spencera773bd52006-08-04 18:18:08 +000013958done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013959if test "${ac_cv_search_mallinfo+set}" = set; then
13960 :
Reid Spencera773bd52006-08-04 18:18:08 +000013961else
13962 ac_cv_search_mallinfo=no
13963fi
13964rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013965LIBS=$ac_func_search_save_LIBS
13966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013967{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13968echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013969ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013970if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013973cat >>confdefs.h <<\_ACEOF
13974#define HAVE_MALLINFO 1
13975_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013976
13977fi
13978
13979
Reid Spencer0a262ba2005-08-24 10:07:20 +000013980if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013981
13982{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13983echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13984if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013986else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013987 ac_check_lib_save_LIBS=$LIBS
13988LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013989cat >conftest.$ac_ext <<_ACEOF
13990/* confdefs.h. */
13991_ACEOF
13992cat confdefs.h >>conftest.$ac_ext
13993cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013994/* end confdefs.h. */
13995
Reid Spencera773bd52006-08-04 18:18:08 +000013996/* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013999#ifdef __cplusplus
14000extern "C"
14001#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000014002char pthread_mutex_init ();
14003int
14004main ()
14005{
Reid Spencera773bd52006-08-04 18:18:08 +000014006return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000014007 ;
14008 return 0;
14009}
14010_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014011rm -f conftest.$ac_objext conftest$ac_exeext
14012if { (ac_try="$ac_link"
14013case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016esac
14017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_link") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
14025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14026 { (case "(($ac_try" in
14027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028 *) ac_try_echo=$ac_try;;
14029esac
14030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031 (eval "$ac_try") 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; } &&
14035 { ac_try='test -s conftest$ac_exeext'
14036 { (case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14039esac
14040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_try") 2>&5
14042 ac_status=$?
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014045 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000014046else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014047 echo "$as_me: failed program was:" >&5
14048sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000014051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052
Bill Wendlingebcceee2009-04-18 11:20:33 +000014053rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014055LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000014056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014057{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14058echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14059if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014060 cat >>confdefs.h <<_ACEOF
14061#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000014062_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000014063
Edward O'Callaghan5da60462009-10-14 11:12:33 +000014064 LIBS="-lpthread $LIBS"
14065
Reid Spencer22177fe2005-07-12 15:24:20 +000014066fi
14067
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014068 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14069echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14070if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000014072else
14073 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014074cat >conftest.$ac_ext <<_ACEOF
14075/* confdefs.h. */
14076_ACEOF
14077cat confdefs.h >>conftest.$ac_ext
14078cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000014079/* end confdefs.h. */
14080
Reid Spencera773bd52006-08-04 18:18:08 +000014081/* Override any GCC internal prototype to avoid an error.
14082 Use char because int might match the return type of a GCC
14083 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000014084#ifdef __cplusplus
14085extern "C"
14086#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000014087char pthread_mutex_lock ();
14088int
14089main ()
14090{
Reid Spencera773bd52006-08-04 18:18:08 +000014091return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000014092 ;
14093 return 0;
14094}
14095_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014096for ac_lib in '' pthread; do
14097 if test -z "$ac_lib"; then
14098 ac_res="none required"
14099 else
14100 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000014101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014102 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014103 rm -f conftest.$ac_objext conftest$ac_exeext
14104if { (ac_try="$ac_link"
14105case "(($ac_try" in
14106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107 *) ac_try_echo=$ac_try;;
14108esac
14109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110 (eval "$ac_link") 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14118 { (case "(($ac_try" in
14119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14120 *) ac_try_echo=$ac_try;;
14121esac
14122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123 (eval "$ac_try") 2>&5
14124 ac_status=$?
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; } &&
14127 { ac_try='test -s conftest$ac_exeext'
14128 { (case "(($ac_try" in
14129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130 *) ac_try_echo=$ac_try;;
14131esac
14132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14133 (eval "$ac_try") 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014137 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014138else
14139 echo "$as_me: failed program was:" >&5
14140sed 's/^/| /' conftest.$ac_ext >&5
14141
14142
Brian Gaeke5f268f72003-12-05 19:29:01 +000014143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014144
Bill Wendlingebcceee2009-04-18 11:20:33 +000014145rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014146 conftest$ac_exeext
14147 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014148 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014149fi
Reid Spencera773bd52006-08-04 18:18:08 +000014150done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14152 :
Reid Spencera773bd52006-08-04 18:18:08 +000014153else
14154 ac_cv_search_pthread_mutex_lock=no
14155fi
14156rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014157LIBS=$ac_func_search_save_LIBS
14158fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014159{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14160echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014161ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014162if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014165cat >>confdefs.h <<\_ACEOF
14166#define HAVE_PTHREAD_MUTEX_LOCK 1
14167_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014168
14169fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014170
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014171 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14172echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14173if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014175else
14176 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014177cat >conftest.$ac_ext <<_ACEOF
14178/* confdefs.h. */
14179_ACEOF
14180cat confdefs.h >>conftest.$ac_ext
14181cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014182/* end confdefs.h. */
14183
14184/* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14187#ifdef __cplusplus
14188extern "C"
14189#endif
14190char pthread_rwlock_init ();
14191int
14192main ()
14193{
14194return pthread_rwlock_init ();
14195 ;
14196 return 0;
14197}
14198_ACEOF
14199for ac_lib in '' pthread; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14202 else
14203 ac_res=-l$ac_lib
14204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14205 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014206 rm -f conftest.$ac_objext conftest$ac_exeext
14207if { (ac_try="$ac_link"
14208case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14211esac
14212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14214 ac_status=$?
14215 grep -v '^ *+' conftest.er1 >conftest.err
14216 rm -f conftest.er1
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14224esac
14225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14227 ac_status=$?
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14234esac
14235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014240 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014241else
14242 echo "$as_me: failed program was:" >&5
14243sed 's/^/| /' conftest.$ac_ext >&5
14244
14245
Owen Andersonde8aed22009-06-16 18:20:20 +000014246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014247
Owen Andersonde8aed22009-06-16 18:20:20 +000014248rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014249 conftest$ac_exeext
14250 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014251 break
14252fi
14253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014254if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14255 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014256else
14257 ac_cv_search_pthread_rwlock_init=no
14258fi
14259rm conftest.$ac_ext
14260LIBS=$ac_func_search_save_LIBS
14261fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014262{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14263echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014264ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014265if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14267
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014268cat >>confdefs.h <<\_ACEOF
14269#define HAVE_PTHREAD_RWLOCK_INIT 1
14270_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014271
14272fi
14273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014274 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14275echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14276if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014278else
14279 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014280cat >conftest.$ac_ext <<_ACEOF
14281/* confdefs.h. */
14282_ACEOF
14283cat confdefs.h >>conftest.$ac_ext
14284cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014285/* end confdefs.h. */
14286
14287/* Override any GCC internal prototype to avoid an error.
14288 Use char because int might match the return type of a GCC
14289 builtin and then its argument prototype would still apply. */
14290#ifdef __cplusplus
14291extern "C"
14292#endif
14293char pthread_getspecific ();
14294int
14295main ()
14296{
14297return pthread_getspecific ();
14298 ;
14299 return 0;
14300}
14301_ACEOF
14302for ac_lib in '' pthread; do
14303 if test -z "$ac_lib"; then
14304 ac_res="none required"
14305 else
14306 ac_res=-l$ac_lib
14307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14308 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014309 rm -f conftest.$ac_objext conftest$ac_exeext
14310if { (ac_try="$ac_link"
14311case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_link") 2>conftest.er1
14317 ac_status=$?
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14326 *) ac_try_echo=$ac_try;;
14327esac
14328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try='test -s conftest$ac_exeext'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14337esac
14338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14340 ac_status=$?
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014343 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014344else
14345 echo "$as_me: failed program was:" >&5
14346sed 's/^/| /' conftest.$ac_ext >&5
14347
14348
Owen Anderson27fcfe12009-06-25 23:10:26 +000014349fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014350
Owen Anderson27fcfe12009-06-25 23:10:26 +000014351rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014352 conftest$ac_exeext
14353 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014354 break
14355fi
14356done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014357if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14358 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014359else
14360 ac_cv_search_pthread_getspecific=no
14361fi
14362rm conftest.$ac_ext
14363LIBS=$ac_func_search_save_LIBS
14364fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014365{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14366echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014367ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014368if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14370
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014371cat >>confdefs.h <<\_ACEOF
14372#define HAVE_PTHREAD_GETSPECIFIC 1
14373_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014374
14375fi
14376
Reid Spencer0a262ba2005-08-24 10:07:20 +000014377fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014378
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014379
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014380# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014381if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014382 withval=$with_udis86;
14383 USE_UDIS86=1
14384
14385 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014386 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014387 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14388 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014389
14390{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14391echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14392if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014394else
14395 ac_check_lib_save_LIBS=$LIBS
14396LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014402/* end confdefs.h. */
14403
14404/* Override any GCC internal prototype to avoid an error.
14405 Use char because int might match the return type of a GCC
14406 builtin and then its argument prototype would still apply. */
14407#ifdef __cplusplus
14408extern "C"
14409#endif
14410char ud_init ();
14411int
14412main ()
14413{
14414return ud_init ();
14415 ;
14416 return 0;
14417}
14418_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014419rm -f conftest.$ac_objext conftest$ac_exeext
14420if { (ac_try="$ac_link"
14421case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14424esac
14425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426 (eval "$ac_link") 2>conftest.er1
14427 ac_status=$?
14428 grep -v '^ *+' conftest.er1 >conftest.err
14429 rm -f conftest.er1
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } &&
14433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14434 { (case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437esac
14438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_try") 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447esac
14448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_try") 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014453 ac_cv_lib_udis86_ud_init=yes
14454else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014455 echo "$as_me: failed program was:" >&5
14456sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014459fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014460
Bill Wendlingebcceee2009-04-18 11:20:33 +000014461rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014462 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014463LIBS=$ac_check_lib_save_LIBS
14464fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014465{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14466echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14467if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014468 cat >>confdefs.h <<_ACEOF
14469#define HAVE_LIBUDIS86 1
14470_ACEOF
14471
14472 LIBS="-ludis86 $LIBS"
14473
14474else
14475
14476 echo "Error! You need to have libudis86 around."
14477 exit -1
14478
14479fi
14480
14481
14482else
14483 USE_UDIS86=0
14484
14485fi
14486
14487
14488cat >>confdefs.h <<_ACEOF
14489#define USE_UDIS86 $USE_UDIS86
14490_ACEOF
14491
14492
14493
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014494# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014495if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014496 withval=$with_oprofile;
14497 USE_OPROFILE=1
14498
14499 case "$withval" in
14500 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014501 no) llvm_cv_oppath=
14502 USE_OPROFILE=0
14503 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014504 *) llvm_cv_oppath="${withval}/lib/oprofile"
14505 CPPFLAGS="-I${withval}/include";;
14506 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014507 if test -n "$llvm_cv_oppath" ; then
14508 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014509 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14510echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14511if test "${ac_cv_search_bfd_init+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014513else
14514 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014515cat >conftest.$ac_ext <<_ACEOF
14516/* confdefs.h. */
14517_ACEOF
14518cat confdefs.h >>conftest.$ac_ext
14519cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014520/* end confdefs.h. */
14521
14522/* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525#ifdef __cplusplus
14526extern "C"
14527#endif
14528char bfd_init ();
14529int
14530main ()
14531{
14532return bfd_init ();
14533 ;
14534 return 0;
14535}
14536_ACEOF
14537for ac_lib in '' bfd; do
14538 if test -z "$ac_lib"; then
14539 ac_res="none required"
14540 else
14541 ac_res=-l$ac_lib
14542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14543 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014544 rm -f conftest.$ac_objext conftest$ac_exeext
14545if { (ac_try="$ac_link"
14546case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14549esac
14550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_link") 2>conftest.er1
14552 ac_status=$?
14553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); } &&
14558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562esac
14563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; } &&
14568 { ac_try='test -s conftest$ac_exeext'
14569 { (case "(($ac_try" in
14570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14571 *) ac_try_echo=$ac_try;;
14572esac
14573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_try") 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014578 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579else
14580 echo "$as_me: failed program was:" >&5
14581sed 's/^/| /' conftest.$ac_ext >&5
14582
14583
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014584fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014585
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014586rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014587 conftest$ac_exeext
14588 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014589 break
14590fi
14591done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014592if test "${ac_cv_search_bfd_init+set}" = set; then
14593 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014594else
14595 ac_cv_search_bfd_init=no
14596fi
14597rm conftest.$ac_ext
14598LIBS=$ac_func_search_save_LIBS
14599fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014600{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14601echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014602ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014603if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14605
14606fi
14607
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014608 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14609echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14610if test "${ac_cv_search_op_open_agent+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014612else
14613 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014614cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014619/* end confdefs.h. */
14620
14621/* Override any GCC internal prototype to avoid an error.
14622 Use char because int might match the return type of a GCC
14623 builtin and then its argument prototype would still apply. */
14624#ifdef __cplusplus
14625extern "C"
14626#endif
14627char op_open_agent ();
14628int
14629main ()
14630{
14631return op_open_agent ();
14632 ;
14633 return 0;
14634}
14635_ACEOF
14636for ac_lib in '' opagent; do
14637 if test -z "$ac_lib"; then
14638 ac_res="none required"
14639 else
14640 ac_res=-l$ac_lib
14641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14642 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014643 rm -f conftest.$ac_objext conftest$ac_exeext
14644if { (ac_try="$ac_link"
14645case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14648esac
14649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_link") 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14658 { (case "(($ac_try" in
14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660 *) ac_try_echo=$ac_try;;
14661esac
14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663 (eval "$ac_try") 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest$ac_exeext'
14668 { (case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671esac
14672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_try") 2>&5
14674 ac_status=$?
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014677 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014678else
14679 echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014683fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014684
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014685rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014686 conftest$ac_exeext
14687 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014688 break
14689fi
14690done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014691if test "${ac_cv_search_op_open_agent+set}" = set; then
14692 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014693else
14694 ac_cv_search_op_open_agent=no
14695fi
14696rm conftest.$ac_ext
14697LIBS=$ac_func_search_save_LIBS
14698fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014699{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14700echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014701ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014702if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14704
14705else
14706
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014707 echo "Error! You need to have libopagent around."
14708 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014709
14710fi
14711
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014712 if test "${ac_cv_header_opagent_h+set}" = set; then
14713 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14714echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14715if test "${ac_cv_header_opagent_h+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717fi
14718{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14719echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14720else
14721 # Is the header compilable?
14722{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14723echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14724cat >conftest.$ac_ext <<_ACEOF
14725/* confdefs.h. */
14726_ACEOF
14727cat confdefs.h >>conftest.$ac_ext
14728cat >>conftest.$ac_ext <<_ACEOF
14729/* end confdefs.h. */
14730$ac_includes_default
14731#include <opagent.h>
14732_ACEOF
14733rm -f conftest.$ac_objext
14734if { (ac_try="$ac_compile"
14735case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14738esac
14739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_compile") 2>conftest.er1
14741 ac_status=$?
14742 grep -v '^ *+' conftest.er1 >conftest.err
14743 rm -f conftest.er1
14744 cat conftest.err >&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); } &&
14747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14748 { (case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
14752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14753 (eval "$ac_try") 2>&5
14754 ac_status=$?
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest.$ac_objext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761esac
14762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_try") 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_header_compiler=yes
14768else
14769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014772 ac_header_compiler=no
14773fi
14774
14775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14777echo "${ECHO_T}$ac_header_compiler" >&6; }
14778
14779# Is the header present?
14780{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14781echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14782cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h. */
14788#include <opagent.h>
14789_ACEOF
14790if { (ac_try="$ac_cpp conftest.$ac_ext"
14791case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14794esac
14795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14797 ac_status=$?
14798 grep -v '^ *+' conftest.er1 >conftest.err
14799 rm -f conftest.er1
14800 cat conftest.err >&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } >/dev/null; then
14803 if test -s conftest.err; then
14804 ac_cpp_err=$ac_c_preproc_warn_flag
14805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14806 else
14807 ac_cpp_err=
14808 fi
14809else
14810 ac_cpp_err=yes
14811fi
14812if test -z "$ac_cpp_err"; then
14813 ac_header_preproc=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818 ac_header_preproc=no
14819fi
14820
14821rm -f conftest.err conftest.$ac_ext
14822{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823echo "${ECHO_T}$ac_header_preproc" >&6; }
14824
14825# So? What about this header?
14826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14827 yes:no: )
14828 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14831echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14833 ;;
14834 no:yes:* )
14835 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14836echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14838echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14840echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14842echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14844echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14846echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14847 ( cat <<\_ASBOX
14848## ----------------------------------- ##
14849## Report this to llvmbugs@cs.uiuc.edu ##
14850## ----------------------------------- ##
14851_ASBOX
14852 ) | sed "s/^/$as_me: WARNING: /" >&2
14853 ;;
14854esac
14855{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14856echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14857if test "${ac_cv_header_opagent_h+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14859else
14860 ac_cv_header_opagent_h=$ac_header_preproc
14861fi
14862{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14863echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14864
14865fi
14866if test $ac_cv_header_opagent_h = yes; then
14867 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014868else
14869
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014870 echo "Error! You need to have opagent.h around."
14871 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014872
14873fi
14874
14875
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014876 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014877
14878else
14879
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014880 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014881
14882
14883fi
14884
14885
14886cat >>confdefs.h <<_ACEOF
14887#define USE_OPROFILE $USE_OPROFILE
14888_ACEOF
14889
14890
14891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014892
14893
14894
14895
14896
Reid Spencer59473af2004-12-25 07:31:29 +000014897ac_header_dirent=no
14898for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014899 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14900{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14901echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014904else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014905 cat >conftest.$ac_ext <<_ACEOF
14906/* confdefs.h. */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014910/* end confdefs.h. */
14911#include <sys/types.h>
14912#include <$ac_hdr>
14913
14914int
14915main ()
14916{
14917if ((DIR *) 0)
14918return 0;
14919 ;
14920 return 0;
14921}
14922_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014923rm -f conftest.$ac_objext
14924if { (ac_try="$ac_compile"
14925case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14928esac
14929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_compile") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14938 { (case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14941esac
14942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_try") 2>&5
14944 ac_status=$?
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); }; } &&
14947 { ac_try='test -s conftest.$ac_objext'
14948 { (case "(($ac_try" in
14949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950 *) ac_try_echo=$ac_try;;
14951esac
14952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953 (eval "$ac_try") 2>&5
14954 ac_status=$?
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014957 eval "$as_ac_Header=yes"
14958else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014959 echo "$as_me: failed program was:" >&5
14960sed 's/^/| /' conftest.$ac_ext >&5
14961
14962 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014964
Reid Spencera773bd52006-08-04 18:18:08 +000014965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014967ac_res=`eval echo '${'$as_ac_Header'}'`
14968 { echo "$as_me:$LINENO: result: $ac_res" >&5
14969echo "${ECHO_T}$ac_res" >&6; }
14970if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014971 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014972#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014973_ACEOF
14974
14975ac_header_dirent=$ac_hdr; break
14976fi
14977
14978done
14979# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14980if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014981 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14982echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14983if test "${ac_cv_search_opendir+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014985else
14986 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014987cat >conftest.$ac_ext <<_ACEOF
14988/* confdefs.h. */
14989_ACEOF
14990cat confdefs.h >>conftest.$ac_ext
14991cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014992/* end confdefs.h. */
14993
Reid Spencera773bd52006-08-04 18:18:08 +000014994/* Override any GCC internal prototype to avoid an error.
14995 Use char because int might match the return type of a GCC
14996 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014997#ifdef __cplusplus
14998extern "C"
14999#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015000char opendir ();
15001int
15002main ()
15003{
Reid Spencera773bd52006-08-04 18:18:08 +000015004return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015005 ;
15006 return 0;
15007}
15008_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015009for ac_lib in '' dir; do
15010 if test -z "$ac_lib"; then
15011 ac_res="none required"
15012 else
15013 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015014 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015015 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015016 rm -f conftest.$ac_objext conftest$ac_exeext
15017if { (ac_try="$ac_link"
15018case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_link") 2>conftest.er1
15024 ac_status=$?
15025 grep -v '^ *+' conftest.er1 >conftest.err
15026 rm -f conftest.er1
15027 cat conftest.err >&5
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); } &&
15030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15031 { (case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034esac
15035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_try") 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try='test -s conftest$ac_exeext'
15041 { (case "(($ac_try" in
15042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15043 *) ac_try_echo=$ac_try;;
15044esac
15045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15046 (eval "$ac_try") 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015050 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015051else
15052 echo "$as_me: failed program was:" >&5
15053sed 's/^/| /' conftest.$ac_ext >&5
15054
15055
Reid Spencer59473af2004-12-25 07:31:29 +000015056fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015057
Bill Wendlingebcceee2009-04-18 11:20:33 +000015058rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015059 conftest$ac_exeext
15060 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015061 break
Reid Spencer59473af2004-12-25 07:31:29 +000015062fi
Reid Spencera773bd52006-08-04 18:18:08 +000015063done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015064if test "${ac_cv_search_opendir+set}" = set; then
15065 :
Reid Spencera773bd52006-08-04 18:18:08 +000015066else
15067 ac_cv_search_opendir=no
15068fi
15069rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015070LIBS=$ac_func_search_save_LIBS
15071fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015072{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15073echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015074ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015075if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015077
15078fi
15079
15080else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015081 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15082echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15083if test "${ac_cv_search_opendir+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015085else
15086 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015087cat >conftest.$ac_ext <<_ACEOF
15088/* confdefs.h. */
15089_ACEOF
15090cat confdefs.h >>conftest.$ac_ext
15091cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015092/* end confdefs.h. */
15093
Reid Spencera773bd52006-08-04 18:18:08 +000015094/* Override any GCC internal prototype to avoid an error.
15095 Use char because int might match the return type of a GCC
15096 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000015097#ifdef __cplusplus
15098extern "C"
15099#endif
Reid Spencer59473af2004-12-25 07:31:29 +000015100char opendir ();
15101int
15102main ()
15103{
Reid Spencera773bd52006-08-04 18:18:08 +000015104return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000015105 ;
15106 return 0;
15107}
15108_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015109for ac_lib in '' x; do
15110 if test -z "$ac_lib"; then
15111 ac_res="none required"
15112 else
15113 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015115 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015116 rm -f conftest.$ac_objext conftest$ac_exeext
15117if { (ac_try="$ac_link"
15118case "(($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_link") 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } &&
15130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15131 { (case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_try") 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; } &&
15140 { ac_try='test -s conftest$ac_exeext'
15141 { (case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15144esac
15145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_try") 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015150 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015151else
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155
Reid Spencer59473af2004-12-25 07:31:29 +000015156fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015157
Bill Wendlingebcceee2009-04-18 11:20:33 +000015158rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015159 conftest$ac_exeext
15160 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015161 break
Reid Spencer59473af2004-12-25 07:31:29 +000015162fi
Reid Spencera773bd52006-08-04 18:18:08 +000015163done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015164if test "${ac_cv_search_opendir+set}" = set; then
15165 :
Reid Spencera773bd52006-08-04 18:18:08 +000015166else
15167 ac_cv_search_opendir=no
15168fi
15169rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015170LIBS=$ac_func_search_save_LIBS
15171fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015172{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15173echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015174ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015175if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015177
15178fi
15179
15180fi
15181
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015182{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15183echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15184if test "${ac_cv_header_mmap_anon+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015186else
15187 ac_ext=c
15188ac_cpp='$CPP $CPPFLAGS'
15189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191ac_compiler_gnu=$ac_cv_c_compiler_gnu
15192
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015198/* end confdefs.h. */
15199#include <sys/mman.h>
15200#include <unistd.h>
15201#include <fcntl.h>
15202int
15203main ()
15204{
15205mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15206 ;
15207 return 0;
15208}
15209_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015210rm -f conftest.$ac_objext
15211if { (ac_try="$ac_compile"
15212case "(($ac_try" in
15213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214 *) ac_try_echo=$ac_try;;
15215esac
15216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_compile") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15228esac
15229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; } &&
15234 { ac_try='test -s conftest.$ac_objext'
15235 { (case "(($ac_try" in
15236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237 *) ac_try_echo=$ac_try;;
15238esac
15239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240 (eval "$ac_try") 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015244 ac_cv_header_mmap_anon=yes
15245else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015246 echo "$as_me: failed program was:" >&5
15247sed 's/^/| /' conftest.$ac_ext >&5
15248
15249 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015250fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015251
Reid Spencera773bd52006-08-04 18:18:08 +000015252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015253 ac_ext=c
15254ac_cpp='$CPP $CPPFLAGS'
15255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15257ac_compiler_gnu=$ac_cv_c_compiler_gnu
15258
15259
15260fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015261{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15262echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015263if test "$ac_cv_header_mmap_anon" = yes; then
15264
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015265cat >>confdefs.h <<\_ACEOF
15266#define HAVE_MMAP_ANONYMOUS 1
15267_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015268
15269fi
15270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015271{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15272echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15273if test "${ac_cv_header_stat_broken+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276 cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h. */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015281/* end confdefs.h. */
15282#include <sys/types.h>
15283#include <sys/stat.h>
15284
Reid Spencera773bd52006-08-04 18:18:08 +000015285#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015286# if S_ISBLK (S_IFDIR)
15287You lose.
15288# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015289#endif
15290
Reid Spencera773bd52006-08-04 18:18:08 +000015291#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015292# if S_ISBLK (S_IFCHR)
15293You lose.
15294# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015295#endif
15296
Reid Spencera773bd52006-08-04 18:18:08 +000015297#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015298# if S_ISLNK (S_IFREG)
15299You lose.
15300# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015301#endif
15302
Reid Spencera773bd52006-08-04 18:18:08 +000015303#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015304# if S_ISSOCK (S_IFREG)
15305You lose.
15306# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015307#endif
15308
15309_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15311 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015312 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015313else
15314 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015315fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015316rm -f conftest*
15317
Reid Spencer59473af2004-12-25 07:31:29 +000015318fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015319{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15320echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015321if test $ac_cv_header_stat_broken = yes; then
15322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015323cat >>confdefs.h <<\_ACEOF
15324#define STAT_MACROS_BROKEN 1
15325_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015326
15327fi
15328
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015329{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15330echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15331if test "${ac_cv_header_stdc+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015333else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015334 cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015340#include <stdlib.h>
15341#include <stdarg.h>
15342#include <string.h>
15343#include <float.h>
15344
John Criswell0c38eaf2003-09-10 15:17:25 +000015345int
15346main ()
15347{
15348
15349 ;
15350 return 0;
15351}
John Criswell7a73b802003-06-30 21:59:07 +000015352_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015353rm -f conftest.$ac_objext
15354if { (ac_try="$ac_compile"
15355case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358esac
15359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_compile") 2>conftest.er1
15361 ac_status=$?
15362 grep -v '^ *+' conftest.er1 >conftest.err
15363 rm -f conftest.er1
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } &&
15367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15368 { (case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371esac
15372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_try") 2>&5
15374 ac_status=$?
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; } &&
15377 { ac_try='test -s conftest.$ac_objext'
15378 { (case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15381esac
15382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_try") 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015387 ac_cv_header_stdc=yes
15388else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015389 echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015393fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015394
Reid Spencera773bd52006-08-04 18:18:08 +000015395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015396
15397if test $ac_cv_header_stdc = yes; then
15398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015399 cat >conftest.$ac_ext <<_ACEOF
15400/* confdefs.h. */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015405#include <string.h>
15406
15407_ACEOF
15408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015409 $EGREP "memchr" >/dev/null 2>&1; then
15410 :
John Criswell7a73b802003-06-30 21:59:07 +000015411else
15412 ac_cv_header_stdc=no
15413fi
15414rm -f conftest*
15415
15416fi
15417
15418if test $ac_cv_header_stdc = yes; then
15419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015420 cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015426#include <stdlib.h>
15427
15428_ACEOF
15429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015430 $EGREP "free" >/dev/null 2>&1; then
15431 :
John Criswell7a73b802003-06-30 21:59:07 +000015432else
15433 ac_cv_header_stdc=no
15434fi
15435rm -f conftest*
15436
15437fi
15438
15439if test $ac_cv_header_stdc = yes; then
15440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015441 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015442 :
15443else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015444 cat >conftest.$ac_ext <<_ACEOF
15445/* confdefs.h. */
15446_ACEOF
15447cat confdefs.h >>conftest.$ac_ext
15448cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015450#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015451#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015452#if ((' ' & 0x0FF) == 0x020)
15453# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15454# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15455#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015456# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015457 (('a' <= (c) && (c) <= 'i') \
15458 || ('j' <= (c) && (c) <= 'r') \
15459 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015460# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15461#endif
15462
15463#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15464int
15465main ()
15466{
15467 int i;
15468 for (i = 0; i < 256; i++)
15469 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015470 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015471 return 2;
15472 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015473}
15474_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015475rm -f conftest$ac_exeext
15476if { (ac_try="$ac_link"
15477case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15480esac
15481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482 (eval "$ac_link") 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15486 { (case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15489esac
15490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 :
John Criswell7a73b802003-06-30 21:59:07 +000015496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015497 echo "$as_me: program exited with status $ac_status" >&5
15498echo "$as_me: failed program was:" >&5
15499sed 's/^/| /' conftest.$ac_ext >&5
15500
15501( exit $ac_status )
15502ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015504rm -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 +000015505fi
15506
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015507
John Criswell7a73b802003-06-30 21:59:07 +000015508fi
15509fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015510{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15511echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015512if test $ac_cv_header_stdc = yes; then
15513
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015514cat >>confdefs.h <<\_ACEOF
15515#define STDC_HEADERS 1
15516_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015517
15518fi
15519
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015520{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15521echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15522if test "${ac_cv_header_sys_wait_h+set}" = set; then
15523 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015524else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015525 cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015530/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015531#include <sys/types.h>
15532#include <sys/wait.h>
15533#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015534# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015535#endif
15536#ifndef WIFEXITED
15537# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15538#endif
15539
John Criswell7a73b802003-06-30 21:59:07 +000015540int
15541main ()
15542{
15543 int s;
15544 wait (&s);
15545 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15546 ;
15547 return 0;
15548}
15549_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015550rm -f conftest.$ac_objext
15551if { (ac_try="$ac_compile"
15552case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568esac
15569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15571 ac_status=$?
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15578esac
15579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15581 ac_status=$?
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015584 ac_cv_header_sys_wait_h=yes
15585else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015586 echo "$as_me: failed program was:" >&5
15587sed 's/^/| /' conftest.$ac_ext >&5
15588
15589 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015590fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015591
Reid Spencera773bd52006-08-04 18:18:08 +000015592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015593fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015594{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15595echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015596if test $ac_cv_header_sys_wait_h = yes; then
15597
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015598cat >>confdefs.h <<\_ACEOF
15599#define HAVE_SYS_WAIT_H 1
15600_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015601
15602fi
15603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015604{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15605echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15606if test "${ac_cv_header_time+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015608else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015609 cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h. */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015614/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015615#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015616#include <sys/time.h>
15617#include <time.h>
15618
15619int
15620main ()
15621{
15622if ((struct tm *) 0)
15623return 0;
15624 ;
15625 return 0;
15626}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015627_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015628rm -f conftest.$ac_objext
15629if { (ac_try="$ac_compile"
15630case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15633esac
15634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15635 (eval "$ac_compile") 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15643 { (case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646esac
15647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_try") 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest.$ac_objext'
15653 { (case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656esac
15657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_try") 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015662 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015664 echo "$as_me: failed program was:" >&5
15665sed 's/^/| /' conftest.$ac_ext >&5
15666
15667 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015669
Reid Spencera773bd52006-08-04 18:18:08 +000015670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015671fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015672{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15673echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015674if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015675
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015676cat >>confdefs.h <<\_ACEOF
15677#define TIME_WITH_SYS_TIME 1
15678_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015679
15680fi
15681
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015682
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015683
15684
15685
15686
15687
15688
Reid Spencer59473af2004-12-25 07:31:29 +000015689for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015690do
15691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15692if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697fi
15698ac_res=`eval echo '${'$as_ac_Header'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700echo "${ECHO_T}$ac_res" >&6; }
15701else
15702 # Is the header compilable?
15703{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15704echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15705cat >conftest.$ac_ext <<_ACEOF
15706/* confdefs.h. */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h. */
15711$ac_includes_default
15712#include <$ac_header>
15713_ACEOF
15714rm -f conftest.$ac_objext
15715if { (ac_try="$ac_compile"
15716case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719esac
15720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_compile") 2>conftest.er1
15722 ac_status=$?
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15729 { (case "(($ac_try" in
15730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15731 *) ac_try_echo=$ac_try;;
15732esac
15733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15734 (eval "$ac_try") 2>&5
15735 ac_status=$?
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; } &&
15738 { ac_try='test -s conftest.$ac_objext'
15739 { (case "(($ac_try" in
15740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15741 *) ac_try_echo=$ac_try;;
15742esac
15743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15744 (eval "$ac_try") 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_header_compiler=yes
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_header_compiler=no
15754fi
15755
15756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15758echo "${ECHO_T}$ac_header_compiler" >&6; }
15759
15760# Is the header present?
15761{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15762echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15763cat >conftest.$ac_ext <<_ACEOF
15764/* confdefs.h. */
15765_ACEOF
15766cat confdefs.h >>conftest.$ac_ext
15767cat >>conftest.$ac_ext <<_ACEOF
15768/* end confdefs.h. */
15769#include <$ac_header>
15770_ACEOF
15771if { (ac_try="$ac_cpp conftest.$ac_ext"
15772case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15775esac
15776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15778 ac_status=$?
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } >/dev/null; then
15784 if test -s conftest.err; then
15785 ac_cpp_err=$ac_c_preproc_warn_flag
15786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15787 else
15788 ac_cpp_err=
15789 fi
15790else
15791 ac_cpp_err=yes
15792fi
15793if test -z "$ac_cpp_err"; then
15794 ac_header_preproc=yes
15795else
15796 echo "$as_me: failed program was:" >&5
15797sed 's/^/| /' conftest.$ac_ext >&5
15798
15799 ac_header_preproc=no
15800fi
15801
15802rm -f conftest.err conftest.$ac_ext
15803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15804echo "${ECHO_T}$ac_header_preproc" >&6; }
15805
15806# So? What about this header?
15807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15808 yes:no: )
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15810echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15812echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15813 ac_header_preproc=yes
15814 ;;
15815 no:yes:* )
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15817echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15819echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15821echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15823echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15827echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15828 ( cat <<\_ASBOX
15829## ----------------------------------- ##
15830## Report this to llvmbugs@cs.uiuc.edu ##
15831## ----------------------------------- ##
15832_ASBOX
15833 ) | sed "s/^/$as_me: WARNING: /" >&2
15834 ;;
15835esac
15836{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15838if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15840else
15841 eval "$as_ac_Header=\$ac_header_preproc"
15842fi
15843ac_res=`eval echo '${'$as_ac_Header'}'`
15844 { echo "$as_me:$LINENO: result: $ac_res" >&5
15845echo "${ECHO_T}$ac_res" >&6; }
15846
15847fi
15848if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015849 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015851_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015852
15853fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015854
Reid Spencer59473af2004-12-25 07:31:29 +000015855done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015857
15858
15859
15860
15861
15862
Douglas Gregor071d73d2009-05-18 17:21:34 +000015863for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015864do
15865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871fi
15872ac_res=`eval echo '${'$as_ac_Header'}'`
15873 { echo "$as_me:$LINENO: result: $ac_res" >&5
15874echo "${ECHO_T}$ac_res" >&6; }
15875else
15876 # Is the header compilable?
15877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15879cat >conftest.$ac_ext <<_ACEOF
15880/* confdefs.h. */
15881_ACEOF
15882cat confdefs.h >>conftest.$ac_ext
15883cat >>conftest.$ac_ext <<_ACEOF
15884/* end confdefs.h. */
15885$ac_includes_default
15886#include <$ac_header>
15887_ACEOF
15888rm -f conftest.$ac_objext
15889if { (ac_try="$ac_compile"
15890case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893esac
15894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_compile") 2>conftest.er1
15896 ac_status=$?
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15903 { (case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15906esac
15907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_try") 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest.$ac_objext'
15913 { (case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15916esac
15917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_try") 2>&5
15919 ac_status=$?
15920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921 (exit $ac_status); }; }; then
15922 ac_header_compiler=yes
15923else
15924 echo "$as_me: failed program was:" >&5
15925sed 's/^/| /' conftest.$ac_ext >&5
15926
15927 ac_header_compiler=no
15928fi
15929
15930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15931{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15932echo "${ECHO_T}$ac_header_compiler" >&6; }
15933
15934# Is the header present?
15935{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15936echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15937cat >conftest.$ac_ext <<_ACEOF
15938/* confdefs.h. */
15939_ACEOF
15940cat confdefs.h >>conftest.$ac_ext
15941cat >>conftest.$ac_ext <<_ACEOF
15942/* end confdefs.h. */
15943#include <$ac_header>
15944_ACEOF
15945if { (ac_try="$ac_cpp conftest.$ac_ext"
15946case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949esac
15950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } >/dev/null; then
15958 if test -s conftest.err; then
15959 ac_cpp_err=$ac_c_preproc_warn_flag
15960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15961 else
15962 ac_cpp_err=
15963 fi
15964else
15965 ac_cpp_err=yes
15966fi
15967if test -z "$ac_cpp_err"; then
15968 ac_header_preproc=yes
15969else
15970 echo "$as_me: failed program was:" >&5
15971sed 's/^/| /' conftest.$ac_ext >&5
15972
15973 ac_header_preproc=no
15974fi
15975
15976rm -f conftest.err conftest.$ac_ext
15977{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15978echo "${ECHO_T}$ac_header_preproc" >&6; }
15979
15980# So? What about this header?
15981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15982 yes:no: )
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15987 ac_header_preproc=yes
15988 ;;
15989 no:yes:* )
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16002 ( cat <<\_ASBOX
16003## ----------------------------------- ##
16004## Report this to llvmbugs@cs.uiuc.edu ##
16005## ----------------------------------- ##
16006_ASBOX
16007 ) | sed "s/^/$as_me: WARNING: /" >&2
16008 ;;
16009esac
16010{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16011echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014else
16015 eval "$as_ac_Header=\$ac_header_preproc"
16016fi
16017ac_res=`eval echo '${'$as_ac_Header'}'`
16018 { echo "$as_me:$LINENO: result: $ac_res" >&5
16019echo "${ECHO_T}$ac_res" >&6; }
16020
16021fi
16022if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000016023 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016024#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000016025_ACEOF
16026
16027fi
16028
16029done
16030
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016031
16032
Douglas Gregor071d73d2009-05-18 17:21:34 +000016033for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016034do
16035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16040 echo $ECHO_N "(cached) $ECHO_C" >&6
16041fi
16042ac_res=`eval echo '${'$as_ac_Header'}'`
16043 { echo "$as_me:$LINENO: result: $ac_res" >&5
16044echo "${ECHO_T}$ac_res" >&6; }
16045else
16046 # Is the header compilable?
16047{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16049cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055$ac_includes_default
16056#include <$ac_header>
16057_ACEOF
16058rm -f conftest.$ac_objext
16059if { (ac_try="$ac_compile"
16060case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_compile") 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073 { (case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16076esac
16077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_try") 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16086esac
16087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_try") 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 ac_header_compiler=yes
16093else
16094 echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 ac_header_compiler=no
16098fi
16099
16100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102echo "${ECHO_T}$ac_header_compiler" >&6; }
16103
16104# Is the header present?
16105{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16106echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16107cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h. */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h. */
16113#include <$ac_header>
16114_ACEOF
16115if { (ac_try="$ac_cpp conftest.$ac_ext"
16116case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119esac
16120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } >/dev/null; then
16128 if test -s conftest.err; then
16129 ac_cpp_err=$ac_c_preproc_warn_flag
16130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16131 else
16132 ac_cpp_err=
16133 fi
16134else
16135 ac_cpp_err=yes
16136fi
16137if test -z "$ac_cpp_err"; then
16138 ac_header_preproc=yes
16139else
16140 echo "$as_me: failed program was:" >&5
16141sed 's/^/| /' conftest.$ac_ext >&5
16142
16143 ac_header_preproc=no
16144fi
16145
16146rm -f conftest.err conftest.$ac_ext
16147{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16148echo "${ECHO_T}$ac_header_preproc" >&6; }
16149
16150# So? What about this header?
16151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16152 yes:no: )
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16154echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16156echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16157 ac_header_preproc=yes
16158 ;;
16159 no:yes:* )
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16163echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16165echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16167echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16171echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16172 ( cat <<\_ASBOX
16173## ----------------------------------- ##
16174## Report this to llvmbugs@cs.uiuc.edu ##
16175## ----------------------------------- ##
16176_ASBOX
16177 ) | sed "s/^/$as_me: WARNING: /" >&2
16178 ;;
16179esac
16180{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184else
16185 eval "$as_ac_Header=\$ac_header_preproc"
16186fi
16187ac_res=`eval echo '${'$as_ac_Header'}'`
16188 { echo "$as_me:$LINENO: result: $ac_res" >&5
16189echo "${ECHO_T}$ac_res" >&6; }
16190
16191fi
16192if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016193 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016195_ACEOF
16196
16197fi
16198
16199done
Reid Spencer59473af2004-12-25 07:31:29 +000016200
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016201
16202
16203
16204
Reid Spencerbe3e4192007-08-17 05:45:26 +000016205for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016206do
16207as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16213fi
16214ac_res=`eval echo '${'$as_ac_Header'}'`
16215 { echo "$as_me:$LINENO: result: $ac_res" >&5
16216echo "${ECHO_T}$ac_res" >&6; }
16217else
16218 # Is the header compilable?
16219{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16220echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16221cat >conftest.$ac_ext <<_ACEOF
16222/* confdefs.h. */
16223_ACEOF
16224cat confdefs.h >>conftest.$ac_ext
16225cat >>conftest.$ac_ext <<_ACEOF
16226/* end confdefs.h. */
16227$ac_includes_default
16228#include <$ac_header>
16229_ACEOF
16230rm -f conftest.$ac_objext
16231if { (ac_try="$ac_compile"
16232case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235esac
16236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_compile") 2>conftest.er1
16238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
16244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16245 { (case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16248esac
16249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_try") 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
16255 { (case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258esac
16259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_try") 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; }; then
16264 ac_header_compiler=yes
16265else
16266 echo "$as_me: failed program was:" >&5
16267sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 ac_header_compiler=no
16270fi
16271
16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16274echo "${ECHO_T}$ac_header_compiler" >&6; }
16275
16276# Is the header present?
16277{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16278echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16279cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285#include <$ac_header>
16286_ACEOF
16287if { (ac_try="$ac_cpp conftest.$ac_ext"
16288case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16291esac
16292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16294 ac_status=$?
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } >/dev/null; then
16300 if test -s conftest.err; then
16301 ac_cpp_err=$ac_c_preproc_warn_flag
16302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16303 else
16304 ac_cpp_err=
16305 fi
16306else
16307 ac_cpp_err=yes
16308fi
16309if test -z "$ac_cpp_err"; then
16310 ac_header_preproc=yes
16311else
16312 echo "$as_me: failed program was:" >&5
16313sed 's/^/| /' conftest.$ac_ext >&5
16314
16315 ac_header_preproc=no
16316fi
16317
16318rm -f conftest.err conftest.$ac_ext
16319{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16320echo "${ECHO_T}$ac_header_preproc" >&6; }
16321
16322# So? What about this header?
16323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16324 yes:no: )
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16329 ac_header_preproc=yes
16330 ;;
16331 no:yes:* )
16332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16344 ( cat <<\_ASBOX
16345## ----------------------------------- ##
16346## Report this to llvmbugs@cs.uiuc.edu ##
16347## ----------------------------------- ##
16348_ASBOX
16349 ) | sed "s/^/$as_me: WARNING: /" >&2
16350 ;;
16351esac
16352{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355 echo $ECHO_N "(cached) $ECHO_C" >&6
16356else
16357 eval "$as_ac_Header=\$ac_header_preproc"
16358fi
16359ac_res=`eval echo '${'$as_ac_Header'}'`
16360 { echo "$as_me:$LINENO: result: $ac_res" >&5
16361echo "${ECHO_T}$ac_res" >&6; }
16362
16363fi
16364if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016365 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016367_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016368
16369fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016370
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016371done
16372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016373
16374
16375
16376
Douglas Gregor01746742009-05-11 18:05:52 +000016377for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016378do
16379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16384 echo $ECHO_N "(cached) $ECHO_C" >&6
16385fi
16386ac_res=`eval echo '${'$as_ac_Header'}'`
16387 { echo "$as_me:$LINENO: result: $ac_res" >&5
16388echo "${ECHO_T}$ac_res" >&6; }
16389else
16390 # Is the header compilable?
16391{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16393cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399$ac_includes_default
16400#include <$ac_header>
16401_ACEOF
16402rm -f conftest.$ac_objext
16403if { (ac_try="$ac_compile"
16404case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
16408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16409 (eval "$ac_compile") 2>conftest.er1
16410 ac_status=$?
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
16416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16420esac
16421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
16427 { (case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430esac
16431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16432 (eval "$ac_try") 2>&5
16433 ac_status=$?
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_header_compiler=yes
16437else
16438 echo "$as_me: failed program was:" >&5
16439sed 's/^/| /' conftest.$ac_ext >&5
16440
16441 ac_header_compiler=no
16442fi
16443
16444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16446echo "${ECHO_T}$ac_header_compiler" >&6; }
16447
16448# Is the header present?
16449{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16451cat >conftest.$ac_ext <<_ACEOF
16452/* confdefs.h. */
16453_ACEOF
16454cat confdefs.h >>conftest.$ac_ext
16455cat >>conftest.$ac_ext <<_ACEOF
16456/* end confdefs.h. */
16457#include <$ac_header>
16458_ACEOF
16459if { (ac_try="$ac_cpp conftest.$ac_ext"
16460case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463esac
16464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } >/dev/null; then
16472 if test -s conftest.err; then
16473 ac_cpp_err=$ac_c_preproc_warn_flag
16474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16475 else
16476 ac_cpp_err=
16477 fi
16478else
16479 ac_cpp_err=yes
16480fi
16481if test -z "$ac_cpp_err"; then
16482 ac_header_preproc=yes
16483else
16484 echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_header_preproc=no
16488fi
16489
16490rm -f conftest.err conftest.$ac_ext
16491{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16492echo "${ECHO_T}$ac_header_preproc" >&6; }
16493
16494# So? What about this header?
16495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16496 yes:no: )
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16501 ac_header_preproc=yes
16502 ;;
16503 no:yes:* )
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16516 ( cat <<\_ASBOX
16517## ----------------------------------- ##
16518## Report this to llvmbugs@cs.uiuc.edu ##
16519## ----------------------------------- ##
16520_ASBOX
16521 ) | sed "s/^/$as_me: WARNING: /" >&2
16522 ;;
16523esac
16524{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16527 echo $ECHO_N "(cached) $ECHO_C" >&6
16528else
16529 eval "$as_ac_Header=\$ac_header_preproc"
16530fi
16531ac_res=`eval echo '${'$as_ac_Header'}'`
16532 { echo "$as_me:$LINENO: result: $ac_res" >&5
16533echo "${ECHO_T}$ac_res" >&6; }
16534
16535fi
16536if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016537 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016539_ACEOF
16540
16541fi
16542
16543done
16544
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016545
16546for ac_header in valgrind/valgrind.h
16547do
16548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554fi
16555ac_res=`eval echo '${'$as_ac_Header'}'`
16556 { echo "$as_me:$LINENO: result: $ac_res" >&5
16557echo "${ECHO_T}$ac_res" >&6; }
16558else
16559 # Is the header compilable?
16560{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16562cat >conftest.$ac_ext <<_ACEOF
16563/* confdefs.h. */
16564_ACEOF
16565cat confdefs.h >>conftest.$ac_ext
16566cat >>conftest.$ac_ext <<_ACEOF
16567/* end confdefs.h. */
16568$ac_includes_default
16569#include <$ac_header>
16570_ACEOF
16571rm -f conftest.$ac_objext
16572if { (ac_try="$ac_compile"
16573case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16589esac
16590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16599esac
16600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_header_compiler=yes
16606else
16607 echo "$as_me: failed program was:" >&5
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 ac_header_compiler=no
16611fi
16612
16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615echo "${ECHO_T}$ac_header_compiler" >&6; }
16616
16617# Is the header present?
16618{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16620cat >conftest.$ac_ext <<_ACEOF
16621/* confdefs.h. */
16622_ACEOF
16623cat confdefs.h >>conftest.$ac_ext
16624cat >>conftest.$ac_ext <<_ACEOF
16625/* end confdefs.h. */
16626#include <$ac_header>
16627_ACEOF
16628if { (ac_try="$ac_cpp conftest.$ac_ext"
16629case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16632esac
16633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16635 ac_status=$?
16636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } >/dev/null; then
16641 if test -s conftest.err; then
16642 ac_cpp_err=$ac_c_preproc_warn_flag
16643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16644 else
16645 ac_cpp_err=
16646 fi
16647else
16648 ac_cpp_err=yes
16649fi
16650if test -z "$ac_cpp_err"; then
16651 ac_header_preproc=yes
16652else
16653 echo "$as_me: failed program was:" >&5
16654sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_header_preproc=no
16657fi
16658
16659rm -f conftest.err conftest.$ac_ext
16660{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16661echo "${ECHO_T}$ac_header_preproc" >&6; }
16662
16663# So? What about this header?
16664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16665 yes:no: )
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16670 ac_header_preproc=yes
16671 ;;
16672 no:yes:* )
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16685 ( cat <<\_ASBOX
16686## ----------------------------------- ##
16687## Report this to llvmbugs@cs.uiuc.edu ##
16688## ----------------------------------- ##
16689_ASBOX
16690 ) | sed "s/^/$as_me: WARNING: /" >&2
16691 ;;
16692esac
16693{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16697else
16698 eval "$as_ac_Header=\$ac_header_preproc"
16699fi
16700ac_res=`eval echo '${'$as_ac_Header'}'`
16701 { echo "$as_me:$LINENO: result: $ac_res" >&5
16702echo "${ECHO_T}$ac_res" >&6; }
16703
16704fi
16705if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16708_ACEOF
16709
16710fi
16711
16712done
16713
Dan Gohmanc6ce9d62010-09-17 20:08:35 +000016714
16715for ac_header in fenv.h
16716do
16717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723fi
16724ac_res=`eval echo '${'$as_ac_Header'}'`
16725 { echo "$as_me:$LINENO: result: $ac_res" >&5
16726echo "${ECHO_T}$ac_res" >&6; }
16727else
16728 # Is the header compilable?
16729{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16730echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16731cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737$ac_includes_default
16738#include <$ac_header>
16739_ACEOF
16740rm -f conftest.$ac_objext
16741if { (ac_try="$ac_compile"
16742case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16745esac
16746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16747 (eval "$ac_compile") 2>conftest.er1
16748 ac_status=$?
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } &&
16764 { ac_try='test -s conftest.$ac_objext'
16765 { (case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16768esac
16769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_try") 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ac_header_compiler=yes
16775else
16776 echo "$as_me: failed program was:" >&5
16777sed 's/^/| /' conftest.$ac_ext >&5
16778
16779 ac_header_compiler=no
16780fi
16781
16782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16784echo "${ECHO_T}$ac_header_compiler" >&6; }
16785
16786# Is the header present?
16787{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16789cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795#include <$ac_header>
16796_ACEOF
16797if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16810 if test -s conftest.err; then
16811 ac_cpp_err=$ac_c_preproc_warn_flag
16812 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16813 else
16814 ac_cpp_err=
16815 fi
16816else
16817 ac_cpp_err=yes
16818fi
16819if test -z "$ac_cpp_err"; then
16820 ac_header_preproc=yes
16821else
16822 echo "$as_me: failed program was:" >&5
16823sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 ac_header_preproc=no
16826fi
16827
16828rm -f conftest.err conftest.$ac_ext
16829{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16830echo "${ECHO_T}$ac_header_preproc" >&6; }
16831
16832# So? What about this header?
16833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16834 yes:no: )
16835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16838echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16839 ac_header_preproc=yes
16840 ;;
16841 no:yes:* )
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16843echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16845echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16847echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16849echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16851echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16853echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16854 ( cat <<\_ASBOX
16855## ----------------------------------- ##
16856## Report this to llvmbugs@cs.uiuc.edu ##
16857## ----------------------------------- ##
16858_ASBOX
16859 ) | sed "s/^/$as_me: WARNING: /" >&2
16860 ;;
16861esac
16862{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16864if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16865 echo $ECHO_N "(cached) $ECHO_C" >&6
16866else
16867 eval "$as_ac_Header=\$ac_header_preproc"
16868fi
16869ac_res=`eval echo '${'$as_ac_Header'}'`
16870 { echo "$as_me:$LINENO: result: $ac_res" >&5
16871echo "${ECHO_T}$ac_res" >&6; }
16872
16873fi
16874if test `eval echo '${'$as_ac_Header'}'` = yes; then
16875 cat >>confdefs.h <<_ACEOF
16876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16877_ACEOF
16878
16879fi
16880
16881done
16882
Reid Spencer0a262ba2005-08-24 10:07:20 +000016883if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016884
16885for ac_header in pthread.h
16886do
16887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16893fi
16894ac_res=`eval echo '${'$as_ac_Header'}'`
16895 { echo "$as_me:$LINENO: result: $ac_res" >&5
16896echo "${ECHO_T}$ac_res" >&6; }
16897else
16898 # Is the header compilable?
16899{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16900echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16901cat >conftest.$ac_ext <<_ACEOF
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907$ac_includes_default
16908#include <$ac_header>
16909_ACEOF
16910rm -f conftest.$ac_objext
16911if { (ac_try="$ac_compile"
16912case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_compile") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
16924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928esac
16929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16938esac
16939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
16941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 ac_header_compiler=yes
16945else
16946 echo "$as_me: failed program was:" >&5
16947sed 's/^/| /' conftest.$ac_ext >&5
16948
16949 ac_header_compiler=no
16950fi
16951
16952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16954echo "${ECHO_T}$ac_header_compiler" >&6; }
16955
16956# Is the header present?
16957{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16959cat >conftest.$ac_ext <<_ACEOF
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
16965#include <$ac_header>
16966_ACEOF
16967if { (ac_try="$ac_cpp conftest.$ac_ext"
16968case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } >/dev/null; then
16980 if test -s conftest.err; then
16981 ac_cpp_err=$ac_c_preproc_warn_flag
16982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16983 else
16984 ac_cpp_err=
16985 fi
16986else
16987 ac_cpp_err=yes
16988fi
16989if test -z "$ac_cpp_err"; then
16990 ac_header_preproc=yes
16991else
16992 echo "$as_me: failed program was:" >&5
16993sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 ac_header_preproc=no
16996fi
16997
16998rm -f conftest.err conftest.$ac_ext
16999{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17000echo "${ECHO_T}$ac_header_preproc" >&6; }
17001
17002# So? What about this header?
17003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17004 yes:no: )
17005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17006echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17008echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17009 ac_header_preproc=yes
17010 ;;
17011 no:yes:* )
17012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17017echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17019echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17023echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17024 ( cat <<\_ASBOX
17025## ----------------------------------- ##
17026## Report this to llvmbugs@cs.uiuc.edu ##
17027## ----------------------------------- ##
17028_ASBOX
17029 ) | sed "s/^/$as_me: WARNING: /" >&2
17030 ;;
17031esac
17032{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17034if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037 eval "$as_ac_Header=\$ac_header_preproc"
17038fi
17039ac_res=`eval echo '${'$as_ac_Header'}'`
17040 { echo "$as_me:$LINENO: result: $ac_res" >&5
17041echo "${ECHO_T}$ac_res" >&6; }
17042
17043fi
17044if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000017045 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017046#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000017047_ACEOF
17048 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000017049
17050else
17051 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017052
17053fi
17054
Reid Spencerbe3e4192007-08-17 05:45:26 +000017055done
Reid Spencer1000b732006-12-01 00:37:14 +000017056
17057else
17058 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000017059
17060fi
Reid Spencer8085cff2005-01-16 02:58:39 +000017061
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017062if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017063
17064
17065for ac_header in ffi.h ffi/ffi.h
17066do
17067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17073fi
17074ac_res=`eval echo '${'$as_ac_Header'}'`
17075 { echo "$as_me:$LINENO: result: $ac_res" >&5
17076echo "${ECHO_T}$ac_res" >&6; }
17077else
17078 # Is the header compilable?
17079{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17081cat >conftest.$ac_ext <<_ACEOF
17082/* confdefs.h. */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h. */
17087$ac_includes_default
17088#include <$ac_header>
17089_ACEOF
17090rm -f conftest.$ac_objext
17091if { (ac_try="$ac_compile"
17092case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
17096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17098 ac_status=$?
17099 grep -v '^ *+' conftest.er1 >conftest.err
17100 rm -f conftest.er1
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108esac
17109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_try") 2>&5
17121 ac_status=$?
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_header_compiler=yes
17125else
17126 echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 ac_header_compiler=no
17130fi
17131
17132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134echo "${ECHO_T}$ac_header_compiler" >&6; }
17135
17136# Is the header present?
17137{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17139cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145#include <$ac_header>
17146_ACEOF
17147if { (ac_try="$ac_cpp conftest.$ac_ext"
17148case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17154 ac_status=$?
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } >/dev/null; then
17160 if test -s conftest.err; then
17161 ac_cpp_err=$ac_c_preproc_warn_flag
17162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17163 else
17164 ac_cpp_err=
17165 fi
17166else
17167 ac_cpp_err=yes
17168fi
17169if test -z "$ac_cpp_err"; then
17170 ac_header_preproc=yes
17171else
17172 echo "$as_me: failed program was:" >&5
17173sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 ac_header_preproc=no
17176fi
17177
17178rm -f conftest.err conftest.$ac_ext
17179{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17180echo "${ECHO_T}$ac_header_preproc" >&6; }
17181
17182# So? What about this header?
17183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17184 yes:no: )
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17189 ac_header_preproc=yes
17190 ;;
17191 no:yes:* )
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17204 ( cat <<\_ASBOX
17205## ----------------------------------- ##
17206## Report this to llvmbugs@cs.uiuc.edu ##
17207## ----------------------------------- ##
17208_ASBOX
17209 ) | sed "s/^/$as_me: WARNING: /" >&2
17210 ;;
17211esac
17212{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216else
17217 eval "$as_ac_Header=\$ac_header_preproc"
17218fi
17219ac_res=`eval echo '${'$as_ac_Header'}'`
17220 { echo "$as_me:$LINENO: result: $ac_res" >&5
17221echo "${ECHO_T}$ac_res" >&6; }
17222
17223fi
17224if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017225 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017227_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017228
17229fi
17230
17231done
17232
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000017233fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017234
Nick Lewycky2ab1d862009-01-20 00:52:24 +000017235
Eric Christopher654dee42010-06-22 21:01:04 +000017236for ac_header in CrashReporterClient.h
17237do
17238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17243 echo $ECHO_N "(cached) $ECHO_C" >&6
17244fi
17245ac_res=`eval echo '${'$as_ac_Header'}'`
17246 { echo "$as_me:$LINENO: result: $ac_res" >&5
17247echo "${ECHO_T}$ac_res" >&6; }
17248else
17249 # Is the header compilable?
17250{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17252cat >conftest.$ac_ext <<_ACEOF
17253/* confdefs.h. */
17254_ACEOF
17255cat confdefs.h >>conftest.$ac_ext
17256cat >>conftest.$ac_ext <<_ACEOF
17257/* end confdefs.h. */
17258$ac_includes_default
17259#include <$ac_header>
17260_ACEOF
17261rm -f conftest.$ac_objext
17262if { (ac_try="$ac_compile"
17263case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17266esac
17267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_compile") 2>conftest.er1
17269 ac_status=$?
17270 grep -v '^ *+' conftest.er1 >conftest.err
17271 rm -f conftest.er1
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279esac
17280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; } &&
17285 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17295 ac_header_compiler=yes
17296else
17297 echo "$as_me: failed program was:" >&5
17298sed 's/^/| /' conftest.$ac_ext >&5
17299
17300 ac_header_compiler=no
17301fi
17302
17303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17304{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17305echo "${ECHO_T}$ac_header_compiler" >&6; }
17306
17307# Is the header present?
17308{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17310cat >conftest.$ac_ext <<_ACEOF
17311/* confdefs.h. */
17312_ACEOF
17313cat confdefs.h >>conftest.$ac_ext
17314cat >>conftest.$ac_ext <<_ACEOF
17315/* end confdefs.h. */
17316#include <$ac_header>
17317_ACEOF
17318if { (ac_try="$ac_cpp conftest.$ac_ext"
17319case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322esac
17323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } >/dev/null; then
17331 if test -s conftest.err; then
17332 ac_cpp_err=$ac_c_preproc_warn_flag
17333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17334 else
17335 ac_cpp_err=
17336 fi
17337else
17338 ac_cpp_err=yes
17339fi
17340if test -z "$ac_cpp_err"; then
17341 ac_header_preproc=yes
17342else
17343 echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 ac_header_preproc=no
17347fi
17348
17349rm -f conftest.err conftest.$ac_ext
17350{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17351echo "${ECHO_T}$ac_header_preproc" >&6; }
17352
17353# So? What about this header?
17354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17355 yes:no: )
17356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17357echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17359echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17360 ac_header_preproc=yes
17361 ;;
17362 no:yes:* )
17363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17364echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17366echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17368echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17370echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17374echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17375 ( cat <<\_ASBOX
17376## ----------------------------------- ##
17377## Report this to llvmbugs@cs.uiuc.edu ##
17378## ----------------------------------- ##
17379_ASBOX
17380 ) | sed "s/^/$as_me: WARNING: /" >&2
17381 ;;
17382esac
17383{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387else
17388 eval "$as_ac_Header=\$ac_header_preproc"
17389fi
17390ac_res=`eval echo '${'$as_ac_Header'}'`
17391 { echo "$as_me:$LINENO: result: $ac_res" >&5
17392echo "${ECHO_T}$ac_res" >&6; }
17393
17394fi
17395if test `eval echo '${'$as_ac_Header'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398_ACEOF
17399
17400fi
17401
17402done
17403
17404
17405
Reid Spencer8085cff2005-01-16 02:58:39 +000017406
Torok Edwin871384f2010-01-26 08:50:50 +000017407
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017408 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17409echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17410if test "${ac_cv_huge_val_sanity+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017412else
17413
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017414 ac_ext=cpp
17415ac_cpp='$CXXCPP $CPPFLAGS'
17416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017419
Eric Christopherc7718502010-03-02 05:06:54 +000017420 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017421 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017422 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017423 ac_cv_huge_val_sanity=yes
17424else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017425 cat >conftest.$ac_ext <<_ACEOF
17426/* confdefs.h. */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017430/* end confdefs.h. */
17431#include <math.h>
17432int
17433main ()
17434{
17435double x = HUGE_VAL; return x != x;
17436 ;
17437 return 0;
17438}
17439_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017440rm -f conftest$ac_exeext
17441if { (ac_try="$ac_link"
17442case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445esac
17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_link") 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17451 { (case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17454esac
17455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_try") 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017460 ac_cv_huge_val_sanity=yes
17461else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017462 echo "$as_me: program exited with status $ac_status" >&5
17463echo "$as_me: failed program was:" >&5
17464sed 's/^/| /' conftest.$ac_ext >&5
17465
17466( exit $ac_status )
17467ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017468fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017469rm -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 +000017470fi
17471
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017472
Eric Christopherc7718502010-03-02 05:06:54 +000017473 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017474 ac_ext=c
17475ac_cpp='$CPP $CPPFLAGS'
17476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17478ac_compiler_gnu=$ac_cv_c_compiler_gnu
17479
17480
17481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017482{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17483echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017484 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17485
17486
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017487{ echo "$as_me:$LINENO: checking for pid_t" >&5
17488echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17489if test "${ac_cv_type_pid_t+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491else
17492 cat >conftest.$ac_ext <<_ACEOF
17493/* confdefs.h. */
17494_ACEOF
17495cat confdefs.h >>conftest.$ac_ext
17496cat >>conftest.$ac_ext <<_ACEOF
17497/* end confdefs.h. */
17498$ac_includes_default
17499typedef pid_t ac__type_new_;
17500int
17501main ()
17502{
17503if ((ac__type_new_ *) 0)
17504 return 0;
17505if (sizeof (ac__type_new_))
17506 return 0;
17507 ;
17508 return 0;
17509}
17510_ACEOF
17511rm -f conftest.$ac_objext
17512if { (ac_try="$ac_compile"
17513case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17516esac
17517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17526 { (case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17529esac
17530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_try") 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest.$ac_objext'
17536 { (case "(($ac_try" in
17537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538 *) ac_try_echo=$ac_try;;
17539esac
17540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541 (eval "$ac_try") 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_type_pid_t=yes
17546else
17547 echo "$as_me: failed program was:" >&5
17548sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017549
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017550 ac_cv_type_pid_t=no
17551fi
17552
17553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554fi
17555{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17556echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17557if test $ac_cv_type_pid_t = yes; then
17558 :
John Criswell7a73b802003-06-30 21:59:07 +000017559else
17560
17561cat >>confdefs.h <<_ACEOF
17562#define pid_t int
17563_ACEOF
17564
17565fi
17566
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017567{ echo "$as_me:$LINENO: checking for size_t" >&5
17568echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17569if test "${ac_cv_type_size_t+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17571else
17572 cat >conftest.$ac_ext <<_ACEOF
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578$ac_includes_default
17579typedef size_t ac__type_new_;
17580int
17581main ()
17582{
17583if ((ac__type_new_ *) 0)
17584 return 0;
17585if (sizeof (ac__type_new_))
17586 return 0;
17587 ;
17588 return 0;
17589}
17590_ACEOF
17591rm -f conftest.$ac_objext
17592if { (ac_try="$ac_compile"
17593case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17596esac
17597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_compile") 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606 { (case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609esac
17610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_try") 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest.$ac_objext'
17616 { (case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619esac
17620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621 (eval "$ac_try") 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_cv_type_size_t=yes
17626else
17627 echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017629
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017630 ac_cv_type_size_t=no
17631fi
17632
17633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634fi
17635{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17636echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17637if test $ac_cv_type_size_t = yes; then
17638 :
John Criswell7a73b802003-06-30 21:59:07 +000017639else
17640
17641cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017642#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017643_ACEOF
17644
17645fi
17646
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017647
17648cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017649#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017650_ACEOF
17651
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017652{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17653echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17654if test "${ac_cv_struct_tm+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017656else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017657 cat >conftest.$ac_ext <<_ACEOF
17658/* confdefs.h. */
17659_ACEOF
17660cat confdefs.h >>conftest.$ac_ext
17661cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017662/* end confdefs.h. */
17663#include <sys/types.h>
17664#include <time.h>
17665
17666int
17667main ()
17668{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017669struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017670 ;
17671 return 0;
17672}
17673_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017674rm -f conftest.$ac_objext
17675if { (ac_try="$ac_compile"
17676case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679esac
17680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_compile") 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689 { (case "(($ac_try" in
17690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17691 *) ac_try_echo=$ac_try;;
17692esac
17693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17694 (eval "$ac_try") 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; } &&
17698 { ac_try='test -s conftest.$ac_objext'
17699 { (case "(($ac_try" in
17700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17701 *) ac_try_echo=$ac_try;;
17702esac
17703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17704 (eval "$ac_try") 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017708 ac_cv_struct_tm=time.h
17709else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017710 echo "$as_me: failed program was:" >&5
17711sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017714fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017715
Reid Spencera773bd52006-08-04 18:18:08 +000017716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017718{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17719echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017720if test $ac_cv_struct_tm = sys/time.h; then
17721
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017722cat >>confdefs.h <<\_ACEOF
17723#define TM_IN_SYS_TIME 1
17724_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017725
17726fi
17727
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017728{ echo "$as_me:$LINENO: checking for int64_t" >&5
17729echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17730if test "${ac_cv_type_int64_t+set}" = set; then
17731 echo $ECHO_N "(cached) $ECHO_C" >&6
17732else
17733 cat >conftest.$ac_ext <<_ACEOF
17734/* confdefs.h. */
17735_ACEOF
17736cat confdefs.h >>conftest.$ac_ext
17737cat >>conftest.$ac_ext <<_ACEOF
17738/* end confdefs.h. */
17739$ac_includes_default
17740typedef int64_t ac__type_new_;
17741int
17742main ()
17743{
17744if ((ac__type_new_ *) 0)
17745 return 0;
17746if (sizeof (ac__type_new_))
17747 return 0;
17748 ;
17749 return 0;
17750}
17751_ACEOF
17752rm -f conftest.$ac_objext
17753if { (ac_try="$ac_compile"
17754case "(($ac_try" in
17755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17756 *) ac_try_echo=$ac_try;;
17757esac
17758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17759 (eval "$ac_compile") 2>conftest.er1
17760 ac_status=$?
17761 grep -v '^ *+' conftest.er1 >conftest.err
17762 rm -f conftest.er1
17763 cat conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } &&
17766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17770esac
17771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; } &&
17776 { ac_try='test -s conftest.$ac_objext'
17777 { (case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17780esac
17781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_try") 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 ac_cv_type_int64_t=yes
17787else
17788 echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_cv_type_int64_t=no
17792fi
17793
17794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795fi
17796{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17797echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17798if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017799
17800cat >>confdefs.h <<_ACEOF
17801#define HAVE_INT64_T 1
17802_ACEOF
17803
17804
17805else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017806 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17807echo "$as_me: error: Type int64_t required but not found" >&2;}
17808 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017809fi
17810
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017811{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17812echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17813if test "${ac_cv_type_uint64_t+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 cat >conftest.$ac_ext <<_ACEOF
17817/* confdefs.h. */
17818_ACEOF
17819cat confdefs.h >>conftest.$ac_ext
17820cat >>conftest.$ac_ext <<_ACEOF
17821/* end confdefs.h. */
17822$ac_includes_default
17823typedef uint64_t ac__type_new_;
17824int
17825main ()
17826{
17827if ((ac__type_new_ *) 0)
17828 return 0;
17829if (sizeof (ac__type_new_))
17830 return 0;
17831 ;
17832 return 0;
17833}
17834_ACEOF
17835rm -f conftest.$ac_objext
17836if { (ac_try="$ac_compile"
17837case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840esac
17841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_compile") 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850 { (case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17853esac
17854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_try") 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_try") 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; }; then
17869 ac_cv_type_uint64_t=yes
17870else
17871 echo "$as_me: failed program was:" >&5
17872sed 's/^/| /' conftest.$ac_ext >&5
17873
17874 ac_cv_type_uint64_t=no
17875fi
17876
17877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878fi
17879{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17880echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17881if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017882
17883cat >>confdefs.h <<_ACEOF
17884#define HAVE_UINT64_T 1
17885_ACEOF
17886
17887
17888else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017889 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17890echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17891if test "${ac_cv_type_u_int64_t+set}" = set; then
17892 echo $ECHO_N "(cached) $ECHO_C" >&6
17893else
17894 cat >conftest.$ac_ext <<_ACEOF
17895/* confdefs.h. */
17896_ACEOF
17897cat confdefs.h >>conftest.$ac_ext
17898cat >>conftest.$ac_ext <<_ACEOF
17899/* end confdefs.h. */
17900$ac_includes_default
17901typedef u_int64_t ac__type_new_;
17902int
17903main ()
17904{
17905if ((ac__type_new_ *) 0)
17906 return 0;
17907if (sizeof (ac__type_new_))
17908 return 0;
17909 ;
17910 return 0;
17911}
17912_ACEOF
17913rm -f conftest.$ac_objext
17914if { (ac_try="$ac_compile"
17915case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17918esac
17919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_compile") 2>conftest.er1
17921 ac_status=$?
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931esac
17932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest.$ac_objext'
17938 { (case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941esac
17942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_try") 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 ac_cv_type_u_int64_t=yes
17948else
17949 echo "$as_me: failed program was:" >&5
17950sed 's/^/| /' conftest.$ac_ext >&5
17951
17952 ac_cv_type_u_int64_t=no
17953fi
17954
17955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17956fi
17957{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17958echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17959if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017960
17961cat >>confdefs.h <<_ACEOF
17962#define HAVE_U_INT64_T 1
17963_ACEOF
17964
17965
Misha Brukmanceca9042004-09-02 23:02:30 +000017966else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017967 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17968echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17969 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017970fi
17971
John Criswell679ff312004-09-02 18:44:44 +000017972fi
17973
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017974
17975
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017976
17977
17978
17979
17980
17981
17982
Reid Spencerdf3be822006-01-23 08:15:53 +000017983for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017984do
17985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17986{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17988if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17990else
17991 cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h. */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h. */
17997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17999#define $ac_func innocuous_$ac_func
18000
18001/* System header to define __stub macros and hopefully few prototypes,
18002 which can conflict with char $ac_func (); below.
18003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18004 <limits.h> exists even on freestanding compilers. */
18005
18006#ifdef __STDC__
18007# include <limits.h>
18008#else
18009# include <assert.h>
18010#endif
18011
18012#undef $ac_func
18013
18014/* Override any GCC internal prototype to avoid an error.
18015 Use char because int might match the return type of a GCC
18016 builtin and then its argument prototype would still apply. */
18017#ifdef __cplusplus
18018extern "C"
18019#endif
18020char $ac_func ();
18021/* The GNU C library defines this for functions which it implements
18022 to always fail with ENOSYS. Some functions are actually named
18023 something starting with __ and the normal name is an alias. */
18024#if defined __stub_$ac_func || defined __stub___$ac_func
18025choke me
18026#endif
18027
18028int
18029main ()
18030{
18031return $ac_func ();
18032 ;
18033 return 0;
18034}
18035_ACEOF
18036rm -f conftest.$ac_objext conftest$ac_exeext
18037if { (ac_try="$ac_link"
18038case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18041esac
18042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_link") 2>conftest.er1
18044 ac_status=$?
18045 grep -v '^ *+' conftest.er1 >conftest.err
18046 rm -f conftest.er1
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s 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
18070 eval "$as_ac_var=yes"
18071else
18072 echo "$as_me: failed program was:" >&5
18073sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 eval "$as_ac_var=no"
18076fi
18077
18078rm -f core conftest.err conftest.$ac_objext \
18079 conftest$ac_exeext conftest.$ac_ext
18080fi
18081ac_res=`eval echo '${'$as_ac_var'}'`
18082 { echo "$as_me:$LINENO: result: $ac_res" >&5
18083echo "${ECHO_T}$ac_res" >&6; }
18084if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018085 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018086#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018087_ACEOF
18088
18089fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018090done
John Criswell7a73b802003-06-30 21:59:07 +000018091
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018092
18093
18094
18095
Reid Spencer96cf5872007-07-13 10:05:30 +000018096for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018097do
18098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18103else
18104 cat >conftest.$ac_ext <<_ACEOF
18105/* confdefs.h. */
18106_ACEOF
18107cat confdefs.h >>conftest.$ac_ext
18108cat >>conftest.$ac_ext <<_ACEOF
18109/* end confdefs.h. */
18110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18112#define $ac_func innocuous_$ac_func
18113
18114/* System header to define __stub macros and hopefully few prototypes,
18115 which can conflict with char $ac_func (); below.
18116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18117 <limits.h> exists even on freestanding compilers. */
18118
18119#ifdef __STDC__
18120# include <limits.h>
18121#else
18122# include <assert.h>
18123#endif
18124
18125#undef $ac_func
18126
18127/* Override any GCC internal prototype to avoid an error.
18128 Use char because int might match the return type of a GCC
18129 builtin and then its argument prototype would still apply. */
18130#ifdef __cplusplus
18131extern "C"
18132#endif
18133char $ac_func ();
18134/* The GNU C library defines this for functions which it implements
18135 to always fail with ENOSYS. Some functions are actually named
18136 something starting with __ and the normal name is an alias. */
18137#if defined __stub_$ac_func || defined __stub___$ac_func
18138choke me
18139#endif
18140
18141int
18142main ()
18143{
18144return $ac_func ();
18145 ;
18146 return 0;
18147}
18148_ACEOF
18149rm -f conftest.$ac_objext conftest$ac_exeext
18150if { (ac_try="$ac_link"
18151case "(($ac_try" in
18152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18153 *) ac_try_echo=$ac_try;;
18154esac
18155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18156 (eval "$ac_link") 2>conftest.er1
18157 ac_status=$?
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167esac
18168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; } &&
18173 { ac_try='test -s conftest$ac_exeext'
18174 { (case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18177esac
18178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_try") 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
18183 eval "$as_ac_var=yes"
18184else
18185 echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188 eval "$as_ac_var=no"
18189fi
18190
18191rm -f core conftest.err conftest.$ac_objext \
18192 conftest$ac_exeext conftest.$ac_ext
18193fi
18194ac_res=`eval echo '${'$as_ac_var'}'`
18195 { echo "$as_me:$LINENO: result: $ac_res" >&5
18196echo "${ECHO_T}$ac_res" >&6; }
18197if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000018198 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000018200_ACEOF
18201
18202fi
18203done
18204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018205
18206
18207
18208
18209
Reid Spencerb90645c2007-02-16 19:17:20 +000018210for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018211do
18212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached) $ECHO_C" >&6
18217else
18218 cat >conftest.$ac_ext <<_ACEOF
18219/* confdefs.h. */
18220_ACEOF
18221cat confdefs.h >>conftest.$ac_ext
18222cat >>conftest.$ac_ext <<_ACEOF
18223/* end confdefs.h. */
18224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18226#define $ac_func innocuous_$ac_func
18227
18228/* System header to define __stub macros and hopefully few prototypes,
18229 which can conflict with char $ac_func (); below.
18230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18231 <limits.h> exists even on freestanding compilers. */
18232
18233#ifdef __STDC__
18234# include <limits.h>
18235#else
18236# include <assert.h>
18237#endif
18238
18239#undef $ac_func
18240
18241/* Override any GCC internal prototype to avoid an error.
18242 Use char because int might match the return type of a GCC
18243 builtin and then its argument prototype would still apply. */
18244#ifdef __cplusplus
18245extern "C"
18246#endif
18247char $ac_func ();
18248/* The GNU C library defines this for functions which it implements
18249 to always fail with ENOSYS. Some functions are actually named
18250 something starting with __ and the normal name is an alias. */
18251#if defined __stub_$ac_func || defined __stub___$ac_func
18252choke me
18253#endif
18254
18255int
18256main ()
18257{
18258return $ac_func ();
18259 ;
18260 return 0;
18261}
18262_ACEOF
18263rm -f conftest.$ac_objext conftest$ac_exeext
18264if { (ac_try="$ac_link"
18265case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268esac
18269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18278 { (case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18281esac
18282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_try") 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest$ac_exeext'
18288 { (case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291esac
18292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_try") 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18297 eval "$as_ac_var=yes"
18298else
18299 echo "$as_me: failed program was:" >&5
18300sed 's/^/| /' conftest.$ac_ext >&5
18301
18302 eval "$as_ac_var=no"
18303fi
18304
18305rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307fi
18308ac_res=`eval echo '${'$as_ac_var'}'`
18309 { echo "$as_me:$LINENO: result: $ac_res" >&5
18310echo "${ECHO_T}$ac_res" >&6; }
18311if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018312 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018314_ACEOF
18315
18316fi
18317done
18318
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018319
18320
18321
Reid Spencerb90645c2007-02-16 19:17:20 +000018322for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018323do
18324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18329else
18330 cat >conftest.$ac_ext <<_ACEOF
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
18336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18338#define $ac_func innocuous_$ac_func
18339
18340/* System header to define __stub macros and hopefully few prototypes,
18341 which can conflict with char $ac_func (); below.
18342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18343 <limits.h> exists even on freestanding compilers. */
18344
18345#ifdef __STDC__
18346# include <limits.h>
18347#else
18348# include <assert.h>
18349#endif
18350
18351#undef $ac_func
18352
18353/* Override any GCC internal prototype to avoid an error.
18354 Use char because int might match the return type of a GCC
18355 builtin and then its argument prototype would still apply. */
18356#ifdef __cplusplus
18357extern "C"
18358#endif
18359char $ac_func ();
18360/* The GNU C library defines this for functions which it implements
18361 to always fail with ENOSYS. Some functions are actually named
18362 something starting with __ and the normal name is an alias. */
18363#if defined __stub_$ac_func || defined __stub___$ac_func
18364choke me
18365#endif
18366
18367int
18368main ()
18369{
18370return $ac_func ();
18371 ;
18372 return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext conftest$ac_exeext
18376if { (ac_try="$ac_link"
18377case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380esac
18381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_link") 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } &&
18389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18390 { (case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18393esac
18394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_try") 2>&5
18396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; } &&
18399 { ac_try='test -s conftest$ac_exeext'
18400 { (case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18403esac
18404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_try") 2>&5
18406 ac_status=$?
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); }; }; then
18409 eval "$as_ac_var=yes"
18410else
18411 echo "$as_me: failed program was:" >&5
18412sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 eval "$as_ac_var=no"
18415fi
18416
18417rm -f core conftest.err conftest.$ac_objext \
18418 conftest$ac_exeext conftest.$ac_ext
18419fi
18420ac_res=`eval echo '${'$as_ac_var'}'`
18421 { echo "$as_me:$LINENO: result: $ac_res" >&5
18422echo "${ECHO_T}$ac_res" >&6; }
18423if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018424 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018426_ACEOF
18427
18428fi
18429done
18430
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018431
18432
18433
18434
18435
Eric Christophere4291822010-04-16 05:14:21 +000018436
18437for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018438do
18439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18440{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18442if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18443 echo $ECHO_N "(cached) $ECHO_C" >&6
18444else
18445 cat >conftest.$ac_ext <<_ACEOF
18446/* confdefs.h. */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
18450/* end confdefs.h. */
18451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18453#define $ac_func innocuous_$ac_func
18454
18455/* System header to define __stub macros and hopefully few prototypes,
18456 which can conflict with char $ac_func (); below.
18457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18458 <limits.h> exists even on freestanding compilers. */
18459
18460#ifdef __STDC__
18461# include <limits.h>
18462#else
18463# include <assert.h>
18464#endif
18465
18466#undef $ac_func
18467
18468/* Override any GCC internal prototype to avoid an error.
18469 Use char because int might match the return type of a GCC
18470 builtin and then its argument prototype would still apply. */
18471#ifdef __cplusplus
18472extern "C"
18473#endif
18474char $ac_func ();
18475/* The GNU C library defines this for functions which it implements
18476 to always fail with ENOSYS. Some functions are actually named
18477 something starting with __ and the normal name is an alias. */
18478#if defined __stub_$ac_func || defined __stub___$ac_func
18479choke me
18480#endif
18481
18482int
18483main ()
18484{
18485return $ac_func ();
18486 ;
18487 return 0;
18488}
18489_ACEOF
18490rm -f conftest.$ac_objext conftest$ac_exeext
18491if { (ac_try="$ac_link"
18492case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18495esac
18496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18497 (eval "$ac_link") 2>conftest.er1
18498 ac_status=$?
18499 grep -v '^ *+' conftest.er1 >conftest.err
18500 rm -f conftest.er1
18501 cat conftest.err >&5
18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } &&
18504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18505 { (case "(($ac_try" in
18506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507 *) ac_try_echo=$ac_try;;
18508esac
18509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510 (eval "$ac_try") 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; } &&
18514 { ac_try='test -s conftest$ac_exeext'
18515 { (case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518esac
18519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_try") 2>&5
18521 ac_status=$?
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); }; }; then
18524 eval "$as_ac_var=yes"
18525else
18526 echo "$as_me: failed program was:" >&5
18527sed 's/^/| /' conftest.$ac_ext >&5
18528
18529 eval "$as_ac_var=no"
18530fi
18531
18532rm -f core conftest.err conftest.$ac_objext \
18533 conftest$ac_exeext conftest.$ac_ext
18534fi
18535ac_res=`eval echo '${'$as_ac_var'}'`
18536 { echo "$as_me:$LINENO: result: $ac_res" >&5
18537echo "${ECHO_T}$ac_res" >&6; }
18538if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018539 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018541_ACEOF
18542
18543fi
18544done
Reid Spencerdf3be822006-01-23 08:15:53 +000018545
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018546
18547
18548
18549
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018550for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018551do
18552as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18553{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18554echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18555if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18557else
18558 cat >conftest.$ac_ext <<_ACEOF
18559/* confdefs.h. */
18560_ACEOF
18561cat confdefs.h >>conftest.$ac_ext
18562cat >>conftest.$ac_ext <<_ACEOF
18563/* end confdefs.h. */
18564/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18566#define $ac_func innocuous_$ac_func
18567
18568/* System header to define __stub macros and hopefully few prototypes,
18569 which can conflict with char $ac_func (); below.
18570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571 <limits.h> exists even on freestanding compilers. */
18572
18573#ifdef __STDC__
18574# include <limits.h>
18575#else
18576# include <assert.h>
18577#endif
18578
18579#undef $ac_func
18580
18581/* Override any GCC internal prototype to avoid an error.
18582 Use char because int might match the return type of a GCC
18583 builtin and then its argument prototype would still apply. */
18584#ifdef __cplusplus
18585extern "C"
18586#endif
18587char $ac_func ();
18588/* The GNU C library defines this for functions which it implements
18589 to always fail with ENOSYS. Some functions are actually named
18590 something starting with __ and the normal name is an alias. */
18591#if defined __stub_$ac_func || defined __stub___$ac_func
18592choke me
18593#endif
18594
18595int
18596main ()
18597{
18598return $ac_func ();
18599 ;
18600 return 0;
18601}
18602_ACEOF
18603rm -f conftest.$ac_objext conftest$ac_exeext
18604if { (ac_try="$ac_link"
18605case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18608esac
18609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_link") 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18618 { (case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18621esac
18622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_try") 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest$ac_exeext'
18628 { (case "(($ac_try" in
18629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18630 *) ac_try_echo=$ac_try;;
18631esac
18632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18633 (eval "$ac_try") 2>&5
18634 ac_status=$?
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); }; }; then
18637 eval "$as_ac_var=yes"
18638else
18639 echo "$as_me: failed program was:" >&5
18640sed 's/^/| /' conftest.$ac_ext >&5
18641
18642 eval "$as_ac_var=no"
18643fi
18644
18645rm -f core conftest.err conftest.$ac_objext \
18646 conftest$ac_exeext conftest.$ac_ext
18647fi
18648ac_res=`eval echo '${'$as_ac_var'}'`
18649 { echo "$as_me:$LINENO: result: $ac_res" >&5
18650echo "${ECHO_T}$ac_res" >&6; }
18651if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018652 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018653#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018654_ACEOF
18655
18656fi
18657done
18658
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018659
18660
18661
18662
Chris Lattner511f11d2005-11-14 07:25:50 +000018663for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018664do
18665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18666{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18668if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18669 echo $ECHO_N "(cached) $ECHO_C" >&6
18670else
18671 cat >conftest.$ac_ext <<_ACEOF
18672/* confdefs.h. */
18673_ACEOF
18674cat confdefs.h >>conftest.$ac_ext
18675cat >>conftest.$ac_ext <<_ACEOF
18676/* end confdefs.h. */
18677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18679#define $ac_func innocuous_$ac_func
18680
18681/* System header to define __stub macros and hopefully few prototypes,
18682 which can conflict with char $ac_func (); below.
18683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18684 <limits.h> exists even on freestanding compilers. */
18685
18686#ifdef __STDC__
18687# include <limits.h>
18688#else
18689# include <assert.h>
18690#endif
18691
18692#undef $ac_func
18693
18694/* Override any GCC internal prototype to avoid an error.
18695 Use char because int might match the return type of a GCC
18696 builtin and then its argument prototype would still apply. */
18697#ifdef __cplusplus
18698extern "C"
18699#endif
18700char $ac_func ();
18701/* The GNU C library defines this for functions which it implements
18702 to always fail with ENOSYS. Some functions are actually named
18703 something starting with __ and the normal name is an alias. */
18704#if defined __stub_$ac_func || defined __stub___$ac_func
18705choke me
18706#endif
18707
18708int
18709main ()
18710{
18711return $ac_func ();
18712 ;
18713 return 0;
18714}
18715_ACEOF
18716rm -f conftest.$ac_objext conftest$ac_exeext
18717if { (ac_try="$ac_link"
18718case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18721esac
18722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_link") 2>conftest.er1
18724 ac_status=$?
18725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } &&
18730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18731 { (case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18734esac
18735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_try") 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest$ac_exeext'
18741 { (case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18744esac
18745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_try") 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); }; }; then
18750 eval "$as_ac_var=yes"
18751else
18752 echo "$as_me: failed program was:" >&5
18753sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 eval "$as_ac_var=no"
18756fi
18757
18758rm -f core conftest.err conftest.$ac_objext \
18759 conftest$ac_exeext conftest.$ac_ext
18760fi
18761ac_res=`eval echo '${'$as_ac_var'}'`
18762 { echo "$as_me:$LINENO: result: $ac_res" >&5
18763echo "${ECHO_T}$ac_res" >&6; }
18764if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018765 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018767_ACEOF
18768
18769fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018770done
John Criswell7a73b802003-06-30 21:59:07 +000018771
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018772
18773
18774
18775
Reid Spencerafa22e22006-12-10 23:29:19 +000018776for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018777do
18778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18779{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18781if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783else
18784 cat >conftest.$ac_ext <<_ACEOF
18785/* confdefs.h. */
18786_ACEOF
18787cat confdefs.h >>conftest.$ac_ext
18788cat >>conftest.$ac_ext <<_ACEOF
18789/* end confdefs.h. */
18790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18792#define $ac_func innocuous_$ac_func
18793
18794/* System header to define __stub macros and hopefully few prototypes,
18795 which can conflict with char $ac_func (); below.
18796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18797 <limits.h> exists even on freestanding compilers. */
18798
18799#ifdef __STDC__
18800# include <limits.h>
18801#else
18802# include <assert.h>
18803#endif
18804
18805#undef $ac_func
18806
18807/* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18810#ifdef __cplusplus
18811extern "C"
18812#endif
18813char $ac_func ();
18814/* The GNU C library defines this for functions which it implements
18815 to always fail with ENOSYS. Some functions are actually named
18816 something starting with __ and the normal name is an alias. */
18817#if defined __stub_$ac_func || defined __stub___$ac_func
18818choke me
18819#endif
18820
18821int
18822main ()
18823{
18824return $ac_func ();
18825 ;
18826 return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext conftest$ac_exeext
18830if { (ac_try="$ac_link"
18831case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18834esac
18835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_link") 2>conftest.er1
18837 ac_status=$?
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
18843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18844 { (case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847esac
18848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_try") 2>&5
18850 ac_status=$?
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); }; } &&
18853 { ac_try='test -s conftest$ac_exeext'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18860 ac_status=$?
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; }; then
18863 eval "$as_ac_var=yes"
18864else
18865 echo "$as_me: failed program was:" >&5
18866sed 's/^/| /' conftest.$ac_ext >&5
18867
18868 eval "$as_ac_var=no"
18869fi
18870
18871rm -f core conftest.err conftest.$ac_objext \
18872 conftest$ac_exeext conftest.$ac_ext
18873fi
18874ac_res=`eval echo '${'$as_ac_var'}'`
18875 { echo "$as_me:$LINENO: result: $ac_res" >&5
18876echo "${ECHO_T}$ac_res" >&6; }
18877if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018878 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018880_ACEOF
18881
18882fi
18883done
18884
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018885{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18886echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18887if test "${llvm_cv_c_printf_a+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018889else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018890 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018891ac_cpp='$CPP $CPPFLAGS'
18892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18894ac_compiler_gnu=$ac_cv_c_compiler_gnu
18895
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018896 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018897 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018899 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018900
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018901 /* confdefs.h. */
18902_ACEOF
18903cat confdefs.h >>conftest.$ac_ext
18904cat >>conftest.$ac_ext <<_ACEOF
18905/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018906
John Criswella0137d32003-10-13 16:22:01 +000018907#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018908#include <stdlib.h>
18909
John Criswella0137d32003-10-13 16:22:01 +000018910int
18911main ()
18912{
18913
Reid Spencer2706f8c2004-09-19 23:53:36 +000018914volatile double A, B;
18915char Buffer[100];
18916A = 1;
18917A /= 10.0;
18918sprintf(Buffer, "%a", A);
18919B = atof(Buffer);
18920if (A != B)
18921 return (1);
18922if (A != 0x1.999999999999ap-4)
18923 return (1);
18924return (0);
John Criswella0137d32003-10-13 16:22:01 +000018925 ;
18926 return 0;
18927}
18928_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018929rm -f conftest$ac_exeext
18930if { (ac_try="$ac_link"
18931case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18934esac
18935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_link") 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18940 { (case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18943esac
18944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_try") 2>&5
18946 ac_status=$?
18947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018949 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018950else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018951 echo "$as_me: program exited with status $ac_status" >&5
18952echo "$as_me: failed program was:" >&5
18953sed 's/^/| /' conftest.$ac_ext >&5
18954
18955( exit $ac_status )
18956llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018958rm -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 +000018959fi
Reid Spencera773bd52006-08-04 18:18:08 +000018960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018961
Reid Spencer2706f8c2004-09-19 23:53:36 +000018962 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018963ac_cpp='$CPP $CPPFLAGS'
18964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966ac_compiler_gnu=$ac_cv_c_compiler_gnu
18967
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018968fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018969{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18970echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018971 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018973cat >>confdefs.h <<\_ACEOF
18974#define HAVE_PRINTF_A 1
18975_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018976
Reid Spencer2706f8c2004-09-19 23:53:36 +000018977 fi
John Criswella0137d32003-10-13 16:22:01 +000018978
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018979
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018980{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18981echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18982if test "${ac_cv_func_rand48+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018984else
Reid Spencera773bd52006-08-04 18:18:08 +000018985 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018986ac_cpp='$CXXCPP $CPPFLAGS'
18987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018991 cat >conftest.$ac_ext <<_ACEOF
18992/* confdefs.h. */
18993_ACEOF
18994cat confdefs.h >>conftest.$ac_ext
18995cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018996/* end confdefs.h. */
18997#include <stdlib.h>
18998int
18999main ()
19000{
19001srand48(0);lrand48();drand48();
19002 ;
19003 return 0;
19004}
19005_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019006rm -f conftest.$ac_objext
19007if { (ac_try="$ac_compile"
19008case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011esac
19012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_compile") 2>conftest.er1
19014 ac_status=$?
19015 grep -v '^ *+' conftest.er1 >conftest.err
19016 rm -f conftest.er1
19017 cat conftest.err >&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); } &&
19020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19021 { (case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19024esac
19025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_try") 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest.$ac_objext'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19034esac
19035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019040 ac_cv_func_rand48=yes
19041else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019042 echo "$as_me: failed program was:" >&5
19043sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019046fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019047
Reid Spencera773bd52006-08-04 18:18:08 +000019048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019049 ac_ext=c
19050ac_cpp='$CPP $CPPFLAGS'
19051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19053ac_compiler_gnu=$ac_cv_c_compiler_gnu
19054
19055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019056{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19057echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019058
19059if test "$ac_cv_func_rand48" = "yes" ; then
19060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019061cat >>confdefs.h <<\_ACEOF
19062#define HAVE_RAND48 1
19063_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000019064
19065fi
John Criswell0021c312004-02-13 21:57:29 +000019066
19067
Torok Edwin871384f2010-01-26 08:50:50 +000019068
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019069{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19070echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19071if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19072 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019073else
Reid Spencera773bd52006-08-04 18:18:08 +000019074 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000019075ac_cpp='$CXXCPP $CPPFLAGS'
19076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019080 cat >conftest.$ac_ext <<_ACEOF
19081/* confdefs.h. */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019085/* end confdefs.h. */
19086#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019087int
19088main ()
19089{
19090float f; isnan(f);
19091 ;
19092 return 0;
19093}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019094_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019095rm -f conftest.$ac_objext
19096if { (ac_try="$ac_compile"
19097case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19100esac
19101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19102 (eval "$ac_compile") 2>conftest.er1
19103 ac_status=$?
19104 grep -v '^ *+' conftest.er1 >conftest.err
19105 rm -f conftest.er1
19106 cat conftest.err >&5
19107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19110 { (case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113esac
19114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_try") 2>&5
19116 ac_status=$?
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); }; } &&
19119 { ac_try='test -s conftest.$ac_objext'
19120 { (case "(($ac_try" in
19121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19122 *) ac_try_echo=$ac_try;;
19123esac
19124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19125 (eval "$ac_try") 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019129 ac_cv_func_isnan_in_math_h=yes
19130else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019131 echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019135fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019136
Reid Spencera773bd52006-08-04 18:18:08 +000019137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019138 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019139ac_cpp='$CPP $CPPFLAGS'
19140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19142ac_compiler_gnu=$ac_cv_c_compiler_gnu
19143
19144fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019145{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19146echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019147
19148
19149if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019151cat >>confdefs.h <<\_ACEOF
19152#define HAVE_ISNAN_IN_MATH_H 1
19153_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019154
Reid Spencerabec8f92004-10-27 23:03:44 +000019155fi
19156
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019157{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19158echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19159if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019161else
Reid Spencera773bd52006-08-04 18:18:08 +000019162 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019163ac_cpp='$CXXCPP $CPPFLAGS'
19164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19167
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019168 cat >conftest.$ac_ext <<_ACEOF
19169/* confdefs.h. */
19170_ACEOF
19171cat confdefs.h >>conftest.$ac_ext
19172cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019173/* end confdefs.h. */
19174#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019175int
19176main ()
19177{
19178float f; isnan(f);
19179 ;
19180 return 0;
19181}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019182_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019183rm -f conftest.$ac_objext
19184if { (ac_try="$ac_compile"
19185case "(($ac_try" in
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190 (eval "$ac_compile") 2>conftest.er1
19191 ac_status=$?
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); } &&
19197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19198 { (case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19201esac
19202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_try") 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; } &&
19207 { ac_try='test -s conftest.$ac_objext'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211esac
19212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019217 ac_cv_func_isnan_in_cmath=yes
19218else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019219 echo "$as_me: failed program was:" >&5
19220sed 's/^/| /' conftest.$ac_ext >&5
19221
19222 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019224
Reid Spencera773bd52006-08-04 18:18:08 +000019225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019226 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019227ac_cpp='$CPP $CPPFLAGS'
19228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19230ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231
19232fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019233{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19234echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019235
19236if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019237
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019238cat >>confdefs.h <<\_ACEOF
19239#define HAVE_ISNAN_IN_CMATH 1
19240_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019241
Reid Spencerabec8f92004-10-27 23:03:44 +000019242fi
19243
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019244{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19245echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19246if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19247 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019248else
Reid Spencera773bd52006-08-04 18:18:08 +000019249 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019250ac_cpp='$CXXCPP $CPPFLAGS'
19251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19254
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019255 cat >conftest.$ac_ext <<_ACEOF
19256/* confdefs.h. */
19257_ACEOF
19258cat confdefs.h >>conftest.$ac_ext
19259cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019260/* end confdefs.h. */
19261#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019262int
19263main ()
19264{
19265float f; std::isnan(f);
19266 ;
19267 return 0;
19268}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019269_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019270rm -f conftest.$ac_objext
19271if { (ac_try="$ac_compile"
19272case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19275esac
19276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_compile") 2>conftest.er1
19278 ac_status=$?
19279 grep -v '^ *+' conftest.er1 >conftest.err
19280 rm -f conftest.er1
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } &&
19284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19285 { (case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_try") 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest.$ac_objext'
19295 { (case "(($ac_try" in
19296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19297 *) ac_try_echo=$ac_try;;
19298esac
19299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19300 (eval "$ac_try") 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019304 ac_cv_func_std_isnan_in_cmath=yes
19305else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019306 echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019310fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019311
Reid Spencera773bd52006-08-04 18:18:08 +000019312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019313 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019314ac_cpp='$CPP $CPPFLAGS'
19315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318
19319fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019320{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19321echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019322
19323if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019324
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019325cat >>confdefs.h <<\_ACEOF
19326#define HAVE_STD_ISNAN_IN_CMATH 1
19327_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019328
Reid Spencerabec8f92004-10-27 23:03:44 +000019329fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019330
19331
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019332{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19333echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19334if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019336else
Reid Spencera773bd52006-08-04 18:18:08 +000019337 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019338ac_cpp='$CXXCPP $CPPFLAGS'
19339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19342
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019343 cat >conftest.$ac_ext <<_ACEOF
19344/* confdefs.h. */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019348/* end confdefs.h. */
19349#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019350int
19351main ()
19352{
19353float f; isinf(f);
19354 ;
19355 return 0;
19356}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019357_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019358rm -f conftest.$ac_objext
19359if { (ac_try="$ac_compile"
19360case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
19372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19373 { (case "(($ac_try" in
19374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19375 *) ac_try_echo=$ac_try;;
19376esac
19377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19378 (eval "$ac_try") 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
19383 { (case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19386esac
19387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_try") 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019392 ac_cv_func_isinf_in_math_h=yes
19393else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019394 echo "$as_me: failed program was:" >&5
19395sed 's/^/| /' conftest.$ac_ext >&5
19396
19397 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019398fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019399
Reid Spencera773bd52006-08-04 18:18:08 +000019400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019401 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019402ac_cpp='$CPP $CPPFLAGS'
19403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019408{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19409echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019410
19411if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019413cat >>confdefs.h <<\_ACEOF
19414#define HAVE_ISINF_IN_MATH_H 1
19415_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019416
Reid Spencerabec8f92004-10-27 23:03:44 +000019417fi
19418
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019419{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19420echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19421if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019423else
Reid Spencera773bd52006-08-04 18:18:08 +000019424 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019425ac_cpp='$CXXCPP $CPPFLAGS'
19426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019430 cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019435/* end confdefs.h. */
19436#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019437int
19438main ()
19439{
19440float f; isinf(f);
19441 ;
19442 return 0;
19443}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019444_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019445rm -f conftest.$ac_objext
19446if { (ac_try="$ac_compile"
19447case "(($ac_try" in
19448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19449 *) ac_try_echo=$ac_try;;
19450esac
19451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19452 (eval "$ac_compile") 2>conftest.er1
19453 ac_status=$?
19454 grep -v '^ *+' conftest.er1 >conftest.err
19455 rm -f conftest.er1
19456 cat conftest.err >&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19463esac
19464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19466 ac_status=$?
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; } &&
19469 { ac_try='test -s conftest.$ac_objext'
19470 { (case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473esac
19474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_try") 2>&5
19476 ac_status=$?
19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019479 ac_cv_func_isinf_in_cmath=yes
19480else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019481 echo "$as_me: failed program was:" >&5
19482sed 's/^/| /' conftest.$ac_ext >&5
19483
19484 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019485fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019486
Reid Spencera773bd52006-08-04 18:18:08 +000019487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019488 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019489ac_cpp='$CPP $CPPFLAGS'
19490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019495{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19496echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019497
19498if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019499
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019500cat >>confdefs.h <<\_ACEOF
19501#define HAVE_ISINF_IN_CMATH 1
19502_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019503
Reid Spencerabec8f92004-10-27 23:03:44 +000019504fi
19505
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019506{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19507echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19508if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019510else
Reid Spencera773bd52006-08-04 18:18:08 +000019511 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019512ac_cpp='$CXXCPP $CPPFLAGS'
19513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19516
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019517 cat >conftest.$ac_ext <<_ACEOF
19518/* confdefs.h. */
19519_ACEOF
19520cat confdefs.h >>conftest.$ac_ext
19521cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019522/* end confdefs.h. */
19523#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019524int
19525main ()
19526{
19527float f; std::isinf(f)}
19528 ;
19529 return 0;
19530}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019531_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019532rm -f conftest.$ac_objext
19533if { (ac_try="$ac_compile"
19534case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19537esac
19538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_compile") 2>conftest.er1
19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); } &&
19546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19547 { (case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_try") 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; } &&
19556 { ac_try='test -s conftest.$ac_objext'
19557 { (case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19560esac
19561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_try") 2>&5
19563 ac_status=$?
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019566 ac_cv_func_std_isinf_in_cmath=yes
19567else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019568 echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019572fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019573
Reid Spencera773bd52006-08-04 18:18:08 +000019574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019575 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019576ac_cpp='$CPP $CPPFLAGS'
19577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19579ac_compiler_gnu=$ac_cv_c_compiler_gnu
19580
19581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019582{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19583echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019584
19585if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019587cat >>confdefs.h <<\_ACEOF
19588#define HAVE_STD_ISINF_IN_CMATH 1
19589_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019590
Reid Spencerabec8f92004-10-27 23:03:44 +000019591fi
19592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019593{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19594echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19595if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019597else
Reid Spencera773bd52006-08-04 18:18:08 +000019598 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019599ac_cpp='$CXXCPP $CPPFLAGS'
19600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019604 cat >conftest.$ac_ext <<_ACEOF
19605/* confdefs.h. */
19606_ACEOF
19607cat confdefs.h >>conftest.$ac_ext
19608cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019609/* end confdefs.h. */
19610#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019611int
19612main ()
19613{
19614float f; finite(f);
19615 ;
19616 return 0;
19617}
Brian Gaeked59a6472004-07-21 03:33:58 +000019618_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019619rm -f conftest.$ac_objext
19620if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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
Brian Gaeked59a6472004-07-21 03:33:58 +000019653 ac_cv_func_finite_in_ieeefp_h=yes
19654else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
19658 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019659fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019660
Reid Spencera773bd52006-08-04 18:18:08 +000019661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019662 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019663ac_cpp='$CPP $CPPFLAGS'
19664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19666ac_compiler_gnu=$ac_cv_c_compiler_gnu
19667
19668fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019669{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19670echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019671
Brian Gaeke6802b552004-10-28 05:06:45 +000019672if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019673
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019674cat >>confdefs.h <<\_ACEOF
19675#define HAVE_FINITE_IN_IEEEFP_H 1
19676_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019677
Reid Spencerabec8f92004-10-27 23:03:44 +000019678fi
19679
19680
19681
Reid Spencer30fe5262007-01-20 07:48:49 +000019682if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019683
19684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019685for ac_header in stdlib.h unistd.h
19686do
19687as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19688if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693fi
19694ac_res=`eval echo '${'$as_ac_Header'}'`
19695 { echo "$as_me:$LINENO: result: $ac_res" >&5
19696echo "${ECHO_T}$ac_res" >&6; }
19697else
19698 # Is the header compilable?
19699{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19700echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19701cat >conftest.$ac_ext <<_ACEOF
19702/* confdefs.h. */
19703_ACEOF
19704cat confdefs.h >>conftest.$ac_ext
19705cat >>conftest.$ac_ext <<_ACEOF
19706/* end confdefs.h. */
19707$ac_includes_default
19708#include <$ac_header>
19709_ACEOF
19710rm -f conftest.$ac_objext
19711if { (ac_try="$ac_compile"
19712case "(($ac_try" in
19713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19714 *) ac_try_echo=$ac_try;;
19715esac
19716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19717 (eval "$ac_compile") 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19728esac
19729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_try") 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest.$ac_objext'
19735 { (case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738esac
19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_try") 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_header_compiler=yes
19745else
19746 echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019748
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019749 ac_header_compiler=no
19750fi
19751
19752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19753{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19754echo "${ECHO_T}$ac_header_compiler" >&6; }
19755
19756# Is the header present?
19757{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19758echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19759cat >conftest.$ac_ext <<_ACEOF
19760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h. */
19765#include <$ac_header>
19766_ACEOF
19767if { (ac_try="$ac_cpp conftest.$ac_ext"
19768case "(($ac_try" in
19769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19770 *) ac_try_echo=$ac_try;;
19771esac
19772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19774 ac_status=$?
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } >/dev/null; then
19780 if test -s conftest.err; then
19781 ac_cpp_err=$ac_c_preproc_warn_flag
19782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19783 else
19784 ac_cpp_err=
19785 fi
19786else
19787 ac_cpp_err=yes
19788fi
19789if test -z "$ac_cpp_err"; then
19790 ac_header_preproc=yes
19791else
19792 echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 ac_header_preproc=no
19796fi
19797
19798rm -f conftest.err conftest.$ac_ext
19799{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19800echo "${ECHO_T}$ac_header_preproc" >&6; }
19801
19802# So? What about this header?
19803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19804 yes:no: )
19805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19809 ac_header_preproc=yes
19810 ;;
19811 no:yes:* )
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19824 ( cat <<\_ASBOX
19825## ----------------------------------- ##
19826## Report this to llvmbugs@cs.uiuc.edu ##
19827## ----------------------------------- ##
19828_ASBOX
19829 ) | sed "s/^/$as_me: WARNING: /" >&2
19830 ;;
19831esac
19832{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19836else
19837 eval "$as_ac_Header=\$ac_header_preproc"
19838fi
19839ac_res=`eval echo '${'$as_ac_Header'}'`
19840 { echo "$as_me:$LINENO: result: $ac_res" >&5
19841echo "${ECHO_T}$ac_res" >&6; }
19842
19843fi
19844if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019845 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019846#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019847_ACEOF
19848
19849fi
19850
19851done
19852
19853
19854for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855do
19856as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19857{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19858echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
19861else
19862 cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h. */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h. */
19868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19870#define $ac_func innocuous_$ac_func
19871
19872/* System header to define __stub macros and hopefully few prototypes,
19873 which can conflict with char $ac_func (); below.
19874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19875 <limits.h> exists even on freestanding compilers. */
19876
19877#ifdef __STDC__
19878# include <limits.h>
19879#else
19880# include <assert.h>
19881#endif
19882
19883#undef $ac_func
19884
19885/* Override any GCC internal prototype to avoid an error.
19886 Use char because int might match the return type of a GCC
19887 builtin and then its argument prototype would still apply. */
19888#ifdef __cplusplus
19889extern "C"
19890#endif
19891char $ac_func ();
19892/* The GNU C library defines this for functions which it implements
19893 to always fail with ENOSYS. Some functions are actually named
19894 something starting with __ and the normal name is an alias. */
19895#if defined __stub_$ac_func || defined __stub___$ac_func
19896choke me
19897#endif
19898
19899int
19900main ()
19901{
19902return $ac_func ();
19903 ;
19904 return 0;
19905}
19906_ACEOF
19907rm -f conftest.$ac_objext conftest$ac_exeext
19908if { (ac_try="$ac_link"
19909case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_link") 2>conftest.er1
19915 ac_status=$?
19916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest$ac_exeext'
19932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935esac
19936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_try") 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; }; then
19941 eval "$as_ac_var=yes"
19942else
19943 echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 eval "$as_ac_var=no"
19947fi
19948
19949rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19951fi
19952ac_res=`eval echo '${'$as_ac_var'}'`
19953 { echo "$as_me:$LINENO: result: $ac_res" >&5
19954echo "${ECHO_T}$ac_res" >&6; }
19955if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019956 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019957#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019958_ACEOF
19959
19960fi
19961done
19962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019963{ echo "$as_me:$LINENO: checking for working mmap" >&5
19964echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19965if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019967else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019968 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019969 ac_cv_func_mmap_fixed_mapped=no
19970else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019971 cat >conftest.$ac_ext <<_ACEOF
19972/* confdefs.h. */
19973_ACEOF
19974cat confdefs.h >>conftest.$ac_ext
19975cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019976/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019977$ac_includes_default
19978/* malloc might have been renamed as rpl_malloc. */
19979#undef malloc
19980
19981/* Thanks to Mike Haertel and Jim Avera for this test.
19982 Here is a matrix of mmap possibilities:
19983 mmap private not fixed
19984 mmap private fixed at somewhere currently unmapped
19985 mmap private fixed at somewhere already mapped
19986 mmap shared not fixed
19987 mmap shared fixed at somewhere currently unmapped
19988 mmap shared fixed at somewhere already mapped
19989 For private mappings, we should verify that changes cannot be read()
19990 back from the file, nor mmap's back from the file at a different
19991 address. (There have been systems where private was not correctly
19992 implemented like the infamous i386 svr4.0, and systems where the
19993 VM page cache was not coherent with the file system buffer cache
19994 like early versions of FreeBSD and possibly contemporary NetBSD.)
19995 For shared mappings, we should conversely verify that changes get
19996 propagated back to all the places they're supposed to be.
19997
19998 Grep wants private fixed already mapped.
19999 The main things grep needs to know about mmap are:
20000 * does it exist and is it safe to write into the mmap'd area
20001 * how to use it (BSD variants) */
20002
20003#include <fcntl.h>
20004#include <sys/mman.h>
20005
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020006#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000020007char *malloc ();
20008#endif
20009
20010/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020011#if !HAVE_GETPAGESIZE
20012/* Assume that all systems that can run configure have sys/param.h. */
20013# if !HAVE_SYS_PARAM_H
20014# define HAVE_SYS_PARAM_H 1
20015# endif
20016
John Criswell7a73b802003-06-30 21:59:07 +000020017# ifdef _SC_PAGESIZE
20018# define getpagesize() sysconf(_SC_PAGESIZE)
20019# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020020# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000020021# include <sys/param.h>
20022# ifdef EXEC_PAGESIZE
20023# define getpagesize() EXEC_PAGESIZE
20024# else /* no EXEC_PAGESIZE */
20025# ifdef NBPG
20026# define getpagesize() NBPG * CLSIZE
20027# ifndef CLSIZE
20028# define CLSIZE 1
20029# endif /* no CLSIZE */
20030# else /* no NBPG */
20031# ifdef NBPC
20032# define getpagesize() NBPC
20033# else /* no NBPC */
20034# ifdef PAGESIZE
20035# define getpagesize() PAGESIZE
20036# endif /* PAGESIZE */
20037# endif /* no NBPC */
20038# endif /* no NBPG */
20039# endif /* no EXEC_PAGESIZE */
20040# else /* no HAVE_SYS_PARAM_H */
20041# define getpagesize() 8192 /* punt totally */
20042# endif /* no HAVE_SYS_PARAM_H */
20043# endif /* no _SC_PAGESIZE */
20044
20045#endif /* no HAVE_GETPAGESIZE */
20046
20047int
20048main ()
20049{
20050 char *data, *data2, *data3;
20051 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020052 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000020053
20054 pagesize = getpagesize ();
20055
20056 /* First, make a file with some known garbage in it. */
20057 data = (char *) malloc (pagesize);
20058 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000020059 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020060 for (i = 0; i < pagesize; ++i)
20061 *(data + i) = rand ();
20062 umask (0);
20063 fd = creat ("conftest.mmap", 0600);
20064 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020065 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020066 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020067 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020068 close (fd);
20069
20070 /* Next, try to mmap the file at a fixed address which already has
20071 something else allocated at it. If we can, also make sure that
20072 we see the same garbage. */
20073 fd = open ("conftest.mmap", O_RDWR);
20074 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020075 return 1;
20076 data2 = (char *) malloc (2 * pagesize);
20077 if (!data2)
20078 return 1;
20079 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000020080 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000020081 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020082 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020083 for (i = 0; i < pagesize; ++i)
20084 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020086
20087 /* Finally, make sure that changes to the mapped area do not
20088 percolate back to the file as seen by read(). (This is a bug on
20089 some variants of i386 svr4.0.) */
20090 for (i = 0; i < pagesize; ++i)
20091 *(data2 + i) = *(data2 + i) + 1;
20092 data3 = (char *) malloc (pagesize);
20093 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020094 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020095 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020096 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020097 for (i = 0; i < pagesize; ++i)
20098 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020099 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000020100 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000020101 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020102}
20103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020104rm -f conftest$ac_exeext
20105if { (ac_try="$ac_link"
20106case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109esac
20110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_link") 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118esac
20119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20121 ac_status=$?
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020124 ac_cv_func_mmap_fixed_mapped=yes
20125else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020126 echo "$as_me: program exited with status $ac_status" >&5
20127echo "$as_me: failed program was:" >&5
20128sed 's/^/| /' conftest.$ac_ext >&5
20129
20130( exit $ac_status )
20131ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000020132fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020133rm -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 +000020134fi
Reid Spencera773bd52006-08-04 18:18:08 +000020135
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020136
John Criswell7a73b802003-06-30 21:59:07 +000020137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020138{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20139echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020140if test $ac_cv_func_mmap_fixed_mapped = yes; then
20141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020142cat >>confdefs.h <<\_ACEOF
20143#define HAVE_MMAP 1
20144_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020145
20146fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020147rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000020148
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020149 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20150echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20151if test "${ac_cv_func_mmap_file+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000020153else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020154 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000020155ac_cpp='$CPP $CPPFLAGS'
20156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158ac_compiler_gnu=$ac_cv_c_compiler_gnu
20159
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020160 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020161 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020162else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020163 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000020164
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020165 /* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000020170
John Criswell7a73b802003-06-30 21:59:07 +000020171#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000020172#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000020173#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000020174
20175int
20176main ()
20177{
John Criswell7a73b802003-06-30 21:59:07 +000020178
20179 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000020180 fd = creat ("foo",0777);
20181 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20182 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000020183 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000020184 ;
20185 return 0;
20186}
John Criswell7a73b802003-06-30 21:59:07 +000020187_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020188rm -f conftest$ac_exeext
20189if { (ac_try="$ac_link"
20190case "(($ac_try" in
20191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192 *) ac_try_echo=$ac_try;;
20193esac
20194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195 (eval "$ac_link") 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20199 { (case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20202esac
20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_try") 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020208 ac_cv_func_mmap_file=yes
20209else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020210 echo "$as_me: program exited with status $ac_status" >&5
20211echo "$as_me: failed program was:" >&5
20212sed 's/^/| /' conftest.$ac_ext >&5
20213
20214( exit $ac_status )
20215ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000020216fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020217rm -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 +000020218fi
Reid Spencera773bd52006-08-04 18:18:08 +000020219
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020220
John Criswell7a73b802003-06-30 21:59:07 +000020221 ac_ext=c
20222ac_cpp='$CPP $CPPFLAGS'
20223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20225ac_compiler_gnu=$ac_cv_c_compiler_gnu
20226
20227
20228fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020229{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20230echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000020231if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000020232
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020233cat >>confdefs.h <<\_ACEOF
20234#define HAVE_MMAP_FILE
20235_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020236
20237 MMAP_FILE=yes
20238
20239fi
20240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020241 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20242echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20243if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000020245else
Reid Spencer582a23c2004-12-29 07:07:57 +000020246 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000020247 ac_cv_need_dev_zero_for_mmap=yes
20248 else
20249 ac_cv_need_dev_zero_for_mmap=no
20250 fi
20251
20252fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020253{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20254echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000020255if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20256
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020257cat >>confdefs.h <<\_ACEOF
20258#define NEED_DEV_ZERO_FOR_MMAP 1
20259_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000020260
20261fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020262
Reid Spencer30fe5262007-01-20 07:48:49 +000020263 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20264 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020265 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20266echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020267 fi
20268 if test "$ac_cv_func_mmap_file" = "no"
20269 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020270 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20271echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000020272 fi
John Criswellb13092b2003-07-22 21:00:24 +000020273fi
John Criswell7a73b802003-06-30 21:59:07 +000020274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020275{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20276echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020277ac_ext=cpp
20278ac_cpp='$CXXCPP $CPPFLAGS'
20279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20282
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020283cat >conftest.$ac_ext <<_ACEOF
20284/* confdefs.h. */
20285_ACEOF
20286cat confdefs.h >>conftest.$ac_ext
20287cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020288/* end confdefs.h. */
20289int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020290 volatile unsigned long val = 1;
20291 __sync_synchronize();
20292 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020293 __sync_add_and_fetch(&val, 1);
20294 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020295 return 0;
20296 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020297
20298_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020299rm -f conftest.$ac_objext conftest$ac_exeext
20300if { (ac_try="$ac_link"
20301case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20304esac
20305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_link") 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
20313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317esac
20318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest$ac_exeext'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
20330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020333 ac_ext=c
20334ac_cpp='$CPP $CPPFLAGS'
20335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20337ac_compiler_gnu=$ac_cv_c_compiler_gnu
20338
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020339 { echo "$as_me:$LINENO: result: yes" >&5
20340echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020341
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020342cat >>confdefs.h <<\_ACEOF
20343#define LLVM_MULTITHREADED 1
20344_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020345
Owen Andersond4b272b2009-05-18 23:58:51 +000020346else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020347 echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020350 { echo "$as_me:$LINENO: result: no" >&5
20351echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020352
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020353cat >>confdefs.h <<\_ACEOF
20354#define LLVM_MULTITHREADED 0
20355_ACEOF
20356
20357 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20358echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020360
Owen Andersond4b272b2009-05-18 23:58:51 +000020361rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020362 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020363
John Criswell7a73b802003-06-30 21:59:07 +000020364
Nick Lewycky4372e692009-09-29 06:18:23 +000020365if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020366 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20367echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20368if test "${llvm_cv_linux_mixed+set}" = set; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020370else
20371 ac_ext=c
20372ac_cpp='$CPP $CPPFLAGS'
20373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20375ac_compiler_gnu=$ac_cv_c_compiler_gnu
20376
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020377 cat >conftest.$ac_ext <<_ACEOF
20378/* confdefs.h. */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020382/* end confdefs.h. */
20383#ifndef __x86_64__
20384 error: Not x86-64 even if uname says so!
20385 #endif
20386
20387int
20388main ()
20389{
20390
20391 ;
20392 return 0;
20393}
20394_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020395rm -f conftest.$ac_objext
20396if { (ac_try="$ac_compile"
20397case "(($ac_try" in
20398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399 *) ac_try_echo=$ac_try;;
20400esac
20401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_compile") 2>conftest.er1
20403 ac_status=$?
20404 grep -v '^ *+' conftest.er1 >conftest.err
20405 rm -f conftest.er1
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } &&
20409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20410 { (case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20413esac
20414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_try") 2>&5
20416 ac_status=$?
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest.$ac_objext'
20420 { (case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20423esac
20424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_try") 2>&5
20426 ac_status=$?
20427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020429 llvm_cv_linux_mixed=no
20430else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020431 echo "$as_me: failed program was:" >&5
20432sed 's/^/| /' conftest.$ac_ext >&5
20433
20434 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020435fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020436
Nick Lewycky4372e692009-09-29 06:18:23 +000020437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20438 ac_ext=c
20439ac_cpp='$CPP $CPPFLAGS'
20440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20442ac_compiler_gnu=$ac_cv_c_compiler_gnu
20443
20444
20445fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020446{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20447echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020448
20449 if test "$llvm_cv_linux_mixed" = "yes"; then
20450 llvm_cv_target_arch="x86"
20451 ARCH="x86"
20452 fi
20453fi
20454
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020455
Reid Spencer9372f152007-07-30 20:13:24 +000020456for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457do
20458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20459{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20461if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20462 echo $ECHO_N "(cached) $ECHO_C" >&6
20463else
20464 cat >conftest.$ac_ext <<_ACEOF
20465/* confdefs.h. */
20466_ACEOF
20467cat confdefs.h >>conftest.$ac_ext
20468cat >>conftest.$ac_ext <<_ACEOF
20469/* end confdefs.h. */
20470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20472#define $ac_func innocuous_$ac_func
20473
20474/* System header to define __stub macros and hopefully few prototypes,
20475 which can conflict with char $ac_func (); below.
20476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20477 <limits.h> exists even on freestanding compilers. */
20478
20479#ifdef __STDC__
20480# include <limits.h>
20481#else
20482# include <assert.h>
20483#endif
20484
20485#undef $ac_func
20486
20487/* Override any GCC internal prototype to avoid an error.
20488 Use char because int might match the return type of a GCC
20489 builtin and then its argument prototype would still apply. */
20490#ifdef __cplusplus
20491extern "C"
20492#endif
20493char $ac_func ();
20494/* The GNU C library defines this for functions which it implements
20495 to always fail with ENOSYS. Some functions are actually named
20496 something starting with __ and the normal name is an alias. */
20497#if defined __stub_$ac_func || defined __stub___$ac_func
20498choke me
20499#endif
20500
20501int
20502main ()
20503{
20504return $ac_func ();
20505 ;
20506 return 0;
20507}
20508_ACEOF
20509rm -f conftest.$ac_objext conftest$ac_exeext
20510if { (ac_try="$ac_link"
20511case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514esac
20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_link") 2>conftest.er1
20517 ac_status=$?
20518 grep -v '^ *+' conftest.er1 >conftest.err
20519 rm -f conftest.er1
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20524 { (case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527esac
20528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_try") 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; } &&
20533 { ac_try='test -s conftest$ac_exeext'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20537esac
20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
20540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; }; then
20543 eval "$as_ac_var=yes"
20544else
20545 echo "$as_me: failed program was:" >&5
20546sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 eval "$as_ac_var=no"
20549fi
20550
20551rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
20553fi
20554ac_res=`eval echo '${'$as_ac_var'}'`
20555 { echo "$as_me:$LINENO: result: $ac_res" >&5
20556echo "${ECHO_T}$ac_res" >&6; }
20557if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020558 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020560_ACEOF
20561
20562fi
20563done
20564
20565
Tobias Grossera84b5672010-11-10 16:31:34 +000020566{ echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20567echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20568if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20569 echo $ECHO_N "(cached) $ECHO_C" >&6
20570else
20571 llvm_cv_llvmgcc_dragonegg="no"
20572if test -x "$LLVMGCC" ; then
20573 cp /dev/null conftest.c
20574 "$LLVMGCC" -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c | \
20575 grep 'target datalayout =' > /dev/null 2>&1
20576 if test $? -eq 0 ; then
20577 llvm_cv_llvmgcc_dragonegg="yes"
20578 fi
20579 rm conftest.c
20580fi
20581fi
20582{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20583echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20584
20585if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20586 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20587 LLVMGCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20588else
20589 LLVMCC_EMITIR_FLAG="-emit-llvm"
20590 LLVMGCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20591fi
20592
20593
20594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020595{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20596echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20597if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020599else
20600 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020601if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020602 cp /dev/null conftest.c
Tobias Grossera84b5672010-11-10 16:31:34 +000020603 "$LLVMGCC" "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
Reid Spencer585e0882007-03-29 15:38:33 +000020604 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020605 if test $? -eq 0 ; then
20606 llvm_cv_llvmgcc_sanity="yes"
20607 fi
20608 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020609fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020610fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020611{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20612echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020613
20614if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020615 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20616echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020617 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020618 LLVMCC1=$llvmcc1path
20619
Reid Spencer502935f2004-12-22 05:56:56 +000020620 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020621 LLVMCC1PLUS=$llvmcc1pluspath
20622
Reid Spencer502935f2004-12-22 05:56:56 +000020623 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20624 LLVMGCCDIR=$llvmgccdir
20625
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020626 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020627 LLVMGCC_LANGS=$llvmgcclangs
20628
Tobias Grossera84b5672010-11-10 16:31:34 +000020629 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20630
20631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020632 { echo "$as_me:$LINENO: result: ok" >&5
20633echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020634fi
20635
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020636SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020637
20638
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020639SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20640
20641
Reid Spencere9de0912004-08-20 09:03:57 +000020642# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020643# information into substitutions that will end up in Makefile.config.in
20644# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020645if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020646 prefix="/usr/local"
20647fi
Reid Spencere9de0912004-08-20 09:03:57 +000020648eval LLVM_PREFIX="${prefix}";
20649eval LLVM_BINDIR="${prefix}/bin";
20650eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020651eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020652eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020653eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020654eval LLVM_INCLUDEDIR="${prefix}/include";
20655eval LLVM_INFODIR="${prefix}/info";
20656eval LLVM_MANDIR="${prefix}/man";
20657LLVM_CONFIGTIME=`date`
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020669# Place the various directores into the config.h file as #defines so that we
20670# can know about the installation paths within LLVM.
20671
Reid Spencere9de0912004-08-20 09:03:57 +000020672cat >>confdefs.h <<_ACEOF
20673#define LLVM_PREFIX "$LLVM_PREFIX"
20674_ACEOF
20675
20676
20677cat >>confdefs.h <<_ACEOF
20678#define LLVM_BINDIR "$LLVM_BINDIR"
20679_ACEOF
20680
20681
20682cat >>confdefs.h <<_ACEOF
20683#define LLVM_LIBDIR "$LLVM_LIBDIR"
20684_ACEOF
20685
20686
20687cat >>confdefs.h <<_ACEOF
20688#define LLVM_DATADIR "$LLVM_DATADIR"
20689_ACEOF
20690
20691
20692cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020693#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020694_ACEOF
20695
20696
20697cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020698#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020699_ACEOF
20700
20701
20702cat >>confdefs.h <<_ACEOF
20703#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20704_ACEOF
20705
20706
20707cat >>confdefs.h <<_ACEOF
20708#define LLVM_INFODIR "$LLVM_INFODIR"
20709_ACEOF
20710
20711
20712cat >>confdefs.h <<_ACEOF
20713#define LLVM_MANDIR "$LLVM_MANDIR"
20714_ACEOF
20715
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20719_ACEOF
20720
20721
Eric Christopher790e11c2007-12-01 00:34:39 +000020722cat >>confdefs.h <<_ACEOF
20723#define LLVM_HOSTTRIPLE "$host"
20724_ACEOF
20725
20726
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020727# Determine which bindings to build.
20728if test "$BINDINGS_TO_BUILD" = auto ; then
20729 BINDINGS_TO_BUILD=""
20730 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20731 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20732 fi
20733fi
20734BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20735
20736
20737# This isn't really configurey, but it avoids having to repeat the list in
20738# other files.
20739ALL_BINDINGS=ocaml
20740
20741
Gordon Henriksenf0915682007-10-02 16:42:22 +000020742# Do any work necessary to ensure that bindings have what they need.
20743binding_prereqs_failed=0
20744for a_binding in $BINDINGS_TO_BUILD ; do
20745 case "$a_binding" in
20746 ocaml)
20747 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020748 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20749echo "$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 +000020750 binding_prereqs_failed=1
20751 fi
20752 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20754echo "$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 +000020755 binding_prereqs_failed=1
20756 fi
20757 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020758 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20759echo "$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 +000020760 fi
20761 if test "x$with_ocaml_libdir" != xauto ; then
20762 OCAML_LIBDIR=$with_ocaml_libdir
20763
20764 else
20765 ocaml_stdlib="`"$OCAMLC" -where`"
20766 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20767 then
20768 # ocaml stdlib is beneath our prefix; use stdlib
20769 OCAML_LIBDIR=$ocaml_stdlib
20770
20771 else
20772 # ocaml stdlib is outside our prefix; use libdir/ocaml
20773 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20774
20775 fi
20776 fi
20777 ;;
20778 esac
20779done
20780if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020781 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20782echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20783 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020784fi
20785
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020786{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20787echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20788if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020790else
20791 ac_ext=cpp
20792ac_cpp='$CXXCPP $CPPFLAGS'
20793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20796
20797 oldcxxflags="$CXXFLAGS"
20798 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799 cat >conftest.$ac_ext <<_ACEOF
20800/* confdefs.h. */
20801_ACEOF
20802cat confdefs.h >>conftest.$ac_ext
20803cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020804/* end confdefs.h. */
20805
20806int
20807main ()
20808{
20809
20810 ;
20811 return 0;
20812}
20813_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020814rm -f conftest.$ac_objext
20815if { (ac_try="$ac_compile"
20816case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20819esac
20820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_compile") 2>conftest.er1
20822 ac_status=$?
20823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
20828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20829 { (case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20832esac
20833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_try") 2>&5
20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); }; } &&
20838 { ac_try='test -s conftest.$ac_objext'
20839 { (case "(($ac_try" in
20840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841 *) ac_try_echo=$ac_try;;
20842esac
20843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20844 (eval "$ac_try") 2>&5
20845 ac_status=$?
20846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020848 llvm_cv_cxx_visibility_inlines_hidden=yes
20849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020850 echo "$as_me: failed program was:" >&5
20851sed 's/^/| /' conftest.$ac_ext >&5
20852
20853 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020855
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20857 CXXFLAGS="$oldcxxflags"
20858 ac_ext=c
20859ac_cpp='$CPP $CPPFLAGS'
20860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862ac_compiler_gnu=$ac_cv_c_compiler_gnu
20863
20864
20865fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020866{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20867echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020868if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20869 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20870
20871else
20872 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20873
20874fi
20875
Gordon Henriksenf0915682007-10-02 16:42:22 +000020876
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020877if test "$llvm_cv_link_use_r" = "yes" ; then
20878 RPATH="-Wl,-R"
20879else
20880 RPATH="-Wl,-rpath"
20881fi
20882
20883
20884if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20885 RDYNAMIC="-Wl,-export-dynamic"
20886else
20887 RDYNAMIC=""
20888fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020889
20890
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020891
Eric Christophera1cba682010-08-08 02:44:25 +000020892ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020893
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020894
20895
20896
20897
20898
Douglas Gregor1555a232009-06-16 20:12:29 +000020899ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20900
20901ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20902
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020903ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20904
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020905ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20906
Chandler Carruth8b67f772009-10-26 01:35:46 +000020907ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020908
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020909
Reid Spencera773bd52006-08-04 18:18:08 +000020910ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020911
20912
Reid Spencerea949cf2006-08-16 00:45:38 +000020913ac_config_files="$ac_config_files llvm.spec"
20914
20915
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020916ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020917
20918
Reid Spencera773bd52006-08-04 18:18:08 +000020919ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020920
20921
Reid Spencera773bd52006-08-04 18:18:08 +000020922ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020923
Reid Spencera773bd52006-08-04 18:18:08 +000020924ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020925
20926
Reid Spencera773bd52006-08-04 18:18:08 +000020927ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020928
20929
Reid Spencera773bd52006-08-04 18:18:08 +000020930ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020931
20932
Reid Spencera773bd52006-08-04 18:18:08 +000020933ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020934
20935
Reid Spencer8b2e1412006-11-17 03:32:33 +000020936ac_config_commands="$ac_config_commands runtime/Makefile"
20937
20938
Reid Spencera773bd52006-08-04 18:18:08 +000020939ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020940
20941
Reid Spencera773bd52006-08-04 18:18:08 +000020942ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020943
20944
Bill Wendlingf24eb392009-01-04 23:12:30 +000020945ac_config_commands="$ac_config_commands unittests/Makefile"
20946
20947
Reid Spencera773bd52006-08-04 18:18:08 +000020948ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020949
20950
Reid Spencera773bd52006-08-04 18:18:08 +000020951ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020952
20953
Reid Spencera773bd52006-08-04 18:18:08 +000020954ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020955
20956
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020957ac_config_commands="$ac_config_commands bindings/Makefile"
20958
20959
20960ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20961
20962
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020963
John Criswell7a73b802003-06-30 21:59:07 +000020964cat >confcache <<\_ACEOF
20965# This file is a shell script that caches the results of configure
20966# tests run on this system so they can be shared between configure
20967# scripts and configure runs, see configure's option --config-cache.
20968# It is not useful on other systems. If it contains results you don't
20969# want to keep, you may remove or edit it.
20970#
20971# config.status only pays attention to the cache file if you give it
20972# the --recheck option to rerun configure.
20973#
John Criswell0c38eaf2003-09-10 15:17:25 +000020974# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020975# loading this file, other *unset* `ac_cv_foo' will be assigned the
20976# following values.
20977
20978_ACEOF
20979
20980# The following way of writing the cache mishandles newlines in values,
20981# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020982# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020983# Ultrix sh set writes to stderr and can't be redirected directly,
20984# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020985(
20986 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20987 eval ac_val=\$$ac_var
20988 case $ac_val in #(
20989 *${as_nl}*)
20990 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020991 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20992echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020993 esac
20994 case $ac_var in #(
20995 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020996 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020997 esac ;;
20998 esac
20999 done
21000
John Criswell7a73b802003-06-30 21:59:07 +000021001 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000021002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21003 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004 # `set' does not quote correctly, so add quotes (double-quote
21005 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000021006 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021007 "s/'/'\\\\''/g;
21008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000021009 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000021010 *)
21011 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000021012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000021013 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021014 esac |
21015 sort
21016) |
John Criswell7a73b802003-06-30 21:59:07 +000021017 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000021018 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000021019 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000021020 :clear
John Criswell7a73b802003-06-30 21:59:07 +000021021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21022 t end
Reid Spencera773bd52006-08-04 18:18:08 +000021023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21024 :end' >>confcache
21025if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21026 if test -w "$cache_file"; then
21027 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021028 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21029echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021030 cat confcache >$cache_file
21031 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021032 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21033echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021034 fi
21035fi
21036rm -f confcache
21037
21038test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039# Let make expand exec_prefix.
21040test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21041
John Criswell7a73b802003-06-30 21:59:07 +000021042DEFS=-DHAVE_CONFIG_H
21043
John Criswell0c38eaf2003-09-10 15:17:25 +000021044ac_libobjs=
21045ac_ltlibobjs=
21046for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21047 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000021048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021049 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000021050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21051 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021052 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21053 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000021054done
21055LIBOBJS=$ac_libobjs
21056
21057LTLIBOBJS=$ac_ltlibobjs
21058
21059
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021060if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021061 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21062Usually this means the macro was only invoked conditionally." >&5
21063echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21064Usually this means the macro was only invoked conditionally." >&2;}
21065 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021066fi
21067if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021068 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21069Usually this means the macro was only invoked conditionally." >&5
21070echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21071Usually this means the macro was only invoked conditionally." >&2;}
21072 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021073fi
John Criswell7a73b802003-06-30 21:59:07 +000021074
21075: ${CONFIG_STATUS=./config.status}
21076ac_clean_files_save=$ac_clean_files
21077ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021078{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21079echo "$as_me: creating $CONFIG_STATUS" >&6;}
21080cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021081#! $SHELL
21082# Generated by $as_me.
21083# Run this file to recreate the current configuration.
21084# Compiler output produced by configure, useful for debugging
21085# configure, is in config.log if it exists.
21086
21087debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000021088ac_cs_recheck=false
21089ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000021090SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021091_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021092
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021093cat >>$CONFIG_STATUS <<\_ACEOF
21094## --------------------- ##
21095## M4sh Initialization. ##
21096## --------------------- ##
21097
21098# Be Bourne compatible
21099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021100 emulate sh
21101 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021102 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000021103 # is contrary to our usage. Disable this feature.
21104 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000021105 setopt NO_GLOB_SUBST
21106else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021107 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000021108fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021109BIN_SH=xpg4; export BIN_SH # for Tru64
21110DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000021111
John Criswell7a73b802003-06-30 21:59:07 +000021112
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021113# PATH needs CR
21114# Avoid depending upon Character Ranges.
21115as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21117as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21118as_cr_digits='0123456789'
21119as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000021120
21121# The user is always right.
21122if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021123 echo "#! /bin/sh" >conf$$.sh
21124 echo "exit 0" >>conf$$.sh
21125 chmod +x conf$$.sh
21126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21127 PATH_SEPARATOR=';'
21128 else
21129 PATH_SEPARATOR=:
21130 fi
21131 rm -f conf$$.sh
21132fi
21133
21134# Support unset when possible.
21135if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21136 as_unset=unset
21137else
21138 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000021139fi
John Criswell7a73b802003-06-30 21:59:07 +000021140
Reid Spencera773bd52006-08-04 18:18:08 +000021141
21142# IFS
21143# We need space, tab and new line, in precisely that order. Quoting is
21144# there to prevent editors from complaining about space-tab.
21145# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21146# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021147as_nl='
21148'
Reid Spencera773bd52006-08-04 18:18:08 +000021149IFS=" "" $as_nl"
21150
21151# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021152case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000021153 *[\\/]* ) as_myself=$0 ;;
21154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000021155for as_dir in $PATH
21156do
21157 IFS=$as_save_IFS
21158 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21160done
Reid Spencera773bd52006-08-04 18:18:08 +000021161IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000021162
Reid Spencera773bd52006-08-04 18:18:08 +000021163 ;;
21164esac
21165# We did not find ourselves, most probably we were run as `sh COMMAND'
21166# in which case we are not to be found in the path.
21167if test "x$as_myself" = x; then
21168 as_myself=$0
21169fi
21170if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021171 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21172 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000021173fi
21174
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021175# Work around bugs in pre-3.0 UWIN ksh.
21176for as_var in ENV MAIL MAILPATH
21177do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000021178done
21179PS1='$ '
21180PS2='> '
21181PS4='+ '
21182
21183# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021184for as_var in \
21185 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21186 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21187 LC_TELEPHONE LC_TIME
21188do
21189 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21190 eval $as_var=C; export $as_var
21191 else
21192 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000021193 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021194done
Torok Edwin871384f2010-01-26 08:50:50 +000021195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021196# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000021197if expr a : '\(a\)' >/dev/null 2>&1 &&
21198 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21199 as_expr=expr
21200else
21201 as_expr=false
21202fi
21203
21204if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21205 as_basename=basename
21206else
21207 as_basename=false
21208fi
21209
21210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021211# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000021212as_me=`$as_basename -- "$0" ||
21213$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21214 X"$0" : 'X\(//\)$' \| \
21215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021216echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000021217 sed '/^.*\/\([^/][^/]*\)\/*$/{
21218 s//\1/
21219 q
21220 }
21221 /^X\/\(\/\/\)$/{
21222 s//\1/
21223 q
21224 }
21225 /^X\/\(\/\).*/{
21226 s//\1/
21227 q
21228 }
21229 s/.*/./; q'`
21230
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021231# CDPATH.
21232$as_unset CDPATH
21233
21234
21235
21236 as_lineno_1=$LINENO
21237 as_lineno_2=$LINENO
21238 test "x$as_lineno_1" != "x$as_lineno_2" &&
21239 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21240
21241 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21242 # uniformly replaced by the line number. The first 'sed' inserts a
21243 # line-number line after each line using $LINENO; the second 'sed'
21244 # does the real work. The second script uses 'N' to pair each
21245 # line-number line with the line containing $LINENO, and appends
21246 # trailing '-' during substitution so that $LINENO is not a special
21247 # case at line end.
21248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21249 # scripts with optimization help from Paolo Bonzini. Blame Lee
21250 # E. McMahon (1931-1989) for sed's syntax. :-)
21251 sed -n '
21252 p
21253 /[$]LINENO/=
21254 ' <$as_myself |
21255 sed '
21256 s/[$]LINENO.*/&-/
21257 t lineno
21258 b
21259 :lineno
21260 N
21261 :loop
21262 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21263 t loop
21264 s/-\n.*//
21265 ' >$as_me.lineno &&
21266 chmod +x "$as_me.lineno" ||
21267 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21268 { (exit 1); exit 1; }; }
21269
21270 # Don't try to exec as it changes $[0], causing all sort of problems
21271 # (the dirname of $[0] is not the place where we might find the
21272 # original and so on. Autoconf is especially sensitive to this).
21273 . "./$as_me.lineno"
21274 # Exit status is that of the last command.
21275 exit
21276}
21277
21278
21279if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21280 as_dirname=dirname
21281else
21282 as_dirname=false
21283fi
Reid Spencera773bd52006-08-04 18:18:08 +000021284
21285ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000021287-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021288 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000021289 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021290 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000021291 esac;;
21292*)
21293 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000021294esac
21295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021296if expr a : '\(a\)' >/dev/null 2>&1 &&
21297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21298 as_expr=expr
21299else
21300 as_expr=false
21301fi
21302
John Criswell7a73b802003-06-30 21:59:07 +000021303rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000021304if test -d conf$$.dir; then
21305 rm -f conf$$.dir/conf$$.file
21306else
21307 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021308 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021309fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021310echo >conf$$.file
21311if ln -s conf$$.file conf$$ 2>/dev/null; then
21312 as_ln_s='ln -s'
21313 # ... but there are two gotchas:
21314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21316 # In both cases, we have to default to `cp -p'.
21317 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021318 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021319elif ln conf$$.file conf$$ 2>/dev/null; then
21320 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021321else
21322 as_ln_s='cp -p'
21323fi
Reid Spencera773bd52006-08-04 18:18:08 +000021324rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21325rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021326
John Criswell0c38eaf2003-09-10 15:17:25 +000021327if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021328 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021329else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021330 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021331 as_mkdir_p=false
21332fi
21333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021334# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21335# systems may use methods other than mode bits to determine executability.
21336cat >conf$$.file <<_ASEOF
21337#! /bin/sh
21338exit 0
21339_ASEOF
21340chmod +x conf$$.file
21341if test -x conf$$.file >/dev/null 2>&1; then
21342 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021343else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021344 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021345fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021346rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021347
21348# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021349as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021350
21351# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021352as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021353
21354
John Criswell7a73b802003-06-30 21:59:07 +000021355exec 6>&1
21356
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021357# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021358# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021359# values after options handling.
21360ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021361This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021362generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021363
21364 CONFIG_FILES = $CONFIG_FILES
21365 CONFIG_HEADERS = $CONFIG_HEADERS
21366 CONFIG_LINKS = $CONFIG_LINKS
21367 CONFIG_COMMANDS = $CONFIG_COMMANDS
21368 $ $0 $@
21369
Reid Spencera773bd52006-08-04 18:18:08 +000021370on `(hostname || uname -n) 2>/dev/null | sed 1q`
21371"
21372
John Criswell7a73b802003-06-30 21:59:07 +000021373_ACEOF
21374
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021375cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021376# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021377config_files="$ac_config_files"
21378config_headers="$ac_config_headers"
21379config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021380
Reid Spencera773bd52006-08-04 18:18:08 +000021381_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021383cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021384ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021385\`$as_me' instantiates files from templates according to the
21386current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021387
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021388Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021389
21390 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021391 -V, --version print version number, then exit
21392 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021393 -d, --debug don't remove temporary files
21394 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021395 --file=FILE[:TEMPLATE]
21396 instantiate the configuration file FILE
21397 --header=FILE[:TEMPLATE]
21398 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021399
21400Configuration files:
21401$config_files
21402
21403Configuration headers:
21404$config_headers
21405
John Criswellc764fbc2003-09-06 15:17:13 +000021406Configuration commands:
21407$config_commands
21408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021409Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021410
Reid Spencera773bd52006-08-04 18:18:08 +000021411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021412cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021413ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021414llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021415configured by $0, generated by GNU Autoconf 2.60,
21416 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021417
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021418Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021419This config.status script is free software; the Free Software Foundation
21420gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021421
21422ac_pwd='$ac_pwd'
21423srcdir='$srcdir'
21424INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021425_ACEOF
21426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021427cat >>$CONFIG_STATUS <<\_ACEOF
21428# If no file are specified by the user, then we need to provide default
21429# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021430ac_need_defaults=:
21431while test $# != 0
21432do
21433 case $1 in
21434 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021435 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21436 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021437 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021438 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021439 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021440 ac_option=$1
21441 ac_optarg=$2
21442 ac_shift=shift
21443 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021444 esac
21445
John Criswell0c38eaf2003-09-10 15:17:25 +000021446 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021447 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21449 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021450 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021451 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021452 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021453 debug=: ;;
21454 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021455 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021456 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021457 ac_need_defaults=false;;
21458 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021459 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021460 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021461 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021462 --he | --h)
21463 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021464 { echo "$as_me: error: ambiguous option: $1
21465Try \`$0 --help' for more information." >&2
21466 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021467 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021468 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021469 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21470 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21471 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021472
21473 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021474 -*) { echo "$as_me: error: unrecognized option: $1
21475Try \`$0 --help' for more information." >&2
21476 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021478 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021479 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021480
21481 esac
21482 shift
21483done
21484
John Criswell0c38eaf2003-09-10 15:17:25 +000021485ac_configure_extra_args=
21486
21487if $ac_cs_silent; then
21488 exec 6>/dev/null
21489 ac_configure_extra_args="$ac_configure_extra_args --silent"
21490fi
21491
21492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021493cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021494if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021495 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21496 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021497 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021498 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021499fi
21500
John Criswell7a73b802003-06-30 21:59:07 +000021501_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021502cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021503exec 5>>config.log
21504{
21505 echo
21506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21507## Running $as_me. ##
21508_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021509 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021510} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021511
Reid Spencera773bd52006-08-04 18:18:08 +000021512_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021513cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021514#
Reid Spencera773bd52006-08-04 18:18:08 +000021515# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021516#
Reid Spencerc0682832005-02-24 19:05:19 +000021517llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021518
21519_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021520
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021521cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021522
21523# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021524for ac_config_target in $ac_config_targets
21525do
Reid Spencera773bd52006-08-04 18:18:08 +000021526 case $ac_config_target in
21527 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021528 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021529 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21530 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021531 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021532 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021533 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021534 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021535 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021536 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021537 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21538 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21539 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21540 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21541 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21542 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021543 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021544 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21545 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021546 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021547 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21548 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21549 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021550 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21551 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021553 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21554echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21555 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021556 esac
21557done
21558
Reid Spencera773bd52006-08-04 18:18:08 +000021559
John Criswell7a73b802003-06-30 21:59:07 +000021560# If the user did not use the arguments to specify the items to instantiate,
21561# then the envvar interface is used. Set only those that are not.
21562# We use the long form for the default assignment because of an extremely
21563# bizarre bug on SunOS 4.1.3.
21564if $ac_need_defaults; then
21565 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21566 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021567 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021568fi
21569
John Criswell0c38eaf2003-09-10 15:17:25 +000021570# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021571# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021572# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021573# Hook for its removal unless debugging.
21574# Note that there is a small window in which the directory will not be cleaned:
21575# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021576$debug ||
21577{
Reid Spencera773bd52006-08-04 18:18:08 +000021578 tmp=
21579 trap 'exit_status=$?
21580 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21581' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021582 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021583}
John Criswell7a73b802003-06-30 21:59:07 +000021584# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021585
John Criswell7a73b802003-06-30 21:59:07 +000021586{
Reid Spencera773bd52006-08-04 18:18:08 +000021587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021588 test -n "$tmp" && test -d "$tmp"
21589} ||
21590{
Reid Spencera773bd52006-08-04 18:18:08 +000021591 tmp=./conf$$-$RANDOM
21592 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021593} ||
21594{
21595 echo "$me: cannot create a temporary directory in ." >&2
21596 { (exit 1); exit 1; }
21597}
John Criswell7a73b802003-06-30 21:59:07 +000021598
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021599#
21600# Set up the sed scripts for CONFIG_FILES section.
21601#
21602
21603# No need to generate the scripts if there are no CONFIG_FILES.
21604# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021605if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021606
21607_ACEOF
21608
Reid Spencera773bd52006-08-04 18:18:08 +000021609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021610
Reid Spencera773bd52006-08-04 18:18:08 +000021611ac_delim='%!_!# '
21612for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021613 cat >conf$$subs.sed <<_ACEOF
21614SHELL!$SHELL$ac_delim
21615PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21616PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21617PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21618PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21619PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21620PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21621exec_prefix!$exec_prefix$ac_delim
21622prefix!$prefix$ac_delim
21623program_transform_name!$program_transform_name$ac_delim
21624bindir!$bindir$ac_delim
21625sbindir!$sbindir$ac_delim
21626libexecdir!$libexecdir$ac_delim
21627datarootdir!$datarootdir$ac_delim
21628datadir!$datadir$ac_delim
21629sysconfdir!$sysconfdir$ac_delim
21630sharedstatedir!$sharedstatedir$ac_delim
21631localstatedir!$localstatedir$ac_delim
21632includedir!$includedir$ac_delim
21633oldincludedir!$oldincludedir$ac_delim
21634docdir!$docdir$ac_delim
21635infodir!$infodir$ac_delim
21636htmldir!$htmldir$ac_delim
21637dvidir!$dvidir$ac_delim
21638pdfdir!$pdfdir$ac_delim
21639psdir!$psdir$ac_delim
21640libdir!$libdir$ac_delim
21641localedir!$localedir$ac_delim
21642mandir!$mandir$ac_delim
21643DEFS!$DEFS$ac_delim
21644ECHO_C!$ECHO_C$ac_delim
21645ECHO_N!$ECHO_N$ac_delim
21646ECHO_T!$ECHO_T$ac_delim
21647LIBS!$LIBS$ac_delim
21648build_alias!$build_alias$ac_delim
21649host_alias!$host_alias$ac_delim
21650target_alias!$target_alias$ac_delim
21651LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21652subdirs!$subdirs$ac_delim
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021653ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21654LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021655build!$build$ac_delim
21656build_cpu!$build_cpu$ac_delim
21657build_vendor!$build_vendor$ac_delim
21658build_os!$build_os$ac_delim
21659host!$host$ac_delim
21660host_cpu!$host_cpu$ac_delim
21661host_vendor!$host_vendor$ac_delim
21662host_os!$host_os$ac_delim
21663target!$target$ac_delim
21664target_cpu!$target_cpu$ac_delim
21665target_vendor!$target_vendor$ac_delim
21666target_os!$target_os$ac_delim
21667OS!$OS$ac_delim
21668HOST_OS!$HOST_OS$ac_delim
21669TARGET_OS!$TARGET_OS$ac_delim
21670LINKALL!$LINKALL$ac_delim
21671NOLINKALL!$NOLINKALL$ac_delim
21672LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21673LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21674ARCH!$ARCH$ac_delim
21675ENDIAN!$ENDIAN$ac_delim
21676CC!$CC$ac_delim
21677CFLAGS!$CFLAGS$ac_delim
21678LDFLAGS!$LDFLAGS$ac_delim
21679CPPFLAGS!$CPPFLAGS$ac_delim
21680ac_ct_CC!$ac_ct_CC$ac_delim
21681EXEEXT!$EXEEXT$ac_delim
21682OBJEXT!$OBJEXT$ac_delim
21683CPP!$CPP$ac_delim
21684GREP!$GREP$ac_delim
21685EGREP!$EGREP$ac_delim
21686LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21687BUILD_CC!$BUILD_CC$ac_delim
21688BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21689BUILD_CXX!$BUILD_CXX$ac_delim
21690CVSBUILD!$CVSBUILD$ac_delim
21691ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21692ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21693DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21694ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21695EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21696DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21697DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21698JIT!$JIT$ac_delim
21699TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21700ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21701ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21702ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021703ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021704ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021705TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21706LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21707LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21708LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21709LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21710ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021713 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021714 break
21715 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021716 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21717echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21718 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021719 else
21720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021721 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021722done
21723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021724ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21725if test -n "$ac_eof"; then
21726 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21727 ac_eof=`expr $ac_eof + 1`
21728fi
21729
21730cat >>$CONFIG_STATUS <<_ACEOF
21731cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21732/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021733_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021734sed '
21735s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21736s/^/s,@/; s/!/@,|#_!!_#|/
21737:n
21738t n
21739s/'"$ac_delim"'$/,g/; t
21740s/$/\\/; p
21741N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21742' >>$CONFIG_STATUS <conf$$subs.sed
21743rm -f conf$$subs.sed
21744cat >>$CONFIG_STATUS <<_ACEOF
21745CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021746_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021747
21748
21749ac_delim='%!_!# '
21750for ac_last_try in false false false false false :; do
21751 cat >conf$$subs.sed <<_ACEOF
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021752CLANGPATH!$CLANGPATH$ac_delim
21753CLANGXXPATH!$CLANGXXPATH$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021754ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021755OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021756EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21757BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021758CXX!$CXX$ac_delim
21759CXXFLAGS!$CXXFLAGS$ac_delim
21760ac_ct_CXX!$ac_ct_CXX$ac_delim
21761NM!$NM$ac_delim
21762ifGNUmake!$ifGNUmake$ac_delim
21763LN_S!$LN_S$ac_delim
21764CMP!$CMP$ac_delim
21765CP!$CP$ac_delim
21766DATE!$DATE$ac_delim
21767FIND!$FIND$ac_delim
21768MKDIR!$MKDIR$ac_delim
21769MV!$MV$ac_delim
21770RANLIB!$RANLIB$ac_delim
21771AR!$AR$ac_delim
21772RM!$RM$ac_delim
21773SED!$SED$ac_delim
21774TAR!$TAR$ac_delim
21775BINPWD!$BINPWD$ac_delim
21776GRAPHVIZ!$GRAPHVIZ$ac_delim
21777DOT!$DOT$ac_delim
21778FDP!$FDP$ac_delim
21779NEATO!$NEATO$ac_delim
21780TWOPI!$TWOPI$ac_delim
21781CIRCO!$CIRCO$ac_delim
21782GV!$GV$ac_delim
21783DOTTY!$DOTTY$ac_delim
Dan Gohman48fd5a72010-09-27 16:28:34 +000021784XDOT_PY!$XDOT_PY$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785PERL!$PERL$ac_delim
21786HAVE_PERL!$HAVE_PERL$ac_delim
21787INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21788INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21789INSTALL_DATA!$INSTALL_DATA$ac_delim
21790BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021791CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021792DOXYGEN!$DOXYGEN$ac_delim
21793GROFF!$GROFF$ac_delim
21794GZIP!$GZIP$ac_delim
21795POD2HTML!$POD2HTML$ac_delim
21796POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021797PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021798RUNTEST!$RUNTEST$ac_delim
21799TCLSH!$TCLSH$ac_delim
21800ZIP!$ZIP$ac_delim
21801OCAMLC!$OCAMLC$ac_delim
21802OCAMLOPT!$OCAMLOPT$ac_delim
21803OCAMLDEP!$OCAMLDEP$ac_delim
21804OCAMLDOC!$OCAMLDOC$ac_delim
21805GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021806HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021807INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21808INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21809CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21810CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21811LIBADD_DL!$LIBADD_DL$ac_delim
21812LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21813LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21814LLVMGCC!$LLVMGCC$ac_delim
21815LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021816LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021817NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21818NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21819USE_UDIS86!$USE_UDIS86$ac_delim
21820USE_OPROFILE!$USE_OPROFILE$ac_delim
21821HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21822HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21823MMAP_FILE!$MMAP_FILE$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021824LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825LLVMCC1!$LLVMCC1$ac_delim
21826LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21827LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021828LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Tobias Grossera84b5672010-11-10 16:31:34 +000021829LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21830LLVMGCC_DISABLEOPT_FLAGS!$LLVMGCC_DISABLEOPT_FLAGS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021831SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021832SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021833LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21834LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21835LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21836LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21837LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21838LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21839LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21840LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21841LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21842LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21843BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21844ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21845OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21846ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21847RPATH!$RPATH$ac_delim
21848RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021849_ACEOF
21850
Tobias Grossera84b5672010-11-10 16:31:34 +000021851 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021852 break
21853 elif $ac_last_try; then
21854 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21855echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21856 { (exit 1); exit 1; }; }
21857 else
21858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21859 fi
21860done
21861
21862ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21863if test -n "$ac_eof"; then
21864 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21865 ac_eof=`expr $ac_eof + 1`
21866fi
21867
21868cat >>$CONFIG_STATUS <<_ACEOF
21869cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
Tobias Grosserbaaadb22010-10-30 00:54:26 +000021870/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021871_ACEOF
21872sed '
21873s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21874s/^/s,@/; s/!/@,|#_!!_#|/
21875:n
21876t n
21877s/'"$ac_delim"'$/,g/; t
21878s/$/\\/; p
21879N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21880' >>$CONFIG_STATUS <conf$$subs.sed
21881rm -f conf$$subs.sed
21882cat >>$CONFIG_STATUS <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021883CEOF$ac_eof
21884_ACEOF
21885
21886
Tobias Grossera84b5672010-11-10 16:31:34 +000021887ac_delim='%!_!# '
21888for ac_last_try in false false false false false :; do
21889 cat >conf$$subs.sed <<_ACEOF
21890LIBOBJS!$LIBOBJS$ac_delim
21891LTLIBOBJS!$LTLIBOBJS$ac_delim
21892_ACEOF
21893
21894 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
21895 break
21896 elif $ac_last_try; then
21897 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21898echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21899 { (exit 1); exit 1; }; }
21900 else
21901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21902 fi
21903done
21904
21905ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21906if test -n "$ac_eof"; then
21907 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21908 ac_eof=`expr $ac_eof + 1`
21909fi
21910
21911cat >>$CONFIG_STATUS <<_ACEOF
21912cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
21913/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21914_ACEOF
21915sed '
21916s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21917s/^/s,@/; s/!/@,|#_!!_#|/
21918:n
21919t n
21920s/'"$ac_delim"'$/,g/; t
21921s/$/\\/; p
21922N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21923' >>$CONFIG_STATUS <conf$$subs.sed
21924rm -f conf$$subs.sed
21925cat >>$CONFIG_STATUS <<_ACEOF
21926:end
21927s/|#_!!_#|//g
21928CEOF$ac_eof
21929_ACEOF
21930
21931
Reid Spencera773bd52006-08-04 18:18:08 +000021932# VPATH may cause trouble with some makes, so we remove $(srcdir),
21933# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21934# trailing colons and then remove the whole line if VPATH becomes empty
21935# (actually we leave an empty line to preserve line numbers).
21936if test "x$srcdir" = x.; then
21937 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21938s/:*\$(srcdir):*/:/
21939s/:*\${srcdir}:*/:/
21940s/:*@srcdir@:*/:/
21941s/^\([^=]*=[ ]*\):*/\1/
21942s/:*$//
21943s/^[^=]*=[ ]*$//
21944}'
21945fi
21946
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021947cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021948fi # test -n "$CONFIG_FILES"
21949
Reid Spencera773bd52006-08-04 18:18:08 +000021950
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021951for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021952do
21953 case $ac_tag in
21954 :[FHLC]) ac_mode=$ac_tag; continue;;
21955 esac
21956 case $ac_mode$ac_tag in
21957 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021958 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21959echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21960 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021961 :[FH]-) ac_tag=-:-;;
21962 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21963 esac
21964 ac_save_IFS=$IFS
21965 IFS=:
21966 set x $ac_tag
21967 IFS=$ac_save_IFS
21968 shift
21969 ac_file=$1
21970 shift
21971
21972 case $ac_mode in
21973 :L) ac_source=$1;;
21974 :[FH])
21975 ac_file_inputs=
21976 for ac_f
21977 do
21978 case $ac_f in
21979 -) ac_f="$tmp/stdin";;
21980 *) # Look for the file first in the build tree, then in the source tree
21981 # (if the path is not absolute). The absolute path cannot be DOS-style,
21982 # because $ac_f cannot contain `:'.
21983 test -f "$ac_f" ||
21984 case $ac_f in
21985 [\\/$]*) false;;
21986 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21987 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021988 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21989echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21990 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021991 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021992 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021993 done
21994
21995 # Let's still pretend it is `configure' which instantiates (i.e., don't
21996 # use $as_me), people would be surprised to read:
21997 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021998 configure_input="Generated from "`IFS=:
21999 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000022000 if test x"$ac_file" != x-; then
22001 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022002 { echo "$as_me:$LINENO: creating $ac_file" >&5
22003echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022004 fi
22005
22006 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022007 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000022008 esac
22009 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022010 esac
22011
Reid Spencera773bd52006-08-04 18:18:08 +000022012 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000022013$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022014 X"$ac_file" : 'X\(//\)[^/]' \| \
22015 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000022016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022017echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000022018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22019 s//\1/
22020 q
22021 }
22022 /^X\(\/\/\)[^/].*/{
22023 s//\1/
22024 q
22025 }
22026 /^X\(\/\/\)$/{
22027 s//\1/
22028 q
22029 }
22030 /^X\(\/\).*/{
22031 s//\1/
22032 q
22033 }
22034 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022035 { as_dir="$ac_dir"
22036 case $as_dir in #(
22037 -*) as_dir=./$as_dir;;
22038 esac
22039 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22040 as_dirs=
22041 while :; do
22042 case $as_dir in #(
22043 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22044 *) as_qdir=$as_dir;;
22045 esac
22046 as_dirs="'$as_qdir' $as_dirs"
22047 as_dir=`$as_dirname -- "$as_dir" ||
22048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22049 X"$as_dir" : 'X\(//\)[^/]' \| \
22050 X"$as_dir" : 'X\(//\)$' \| \
22051 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22052echo X"$as_dir" |
22053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22054 s//\1/
22055 q
22056 }
22057 /^X\(\/\/\)[^/].*/{
22058 s//\1/
22059 q
22060 }
22061 /^X\(\/\/\)$/{
22062 s//\1/
22063 q
22064 }
22065 /^X\(\/\).*/{
22066 s//\1/
22067 q
22068 }
22069 s/.*/./; q'`
22070 test -d "$as_dir" && break
22071 done
22072 test -z "$as_dirs" || eval "mkdir $as_dirs"
22073 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22074echo "$as_me: error: cannot create directory $as_dir" >&2;}
22075 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000022076 ac_builddir=.
22077
Reid Spencera773bd52006-08-04 18:18:08 +000022078case "$ac_dir" in
22079.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22080*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022082 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022083 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022084 case $ac_top_builddir_sub in
22085 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22086 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22087 esac ;;
22088esac
22089ac_abs_top_builddir=$ac_pwd
22090ac_abs_builddir=$ac_pwd$ac_dir_suffix
22091# for backward compatibility:
22092ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000022093
22094case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022095 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000022096 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022097 ac_top_srcdir=$ac_top_builddir_sub
22098 ac_abs_top_srcdir=$ac_pwd ;;
22099 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000022100 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022101 ac_top_srcdir=$srcdir
22102 ac_abs_top_srcdir=$srcdir ;;
22103 *) # Relative name.
22104 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22105 ac_top_srcdir=$ac_top_build_prefix$srcdir
22106 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000022107esac
Reid Spencera773bd52006-08-04 18:18:08 +000022108ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000022109
John Criswell7a73b802003-06-30 21:59:07 +000022110
Reid Spencera773bd52006-08-04 18:18:08 +000022111 case $ac_mode in
22112 :F)
22113 #
22114 # CONFIG_FILE
22115 #
John Criswell7a73b802003-06-30 21:59:07 +000022116
22117 case $INSTALL in
22118 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022119 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000022120 esac
John Criswell7a73b802003-06-30 21:59:07 +000022121_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022122
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022123cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022124# If the template does not know about datarootdir, expand it.
22125# FIXME: This hack should be removed a few years after 2.60.
22126ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022127
22128case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000022129 p
22130 q
22131}
22132/@datadir@/p
22133/@docdir@/p
22134/@infodir@/p
22135/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022136/@mandir@/p
22137' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000022138*datarootdir*) ac_datarootdir_seen=yes;;
22139*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022140 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22141echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000022142_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022143cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000022144 ac_datarootdir_hack='
22145 s&@datadir@&$datadir&g
22146 s&@docdir@&$docdir&g
22147 s&@infodir@&$infodir&g
22148 s&@localedir@&$localedir&g
22149 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022150 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022151esac
22152_ACEOF
22153
22154# Neutralize VPATH when `$srcdir' = `.'.
22155# Shell code in configure.ac might set extrasub.
22156# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022157cat >>$CONFIG_STATUS <<_ACEOF
22158 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000022159$extrasub
22160_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022162:t
22163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022164s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000022165s&@top_builddir@&$ac_top_builddir_sub&;t t
22166s&@srcdir@&$ac_srcdir&;t t
22167s&@abs_srcdir@&$ac_abs_srcdir&;t t
22168s&@top_srcdir@&$ac_top_srcdir&;t t
22169s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22170s&@builddir@&$ac_builddir&;t t
22171s&@abs_builddir@&$ac_abs_builddir&;t t
22172s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22173s&@INSTALL@&$ac_INSTALL&;t t
22174$ac_datarootdir_hack
Tobias Grossera84b5672010-11-10 16:31:34 +000022175" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000022176
Reid Spencera773bd52006-08-04 18:18:08 +000022177test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22178 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22179 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022180 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022181which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022182echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000022183which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022184
Reid Spencera773bd52006-08-04 18:18:08 +000022185 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000022186 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022187 -) cat "$tmp/out"; rm -f "$tmp/out";;
22188 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22189 esac
Reid Spencera773bd52006-08-04 18:18:08 +000022190 ;;
22191 :H)
22192 #
22193 # CONFIG_HEADER
22194 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022195_ACEOF
22196
22197# Transform confdefs.h into a sed script `conftest.defines', that
22198# substitutes the proper values into config.h.in to produce config.h.
22199rm -f conftest.defines conftest.tail
22200# First, append a space to every undef/define line, to ease matching.
22201echo 's/$/ /' >conftest.defines
22202# Then, protect against being on the right side of a sed subst, or in
22203# an unquoted here document, in config.status. If some macros were
22204# called several times there might be several #defines for the same
22205# symbol, which is useless. But do not sort them, since the last
22206# AC_DEFINE must be honored.
22207ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22208# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22209# NAME is the cpp macro being defined, VALUE is the value it is being given.
22210# PARAMS is the parameter list in the macro definition--in most cases, it's
22211# just an empty string.
22212ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22213ac_dB='\\)[ (].*,\\1define\\2'
22214ac_dC=' '
22215ac_dD=' ,'
22216
22217uniq confdefs.h |
22218 sed -n '
22219 t rset
22220 :rset
22221 s/^[ ]*#[ ]*define[ ][ ]*//
22222 t ok
22223 d
22224 :ok
22225 s/[\\&,]/\\&/g
22226 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22227 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22228 ' >>conftest.defines
22229
22230# Remove the space that was appended to ease matching.
22231# Then replace #undef with comments. This is necessary, for
22232# example, in the case of _POSIX_SOURCE, which is predefined and required
22233# on some systems where configure will not decide to define it.
22234# (The regexp can be short, since the line contains either #define or #undef.)
22235echo 's/ $//
22236s,^[ #]*u.*,/* & */,' >>conftest.defines
22237
22238# Break up conftest.defines:
22239ac_max_sed_lines=50
22240
22241# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22242# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22243# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22244# et cetera.
22245ac_in='$ac_file_inputs'
22246ac_out='"$tmp/out1"'
22247ac_nxt='"$tmp/out2"'
22248
22249while :
22250do
22251 # Write a here document:
22252 cat >>$CONFIG_STATUS <<_ACEOF
22253 # First, check the format of the line:
22254 cat >"\$tmp/defines.sed" <<\\CEOF
22255/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22256/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22257b
22258:def
22259_ACEOF
22260 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22261 echo 'CEOF
22262 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22263 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22264 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22265 grep . conftest.tail >/dev/null || break
22266 rm -f conftest.defines
22267 mv conftest.tail conftest.defines
22268done
22269rm -f conftest.defines conftest.tail
22270
22271echo "ac_result=$ac_in" >>$CONFIG_STATUS
22272cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022273 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022274 echo "/* $configure_input */" >"$tmp/config.h"
22275 cat "$ac_result" >>"$tmp/config.h"
22276 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22277 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22278echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000022279 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022280 rm -f $ac_file
22281 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000022282 fi
22283 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022284 echo "/* $configure_input */"
22285 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000022286 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022287 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000022288 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022290 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22291echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000022292 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000022293 esac
John Criswell7a73b802003-06-30 21:59:07 +000022294
Reid Spencera773bd52006-08-04 18:18:08 +000022295
22296 case $ac_file$ac_mode in
22297 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022298 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022299 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000022300 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022301 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022302 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022303 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022304 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000022305 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022306 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022307 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022308 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022309 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000022310 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000022311 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022312 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022313 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022314 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022315 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022316 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022317 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022318 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022319 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000022320 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000022321 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000022322 ${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 +000022323
22324 esac
22325done # for ac_tag
22326
John Criswell7a73b802003-06-30 21:59:07 +000022327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022328{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000022329_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022330chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000022331ac_clean_files=$ac_clean_files_save
22332
22333
22334# configure is writing to config.log, and then calls config.status.
22335# config.status does its own redirection, appending to config.log.
22336# Unfortunately, on DOS this fails, as config.log is still kept open
22337# by configure, so config.status won't be able to write to it; its
22338# output is simply discarded. So we exec the FD to /dev/null,
22339# effectively closing config.log, so it can be properly (re)opened and
22340# appended to by config.status. When coming back to configure, we
22341# need to make the FD available again.
22342if test "$no_create" != yes; then
22343 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022344 ac_config_status_args=
22345 test "$silent" = yes &&
22346 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000022347 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000022348 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000022349 exec 5>>config.log
22350 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22351 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022352 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000022353fi
22354
John Criswell12399a12003-09-30 15:55:44 +000022355#
22356# CONFIG_SUBDIRS section.
22357#
22358if test "$no_recursion" != yes; then
22359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022360 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022361 ac_sub_configure_args=
22362 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022363 eval "set x $ac_configure_args"
22364 shift
22365 for ac_arg
22366 do
John Criswell12399a12003-09-30 15:55:44 +000022367 if test -n "$ac_prev"; then
22368 ac_prev=
22369 continue
22370 fi
22371 case $ac_arg in
22372 -cache-file | --cache-file | --cache-fil | --cache-fi \
22373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22374 ac_prev=cache_file ;;
22375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22377 | --c=*)
22378 ;;
22379 --config-cache | -C)
22380 ;;
22381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22382 ac_prev=srcdir ;;
22383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22384 ;;
22385 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22386 ac_prev=prefix ;;
22387 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22388 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022389 *)
22390 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022391 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022392 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022393 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022394 esac
22395 done
22396
22397 # Always prepend --prefix to ensure using the same prefix
22398 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022399 ac_arg="--prefix=$prefix"
22400 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022401 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022402 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022403 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022404
22405 ac_popdir=`pwd`
22406 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22407
22408 # Do not complain, so a configure script can configure whichever
22409 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022410 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022411
Reid Spencera773bd52006-08-04 18:18:08 +000022412 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022413 echo "$as_me:$LINENO: $ac_msg" >&5
22414 echo "$ac_msg" >&6
22415 { as_dir="$ac_dir"
22416 case $as_dir in #(
22417 -*) as_dir=./$as_dir;;
22418 esac
22419 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22420 as_dirs=
22421 while :; do
22422 case $as_dir in #(
22423 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22424 *) as_qdir=$as_dir;;
22425 esac
22426 as_dirs="'$as_qdir' $as_dirs"
22427 as_dir=`$as_dirname -- "$as_dir" ||
22428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22429 X"$as_dir" : 'X\(//\)[^/]' \| \
22430 X"$as_dir" : 'X\(//\)$' \| \
22431 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22432echo X"$as_dir" |
22433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22434 s//\1/
22435 q
22436 }
22437 /^X\(\/\/\)[^/].*/{
22438 s//\1/
22439 q
22440 }
22441 /^X\(\/\/\)$/{
22442 s//\1/
22443 q
22444 }
22445 /^X\(\/\).*/{
22446 s//\1/
22447 q
22448 }
22449 s/.*/./; q'`
22450 test -d "$as_dir" && break
22451 done
22452 test -z "$as_dirs" || eval "mkdir $as_dirs"
22453 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22454echo "$as_me: error: cannot create directory $as_dir" >&2;}
22455 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022456 ac_builddir=.
22457
Reid Spencera773bd52006-08-04 18:18:08 +000022458case "$ac_dir" in
22459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22460*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022461 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022462 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022463 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022464 case $ac_top_builddir_sub in
22465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22467 esac ;;
22468esac
22469ac_abs_top_builddir=$ac_pwd
22470ac_abs_builddir=$ac_pwd$ac_dir_suffix
22471# for backward compatibility:
22472ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022473
22474case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022475 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022476 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022477 ac_top_srcdir=$ac_top_builddir_sub
22478 ac_abs_top_srcdir=$ac_pwd ;;
22479 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022480 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022481 ac_top_srcdir=$srcdir
22482 ac_abs_top_srcdir=$srcdir ;;
22483 *) # Relative name.
22484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22485 ac_top_srcdir=$ac_top_build_prefix$srcdir
22486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022487esac
Reid Spencera773bd52006-08-04 18:18:08 +000022488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022489
22490
Reid Spencera773bd52006-08-04 18:18:08 +000022491 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022492
22493 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022494 if test -f "$ac_srcdir/configure.gnu"; then
22495 ac_sub_configure=$ac_srcdir/configure.gnu
22496 elif test -f "$ac_srcdir/configure"; then
22497 ac_sub_configure=$ac_srcdir/configure
22498 elif test -f "$ac_srcdir/configure.in"; then
22499 # This should be Cygnus configure.
22500 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022501 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022502 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22503echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022504 ac_sub_configure=
22505 fi
22506
22507 # The recursion is here.
22508 if test -n "$ac_sub_configure"; then
22509 # Make the cache file name correct relative to the subdirectory.
22510 case $cache_file in
22511 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022512 *) # Relative name.
22513 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022514 esac
22515
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022516 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22517echo "$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 +000022518 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022519 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22520 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022521 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22522echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22523 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022524 fi
22525
Reid Spencera773bd52006-08-04 18:18:08 +000022526 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022527 done
22528fi
22529