blob: 0104569448bc9b0d35a1ab05b05c290998d1bdcb [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
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
Daniel Dunbardd464df2010-05-10 20:11:56 +0000693ENABLE_TIMESTAMPS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000694TARGETS_TO_BUILD
695LLVM_ENUM_TARGETS
696LLVM_ENUM_ASM_PRINTERS
697LLVM_ENUM_ASM_PARSERS
698LLVM_ENUM_DISASSEMBLERS
699ENABLE_CBE_PRINTF_A
Daniel Dunbar98515672010-02-23 10:00:49 +0000700CLANGPATH
701CLANGXXPATH
702ENABLE_BUILT_CLANG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000703OPTIMIZE_OPTION
704EXTRA_OPTIONS
705BINUTILS_INCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000706CXX
707CXXFLAGS
708ac_ct_CXX
709NM
710ifGNUmake
711LN_S
712CMP
713CP
714DATE
715FIND
716MKDIR
717MV
718RANLIB
719AR
720RM
721SED
722TAR
723BINPWD
724GRAPHVIZ
725DOT
726FDP
727NEATO
728TWOPI
729CIRCO
730GV
731DOTTY
732PERL
733HAVE_PERL
734INSTALL_PROGRAM
735INSTALL_SCRIPT
736INSTALL_DATA
737BZIP2
mike-m68cb3192010-05-06 23:45:43 +0000738CAT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000739DOXYGEN
740GROFF
741GZIP
742POD2HTML
743POD2MAN
mike-m68cb3192010-05-06 23:45:43 +0000744PDFROFF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000745RUNTEST
746TCLSH
747ZIP
748OCAMLC
749OCAMLOPT
750OCAMLDEP
751OCAMLDOC
752GAS
Dan Gohmanda612d62010-06-01 14:56:56 +0000753HAVE_LINK_VERSION_SCRIPT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000754INSTALL_LTDL_TRUE
755INSTALL_LTDL_FALSE
756CONVENIENCE_LTDL_TRUE
757CONVENIENCE_LTDL_FALSE
758LIBADD_DL
759LLVMGCCCOMMAND
760LLVMGXXCOMMAND
761LLVMGCC
762LLVMGXX
Daniel Dunbar98515672010-02-23 10:00:49 +0000763LLVMCC_OPTION
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000764NO_VARIADIC_MACROS
765NO_MISSING_FIELD_INITIALIZERS
766USE_UDIS86
767USE_OPROFILE
768HAVE_PTHREAD
769HUGE_VAL_SANITY
770MMAP_FILE
771LLVMCC1
772LLVMCC1PLUS
773LLVMGCCDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000774LLVMGCC_LANGS
775SHLIBEXT
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000776SHLIBPATH_VAR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000777LLVM_PREFIX
778LLVM_BINDIR
779LLVM_LIBDIR
780LLVM_DATADIR
781LLVM_DOCSDIR
782LLVM_ETCDIR
783LLVM_INCLUDEDIR
784LLVM_INFODIR
785LLVM_MANDIR
786LLVM_CONFIGTIME
787BINDINGS_TO_BUILD
788ALL_BINDINGS
789OCAML_LIBDIR
790ENABLE_VISIBILITY_INLINES_HIDDEN
791RPATH
792RDYNAMIC
793LIBOBJS
794LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000795ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000796 ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
Torok Edwin871384f2010-01-26 08:50:50 +0000806CCC'
John Criswell0157f502010-03-19 21:31:39 +0000807ac_subdirs_all='projects/llvm-gcc
808projects/test-suite
809projects/llvm-test
810projects/poolalloc
811projects/llvm-poolalloc
812projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000813projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000814projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000815projects/llvm-reopt
Reid Spencera773bd52006-08-04 18:18:08 +0000816projects/llvm-java
817projects/llvm-tv
John Criswell7def2932010-02-25 22:57:19 +0000818projects/safecode
Reid Spencera773bd52006-08-04 18:18:08 +0000819projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000820
821# Initialize some variables set by options.
822ac_init_help=
823ac_init_version=false
824# The variables have the same names as the options, with
825# dashes changed to underlines.
826cache_file=/dev/null
827exec_prefix=NONE
828no_create=
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
837verbose=
838x_includes=NONE
839x_libraries=NONE
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000846# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000855includedir='${prefix}/include'
856oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000857docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000866
867ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000868ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000869for ac_option
870do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000873 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +0000874 ac_prev=
875 continue
876 fi
877
Reid Spencera773bd52006-08-04 18:18:08 +0000878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
John Criswell7a73b802003-06-30 21:59:07 +0000882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
Reid Spencera773bd52006-08-04 18:18:08 +0000885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +0000888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
Reid Spencera773bd52006-08-04 18:18:08 +0000909 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +0000910 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +0000912 datadir=$ac_optarg ;;
913
Reid Spencera773bd52006-08-04 18:18:08 +0000914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
John Criswell7a73b802003-06-30 21:59:07 +0000921 -disable-* | --disable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000923 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
Reid Spencera773bd52006-08-04 18:18:08 +0000929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000939
940 -enable-* | --enable-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +0000942 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +0000948
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
957
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
960 with_gas=yes ;;
961
962 -help | --help | --hel | --he | -h)
963 ac_init_help=long ;;
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
968
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
973
Reid Spencera773bd52006-08-04 18:18:08 +0000974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
975 ac_prev=htmldir ;;
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
977 | --ht=*)
978 htmldir=$ac_optarg ;;
979
John Criswell7a73b802003-06-30 21:59:07 +0000980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
986
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
988 ac_prev=infodir ;;
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
991
992 -libdir | --libdir | --libdi | --libd)
993 ac_prev=libdir ;;
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 libdir=$ac_optarg ;;
996
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1008
John Criswell7a73b802003-06-30 21:59:07 +00001009 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001010 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001014 localstatedir=$ac_optarg ;;
1015
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1017 ac_prev=mandir ;;
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1020
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1023 with_fp=no ;;
1024
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1027 no_create=yes ;;
1028
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 no_recursion=yes ;;
1032
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1041
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1043 ac_prev=prefix ;;
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1046
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1053
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1060
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1077
Reid Spencera773bd52006-08-04 18:18:08 +00001078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1079 ac_prev=pdfdir ;;
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1082
1083 -psdir | --psdir | --psdi | --psd | --ps)
1084 ac_prev=psdir ;;
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 psdir=$ac_optarg ;;
1087
John Criswell7a73b802003-06-30 21:59:07 +00001088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1090 silent=yes ;;
1091
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093 ac_prev=sbindir ;;
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095 | --sbi=* | --sb=*)
1096 sbindir=$ac_optarg ;;
1097
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1101 | --sha | --sh)
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106 | --sha=* | --sh=*)
1107 sharedstatedir=$ac_optarg ;;
1108
1109 -site | --site | --sit)
1110 ac_prev=site ;;
1111 -site=* | --site=* | --sit=*)
1112 site=$ac_optarg ;;
1113
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115 ac_prev=srcdir ;;
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1118
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1125
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1130
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 verbose=yes ;;
1133
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1136
1137 -with-* | --with-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001139 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 -without-* | --without-*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
John Criswell7a73b802003-06-30 21:59:07 +00001148 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001154
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1158
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1165
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1172
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001176 ;;
1177
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001184 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001185 export $ac_envvar ;;
1186
1187 *)
1188 # FIXME: should be removed in autoconf 3.0.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 ;;
1194
1195 esac
1196done
1197
1198if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001202fi
1203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001204# Be sure to have absolute directory names.
Reid Spencera773bd52006-08-04 18:18:08 +00001205for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001209do
Reid Spencera773bd52006-08-04 18:18:08 +00001210 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001211 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001214 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001217done
1218
1219# There might be people who depend on the old broken behavior: `$host'
1220# used to hold the argument of --host etc.
1221# FIXME: To remove some day.
1222build=$build_alias
1223host=$host_alias
1224target=$target_alias
1225
1226# FIXME: To remove some day.
1227if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
John Criswell7a73b802003-06-30 21:59:07 +00001231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1233 cross_compiling=yes
1234 fi
1235fi
1236
1237ac_tool_prefix=
1238test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239
1240test "$silent" = yes && exec 6>/dev/null
1241
1242
Reid Spencera773bd52006-08-04 18:18:08 +00001243ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001251
1252
John Criswell7a73b802003-06-30 21:59:07 +00001253# Find the source files, if location was not specified.
1254if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001256 # Try the directory containing this script, then the parent directory.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001257 ac_confdir=`$as_dirname -- "$0" ||
1258$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1262echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\/\)[^/].*/{
1268 s//\1/
1269 q
1270 }
1271 /^X\(\/\/\)$/{
1272 s//\1/
1273 q
1274 }
1275 /^X\(\/\).*/{
1276 s//\1/
1277 q
1278 }
1279 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001280 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001281 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001282 srcdir=..
1283 fi
1284else
1285 ac_srcdir_defaulted=no
1286fi
Reid Spencera773bd52006-08-04 18:18:08 +00001287if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001291fi
Reid Spencera773bd52006-08-04 18:18:08 +00001292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1293ac_abs_confdir=`(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001296 pwd)`
1297# When building in place, set srcdir=.
1298if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1300fi
1301# Remove unnecessary trailing slashes from srcdir.
1302# Double slashes in file names in object file debugging info
1303# mess up M-x gdb in Emacs.
1304case $srcdir in
1305*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306esac
1307for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312done
John Criswell7a73b802003-06-30 21:59:07 +00001313
1314#
1315# Report the --help message.
1316#
1317if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001321\`configure' configures llvm 2.9svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001322
1323Usage: $0 [OPTION]... [VAR=VALUE]...
1324
1325To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326VAR=VALUE. See below for descriptions of some of the useful variables.
1327
1328Defaults for the options are specified in brackets.
1329
1330Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
John Criswell7a73b802003-06-30 21:59:07 +00001341Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001343 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001345 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001346
1347By default, \`make install' will install all the files in
1348\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350for instance \`--prefix=\$HOME'.
1351
1352For better control, use the options below.
1353
1354Fine tuning of the installation directories:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001374_ACEOF
1375
1376 cat <<\_ACEOF
1377
1378System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1382_ACEOF
1383fi
1384
1385if test -n "$ac_init_help"; then
1386 case $ac_init_help in
Eric Christopherb26697c2010-09-06 18:47:10 +00001387 short | recursive ) echo "Configuration of llvm 2.9svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001388 esac
1389 cat <<\_ACEOF
1390
1391Optional Features:
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1397 YES)
David Greenea696d242007-06-28 19:36:08 +00001398 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001399 Compile with expensive debug checks enabled (default
1400 is NO)
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1402 NO)
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00001403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001405 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001406 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001407 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001408 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001409 is YES)
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00001410 --enable-shared Build a shared library and link tools against it
1411 (default is NO)
Daniel Dunbardd464df2010-05-10 20:11:56 +00001412 --enable-timestamps Enable embedding timestamp information in build
1413 (default is YES)
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00001414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00001417 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1418 and cpp (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1420 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00001423 --enable-libffi Check for the presence of libffi (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001424 --enable-ltdl-install install libltdl
John Criswell7a73b802003-06-30 21:59:07 +00001425
1426Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1430 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001431 --with-llvmgcc Specify location of llvm-gcc driver (default
1432 searches PATH)
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1434 searches PATH)
Daniel Dunbar98515672010-02-23 10:00:49 +00001435 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang)
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 (default=check)
Daniel Dunbar1fce9482009-11-04 04:32:50 +00001439 --with-optimize-option Select the compiler options to use for optimized
1440 builds
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001441 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1443 is stdlib)
Rafael Espindola7f9ec912009-11-12 05:46:09 +00001444 --with-c-include-dirs Colon separated list of directories clang will
1445 search for headers
Rafael Espindola420d23c2009-11-16 19:46:55 +00001446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001454 --with-tclinclude directory where tcl headers are
Daniel Dunbar98515672010-02-23 10:00:49 +00001455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001457 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001462 CC C compiler command
1463 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
Reid Spencera773bd52006-08-04 18:18:08 +00001467 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001468 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <llvmbugs@cs.uiuc.edu>.
1476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001477ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001483 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001484 ac_builddir=.
1485
Reid Spencera773bd52006-08-04 18:18:08 +00001486case "$ac_dir" in
1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001490 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496esac
1497ac_abs_top_builddir=$ac_pwd
1498ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499# for backward compatibility:
1500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001501
1502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001515esac
Reid Spencera773bd52006-08-04 18:18:08 +00001516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001517
Reid Spencera773bd52006-08-04 18:18:08 +00001518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001526 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001530 done
1531fi
1532
Reid Spencera773bd52006-08-04 18:18:08 +00001533test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001534if $ac_init_version; then
1535 cat <<\_ACEOF
Eric Christopherb26697c2010-09-06 18:47:10 +00001536llvm configure 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
John Criswell5a129712010-03-19 21:04:16 +00001544Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Eric Christopherb26697c2010-09-06 18:47:10 +00001552It was created by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
John Criswell5a129712010-03-19 21:04:16 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
John Criswell0157f502010-03-19 21:31:39 +00001954
1955
1956if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1958
1959fi
1960
1961if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1963
1964fi
1965
1966if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1968
1969fi
1970
1971if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1978
1979fi
1980
John Criswell33a911a2003-11-25 20:36:46 +00001981for i in `ls ${srcdir}/projects`
1982do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001985 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001986 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001987 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00001988 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001990 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001992;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001993 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001994 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00001996 ;;
John Criswell7def2932010-02-25 22:57:19 +00001997 safecode) subdirs="$subdirs projects/safecode"
1998 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00001999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002000 ;;
John Criswell52c02862010-03-25 13:59:09 +00002001 llvm-gcc) ;;
2002 test-suite) ;;
2003 llvm-test) ;;
2004 poolalloc) ;;
2005 llvm-poolalloc) ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002006 *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002009 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002010 esac
John Criswell33a911a2003-11-25 20:36:46 +00002011 fi
2012done
John Criswell559a6c12003-09-30 16:31:48 +00002013
John Criswell7a73b802003-06-30 21:59:07 +00002014
2015# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002016$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002020
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002021{ echo "$as_me:$LINENO: checking build system type" >&5
2022echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002025else
Reid Spencera773bd52006-08-04 18:18:08 +00002026 ac_build_alias=$build_alias
2027test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029test "x$ac_build_alias" = x &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002033ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002037
2038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002039{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040echo "${ECHO_T}$ac_cv_build" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002041case $ac_cv_build in
2042*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002043*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002046esac
John Criswell7a73b802003-06-30 21:59:07 +00002047build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002048ac_save_IFS=$IFS; IFS='-'
2049set x $ac_cv_build
2050shift
2051build_cpu=$1
2052build_vendor=$2
2053shift; shift
2054# Remember, the first character of IFS is used to create $*,
2055# except with old shells:
2056build_os=$*
2057IFS=$ac_save_IFS
2058case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002059
2060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002061{ echo "$as_me:$LINENO: checking host system type" >&5
2062echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002065else
Reid Spencera773bd52006-08-04 18:18:08 +00002066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2068else
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002073fi
John Criswell7a73b802003-06-30 21:59:07 +00002074
2075fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002076{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077echo "${ECHO_T}$ac_cv_host" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002078case $ac_cv_host in
2079*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002080*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002083esac
John Criswell7a73b802003-06-30 21:59:07 +00002084host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002085ac_save_IFS=$IFS; IFS='-'
2086set x $ac_cv_host
2087shift
2088host_cpu=$1
2089host_vendor=$2
2090shift; shift
2091# Remember, the first character of IFS is used to create $*,
2092# except with old shells:
2093host_os=$*
2094IFS=$ac_save_IFS
2095case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002096
2097
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002098{ echo "$as_me:$LINENO: checking target system type" >&5
2099echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002102else
Reid Spencera773bd52006-08-04 18:18:08 +00002103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2105else
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002110fi
John Criswell7a73b802003-06-30 21:59:07 +00002111
2112fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002113{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114echo "${ECHO_T}$ac_cv_target" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00002115case $ac_cv_target in
2116*-*-*) ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002117*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +00002120esac
John Criswell7a73b802003-06-30 21:59:07 +00002121target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002122ac_save_IFS=$IFS; IFS='-'
2123set x $ac_cv_target
2124shift
2125target_cpu=$1
2126target_vendor=$2
2127shift; shift
2128# Remember, the first character of IFS is used to create $*,
2129# except with old shells:
2130target_os=$*
2131IFS=$ac_save_IFS
2132case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002133
2134
2135# The aliases save the names the user supplied, while $host etc.
2136# will get canonicalized.
2137test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2139 NONENONEs,x,x, &&
2140 program_prefix=${target_alias}-
2141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002142{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002146else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002147 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002148 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002153 *-*-irix*)
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002158 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2163 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002164 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002165 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002168 *-*-minix*)
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002173 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002178 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002183 *-*-netbsd*)
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002188 *-*-dragonfly*)
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002193 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002198 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2203 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2208 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002213 *-*-auroraux*)
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2223 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002228 *-*-haiku*)
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002233 *-unknown-eabi*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2238 *-unknown-elf*)
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002243 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002248esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002249fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002250{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002252
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002253{ echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002257else
2258 case $target in
2259 *-*-aix*)
2260 llvm_cv_target_os_type="AIX" ;;
2261 *-*-irix*)
2262 llvm_cv_target_os_type="IRIX" ;;
2263 *-*-cygwin*)
2264 llvm_cv_target_os_type="Cygwin" ;;
2265 *-*-darwin*)
2266 llvm_cv_target_os_type="Darwin" ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00002267 *-*-minix*)
2268 llvm_cv_target_os_type="Minix" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002269 *-*-freebsd*)
2270 llvm_cv_target_os_type="FreeBSD" ;;
2271 *-*-openbsd*)
2272 llvm_cv_target_os_type="OpenBSD" ;;
2273 *-*-netbsd*)
2274 llvm_cv_target_os_type="NetBSD" ;;
2275 *-*-dragonfly*)
2276 llvm_cv_target_os_type="DragonFly" ;;
2277 *-*-hpux*)
2278 llvm_cv_target_os_type="HP-UX" ;;
2279 *-*-interix*)
2280 llvm_cv_target_os_type="Interix" ;;
2281 *-*-linux*)
2282 llvm_cv_target_os_type="Linux" ;;
2283 *-*-solaris*)
2284 llvm_cv_target_os_type="SunOS" ;;
Edward O'Callaghan2b19d692009-10-14 00:44:50 +00002285 *-*-auroraux*)
2286 llvm_cv_target_os_type="AuroraUX" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002287 *-*-win32*)
2288 llvm_cv_target_os_type="Win32" ;;
2289 *-*-mingw*)
2290 llvm_cv_target_os_type="MingW" ;;
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +00002291 *-*-haiku*)
2292 llvm_cv_target_os_type="Haiku" ;;
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002293 *-unknown-eabi*)
2294 llvm_cv_target_os_type="Freestanding" ;;
2295 *)
2296 llvm_cv_target_os_type="Unknown" ;;
2297esac
2298fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002299{ echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302if test "$llvm_cv_os_type" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
Reid Spencer886e9512004-08-31 01:34:10 +00002306fi
2307
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002309
Anton Korobeynikov0855f102009-08-18 00:40:51 +00002310HOST_OS=$llvm_cv_os_type
2311
2312TARGET_OS=$llvm_cv_target_os_type
2313
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002314
Reid Spencera773bd52006-08-04 18:18:08 +00002315LINKALL=$llvm_cv_link_all_option
2316
2317NOLINKALL=$llvm_cv_no_link_all_option
2318
2319
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320case $llvm_cv_platform_type in
2321 Unix)
2322
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002323cat >>confdefs.h <<\_ACEOF
2324#define LLVM_ON_UNIX 1
2325_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002327 LLVM_ON_UNIX=1
2328
2329 LLVM_ON_WIN32=0
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 ;;
2332 Win32)
2333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002334cat >>confdefs.h <<\_ACEOF
2335#define LLVM_ON_WIN32 1
2336_ACEOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00002337
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002338 LLVM_ON_UNIX=0
2339
2340 LLVM_ON_WIN32=1
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342 ;;
2343esac
2344
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002345{ echo "$as_me:$LINENO: checking target architecture" >&5
2346echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349else
2350 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002351 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002356 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002357 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002358 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002359 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002360 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00002362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00002363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00002364 ptx-*) llvm_cv_target_arch="PTX" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002365 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002366esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002368{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002370
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374fi
John Criswell76595452003-07-01 22:07:39 +00002375
Nick Lewycky83fc4472009-09-29 05:48:51 +00002376# Determine the LLVM native architecture for the target
2377case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381esac
2382
2383ARCH=$llvm_cv_target_arch
2384
2385
2386ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387ac_cpp='$CPP $CPPFLAGS'
2388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002391if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411 break 2
2412 fi
2413done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002414done
Reid Spencera773bd52006-08-04 18:18:08 +00002415IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416
2417fi
2418fi
2419CC=$ac_cv_prog_CC
2420if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002421 { echo "$as_me:$LINENO: result: $CC" >&5
2422echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002424 { echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426fi
2427
Reid Spencera773bd52006-08-04 18:18:08 +00002428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429fi
2430if test -z "$ac_cv_prog_CC"; then
2431 ac_ct_CC=$CC
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438else
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451 break 2
2452 fi
2453done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002454done
Reid Spencera773bd52006-08-04 18:18:08 +00002455IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456
2457fi
2458fi
2459ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002464 { echo "$as_me:$LINENO: result: no" >&5
2465echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466fi
2467
Reid Spencera773bd52006-08-04 18:18:08 +00002468 if test "x$ac_ct_CC" = x; then
2469 CC=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002473{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474whose name does not start with the host triplet. If you think this
2475configuration is useful to you, please write to autoconf@gnu.org." >&5
2476echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477whose name does not start with the host triplet. If you think this
2478configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002479ac_tool_warned=yes ;;
2480esac
2481 CC=$ac_ct_CC
2482 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483else
2484 CC="$ac_cv_prog_CC"
2485fi
2486
2487if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002491{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498else
2499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500for as_dir in $PATH
2501do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508 break 2
2509 fi
2510done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002511done
Reid Spencera773bd52006-08-04 18:18:08 +00002512IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513
2514fi
2515fi
2516CC=$ac_cv_prog_CC
2517if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002518 { echo "$as_me:$LINENO: result: $CC" >&5
2519echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002520else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002521 { echo "$as_me:$LINENO: result: no" >&5
2522echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523fi
2524
Reid Spencera773bd52006-08-04 18:18:08 +00002525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527fi
2528if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535else
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2538else
2539 ac_prog_rejected=no
2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541for as_dir in $PATH
2542do
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2549 continue
2550 fi
2551 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553 break 2
2554 fi
2555done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002556done
Reid Spencera773bd52006-08-04 18:18:08 +00002557IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558
2559if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2562 shift
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2567 shift
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569 fi
2570fi
2571fi
2572fi
2573CC=$ac_cv_prog_CC
2574if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002575 { echo "$as_me:$LINENO: result: $CC" >&5
2576echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002577else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002578 { echo "$as_me:$LINENO: result: no" >&5
2579echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002580fi
2581
Reid Spencera773bd52006-08-04 18:18:08 +00002582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583fi
2584if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002587 do
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002594else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601 IFS=$as_save_IFS
2602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002607 break 2
2608 fi
2609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002610done
Reid Spencera773bd52006-08-04 18:18:08 +00002611IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002612
2613fi
2614fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615CC=$ac_cv_prog_CC
2616if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002617 { echo "$as_me:$LINENO: result: $CC" >&5
2618echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002620 { echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002622fi
2623
Reid Spencera773bd52006-08-04 18:18:08 +00002624
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002626 done
2627fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628if test -z "$CC"; then
2629 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002630 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002631do
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 break 2
2652 fi
2653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002654done
Reid Spencera773bd52006-08-04 18:18:08 +00002655IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002656
2657fi
2658fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002663else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002664 { echo "$as_me:$LINENO: result: no" >&5
2665echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002666fi
2667
Reid Spencera773bd52006-08-04 18:18:08 +00002668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002670done
John Criswell7a73b802003-06-30 21:59:07 +00002671
Reid Spencera773bd52006-08-04 18:18:08 +00002672 if test "x$ac_ct_CC" = x; then
2673 CC=""
2674 else
2675 case $cross_compiling:$ac_tool_warned in
2676yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002677{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678whose name does not start with the host triplet. If you think this
2679configuration is useful to you, please write to autoconf@gnu.org." >&5
2680echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681whose name does not start with the host triplet. If you think this
2682configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002683ac_tool_warned=yes ;;
2684esac
2685 CC=$ac_ct_CC
2686 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002687fi
2688
John Criswell7a73b802003-06-30 21:59:07 +00002689fi
2690
2691
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693See \`config.log' for more details." >&5
2694echo "$as_me: error: no acceptable C compiler found in \$PATH
2695See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697
John Criswell7a73b802003-06-30 21:59:07 +00002698# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002699echo "$as_me:$LINENO: checking for C compiler version" >&5
2700ac_compiler=`set X $ac_compile; echo $2`
2701{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002702case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002708 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711{ (ac_try="$ac_compiler -v >&5"
2712case "(($ac_try" in
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721{ (ac_try="$ac_compiler -V >&5"
2722case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725esac
2726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002731
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002732cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002738
John Criswell7a73b802003-06-30 21:59:07 +00002739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002748ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002749# Try to create an executable without -o first, disregard a.out.
2750# It will help us diagnose broken compilers, and finding out an intuition
2751# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002752{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755#
2756# List of possible output files, starting from the most likely.
2757# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758# only as a last resort. b.out is created by i960 compilers.
2759ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760#
2761# The IRIX 6 linker writes into existing files which may not be
2762# executable, retaining their permissions. Remove them first so a
2763# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002764ac_rmfiles=
2765for ac_file in $ac_files
2766do
2767 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770 esac
2771done
2772rm -f $ac_rmfiles
2773
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002774if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002775case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002780 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002781 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786# in a Makefile. We should not override ac_cv_exeext if it was cached,
2787# so that the user can short-circuit this test for compilers unknown to
2788# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002789for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002790do
2791 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002792 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002794 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002795 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002796 # We found the default executable, but exeext='' is most
2797 # certainly right.
2798 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002799 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002801 then :; else
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 fi
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2808 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002809 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002810 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002811 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002812 esac
2813done
Reid Spencera773bd52006-08-04 18:18:08 +00002814test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
John Criswell7a73b802003-06-30 21:59:07 +00002816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002818sed 's/^/| /' conftest.$ac_ext >&5
2819
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002820{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821See \`config.log' for more details." >&5
2822echo "$as_me: error: C compiler cannot create executables
2823See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002825fi
John Criswell7a73b802003-06-30 21:59:07 +00002826
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002827ac_exeext=$ac_cv_exeext
2828{ echo "$as_me:$LINENO: result: $ac_file" >&5
2829echo "${ECHO_T}$ac_file" >&6; }
2830
2831# Check that the compiler produces executables we can run. If not, either
2832# the compiler is broken, or we cross compile.
2833{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836# If not cross compiling, check that we can run a simple program.
2837if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842esac
2843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2845 ac_status=$?
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2848 cross_compiling=no
2849 else
2850 if test "$cross_compiling" = maybe; then
2851 cross_compiling=yes
2852 else
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854If you meant to cross compile, use \`--host'.
2855See \`config.log' for more details." >&5
2856echo "$as_me: error: cannot run C compiled programs.
2857If you meant to cross compile, use \`--host'.
2858See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2860 fi
2861 fi
2862fi
2863{ echo "$as_me:$LINENO: result: yes" >&5
2864echo "${ECHO_T}yes" >&6; }
2865
2866rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002867ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002868# Check that the compiler produces executables we can run. If not, either
2869# the compiler is broken, or we cross compile.
2870{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002878case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002883 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002884 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889# work properly (i.e., refer to `conftest.exe'), while it won't with
2890# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002891for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002893 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002896 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002897 * ) break;;
2898 esac
2899done
2900else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902See \`config.log' for more details." >&5
2903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002906fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002907
2908rm -f conftest$ac_cv_exeext
2909{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002911
2912rm -f conftest.$ac_ext
2913EXEEXT=$ac_cv_exeext
2914ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002915{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002919else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002926
John Criswell7a73b802003-06-30 21:59:07 +00002927int
2928main ()
2929{
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002936if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002942 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002943 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002948 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951 break;;
2952 esac
2953done
2954else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002956sed 's/^/| /' conftest.$ac_ext >&5
2957
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002958{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002963fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002964
John Criswell7a73b802003-06-30 21:59:07 +00002965rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002967{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002969OBJEXT=$ac_cv_objext
2970ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002971{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002976 cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h. */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002981/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002982
John Criswell7a73b802003-06-30 21:59:07 +00002983int
2984main ()
2985{
2986#ifndef __GNUC__
2987 choke me
2988#endif
2989
2990 ;
2991 return 0;
2992}
2993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002994rm -f conftest.$ac_objext
2995if { (ac_try="$ac_compile"
2996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3002 ac_status=$?
3003 grep -v '^ *+' conftest.er1 >conftest.err
3004 rm -f conftest.er1
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003028 ac_compiler_gnu=yes
3029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003030 echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003035
Reid Spencera773bd52006-08-04 18:18:08 +00003036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003037ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003038
3039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003040{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043ac_test_CFLAGS=${CFLAGS+set}
3044ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003045{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003049else
Reid Spencera773bd52006-08-04 18:18:08 +00003050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3052 ac_cv_prog_cc_g=no
3053 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003054 cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h. */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003060
John Criswell7a73b802003-06-30 21:59:07 +00003061int
3062main ()
3063{
3064
3065 ;
3066 return 0;
3067}
3068_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3077 ac_status=$?
3078 grep -v '^ *+' conftest.er1 >conftest.err
3079 rm -f conftest.er1
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003103 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3132 ac_status=$?
3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 :
Torok Edwin871384f2010-01-26 08:50:50 +00003159else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003164 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003170/* end confdefs.h. */
3171
3172int
3173main ()
3174{
3175
3176 ;
3177 return 0;
3178}
3179_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003180rm -f conftest.$ac_objext
3181if { (ac_try="$ac_compile"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3188 ac_status=$?
3189 grep -v '^ *+' conftest.er1 >conftest.err
3190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3201 ac_status=$?
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003214 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003215else
3216 echo "$as_me: failed program was:" >&5
3217sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
John Criswell7a73b802003-06-30 21:59:07 +00003220fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003221
Reid Spencera773bd52006-08-04 18:18:08 +00003222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003223fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003224
Reid Spencera773bd52006-08-04 18:18:08 +00003225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003227
Reid Spencera773bd52006-08-04 18:18:08 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003231{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003233if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003238 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003240 fi
3241else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003244 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003246 fi
3247fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003248{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252else
Reid Spencera773bd52006-08-04 18:18:08 +00003253 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003255cat >conftest.$ac_ext <<_ACEOF
3256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260/* end confdefs.h. */
3261#include <stdarg.h>
3262#include <stdio.h>
3263#include <sys/types.h>
3264#include <sys/stat.h>
3265/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266struct buf { int x; };
3267FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268static char *e (p, i)
3269 char **p;
3270 int i;
3271{
3272 return p[i];
3273}
3274static char *f (char * (*g) (char **, int), char **p, ...)
3275{
3276 char *s;
3277 va_list v;
3278 va_start (v,p);
3279 s = g (p, va_arg (v,int));
3280 va_end (v);
3281 return s;
3282}
3283
3284/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003287 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003290 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292
Reid Spencera773bd52006-08-04 18:18:08 +00003293/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3295#define FOO(x) 'x'
3296int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003298int test (int i, double x);
3299struct s1 {int (*f) (int a);};
3300struct s2 {int (*f) (double a);};
3301int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302int argc;
3303char **argv;
3304int
3305main ()
3306{
3307return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3308 ;
3309 return 0;
3310}
3311_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003312for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314do
3315 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003316 rm -f conftest.$ac_objext
3317if { (ac_try="$ac_compile"
3318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3337 ac_status=$?
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003350 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003357
Reid Spencera773bd52006-08-04 18:18:08 +00003358rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003360done
Reid Spencera773bd52006-08-04 18:18:08 +00003361rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362CC=$ac_save_CC
3363
3364fi
Reid Spencera773bd52006-08-04 18:18:08 +00003365# AC_CACHE_VAL
3366case "x$ac_cv_prog_cc_c89" in
3367 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003368 { echo "$as_me:$LINENO: result: none needed" >&5
3369echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003370 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003374 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377esac
3378
John Criswell0c38eaf2003-09-10 15:17:25 +00003379
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380ac_ext=c
3381ac_cpp='$CPP $CPPFLAGS'
3382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003392{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394# On Suns, sometimes $CPP names a directory.
3395if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3397fi
3398if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401else
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 do
3405 ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419/* end confdefs.h. */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
3425 Syntax error
3426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003427if { (ac_try="$ac_cpp conftest.$ac_ext"
3428case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431esac
3432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443 else
3444 ac_cpp_err=
3445 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003446else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003447 ac_cpp_err=yes
3448fi
3449if test -z "$ac_cpp_err"; then
3450 :
3451else
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 # Broken: fails on valid input.
3456continue
3457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003458
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459rm -f conftest.err conftest.$ac_ext
3460
Reid Spencera773bd52006-08-04 18:18:08 +00003461 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003463 cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003468/* end confdefs.h. */
3469#include <ac_nonexistent.h>
3470_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003471if { (ac_try="$ac_cpp conftest.$ac_ext"
3472case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475esac
3476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494 # Broken: success on invalid input.
3495continue
3496else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500 # Passes both tests.
3501ac_preproc_ok=:
3502break
3503fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003504
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505rm -f conftest.err conftest.$ac_ext
3506
3507done
3508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003510if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511 break
3512fi
3513
3514 done
3515 ac_cv_prog_CPP=$CPP
3516
3517fi
3518 CPP=$ac_cv_prog_CPP
3519else
3520 ac_cv_prog_CPP=$CPP
3521fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003522{ echo "$as_me:$LINENO: result: $CPP" >&5
3523echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524ac_preproc_ok=false
3525for ac_c_preproc_warn_flag in '' yes
3526do
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003533 cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h. */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003538/* end confdefs.h. */
3539#ifdef __STDC__
3540# include <limits.h>
3541#else
3542# include <assert.h>
3543#endif
3544 Syntax error
3545_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003546if { (ac_try="$ac_cpp conftest.$ac_ext"
3547case "(($ac_try" in
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3550esac
3551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003565else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 :
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 # Broken: fails on valid input.
3575continue
3576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003577
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003578rm -f conftest.err conftest.$ac_ext
3579
Reid Spencera773bd52006-08-04 18:18:08 +00003580 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003582 cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h. */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003587/* end confdefs.h. */
3588#include <ac_nonexistent.h>
3589_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003590if { (ac_try="$ac_cpp conftest.$ac_ext"
3591case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594esac
3595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606 else
3607 ac_cpp_err=
3608 fi
3609else
3610 ac_cpp_err=yes
3611fi
3612if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003613 # Broken: success on invalid input.
3614continue
3615else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619 # Passes both tests.
3620ac_preproc_ok=:
3621break
3622fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624rm -f conftest.err conftest.$ac_ext
3625
3626done
3627# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003629if $ac_preproc_ok; then
3630 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003631else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633See \`config.log' for more details." >&5
3634echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637fi
3638
John Criswell7a73b802003-06-30 21:59:07 +00003639ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
John Criswell7a73b802003-06-30 21:59:07 +00003645
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003646{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003650else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003651 # Extract the first word of "grep ggrep" to use in msg output
3652if test -z "$GREP"; then
3653set dummy grep ggrep; ac_prog_name=$2
3654if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
Reid Spencera773bd52006-08-04 18:18:08 +00003657 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003658# Loop through the user's path and test for each of PROGNAME-LIST
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003660for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003661do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003669 # Check for GNU $ac_path_GREP
3670case `"$ac_path_GREP" --version 2>&1` in
3671*GNU*)
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673*)
3674 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003676 while :
3677 do
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003681 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003684 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694esac
3695
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003696
3697 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003698 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003699done
3700
3701done
Reid Spencera773bd52006-08-04 18:18:08 +00003702IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003703
3704
3705fi
3706
3707GREP="$ac_cv_path_GREP"
3708if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3712fi
3713
Reid Spencera773bd52006-08-04 18:18:08 +00003714else
3715 ac_cv_path_GREP=$GREP
3716fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003717
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003718
Reid Spencera773bd52006-08-04 18:18:08 +00003719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003720{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003722 GREP="$ac_cv_path_GREP"
3723
3724
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003725{ echo "$as_me:$LINENO: checking for egrep" >&5
3726echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003729else
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3732 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003733 # Extract the first word of "egrep" to use in msg output
3734if test -z "$EGREP"; then
3735set dummy egrep; ac_prog_name=$2
3736if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
Reid Spencera773bd52006-08-04 18:18:08 +00003739 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003740# Loop through the user's path and test for each of PROGNAME-LIST
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003751 # Check for GNU $ac_path_EGREP
3752case `"$ac_path_EGREP" --version 2>&1` in
3753*GNU*)
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755*)
3756 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003758 while :
3759 do
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003763 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003766 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3771 fi
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3774 done
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776esac
3777
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003778
3779 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003780 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003781done
3782
3783done
Reid Spencera773bd52006-08-04 18:18:08 +00003784IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003785
3786
3787fi
3788
3789EGREP="$ac_cv_path_EGREP"
3790if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3794fi
3795
Reid Spencera773bd52006-08-04 18:18:08 +00003796else
3797 ac_cv_path_EGREP=$EGREP
3798fi
3799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003800
Reid Spencera773bd52006-08-04 18:18:08 +00003801 fi
3802fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003803{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003805 EGREP="$ac_cv_path_EGREP"
3806
3807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003808{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003812else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003813 cat >conftest.$ac_ext <<_ACEOF
3814/* confdefs.h. */
3815_ACEOF
3816cat confdefs.h >>conftest.$ac_ext
3817cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003819#include <stdlib.h>
3820#include <stdarg.h>
3821#include <string.h>
3822#include <float.h>
3823
John Criswell0c38eaf2003-09-10 15:17:25 +00003824int
3825main ()
3826{
3827
3828 ;
3829 return 0;
3830}
John Criswell7a73b802003-06-30 21:59:07 +00003831_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003832rm -f conftest.$ac_objext
3833if { (ac_try="$ac_compile"
3834case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837esac
3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3840 ac_status=$?
3841 grep -v '^ *+' conftest.er1 >conftest.err
3842 rm -f conftest.er1
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003866 ac_cv_header_stdc=yes
3867else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003868 echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003873
Reid Spencera773bd52006-08-04 18:18:08 +00003874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003875
3876if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003878 cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h. */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003884#include <string.h>
3885
3886_ACEOF
3887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003888 $EGREP "memchr" >/dev/null 2>&1; then
3889 :
John Criswell7a73b802003-06-30 21:59:07 +00003890else
3891 ac_cv_header_stdc=no
3892fi
3893rm -f conftest*
3894
3895fi
3896
3897if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003899 cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003905#include <stdlib.h>
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003909 $EGREP "free" >/dev/null 2>&1; then
3910 :
John Criswell7a73b802003-06-30 21:59:07 +00003911else
3912 ac_cv_header_stdc=no
3913fi
3914rm -f conftest*
3915
3916fi
3917
3918if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003920 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003921 :
3922else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003923 cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003929#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003930#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003931#if ((' ' & 0x0FF) == 0x020)
3932# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003935# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003939# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940#endif
3941
3942#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943int
3944main ()
3945{
3946 int i;
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003949 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003950 return 2;
3951 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003952}
3953_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003954rm -f conftest$ac_exeext
3955if { (ac_try="$ac_link"
3956case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959esac
3960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968esac
3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 :
John Criswell7a73b802003-06-30 21:59:07 +00003975else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003976 echo "$as_me: program exited with status $ac_status" >&5
3977echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980( exit $ac_status )
3981ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003982fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00003984fi
3985
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003986
John Criswell7a73b802003-06-30 21:59:07 +00003987fi
3988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003989{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003991if test $ac_cv_header_stdc = yes; then
3992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003993cat >>confdefs.h <<\_ACEOF
3994#define STDC_HEADERS 1
3995_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003996
3997fi
3998
Reid Spencera773bd52006-08-04 18:18:08 +00003999# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004000
4001
4002
4003
4004
4005
4006
4007
4008
Reid Spencera773bd52006-08-04 18:18:08 +00004009for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004011do
4012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017else
4018 cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h. */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h. */
4024$ac_includes_default
4025
4026#include <$ac_header>
4027_ACEOF
4028rm -f conftest.$ac_objext
4029if { (ac_try="$ac_compile"
4030case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4036 ac_status=$?
4037 grep -v '^ *+' conftest.er1 >conftest.err
4038 rm -f conftest.er1
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046esac
4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4063else
4064 echo "$as_me: failed program was:" >&5
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
4067 eval "$as_ac_Header=no"
4068fi
4069
4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071fi
4072ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074echo "${ECHO_T}$ac_res" >&6; }
4075if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004076 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004078_ACEOF
4079
4080fi
4081
4082done
4083
4084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004085{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004089else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004090 # See if sys/param.h defines the BYTE_ORDER macro.
4091cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004093_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004096/* end confdefs.h. */
4097#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004098#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004099
4100int
4101main ()
4102{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004103#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104 bogus endian macros
4105#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004106
4107 ;
4108 return 0;
4109}
4110_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004111rm -f conftest.$ac_objext
4112if { (ac_try="$ac_compile"
4113case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4132 ac_status=$?
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004145 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004146cat >conftest.$ac_ext <<_ACEOF
4147/* confdefs.h. */
4148_ACEOF
4149cat confdefs.h >>conftest.$ac_ext
4150cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004151/* end confdefs.h. */
4152#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004153#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004154
4155int
4156main ()
4157{
4158#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004159 not big endian
4160#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004161
4162 ;
4163 return 0;
4164}
4165_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4174 ac_status=$?
4175 grep -v '^ *+' conftest.er1 >conftest.err
4176 rm -f conftest.er1
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004200 ac_cv_c_bigendian=yes
4201else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004202 echo "$as_me: failed program was:" >&5
4203sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004204
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004205 ac_cv_c_bigendian=no
4206fi
4207
4208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209else
4210 echo "$as_me: failed program was:" >&5
4211sed 's/^/| /' conftest.$ac_ext >&5
4212
4213 # It does not; compile a test program.
4214if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4218/* confdefs.h. */
4219_ACEOF
4220cat confdefs.h >>conftest.$ac_ext
4221cat >>conftest.$ac_ext <<_ACEOF
4222/* end confdefs.h. */
4223short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004229int
4230main ()
4231{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004232 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004233 ;
4234 return 0;
4235}
4236_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004237rm -f conftest.$ac_objext
4238if { (ac_try="$ac_compile"
4239case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4268 ac_status=$?
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004272 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004273fi
4274if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4277 else
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4280 fi
4281fi
Reid Spencera773bd52006-08-04 18:18:08 +00004282else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004283 echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004286
Torok Edwin871384f2010-01-26 08:50:50 +00004287fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004288
Reid Spencera773bd52006-08-04 18:18:08 +00004289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004291 cat >conftest.$ac_ext <<_ACEOF
4292/* confdefs.h. */
4293_ACEOF
4294cat confdefs.h >>conftest.$ac_ext
4295cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004296/* end confdefs.h. */
4297$ac_includes_default
4298int
4299main ()
4300{
4301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004302 /* Are we little or big endian? From Harbison&Steele. */
4303 union
4304 {
4305 long int l;
4306 char c[sizeof (long int)];
4307 } u;
4308 u.l = 1;
4309 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004310
4311 ;
4312 return 0;
4313}
4314_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004315rm -f conftest$ac_exeext
4316if { (ac_try="$ac_link"
4317case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004335 ac_cv_c_bigendian=no
4336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004337 echo "$as_me: program exited with status $ac_status" >&5
4338echo "$as_me: failed program was:" >&5
4339sed 's/^/| /' conftest.$ac_ext >&5
4340
4341( exit $ac_status )
4342ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004343fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00004345fi
4346
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004347
Reid Spencera773bd52006-08-04 18:18:08 +00004348fi
4349
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351fi
4352{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354case $ac_cv_c_bigendian in
4355 yes)
4356 ENDIAN=big
4357 ;;
4358 no)
4359 ENDIAN=little
4360 ;;
4361 *)
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364echo "$as_me: error: unknown endianness
4365presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4367esac
Reid Spencera773bd52006-08-04 18:18:08 +00004368
4369
4370if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4372
4373
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004374{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004378else
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4381else
4382 ac_build_prefix=${build_alias}-
4383
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004390else
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004403 break 2
4404 fi
4405done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004406done
Reid Spencera773bd52006-08-04 18:18:08 +00004407IFS=$as_save_IFS
4408
4409fi
4410fi
4411BUILD_CC=$ac_cv_prog_BUILD_CC
4412if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004415else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004416 { echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004418fi
4419
4420
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004428else
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004439 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004441 break 2
4442 fi
4443done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004444done
Reid Spencera773bd52006-08-04 18:18:08 +00004445IFS=$as_save_IFS
4446
4447fi
4448fi
4449BUILD_CC=$ac_cv_prog_BUILD_CC
4450if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004453else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004454 { echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004456fi
4457
4458
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004466else
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469else
4470 ac_prog_rejected=no
4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472for as_dir in $PATH
4473do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4480 continue
4481 fi
4482 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004484 break 2
4485 fi
4486done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004487done
Reid Spencera773bd52006-08-04 18:18:08 +00004488IFS=$as_save_IFS
4489
4490if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4493 shift
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4498 shift
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4500 fi
4501fi
4502fi
4503fi
4504BUILD_CC=$ac_cv_prog_BUILD_CC
4505if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004508else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004509 { echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004511fi
4512
4513
4514 fi
4515 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 rm -f conftest*
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004524 (eval $ac_build_link) 2>&5
4525 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004528 for file in conftest.*; do
4529 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004530 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532 esac
4533 done
4534 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004538 fi
4539 rm -f conftest*
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4541fi
4542fi
4543
4544BUILD_EXEEXT=""
4545test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004546{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004548ac_build_exeext=$BUILD_EXEEXT
4549
Jim Grosbach673612e2008-10-02 22:56:44 +00004550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004557else
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004570 break 2
4571 fi
4572done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004573done
Jim Grosbach673612e2008-10-02 22:56:44 +00004574IFS=$as_save_IFS
4575
4576fi
4577fi
4578BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004582else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004583 { echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004585fi
4586
4587
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004595else
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598else
4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH
4601do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004606 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004608 break 2
4609 fi
4610done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004611done
Jim Grosbach673612e2008-10-02 22:56:44 +00004612IFS=$as_save_IFS
4613
4614fi
4615fi
4616BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004621 { echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004623fi
4624
4625
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004633else
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636else
4637 ac_prog_rejected=no
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4647 continue
4648 fi
4649 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004651 break 2
4652 fi
4653done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004654done
Jim Grosbach673612e2008-10-02 22:56:44 +00004655IFS=$as_save_IFS
4656
4657if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4660 shift
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 shift
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4667 fi
4668fi
4669fi
4670fi
4671BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004676 { echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004678fi
4679
4680
4681 fi
4682 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004683else
4684 LLVM_CROSS_COMPILING=0
4685
4686fi
4687
Dan Gohman56fb5f92010-08-04 16:25:01 +00004688if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004689 cvsbuild="yes"
4690 optimize="no"
4691 CVSBUILD=CVSBUILD=1
4692
4693else
4694 cvsbuild="no"
4695 optimize="yes"
4696fi
4697
4698
4699# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004700if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004701 enableval=$enable_optimized;
4702else
4703 enableval=$optimize
4704fi
4705
4706if test ${enableval} = "no" ; then
4707 ENABLE_OPTIMIZED=
4708
4709else
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4711
4712fi
4713
David Greene2a5a12c2009-04-17 14:50:39 +00004714# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004715if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004716 enableval=$enable_profiling;
4717else
4718 enableval="no"
4719fi
4720
4721if test ${enableval} = "no" ; then
4722 ENABLE_PROFILING=
4723
4724else
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4726
4727fi
4728
Reid Spencera773bd52006-08-04 18:18:08 +00004729# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004730if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004731 enableval=$enable_assertions;
4732else
4733 enableval="yes"
4734fi
4735
4736if test ${enableval} = "yes" ; then
4737 DISABLE_ASSERTIONS=
4738
4739else
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741
4742fi
4743
David Greenea696d242007-06-28 19:36:08 +00004744# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004745if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004746 enableval=$enable_expensive_checks;
4747else
4748 enableval="no"
4749fi
4750
4751if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753
4754 EXPENSIVE_CHECKS=yes
4755
4756else
4757 ENABLE_EXPENSIVE_CHECKS=
4758
4759 EXPENSIVE_CHECKS=no
4760
4761fi
4762
Reid Spencer8b2e1412006-11-17 03:32:33 +00004763# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004764if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004765 enableval=$enable_debug_runtime;
4766else
4767 enableval=no
4768fi
4769
4770if test ${enableval} = "no" ; then
4771 DEBUG_RUNTIME=
4772
4773else
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775
4776fi
4777
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004778# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004779if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004780 enableval=$enable_debug_symbols;
4781else
4782 enableval=no
4783fi
4784
4785if test ${enableval} = "no" ; then
4786 DEBUG_SYMBOLS=
4787
4788else
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4790
4791fi
4792
Reid Spencera773bd52006-08-04 18:18:08 +00004793# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004794if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004795 enableval=$enable_jit;
4796else
4797 enableval=default
4798fi
4799
4800if test ${enableval} = "no"
4801then
4802 JIT=
4803
4804else
4805 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004806 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004807 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004808 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004809 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004810 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004811 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004812 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004813 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004814 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004815 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004816 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004817 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004818 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004819 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004820 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004821 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004822 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004823 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004824 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004825 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004826 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004827 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004828 Blackfin) TARGET_HAS_JIT=0
4829 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004830 MBlaze) TARGET_HAS_JIT=0
4831 ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004832 PTX) TARGET_HAS_JIT=0
4833 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004834 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004835 ;;
4836 esac
4837fi
4838
4839# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004840if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004841 enableval=$enable_doxygen;
4842else
4843 enableval=default
4844fi
4845
4846case "$enableval" in
4847 yes) ENABLE_DOXYGEN=1
4848 ;;
4849 no) ENABLE_DOXYGEN=0
4850 ;;
4851 default) ENABLE_DOXYGEN=0
4852 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004853 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4854echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4855 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004856esac
4857
4858# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004859if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004860 enableval=$enable_threads;
4861else
Reid Spencer65c5d752006-11-05 17:08:18 +00004862 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004863fi
4864
4865case "$enableval" in
4866 yes) ENABLE_THREADS=1
4867 ;;
4868 no) ENABLE_THREADS=0
4869 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004870 default) ENABLE_THREADS=1
4871 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004872 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4873echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4874 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004875esac
4876
Owen Andersona8603702009-05-19 22:18:56 +00004877cat >>confdefs.h <<_ACEOF
4878#define ENABLE_THREADS $ENABLE_THREADS
4879_ACEOF
4880
4881
Reid Spencer89b0d992006-12-16 22:07:52 +00004882# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004883if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004884 enableval=$enable_pic;
4885else
4886 enableval=default
4887fi
4888
4889case "$enableval" in
4890 yes) ENABLE_PIC=1
4891 ;;
4892 no) ENABLE_PIC=0
4893 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004894 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004895 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004896 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4897echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4898 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004899esac
4900
4901cat >>confdefs.h <<_ACEOF
4902#define ENABLE_PIC $ENABLE_PIC
4903_ACEOF
4904
4905
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004906# Check whether --enable-shared was given.
4907if test "${enable_shared+set}" = set; then
4908 enableval=$enable_shared;
4909else
4910 enableval=default
4911fi
4912
4913case "$enableval" in
4914 yes) ENABLE_SHARED=1
4915 ;;
4916 no) ENABLE_SHARED=0
4917 ;;
4918 default) ENABLE_SHARED=0
4919 ;;
4920 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4921echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4922 { (exit 1); exit 1; }; } ;;
4923esac
4924
Daniel Dunbardd464df2010-05-10 20:11:56 +00004925# Check whether --enable-timestamps was given.
4926if test "${enable_timestamps+set}" = set; then
4927 enableval=$enable_timestamps;
4928else
4929 enableval=default
4930fi
4931
4932case "$enableval" in
4933 yes) ENABLE_TIMESTAMPS=1
4934 ;;
4935 no) ENABLE_TIMESTAMPS=0
4936 ;;
4937 default) ENABLE_TIMESTAMPS=1
4938 ;;
4939 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4940echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4942esac
4943
4944cat >>confdefs.h <<_ACEOF
4945#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4946_ACEOF
4947
4948
Reid Spencera773bd52006-08-04 18:18:08 +00004949TARGETS_TO_BUILD=""
4950# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004951if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004952 enableval=$enable_targets;
4953else
4954 enableval=all
4955fi
4956
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004957if test "$enableval" = host-only ; then
4958 enableval=host
4959fi
Reid Spencera773bd52006-08-04 18:18:08 +00004960case "$enableval" in
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004961 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004962 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4963 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004964 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4967 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4968 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4969 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4970 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4971 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4972 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004979 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004980 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004981 host) case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004989 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4991 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4992 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4993 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004994 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004995 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +00004996 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004997 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4998echo "$as_me: error: Can not set target to build" >&2;}
4999 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00005000 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005001 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5002echo "$as_me: error: Unrecognized target $a_target" >&2;}
5003 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005004 esac
5005 done
5006 ;;
5007esac
Reid Spencera773bd52006-08-04 18:18:08 +00005008TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5009
5010
Douglas Gregor0711c302009-06-17 00:43:20 +00005011# Determine whether we are building LLVM support for the native architecture.
5012# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5013for a_target in $TARGETS_TO_BUILD; do
5014 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5015
5016cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005017#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5018_ACEOF
5019
5020 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5021 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5022 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5023
5024cat >>confdefs.h <<_ACEOF
5025#define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005026_ACEOF
5027
5028
5029cat >>confdefs.h <<_ACEOF
Eric Christopher753f3262010-08-30 18:34:48 +00005030#define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5031_ACEOF
5032
5033
5034cat >>confdefs.h <<_ACEOF
5035#define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
Douglas Gregor0711c302009-06-17 00:43:20 +00005036_ACEOF
5037
5038 fi
5039done
5040
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005041# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5042# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005043LLVM_ENUM_TARGETS=""
5044LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005045LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005046LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005047for target_to_build in $TARGETS_TO_BUILD; do
5048 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5049 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5050 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5051 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005052 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5054 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005055 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5057 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005058done
5059
5060
5061
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005062
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005063
Reid Spencer65c5d752006-11-05 17:08:18 +00005064# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005065if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005066 enableval=$enable_cbe_printf_a;
5067else
5068 enableval=default
5069fi
5070
5071case "$enableval" in
5072 yes) ENABLE_CBE_PRINTF_A=1
5073 ;;
5074 no) ENABLE_CBE_PRINTF_A=0
5075 ;;
5076 default) ENABLE_CBE_PRINTF_A=1
5077 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005078 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005081esac
5082
5083cat >>confdefs.h <<_ACEOF
5084#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5085_ACEOF
5086
5087
Reid Spencera773bd52006-08-04 18:18:08 +00005088
5089# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005090if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005091 withval=$with_llvmgccdir;
5092else
5093 withval=default
5094fi
5095
5096case "$withval" in
5097 default) WITH_LLVMGCCDIR=default ;;
5098 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005099 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005102esac
5103
5104
Devang Patel5d28b882007-12-04 22:54:47 +00005105# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005106if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005107 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5108 WITH_LLVMGCCDIR=""
5109fi
5110
5111
5112
5113# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005114if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005115 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5116 WITH_LLVMGCCDIR=""
5117fi
5118
Douglas Gregor01746742009-05-11 18:05:52 +00005119
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005120if test -n "$LLVMGCC"; then
5121 LLVMGCCCOMMAND="$LLVMGCC"
5122fi
5123
5124if test -n "$LLVMGXX"; then
5125 LLVMGXXCOMMAND="$LLVMGXX"
5126fi
Devang Patel5d28b882007-12-04 22:54:47 +00005127
5128if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005129 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005132fi
5133
5134if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005135 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005138fi
5139
5140
Daniel Dunbar98515672010-02-23 10:00:49 +00005141# Check whether --with-clang was given.
5142if test "${with_clang+set}" = set; then
5143 withval=$with_clang;
5144else
5145 with_clang=default
5146fi
5147
5148
5149
5150# Check whether --with-built-clang was given.
5151if test "${with_built_clang+set}" = set; then
5152 withval=$with_built_clang;
5153else
5154 with_built_clang=check
5155fi
5156
5157
5158{ echo "$as_me:$LINENO: checking clang compiler" >&5
5159echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5160WITH_CLANGPATH=""
5161WITH_BUILT_CLANG=0
5162if test "$with_clang" != "default"; then
5163 WITH_CLANGPATH="$with_clang"
5164 if ! test -x "$WITH_CLANGPATH"; then
5165 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167 { (exit 1); exit 1; }; }
5168 fi
5169elif test "$with_built_clang" = "yes"; then
5170 WITH_BUILT_CLANG=1
5171elif test "$with_built_clang" = "no"; then
5172 WITH_BUILT_CLANG=0
5173else
5174 if test "$with_built_clang" != "check"; then
5175 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177 { (exit 1); exit 1; }; }
5178 fi
5179
5180 if test -f ${srcdir}/tools/clang/README.txt; then
5181 WITH_BUILT_CLANG=1
5182 fi
5183fi
5184
5185if ! test -z "$WITH_CLANGPATH"; then
5186 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189elif test "$WITH_BUILT_CLANG" = "1"; then
5190 { echo "$as_me:$LINENO: result: built" >&5
5191echo "${ECHO_T}built" >&6; }
5192else
5193 { echo "$as_me:$LINENO: result: none" >&5
5194echo "${ECHO_T}none" >&6; }
5195fi
5196CLANGPATH=$WITH_CLANGPATH
5197
5198CLANGXXPATH=$WITH_CLANGXXPATH
5199
5200ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5201
5202
5203
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005204# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005205if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005206 withval=$with_optimize_option;
5207else
5208 withval=default
5209fi
5210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005211{ echo "$as_me:$LINENO: checking optimization flags" >&5
5212echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005213case "$withval" in
5214 default)
5215 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005216 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005217 MingW) optimize_option=-O2 ;;
5218 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005219 esac ;;
5220 *) optimize_option="$withval" ;;
5221esac
5222OPTIMIZE_OPTION=$optimize_option
5223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005224{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5225echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005226
5227
Reid Spencera773bd52006-08-04 18:18:08 +00005228# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005229if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005230 withval=$with_extra_options;
5231else
5232 withval=default
5233fi
5234
5235case "$withval" in
5236 default) EXTRA_OPTIONS= ;;
5237 *) EXTRA_OPTIONS=$withval ;;
5238esac
5239EXTRA_OPTIONS=$EXTRA_OPTIONS
5240
5241
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005242# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005243if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005244 enableval=$enable_bindings;
5245else
5246 enableval=default
5247fi
5248
5249BINDINGS_TO_BUILD=""
5250case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005251 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005252 all ) BINDINGS_TO_BUILD="ocaml" ;;
5253 none | no) BINDINGS_TO_BUILD="" ;;
5254 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255 case "$a_binding" in
5256 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005257 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005260 esac
5261 done
5262 ;;
5263esac
5264
Reid Spencera773bd52006-08-04 18:18:08 +00005265
Gordon Henriksenf0915682007-10-02 16:42:22 +00005266# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005268 withval=$with_ocaml_libdir;
5269else
5270 withval=auto
5271fi
5272
5273case "$withval" in
5274 auto) with_ocaml_libdir="$withval" ;;
5275 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005276 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005279esac
5280
5281
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005282# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005283if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005284 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005285else
5286 withval=""
5287fi
5288
5289
5290cat >>confdefs.h <<_ACEOF
5291#define C_INCLUDE_DIRS "$withval"
5292_ACEOF
5293
5294
5295
Rafael Espindola420d23c2009-11-16 19:46:55 +00005296# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005297if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005298 withval=$with_cxx_include_root;
5299else
5300 withval=""
5301fi
5302
5303
5304cat >>confdefs.h <<_ACEOF
5305#define CXX_INCLUDE_ROOT "$withval"
5306_ACEOF
5307
5308
5309
5310# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005311if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005312 withval=$with_cxx_include_arch;
5313else
5314 withval=""
5315fi
5316
5317
5318cat >>confdefs.h <<_ACEOF
5319#define CXX_INCLUDE_ARCH "$withval"
5320_ACEOF
5321
5322
5323
5324# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005325if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005326 withval=$with_cxx_include_32bit_dir;
5327else
5328 withval=""
5329fi
5330
5331
5332cat >>confdefs.h <<_ACEOF
5333#define CXX_INCLUDE_32BIT_DIR "$withval"
5334_ACEOF
5335
5336
5337
5338# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005339if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005340 withval=$with_cxx_include_64bit_dir;
5341else
5342 withval=""
5343fi
5344
5345
5346cat >>confdefs.h <<_ACEOF
5347#define CXX_INCLUDE_64BIT_DIR "$withval"
5348_ACEOF
5349
5350
5351
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005352# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005353if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005354 withval=$with_binutils_include;
5355else
5356 withval=default
5357fi
5358
5359case "$withval" in
5360 default) WITH_BINUTILS_INCDIR=default ;;
5361 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005362 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005365esac
5366if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5368
5369 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005371 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005374 fi
5375fi
5376
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005377# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005378if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005379 enableval=$enable_libffi; case "$enableval" in
5380 yes) llvm_cv_enable_libffi="yes" ;;
5381 no) llvm_cv_enable_libffi="no" ;;
5382 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005383echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005385 esac
5386else
5387 llvm_cv_enable_libffi=no
5388fi
5389
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005390
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005391
Reid Spencera773bd52006-08-04 18:18:08 +00005392ac_ext=c
5393ac_cpp='$CPP $CPPFLAGS'
5394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005397{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005399# On Suns, sometimes $CPP names a directory.
5400if test -n "$CPP" && test -d "$CPP"; then
5401 CPP=
5402fi
5403if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005404 if test "${ac_cv_prog_CPP+set}" = set; then
5405 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005406else
5407 # Double quotes because CPP needs to be expanded
5408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5409 do
5410 ac_preproc_ok=false
5411for ac_c_preproc_warn_flag in '' yes
5412do
5413 # Use a header file that comes with gcc, so configuring glibc
5414 # with a fresh cross-compiler works.
5415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416 # <limits.h> exists even on freestanding compilers.
5417 # On the NeXT, cc -E runs the code through the compiler's parser,
5418 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005424/* end confdefs.h. */
5425#ifdef __STDC__
5426# include <limits.h>
5427#else
5428# include <assert.h>
5429#endif
5430 Syntax error
5431_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005432if { (ac_try="$ac_cpp conftest.$ac_ext"
5433case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448 else
5449 ac_cpp_err=
5450 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005451else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452 ac_cpp_err=yes
5453fi
5454if test -z "$ac_cpp_err"; then
5455 :
5456else
5457 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5
5459
Reid Spencera773bd52006-08-04 18:18:08 +00005460 # Broken: fails on valid input.
5461continue
5462fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005463
Reid Spencera773bd52006-08-04 18:18:08 +00005464rm -f conftest.err conftest.$ac_ext
5465
5466 # OK, works on sane cases. Now check whether nonexistent headers
5467 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005468 cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h. */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005473/* end confdefs.h. */
5474#include <ac_nonexistent.h>
5475_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005476if { (ac_try="$ac_cpp conftest.$ac_ext"
5477case "(($ac_try" in
5478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479 *) ac_try_echo=$ac_try;;
5480esac
5481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483 ac_status=$?
5484 grep -v '^ *+' conftest.er1 >conftest.err
5485 rm -f conftest.er1
5486 cat conftest.err >&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } >/dev/null; then
5489 if test -s conftest.err; then
5490 ac_cpp_err=$ac_c_preproc_warn_flag
5491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492 else
5493 ac_cpp_err=
5494 fi
5495else
5496 ac_cpp_err=yes
5497fi
5498if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005499 # Broken: success on invalid input.
5500continue
5501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005502 echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
Reid Spencera773bd52006-08-04 18:18:08 +00005505 # Passes both tests.
5506ac_preproc_ok=:
5507break
5508fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005509
Reid Spencera773bd52006-08-04 18:18:08 +00005510rm -f conftest.err conftest.$ac_ext
5511
5512done
5513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005515if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005516 break
5517fi
5518
5519 done
5520 ac_cv_prog_CPP=$CPP
5521
5522fi
5523 CPP=$ac_cv_prog_CPP
5524else
5525 ac_cv_prog_CPP=$CPP
5526fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005527{ echo "$as_me:$LINENO: result: $CPP" >&5
5528echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005529ac_preproc_ok=false
5530for ac_c_preproc_warn_flag in '' yes
5531do
5532 # Use a header file that comes with gcc, so configuring glibc
5533 # with a fresh cross-compiler works.
5534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535 # <limits.h> exists even on freestanding compilers.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005543/* end confdefs.h. */
5544#ifdef __STDC__
5545# include <limits.h>
5546#else
5547# include <assert.h>
5548#endif
5549 Syntax error
5550_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005551if { (ac_try="$ac_cpp conftest.$ac_ext"
5552case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null; then
5564 if test -s conftest.err; then
5565 ac_cpp_err=$ac_c_preproc_warn_flag
5566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5567 else
5568 ac_cpp_err=
5569 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005570else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005571 ac_cpp_err=yes
5572fi
5573if test -z "$ac_cpp_err"; then
5574 :
5575else
5576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
Reid Spencera773bd52006-08-04 18:18:08 +00005579 # Broken: fails on valid input.
5580continue
5581fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005582
Reid Spencera773bd52006-08-04 18:18:08 +00005583rm -f conftest.err conftest.$ac_ext
5584
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005592/* end confdefs.h. */
5593#include <ac_nonexistent.h>
5594_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005595if { (ac_try="$ac_cpp conftest.$ac_ext"
5596case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602 ac_status=$?
5603 grep -v '^ *+' conftest.er1 >conftest.err
5604 rm -f conftest.er1
5605 cat conftest.err >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } >/dev/null; then
5608 if test -s conftest.err; then
5609 ac_cpp_err=$ac_c_preproc_warn_flag
5610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611 else
5612 ac_cpp_err=
5613 fi
5614else
5615 ac_cpp_err=yes
5616fi
5617if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005618 # Broken: success on invalid input.
5619continue
5620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621 echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
5623
Reid Spencera773bd52006-08-04 18:18:08 +00005624 # Passes both tests.
5625ac_preproc_ok=:
5626break
5627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005628
Reid Spencera773bd52006-08-04 18:18:08 +00005629rm -f conftest.err conftest.$ac_ext
5630
5631done
5632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005634if $ac_preproc_ok; then
5635 :
Reid Spencera773bd52006-08-04 18:18:08 +00005636else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638See \`config.log' for more details." >&5
5639echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640See \`config.log' for more details." >&2;}
5641 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005642fi
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655if test -n "$ac_tool_prefix"; then
5656 for ac_prog in gcc
5657 do
5658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662if test "${ac_cv_prog_CC+set}" = set; then
5663 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005664else
5665 if test -n "$CC"; then
5666 ac_cv_prog_CC="$CC" # Let the user override the test.
5667else
5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669for as_dir in $PATH
5670do
5671 IFS=$as_save_IFS
5672 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 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 +00005675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005677 break 2
5678 fi
5679done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005680done
Reid Spencera773bd52006-08-04 18:18:08 +00005681IFS=$as_save_IFS
5682
5683fi
5684fi
5685CC=$ac_cv_prog_CC
5686if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005687 { echo "$as_me:$LINENO: result: $CC" >&5
5688echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005689else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005690 { echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005692fi
5693
5694
5695 test -n "$CC" && break
5696 done
5697fi
5698if test -z "$CC"; then
5699 ac_ct_CC=$CC
5700 for ac_prog in gcc
5701do
5702 # Extract the first word of "$ac_prog", so it can be a program name with args.
5703set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005708else
5709 if test -n "$ac_ct_CC"; then
5710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5711else
5712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713for as_dir in $PATH
5714do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 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 +00005719 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005721 break 2
5722 fi
5723done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005724done
Reid Spencera773bd52006-08-04 18:18:08 +00005725IFS=$as_save_IFS
5726
5727fi
5728fi
5729ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005733else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005734 { echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005736fi
5737
5738
5739 test -n "$ac_ct_CC" && break
5740done
5741
5742 if test "x$ac_ct_CC" = x; then
5743 CC=""
5744 else
5745 case $cross_compiling:$ac_tool_warned in
5746yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748whose name does not start with the host triplet. If you think this
5749configuration is useful to you, please write to autoconf@gnu.org." >&5
5750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751whose name does not start with the host triplet. If you think this
5752configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005753ac_tool_warned=yes ;;
5754esac
5755 CC=$ac_ct_CC
5756 fi
5757fi
5758
5759
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005760test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761See \`config.log' for more details." >&5
5762echo "$as_me: error: no acceptable C compiler found in \$PATH
5763See \`config.log' for more details." >&2;}
5764 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005765
5766# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005767echo "$as_me:$LINENO: checking for C compiler version" >&5
5768ac_compiler=`set X $ac_compile; echo $2`
5769{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005770case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005776 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }
5779{ (ac_try="$ac_compiler -v >&5"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compiler -v >&5") 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }
5789{ (ac_try="$ac_compiler -V >&5"
5790case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793esac
5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compiler -V >&5") 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005800{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005804else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005805 cat >conftest.$ac_ext <<_ACEOF
5806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005810/* end confdefs.h. */
5811
5812int
5813main ()
5814{
5815#ifndef __GNUC__
5816 choke me
5817#endif
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005823rm -f conftest.$ac_objext
5824if { (ac_try="$ac_compile"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005857 ac_compiler_gnu=yes
5858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005859 echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005863fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005864
Reid Spencera773bd52006-08-04 18:18:08 +00005865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866ac_cv_c_compiler_gnu=$ac_compiler_gnu
5867
5868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005869{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005872ac_test_CFLAGS=${CFLAGS+set}
5873ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005874{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876if test "${ac_cv_prog_cc_g+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005878else
5879 ac_save_c_werror_flag=$ac_c_werror_flag
5880 ac_c_werror_flag=yes
5881 ac_cv_prog_cc_g=no
5882 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005888/* end confdefs.h. */
5889
5890int
5891main ()
5892{
5893
5894 ;
5895 return 0;
5896}
5897_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005898rm -f conftest.$ac_objext
5899if { (ac_try="$ac_compile"
5900case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903esac
5904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916esac
5917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; } &&
5922 { ac_try='test -s conftest.$ac_objext'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005932 ac_cv_prog_cc_g=yes
5933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 CFLAGS=""
5938 cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h. */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005943/* end confdefs.h. */
5944
5945int
5946main ()
5947{
5948
5949 ;
5950 return 0;
5951}
5952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005953rm -f conftest.$ac_objext
5954if { (ac_try="$ac_compile"
5955case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958esac
5959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } &&
5967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968 { (case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971esac
5972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_try") 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); }; } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 :
Torok Edwin871384f2010-01-26 08:50:50 +00005988else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005989 echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005993 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005994 cat >conftest.$ac_ext <<_ACEOF
5995/* confdefs.h. */
5996_ACEOF
5997cat confdefs.h >>conftest.$ac_ext
5998cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005999/* end confdefs.h. */
6000
6001int
6002main ()
6003{
6004
6005 ;
6006 return 0;
6007}
6008_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006009rm -f conftest.$ac_objext
6010if { (ac_try="$ac_compile"
6011case "(($ac_try" in
6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6014esac
6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006043 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044else
6045 echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
Reid Spencera773bd52006-08-04 18:18:08 +00006049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006050
Reid Spencera773bd52006-08-04 18:18:08 +00006051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006053
Reid Spencera773bd52006-08-04 18:18:08 +00006054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006056
Reid Spencera773bd52006-08-04 18:18:08 +00006057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 ac_c_werror_flag=$ac_save_c_werror_flag
6059fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006060{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006062if test "$ac_test_CFLAGS" = set; then
6063 CFLAGS=$ac_save_CFLAGS
6064elif test $ac_cv_prog_cc_g = yes; then
6065 if test "$GCC" = yes; then
6066 CFLAGS="-g -O2"
6067 else
6068 CFLAGS="-g"
6069 fi
6070else
6071 if test "$GCC" = yes; then
6072 CFLAGS="-O2"
6073 else
6074 CFLAGS=
6075 fi
6076fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006077{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079if test "${ac_cv_prog_cc_c89+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006081else
6082 ac_cv_prog_cc_c89=no
6083ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006084cat >conftest.$ac_ext <<_ACEOF
6085/* confdefs.h. */
6086_ACEOF
6087cat confdefs.h >>conftest.$ac_ext
6088cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006089/* end confdefs.h. */
6090#include <stdarg.h>
6091#include <stdio.h>
6092#include <sys/types.h>
6093#include <sys/stat.h>
6094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6095struct buf { int x; };
6096FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097static char *e (p, i)
6098 char **p;
6099 int i;
6100{
6101 return p[i];
6102}
6103static char *f (char * (*g) (char **, int), char **p, ...)
6104{
6105 char *s;
6106 va_list v;
6107 va_start (v,p);
6108 s = g (p, va_arg (v,int));
6109 va_end (v);
6110 return s;
6111}
6112
6113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6114 function prototypes and stuff, but not '\xHH' hex character constants.
6115 These don't provoke an error unfortunately, instead are silently treated
6116 as 'x'. The following induces an error, until -std is added to get
6117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6118 array size at least. It's necessary to write '\x00'==0 to get something
6119 that's true only with -std. */
6120int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6121
6122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123 inside strings and character constants. */
6124#define FOO(x) 'x'
6125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6126
6127int test (int i, double x);
6128struct s1 {int (*f) (int a);};
6129struct s2 {int (*f) (double a);};
6130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131int argc;
6132char **argv;
6133int
6134main ()
6135{
6136return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6137 ;
6138 return 0;
6139}
6140_ACEOF
6141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6143do
6144 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006145 rm -f conftest.$ac_objext
6146if { (ac_try="$ac_compile"
6147case "(($ac_try" in
6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6150esac
6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_compile") 2>conftest.er1
6153 ac_status=$?
6154 grep -v '^ *+' conftest.er1 >conftest.err
6155 rm -f conftest.er1
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } &&
6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160 { (case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163esac
6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_try") 2>&5
6166 ac_status=$?
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; } &&
6169 { ac_try='test -s conftest.$ac_objext'
6170 { (case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_try") 2>&5
6176 ac_status=$?
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006179 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006180else
6181 echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184
Reid Spencera773bd52006-08-04 18:18:08 +00006185fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006186
Reid Spencera773bd52006-08-04 18:18:08 +00006187rm -f core conftest.err conftest.$ac_objext
6188 test "x$ac_cv_prog_cc_c89" != "xno" && break
6189done
6190rm -f conftest.$ac_ext
6191CC=$ac_save_CC
6192
6193fi
6194# AC_CACHE_VAL
6195case "x$ac_cv_prog_cc_c89" in
6196 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006197 { echo "$as_me:$LINENO: result: none needed" >&5
6198echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006199 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006200 { echo "$as_me:$LINENO: result: unsupported" >&5
6201echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006202 *)
6203 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006206esac
6207
6208
6209ac_ext=c
6210ac_cpp='$CPP $CPPFLAGS'
6211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214
6215ac_ext=cpp
6216ac_cpp='$CXXCPP $CPPFLAGS'
6217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220if test -z "$CXX"; then
6221 if test -n "$CCC"; then
6222 CXX=$CCC
6223 else
6224 if test -n "$ac_tool_prefix"; then
6225 for ac_prog in g++
6226 do
6227 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231if test "${ac_cv_prog_CXX+set}" = set; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006233else
6234 if test -n "$CXX"; then
6235 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 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 +00006244 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006246 break 2
6247 fi
6248done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006249done
Reid Spencera773bd52006-08-04 18:18:08 +00006250IFS=$as_save_IFS
6251
6252fi
6253fi
6254CXX=$ac_cv_prog_CXX
6255if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006256 { echo "$as_me:$LINENO: result: $CXX" >&5
6257echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006258else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006259 { echo "$as_me:$LINENO: result: no" >&5
6260echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006261fi
6262
6263
6264 test -n "$CXX" && break
6265 done
6266fi
6267if test -z "$CXX"; then
6268 ac_ct_CXX=$CXX
6269 for ac_prog in g++
6270do
6271 # Extract the first word of "$ac_prog", so it can be a program name with args.
6272set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006277else
6278 if test -n "$ac_ct_CXX"; then
6279 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6280else
6281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282for as_dir in $PATH
6283do
6284 IFS=$as_save_IFS
6285 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 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 +00006288 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006290 break 2
6291 fi
6292done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006293done
Reid Spencera773bd52006-08-04 18:18:08 +00006294IFS=$as_save_IFS
6295
6296fi
6297fi
6298ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006302else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006303 { echo "$as_me:$LINENO: result: no" >&5
6304echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006305fi
6306
6307
6308 test -n "$ac_ct_CXX" && break
6309done
6310
6311 if test "x$ac_ct_CXX" = x; then
6312 CXX="g++"
6313 else
6314 case $cross_compiling:$ac_tool_warned in
6315yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006316{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317whose name does not start with the host triplet. If you think this
6318configuration is useful to you, please write to autoconf@gnu.org." >&5
6319echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320whose name does not start with the host triplet. If you think this
6321configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006322ac_tool_warned=yes ;;
6323esac
6324 CXX=$ac_ct_CXX
6325 fi
6326fi
6327
6328 fi
6329fi
6330# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006331echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332ac_compiler=`set X $ac_compile; echo $2`
6333{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006334case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006340 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); }
6343{ (ac_try="$ac_compiler -v >&5"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compiler -v >&5") 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }
6353{ (ac_try="$ac_compiler -V >&5"
6354case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
6358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compiler -V >&5") 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006363
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006364{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006368else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006369 cat >conftest.$ac_ext <<_ACEOF
6370/* confdefs.h. */
6371_ACEOF
6372cat confdefs.h >>conftest.$ac_ext
6373cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006374/* end confdefs.h. */
6375
6376int
6377main ()
6378{
6379#ifndef __GNUC__
6380 choke me
6381#endif
6382
6383 ;
6384 return 0;
6385}
6386_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006387rm -f conftest.$ac_objext
6388if { (ac_try="$ac_compile"
6389case "(($ac_try" in
6390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6392esac
6393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6395 ac_status=$?
6396 grep -v '^ *+' conftest.er1 >conftest.err
6397 rm -f conftest.er1
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6402 { (case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_try") 2>&5
6408 ac_status=$?
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415esac
6416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_try") 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006421 ac_compiler_gnu=yes
6422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006427fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006428
Reid Spencera773bd52006-08-04 18:18:08 +00006429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6431
6432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006433{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006436ac_test_CXXFLAGS=${CXXFLAGS+set}
6437ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006438{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440if test "${ac_cv_prog_cxx_g+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006442else
6443 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444 ac_cxx_werror_flag=yes
6445 ac_cv_prog_cxx_g=no
6446 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006447 cat >conftest.$ac_ext <<_ACEOF
6448/* confdefs.h. */
6449_ACEOF
6450cat confdefs.h >>conftest.$ac_ext
6451cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006452/* end confdefs.h. */
6453
6454int
6455main ()
6456{
6457
6458 ;
6459 return 0;
6460}
6461_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006462rm -f conftest.$ac_objext
6463if { (ac_try="$ac_compile"
6464case "(($ac_try" in
6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6467esac
6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } &&
6476 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477 { (case "(($ac_try" in
6478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479 *) ac_try_echo=$ac_try;;
6480esac
6481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482 (eval "$ac_try") 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); }; } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490esac
6491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_try") 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006496 ac_cv_prog_cxx_g=yes
6497else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006498 echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 CXXFLAGS=""
6502 cat >conftest.$ac_ext <<_ACEOF
6503/* confdefs.h. */
6504_ACEOF
6505cat confdefs.h >>conftest.$ac_ext
6506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006507/* end confdefs.h. */
6508
6509int
6510main ()
6511{
6512
6513 ;
6514 return 0;
6515}
6516_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006517rm -f conftest.$ac_objext
6518if { (ac_try="$ac_compile"
6519case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522esac
6523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6525 ac_status=$?
6526 grep -v '^ *+' conftest.er1 >conftest.err
6527 rm -f conftest.er1
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } &&
6531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6535esac
6536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6538 ac_status=$?
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545esac
6546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_try") 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 :
Torok Edwin871384f2010-01-26 08:50:50 +00006552else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006553 echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006557 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006563/* end confdefs.h. */
6564
6565int
6566main ()
6567{
6568
6569 ;
6570 return 0;
6571}
6572_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006573rm -f conftest.$ac_objext
6574if { (ac_try="$ac_compile"
6575case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6591esac
6592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6594 ac_status=$?
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601esac
6602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006607 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608else
6609 echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612
Reid Spencera773bd52006-08-04 18:18:08 +00006613fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006614
Reid Spencera773bd52006-08-04 18:18:08 +00006615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006617
Reid Spencera773bd52006-08-04 18:18:08 +00006618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006620
Reid Spencera773bd52006-08-04 18:18:08 +00006621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6623fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006624{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006626if test "$ac_test_CXXFLAGS" = set; then
6627 CXXFLAGS=$ac_save_CXXFLAGS
6628elif test $ac_cv_prog_cxx_g = yes; then
6629 if test "$GXX" = yes; then
6630 CXXFLAGS="-g -O2"
6631 else
6632 CXXFLAGS="-g"
6633 fi
6634else
6635 if test "$GXX" = yes; then
6636 CXXFLAGS="-O2"
6637 else
6638 CXXFLAGS=
6639 fi
6640fi
6641ac_ext=c
6642ac_cpp='$CPP $CPPFLAGS'
6643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
Reid Spencera773bd52006-08-04 18:18:08 +00006647
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006648{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650if test "${lt_cv_path_NM+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006652else
6653 if test -n "$NM"; then
6654 # Let the user override the test.
6655 lt_cv_path_NM="$NM"
6656else
6657 lt_nm_to_check="${ac_tool_prefix}nm"
6658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659 lt_nm_to_check="$lt_nm_to_check nm"
6660 fi
6661 for lt_tmp_nm in $lt_nm_to_check; do
6662 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6664 IFS="$lt_save_ifs"
6665 test -z "$ac_dir" && ac_dir=.
6666 tmp_nm="$ac_dir/$lt_tmp_nm"
6667 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668 # Check to see if the nm accepts a BSD-compat flag.
6669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670 # nm: unknown option "B" ignored
6671 # Tru64's nm complains that /dev/null is an invalid object file
6672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673 */dev/null* | *'Invalid file or object type'*)
6674 lt_cv_path_NM="$tmp_nm -B"
6675 break
6676 ;;
6677 *)
6678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6679 */dev/null*)
6680 lt_cv_path_NM="$tmp_nm -p"
6681 break
6682 ;;
6683 *)
6684 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685 continue # so that we can try to find one that supports BSD flags
6686 ;;
6687 esac
6688 ;;
6689 esac
6690 fi
6691 done
6692 IFS="$lt_save_ifs"
6693 done
6694 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6695fi
6696fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006697{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006699NM="$lt_cv_path_NM"
6700
6701
6702
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006703{ echo "$as_me:$LINENO: checking for GNU make" >&5
6704echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705if test "${llvm_cv_gnu_make_command+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006707else
6708 llvm_cv_gnu_make_command=''
6709 for a in "$MAKE" make gmake gnumake ; do
6710 if test -z "$a" ; then continue ; fi ;
6711 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6712 then
6713 llvm_cv_gnu_make_command=$a ;
6714 break;
6715 fi
6716 done
6717fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006718{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006720 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6721 ifGNUmake='' ;
6722 else
6723 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006724 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006726 fi
6727
6728
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006729{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006731LN_S=$as_ln_s
6732if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006733 { echo "$as_me:$LINENO: result: yes" >&5
6734echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006735else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006736 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006738fi
6739
6740# Extract the first word of "cmp", so it can be a program name with args.
6741set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744if test "${ac_cv_path_CMP+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006746else
6747 case $CMP in
6748 [\\/]* | ?:[\\/]*)
6749 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6750 ;;
6751 *)
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753for as_dir in $PATH
6754do
6755 IFS=$as_save_IFS
6756 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 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 +00006759 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006761 break 2
6762 fi
6763done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006764done
Reid Spencera773bd52006-08-04 18:18:08 +00006765IFS=$as_save_IFS
6766
6767 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6768 ;;
6769esac
6770fi
6771CMP=$ac_cv_path_CMP
6772if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006773 { echo "$as_me:$LINENO: result: $CMP" >&5
6774echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006775else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006778fi
6779
6780
6781# Extract the first word of "cp", so it can be a program name with args.
6782set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785if test "${ac_cv_path_CP+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006787else
6788 case $CP in
6789 [\\/]* | ?:[\\/]*)
6790 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6791 ;;
6792 *)
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794for as_dir in $PATH
6795do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 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 +00006800 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006802 break 2
6803 fi
6804done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006805done
Reid Spencera773bd52006-08-04 18:18:08 +00006806IFS=$as_save_IFS
6807
6808 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6809 ;;
6810esac
6811fi
6812CP=$ac_cv_path_CP
6813if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006814 { echo "$as_me:$LINENO: result: $CP" >&5
6815echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006817 { echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006819fi
6820
6821
6822# Extract the first word of "date", so it can be a program name with args.
6823set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826if test "${ac_cv_path_DATE+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006828else
6829 case $DATE in
6830 [\\/]* | ?:[\\/]*)
6831 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6832 ;;
6833 *)
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835for as_dir in $PATH
6836do
6837 IFS=$as_save_IFS
6838 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 for ac_exec_ext in '' $ac_executable_extensions; do
6840 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 +00006841 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006843 break 2
6844 fi
6845done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006846done
Reid Spencera773bd52006-08-04 18:18:08 +00006847IFS=$as_save_IFS
6848
6849 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6850 ;;
6851esac
6852fi
6853DATE=$ac_cv_path_DATE
6854if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006855 { echo "$as_me:$LINENO: result: $DATE" >&5
6856echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006857else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006858 { echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006860fi
6861
6862
6863# Extract the first word of "find", so it can be a program name with args.
6864set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867if test "${ac_cv_path_FIND+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006869else
6870 case $FIND in
6871 [\\/]* | ?:[\\/]*)
6872 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6873 ;;
6874 *)
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 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 +00006882 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006884 break 2
6885 fi
6886done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006887done
Reid Spencera773bd52006-08-04 18:18:08 +00006888IFS=$as_save_IFS
6889
6890 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6891 ;;
6892esac
6893fi
6894FIND=$ac_cv_path_FIND
6895if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006896 { echo "$as_me:$LINENO: result: $FIND" >&5
6897echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006898else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006899 { echo "$as_me:$LINENO: result: no" >&5
6900echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006901fi
6902
6903
6904# Extract the first word of "grep", so it can be a program name with args.
6905set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_GREP+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006910else
6911 case $GREP in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 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 +00006923 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006925 break 2
6926 fi
6927done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006928done
Reid Spencera773bd52006-08-04 18:18:08 +00006929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6932 ;;
6933esac
6934fi
6935GREP=$ac_cv_path_GREP
6936if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006937 { echo "$as_me:$LINENO: result: $GREP" >&5
6938echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006942fi
6943
6944
6945# Extract the first word of "mkdir", so it can be a program name with args.
6946set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949if test "${ac_cv_path_MKDIR+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006951else
6952 case $MKDIR in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6955 ;;
6956 *)
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 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 +00006964 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006966 break 2
6967 fi
6968done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006969done
Reid Spencera773bd52006-08-04 18:18:08 +00006970IFS=$as_save_IFS
6971
6972 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6973 ;;
6974esac
6975fi
6976MKDIR=$ac_cv_path_MKDIR
6977if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006978 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006980else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006983fi
6984
6985
6986# Extract the first word of "mv", so it can be a program name with args.
6987set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_path_MV+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006992else
6993 case $MV in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6996 ;;
6997 *)
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 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 +00007005 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007007 break 2
7008 fi
7009done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007010done
Reid Spencera773bd52006-08-04 18:18:08 +00007011IFS=$as_save_IFS
7012
7013 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7014 ;;
7015esac
7016fi
7017MV=$ac_cv_path_MV
7018if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007019 { echo "$as_me:$LINENO: result: $MV" >&5
7020echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007021else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007022 { echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007024fi
7025
7026
7027if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032if test "${ac_cv_prog_RANLIB+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007034else
7035 if test -n "$RANLIB"; then
7036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 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 +00007045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007047 break 2
7048 fi
7049done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007050done
Reid Spencera773bd52006-08-04 18:18:08 +00007051IFS=$as_save_IFS
7052
7053fi
7054fi
7055RANLIB=$ac_cv_prog_RANLIB
7056if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007057 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007059else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007060 { echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007062fi
7063
7064
7065fi
7066if test -z "$ac_cv_prog_RANLIB"; then
7067 ac_ct_RANLIB=$RANLIB
7068 # Extract the first word of "ranlib", so it can be a program name with args.
7069set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007074else
7075 if test -n "$ac_ct_RANLIB"; then
7076 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7077else
7078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079for as_dir in $PATH
7080do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 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 +00007085 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007087 break 2
7088 fi
7089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007090done
Reid Spencera773bd52006-08-04 18:18:08 +00007091IFS=$as_save_IFS
7092
7093fi
7094fi
7095ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007097 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007099else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007100 { echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007102fi
7103
7104 if test "x$ac_ct_RANLIB" = x; then
7105 RANLIB=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110whose name does not start with the host triplet. If you think this
7111configuration is useful to you, please write to autoconf@gnu.org." >&5
7112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113whose name does not start with the host triplet. If you think this
7114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007115ac_tool_warned=yes ;;
7116esac
7117 RANLIB=$ac_ct_RANLIB
7118 fi
7119else
7120 RANLIB="$ac_cv_prog_RANLIB"
7121fi
7122
Torok Edwin871384f2010-01-26 08:50:50 +00007123if test -n "$ac_tool_prefix"; then
7124 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128if test "${ac_cv_prog_AR+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007130else
7131 if test -n "$AR"; then
7132 ac_cv_prog_AR="$AR" # Let the user override the test.
7133else
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 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 +00007141 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007143 break 2
7144 fi
7145done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007146done
Torok Edwin871384f2010-01-26 08:50:50 +00007147IFS=$as_save_IFS
7148
7149fi
7150fi
7151AR=$ac_cv_prog_AR
7152if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007153 { echo "$as_me:$LINENO: result: $AR" >&5
7154echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007155else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007158fi
7159
7160
7161fi
7162if test -z "$ac_cv_prog_AR"; then
7163 ac_ct_AR=$AR
7164 # Extract the first word of "ar", so it can be a program name with args.
7165set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007170else
7171 if test -n "$ac_ct_AR"; then
7172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7173else
7174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175for as_dir in $PATH
7176do
7177 IFS=$as_save_IFS
7178 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 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 +00007181 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007183 break 2
7184 fi
7185done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007186done
Torok Edwin871384f2010-01-26 08:50:50 +00007187IFS=$as_save_IFS
7188
7189fi
7190fi
7191ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007193 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007195else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007198fi
7199
7200 if test "x$ac_ct_AR" = x; then
7201 AR="false"
7202 else
7203 case $cross_compiling:$ac_tool_warned in
7204yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206whose name does not start with the host triplet. If you think this
7207configuration is useful to you, please write to autoconf@gnu.org." >&5
7208echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209whose name does not start with the host triplet. If you think this
7210configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007211ac_tool_warned=yes ;;
7212esac
7213 AR=$ac_ct_AR
7214 fi
7215else
7216 AR="$ac_cv_prog_AR"
7217fi
7218
Reid Spencera773bd52006-08-04 18:18:08 +00007219# Extract the first word of "rm", so it can be a program name with args.
7220set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223if test "${ac_cv_path_RM+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007225else
7226 case $RM in
7227 [\\/]* | ?:[\\/]*)
7228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7229 ;;
7230 *)
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 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 +00007238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007240 break 2
7241 fi
7242done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007243done
Reid Spencera773bd52006-08-04 18:18:08 +00007244IFS=$as_save_IFS
7245
7246 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7247 ;;
7248esac
7249fi
7250RM=$ac_cv_path_RM
7251if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007252 { echo "$as_me:$LINENO: result: $RM" >&5
7253echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007254else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007255 { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007257fi
7258
7259
7260# Extract the first word of "sed", so it can be a program name with args.
7261set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_SED+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007266else
7267 case $SED in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 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 +00007279 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007281 break 2
7282 fi
7283done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007284done
Reid Spencera773bd52006-08-04 18:18:08 +00007285IFS=$as_save_IFS
7286
7287 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7288 ;;
7289esac
7290fi
7291SED=$ac_cv_path_SED
7292if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007293 { echo "$as_me:$LINENO: result: $SED" >&5
7294echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007295else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007298fi
7299
7300
7301# Extract the first word of "tar", so it can be a program name with args.
7302set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305if test "${ac_cv_path_TAR+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007307else
7308 case $TAR in
7309 [\\/]* | ?:[\\/]*)
7310 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7311 ;;
7312 *)
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314for as_dir in $PATH
7315do
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 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 +00007320 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007322 break 2
7323 fi
7324done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007325done
Reid Spencera773bd52006-08-04 18:18:08 +00007326IFS=$as_save_IFS
7327
7328 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7329 ;;
7330esac
7331fi
7332TAR=$ac_cv_path_TAR
7333if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007334 { echo "$as_me:$LINENO: result: $TAR" >&5
7335echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007337 { echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007339fi
7340
7341
7342# Extract the first word of "pwd", so it can be a program name with args.
7343set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346if test "${ac_cv_path_BINPWD+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007348else
7349 case $BINPWD in
7350 [\\/]* | ?:[\\/]*)
7351 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7352 ;;
7353 *)
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 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 +00007361 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007363 break 2
7364 fi
7365done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007366done
Reid Spencera773bd52006-08-04 18:18:08 +00007367IFS=$as_save_IFS
7368
7369 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7370 ;;
7371esac
7372fi
7373BINPWD=$ac_cv_path_BINPWD
7374if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007375 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007377else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007378 { echo "$as_me:$LINENO: result: no" >&5
7379echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007380fi
7381
7382
7383
7384# Extract the first word of "Graphviz", so it can be a program name with args.
7385set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007390else
7391 case $GRAPHVIZ in
7392 [\\/]* | ?:[\\/]*)
7393 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7394 ;;
7395 *)
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397for as_dir in $PATH
7398do
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 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 +00007403 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007405 break 2
7406 fi
7407done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007408done
Reid Spencera773bd52006-08-04 18:18:08 +00007409IFS=$as_save_IFS
7410
7411 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7412 ;;
7413esac
7414fi
7415GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007417 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007420 { echo "$as_me:$LINENO: result: no" >&5
7421echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007422fi
7423
7424
7425if test "$GRAPHVIZ" != "echo Graphviz" ; then
7426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007427cat >>confdefs.h <<\_ACEOF
7428#define HAVE_GRAPHVIZ 1
7429_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007430
Jeff Cohen28783c32007-01-12 18:22:38 +00007431 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007432 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7433 fi
7434
7435cat >>confdefs.h <<_ACEOF
7436#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7437_ACEOF
7438
7439fi
7440# Extract the first word of "dot", so it can be a program name with args.
7441set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444if test "${ac_cv_path_DOT+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007446else
7447 case $DOT in
7448 [\\/]* | ?:[\\/]*)
7449 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7450 ;;
7451 *)
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 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 +00007459 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007461 break 2
7462 fi
7463done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007464done
Reid Spencera773bd52006-08-04 18:18:08 +00007465IFS=$as_save_IFS
7466
7467 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7468 ;;
7469esac
7470fi
7471DOT=$ac_cv_path_DOT
7472if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007473 { echo "$as_me:$LINENO: result: $DOT" >&5
7474echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007475else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007476 { echo "$as_me:$LINENO: result: no" >&5
7477echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007478fi
7479
7480
7481if test "$DOT" != "echo dot" ; then
7482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007483cat >>confdefs.h <<\_ACEOF
7484#define HAVE_DOT 1
7485_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007486
Jeff Cohen28783c32007-01-12 18:22:38 +00007487 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007488 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7489 fi
7490
7491cat >>confdefs.h <<_ACEOF
7492#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7493_ACEOF
7494
7495fi
David Greenef0b9eff2009-07-09 17:16:26 +00007496# Extract the first word of "fdp", so it can be a program name with args.
7497set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500if test "${ac_cv_path_FDP+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007502else
7503 case $FDP in
7504 [\\/]* | ?:[\\/]*)
7505 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7506 ;;
7507 *)
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511 IFS=$as_save_IFS
7512 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 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 +00007515 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007517 break 2
7518 fi
7519done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007520done
David Greenef0b9eff2009-07-09 17:16:26 +00007521IFS=$as_save_IFS
7522
7523 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7524 ;;
7525esac
7526fi
7527FDP=$ac_cv_path_FDP
7528if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007529 { echo "$as_me:$LINENO: result: $FDP" >&5
7530echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007531else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007532 { echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007534fi
7535
7536
7537if test "$FDP" != "echo fdp" ; then
7538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007539cat >>confdefs.h <<\_ACEOF
7540#define HAVE_FDP 1
7541_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007542
7543 if test "$llvm_cv_os_type" = "MingW" ; then
7544 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7545 fi
7546
7547cat >>confdefs.h <<_ACEOF
7548#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7549_ACEOF
7550
7551fi
7552# Extract the first word of "neato", so it can be a program name with args.
7553set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556if test "${ac_cv_path_NEATO+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007558else
7559 case $NEATO in
7560 [\\/]* | ?:[\\/]*)
7561 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7562 ;;
7563 *)
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 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 +00007571 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007573 break 2
7574 fi
7575done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007576done
David Greenef0b9eff2009-07-09 17:16:26 +00007577IFS=$as_save_IFS
7578
7579 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7580 ;;
7581esac
7582fi
7583NEATO=$ac_cv_path_NEATO
7584if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007585 { echo "$as_me:$LINENO: result: $NEATO" >&5
7586echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007587else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007588 { echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007590fi
7591
7592
7593if test "$NEATO" != "echo neato" ; then
7594
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007595cat >>confdefs.h <<\_ACEOF
7596#define HAVE_NEATO 1
7597_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007598
7599 if test "$llvm_cv_os_type" = "MingW" ; then
7600 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7601 fi
7602
7603cat >>confdefs.h <<_ACEOF
7604#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7605_ACEOF
7606
7607fi
7608# Extract the first word of "twopi", so it can be a program name with args.
7609set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612if test "${ac_cv_path_TWOPI+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007614else
7615 case $TWOPI in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7618 ;;
7619 *)
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621for as_dir in $PATH
7622do
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 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 +00007627 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007629 break 2
7630 fi
7631done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007632done
David Greenef0b9eff2009-07-09 17:16:26 +00007633IFS=$as_save_IFS
7634
7635 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7636 ;;
7637esac
7638fi
7639TWOPI=$ac_cv_path_TWOPI
7640if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007641 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007643else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007644 { echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007646fi
7647
7648
7649if test "$TWOPI" != "echo twopi" ; then
7650
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007651cat >>confdefs.h <<\_ACEOF
7652#define HAVE_TWOPI 1
7653_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007654
7655 if test "$llvm_cv_os_type" = "MingW" ; then
7656 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7657 fi
7658
7659cat >>confdefs.h <<_ACEOF
7660#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7661_ACEOF
7662
7663fi
7664# Extract the first word of "circo", so it can be a program name with args.
7665set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668if test "${ac_cv_path_CIRCO+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007670else
7671 case $CIRCO in
7672 [\\/]* | ?:[\\/]*)
7673 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7674 ;;
7675 *)
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 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 +00007683 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007685 break 2
7686 fi
7687done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007688done
David Greenef0b9eff2009-07-09 17:16:26 +00007689IFS=$as_save_IFS
7690
7691 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7692 ;;
7693esac
7694fi
7695CIRCO=$ac_cv_path_CIRCO
7696if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007697 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007699else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007700 { echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007702fi
7703
7704
7705if test "$CIRCO" != "echo circo" ; then
7706
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007707cat >>confdefs.h <<\_ACEOF
7708#define HAVE_CIRCO 1
7709_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007710
7711 if test "$llvm_cv_os_type" = "MingW" ; then
7712 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7713 fi
7714
7715cat >>confdefs.h <<_ACEOF
7716#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7717_ACEOF
7718
7719fi
Reid Spencera773bd52006-08-04 18:18:08 +00007720for ac_prog in gv gsview32
7721do
7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
7723set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726if test "${ac_cv_path_GV+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007728else
7729 case $GV in
7730 [\\/]* | ?:[\\/]*)
7731 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7732 ;;
7733 *)
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 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 +00007741 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007743 break 2
7744 fi
7745done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007746done
Reid Spencera773bd52006-08-04 18:18:08 +00007747IFS=$as_save_IFS
7748
7749 ;;
7750esac
7751fi
7752GV=$ac_cv_path_GV
7753if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007754 { echo "$as_me:$LINENO: result: $GV" >&5
7755echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007756else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007757 { echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007759fi
7760
7761
7762 test -n "$GV" && break
7763done
7764test -n "$GV" || GV="echo gv"
7765
7766if test "$GV" != "echo gv" ; then
7767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007768cat >>confdefs.h <<\_ACEOF
7769#define HAVE_GV 1
7770_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007771
Jeff Cohen28783c32007-01-12 18:22:38 +00007772 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007773 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7774 fi
7775
7776cat >>confdefs.h <<_ACEOF
7777#define LLVM_PATH_GV "$GV${EXEEXT}"
7778_ACEOF
7779
7780fi
7781# Extract the first word of "dotty", so it can be a program name with args.
7782set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785if test "${ac_cv_path_DOTTY+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007787else
7788 case $DOTTY in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7791 ;;
7792 *)
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 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 +00007800 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007802 break 2
7803 fi
7804done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007805done
Reid Spencera773bd52006-08-04 18:18:08 +00007806IFS=$as_save_IFS
7807
7808 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7809 ;;
7810esac
7811fi
7812DOTTY=$ac_cv_path_DOTTY
7813if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007814 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007819fi
7820
7821
7822if test "$DOTTY" != "echo dotty" ; then
7823
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007824cat >>confdefs.h <<\_ACEOF
7825#define HAVE_DOTTY 1
7826_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007827
Jeff Cohen28783c32007-01-12 18:22:38 +00007828 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007829 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7830 fi
7831
7832cat >>confdefs.h <<_ACEOF
7833#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7834_ACEOF
7835
7836fi
7837
7838
7839# Extract the first word of "perl", so it can be a program name with args.
7840set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007841{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7843if test "${ac_cv_path_PERL+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007845else
7846 case $PERL in
7847 [\\/]* | ?:[\\/]*)
7848 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7849 ;;
7850 *)
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852for as_dir in $PATH
7853do
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 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 +00007858 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007860 break 2
7861 fi
7862done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007863done
Reid Spencera773bd52006-08-04 18:18:08 +00007864IFS=$as_save_IFS
7865
7866 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7867 ;;
7868esac
7869fi
7870PERL=$ac_cv_path_PERL
7871if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 { echo "$as_me:$LINENO: result: $PERL" >&5
7873echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007874else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007875 { echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007877fi
7878
7879
7880if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7882echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007883 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007884 { echo "$as_me:$LINENO: result: yes" >&5
7885echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007886 else
7887 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007888 { echo "$as_me:$LINENO: result: not found" >&5
7889echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007890 fi
7891fi
7892
7893
7894if test x"$PERL" = xnone; then
7895 HAVE_PERL=0
7896
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007897 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7898echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7899 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007900else
7901 HAVE_PERL=1
7902
7903fi
7904
7905# Find a good install program. We prefer a C program (faster),
7906# so one script is as good as another. But avoid the broken or
7907# incompatible versions:
7908# SysV /etc/install, /usr/sbin/install
7909# SunOS /usr/etc/install
7910# IRIX /sbin/install
7911# AIX /bin/install
7912# AmigaOS /C/install, which installs bootblocks on floppy discs
7913# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7914# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7915# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7916# OS/2's system install, which has a completely different semantic
7917# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007918{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7919echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007920if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007921if test "${ac_cv_path_install+set}" = set; then
7922 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007923else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925for as_dir in $PATH
7926do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007929 # Account for people who put trailing slashes in PATH elements.
7930case $as_dir/ in
7931 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007932 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007933 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007934 /usr/ucb/* ) ;;
7935 *)
7936 # OSF1 and SCO ODT 3.0 have their own names for install.
7937 # Don't use installbsd from OSF since it installs stuff as root
7938 # by default.
7939 for ac_prog in ginstall scoinst install; do
7940 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007941 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 +00007942 if test $ac_prog = install &&
7943 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7944 # AIX install. It has an incompatible calling convention.
7945 :
7946 elif test $ac_prog = install &&
7947 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7948 # program-specific install script used by HP pwplus--don't use.
7949 :
7950 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007951 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7952 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007953 fi
7954 fi
7955 done
7956 done
7957 ;;
7958esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007959done
Reid Spencera773bd52006-08-04 18:18:08 +00007960IFS=$as_save_IFS
7961
7962
7963fi
7964 if test "${ac_cv_path_install+set}" = set; then
7965 INSTALL=$ac_cv_path_install
7966 else
7967 # As a last resort, use the slow shell script. Don't cache a
7968 # value for INSTALL within a source directory, because that will
7969 # break other packages using the cache if that directory is
7970 # removed, or if the value is a relative name.
7971 INSTALL=$ac_install_sh
7972 fi
7973fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007974{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7975echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007976
7977# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7978# It thinks the first close brace ends the variable substitution.
7979test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7980
7981test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7982
7983test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7984
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007985case "$INSTALL" in
7986 [\\/$]* | ?:[\\/]* ) ;;
7987 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7988esac
Reid Spencera773bd52006-08-04 18:18:08 +00007989
7990# Extract the first word of "bzip2", so it can be a program name with args.
7991set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7994if test "${ac_cv_path_BZIP2+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007996else
7997 case $BZIP2 in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8000 ;;
8001 *)
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008009 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008011 break 2
8012 fi
8013done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008014done
Reid Spencera773bd52006-08-04 18:18:08 +00008015IFS=$as_save_IFS
8016
Reid Spencera773bd52006-08-04 18:18:08 +00008017 ;;
8018esac
8019fi
8020BZIP2=$ac_cv_path_BZIP2
8021if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008022 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8023echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008024else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008025 { echo "$as_me:$LINENO: result: no" >&5
8026echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008027fi
8028
8029
mike-m68cb3192010-05-06 23:45:43 +00008030# Extract the first word of "cat", so it can be a program name with args.
8031set dummy cat; ac_word=$2
8032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8034if test "${ac_cv_path_CAT+set}" = set; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037 case $CAT in
8038 [\\/]* | ?:[\\/]*)
8039 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8040 ;;
8041 *)
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8051 break 2
8052 fi
8053done
8054done
8055IFS=$as_save_IFS
8056
8057 ;;
8058esac
8059fi
8060CAT=$ac_cv_path_CAT
8061if test -n "$CAT"; then
8062 { echo "$as_me:$LINENO: result: $CAT" >&5
8063echo "${ECHO_T}$CAT" >&6; }
8064else
8065 { echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6; }
8067fi
8068
8069
Reid Spencera773bd52006-08-04 18:18:08 +00008070# Extract the first word of "doxygen", so it can be a program name with args.
8071set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8074if test "${ac_cv_path_DOXYGEN+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008076else
8077 case $DOXYGEN in
8078 [\\/]* | ?:[\\/]*)
8079 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8080 ;;
8081 *)
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085 IFS=$as_save_IFS
8086 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008089 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008091 break 2
8092 fi
8093done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008094done
Reid Spencera773bd52006-08-04 18:18:08 +00008095IFS=$as_save_IFS
8096
Reid Spencera773bd52006-08-04 18:18:08 +00008097 ;;
8098esac
8099fi
8100DOXYGEN=$ac_cv_path_DOXYGEN
8101if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008102 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8103echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008104else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008105 { echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008107fi
8108
8109
Reid Spencera773bd52006-08-04 18:18:08 +00008110# Extract the first word of "groff", so it can be a program name with args.
8111set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008112{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8114if test "${ac_cv_path_GROFF+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008116else
8117 case $GROFF in
8118 [\\/]* | ?:[\\/]*)
8119 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8120 ;;
8121 *)
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125 IFS=$as_save_IFS
8126 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008129 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008131 break 2
8132 fi
8133done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008134done
Reid Spencera773bd52006-08-04 18:18:08 +00008135IFS=$as_save_IFS
8136
Reid Spencera773bd52006-08-04 18:18:08 +00008137 ;;
8138esac
8139fi
8140GROFF=$ac_cv_path_GROFF
8141if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008142 { echo "$as_me:$LINENO: result: $GROFF" >&5
8143echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008144else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008145 { echo "$as_me:$LINENO: result: no" >&5
8146echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008147fi
8148
8149
8150# Extract the first word of "gzip", so it can be a program name with args.
8151set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154if test "${ac_cv_path_GZIP+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008156else
8157 case $GZIP in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8160 ;;
8161 *)
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008169 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008171 break 2
8172 fi
8173done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008174done
Reid Spencera773bd52006-08-04 18:18:08 +00008175IFS=$as_save_IFS
8176
Reid Spencera773bd52006-08-04 18:18:08 +00008177 ;;
8178esac
8179fi
8180GZIP=$ac_cv_path_GZIP
8181if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008182 { echo "$as_me:$LINENO: result: $GZIP" >&5
8183echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008184else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008185 { echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008187fi
8188
8189
8190# Extract the first word of "pod2html", so it can be a program name with args.
8191set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008192{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194if test "${ac_cv_path_POD2HTML+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008196else
8197 case $POD2HTML in
8198 [\\/]* | ?:[\\/]*)
8199 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8200 ;;
8201 *)
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008209 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008211 break 2
8212 fi
8213done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008214done
Reid Spencera773bd52006-08-04 18:18:08 +00008215IFS=$as_save_IFS
8216
Reid Spencera773bd52006-08-04 18:18:08 +00008217 ;;
8218esac
8219fi
8220POD2HTML=$ac_cv_path_POD2HTML
8221if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008222 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8223echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008224else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008225 { echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008227fi
8228
8229
8230# Extract the first word of "pod2man", so it can be a program name with args.
8231set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8234if test "${ac_cv_path_POD2MAN+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008236else
8237 case $POD2MAN in
8238 [\\/]* | ?:[\\/]*)
8239 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8240 ;;
8241 *)
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 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 +00008249 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008251 break 2
8252 fi
8253done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008254done
Reid Spencera773bd52006-08-04 18:18:08 +00008255IFS=$as_save_IFS
8256
Reid Spencera773bd52006-08-04 18:18:08 +00008257 ;;
8258esac
8259fi
8260POD2MAN=$ac_cv_path_POD2MAN
8261if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008262 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8263echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008264else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008265 { echo "$as_me:$LINENO: result: no" >&5
8266echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008267fi
8268
8269
mike-m68cb3192010-05-06 23:45:43 +00008270# Extract the first word of "pdfroff", so it can be a program name with args.
8271set dummy pdfroff; ac_word=$2
8272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274if test "${ac_cv_path_PDFROFF+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 case $PDFROFF in
8278 [\\/]* | ?:[\\/]*)
8279 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8280 ;;
8281 *)
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293done
8294done
8295IFS=$as_save_IFS
8296
8297 ;;
8298esac
8299fi
8300PDFROFF=$ac_cv_path_PDFROFF
8301if test -n "$PDFROFF"; then
8302 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8303echo "${ECHO_T}$PDFROFF" >&6; }
8304else
8305 { echo "$as_me:$LINENO: result: no" >&5
8306echo "${ECHO_T}no" >&6; }
8307fi
8308
8309
Reid Spencera773bd52006-08-04 18:18:08 +00008310# Extract the first word of "runtest", so it can be a program name with args.
8311set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314if test "${ac_cv_path_RUNTEST+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008316else
8317 case $RUNTEST in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8320 ;;
8321 *)
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 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 +00008329 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008331 break 2
8332 fi
8333done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008334done
Reid Spencera773bd52006-08-04 18:18:08 +00008335IFS=$as_save_IFS
8336
Reid Spencera773bd52006-08-04 18:18:08 +00008337 ;;
8338esac
8339fi
8340RUNTEST=$ac_cv_path_RUNTEST
8341if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008342 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8343echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008344else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008345 { echo "$as_me:$LINENO: result: no" >&5
8346echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008347fi
8348
8349
8350
8351no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008352{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8353echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008354
8355# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008357 withval=$with_tclinclude; with_tclinclude=${withval}
8358else
8359 with_tclinclude=''
8360fi
8361
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008362if test "${ac_cv_path_tclsh+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008364else
8365
8366if test x"${with_tclinclude}" != x ; then
8367 if test -f ${with_tclinclude}/tclsh ; then
8368 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8369 elif test -f ${with_tclinclude}/src/tclsh ; then
8370 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8371 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008372 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8373echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8374 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008375 fi
8376fi
Torok Edwin871384f2010-01-26 08:50:50 +00008377fi
8378
Reid Spencera773bd52006-08-04 18:18:08 +00008379
8380if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008381 { echo "$as_me:$LINENO: result: none" >&5
8382echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008383 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
8384do
8385 # Extract the first word of "$ac_prog", so it can be a program name with args.
8386set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389if test "${ac_cv_path_TCLSH+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008391else
8392 case $TCLSH in
8393 [\\/]* | ?:[\\/]*)
8394 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8395 ;;
8396 *)
8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398for as_dir in $PATH
8399do
8400 IFS=$as_save_IFS
8401 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008402 for ac_exec_ext in '' $ac_executable_extensions; do
8403 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 +00008404 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008406 break 2
8407 fi
8408done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008409done
Reid Spencera773bd52006-08-04 18:18:08 +00008410IFS=$as_save_IFS
8411
8412 ;;
8413esac
8414fi
8415TCLSH=$ac_cv_path_TCLSH
8416if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008417 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8418echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008419else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008420 { echo "$as_me:$LINENO: result: no" >&5
8421echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008422fi
8423
8424
8425 test -n "$TCLSH" && break
8426done
8427
8428 if test x"${TCLSH}" = x ; then
8429 ac_cv_path_tclsh='';
8430 else
8431 ac_cv_path_tclsh="${TCLSH}";
8432 fi
8433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008434 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8435echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008436 TCLSH="${ac_cv_path_tclsh}"
8437
8438fi
8439
Reid Spencera773bd52006-08-04 18:18:08 +00008440# Extract the first word of "zip", so it can be a program name with args.
8441set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008442{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8444if test "${ac_cv_path_ZIP+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008446else
8447 case $ZIP in
8448 [\\/]* | ?:[\\/]*)
8449 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8450 ;;
8451 *)
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453for as_dir in $PATH
8454do
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 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 +00008459 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008461 break 2
8462 fi
8463done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008464done
Reid Spencera773bd52006-08-04 18:18:08 +00008465IFS=$as_save_IFS
8466
Reid Spencera773bd52006-08-04 18:18:08 +00008467 ;;
8468esac
8469fi
8470ZIP=$ac_cv_path_ZIP
8471if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008472 { echo "$as_me:$LINENO: result: $ZIP" >&5
8473echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008474else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008475 { echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008477fi
8478
8479
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008480for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008481do
8482 # Extract the first word of "$ac_prog", so it can be a program name with args.
8483set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8486if test "${ac_cv_path_OCAMLC+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008488else
8489 case $OCAMLC in
8490 [\\/]* | ?:[\\/]*)
8491 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8492 ;;
8493 *)
8494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495for as_dir in $PATH
8496do
8497 IFS=$as_save_IFS
8498 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008499 for ac_exec_ext in '' $ac_executable_extensions; do
8500 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 +00008501 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008503 break 2
8504 fi
8505done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008506done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008507IFS=$as_save_IFS
8508
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008509 ;;
8510esac
8511fi
8512OCAMLC=$ac_cv_path_OCAMLC
8513if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008514 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8515echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008516else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008517 { echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008519fi
8520
8521
Gordon Henriksene7072162008-03-07 18:20:01 +00008522 test -n "$OCAMLC" && break
8523done
8524
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008525for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008526do
8527 # Extract the first word of "$ac_prog", so it can be a program name with args.
8528set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8531if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008533else
8534 case $OCAMLOPT in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8537 ;;
8538 *)
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540for as_dir in $PATH
8541do
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 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 +00008546 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008548 break 2
8549 fi
8550done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008551done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008552IFS=$as_save_IFS
8553
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008554 ;;
8555esac
8556fi
8557OCAMLOPT=$ac_cv_path_OCAMLOPT
8558if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008559 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8560echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008561else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008562 { echo "$as_me:$LINENO: result: no" >&5
8563echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008564fi
8565
8566
Gordon Henriksene7072162008-03-07 18:20:01 +00008567 test -n "$OCAMLOPT" && break
8568done
8569
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008570for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008571do
8572 # Extract the first word of "$ac_prog", so it can be a program name with args.
8573set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008578else
8579 case $OCAMLDEP in
8580 [\\/]* | ?:[\\/]*)
8581 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8582 ;;
8583 *)
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585for as_dir in $PATH
8586do
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 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 +00008591 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008593 break 2
8594 fi
8595done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008596done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008597IFS=$as_save_IFS
8598
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008599 ;;
8600esac
8601fi
8602OCAMLDEP=$ac_cv_path_OCAMLDEP
8603if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008604 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8605echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008607 { echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008609fi
8610
8611
Gordon Henriksene7072162008-03-07 18:20:01 +00008612 test -n "$OCAMLDEP" && break
8613done
8614
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008615for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008616do
8617 # Extract the first word of "$ac_prog", so it can be a program name with args.
8618set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008619{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8621if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008623else
8624 case $OCAMLDOC in
8625 [\\/]* | ?:[\\/]*)
8626 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8627 ;;
8628 *)
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630for as_dir in $PATH
8631do
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 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 +00008636 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008638 break 2
8639 fi
8640done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008641done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008642IFS=$as_save_IFS
8643
8644 ;;
8645esac
8646fi
8647OCAMLDOC=$ac_cv_path_OCAMLDOC
8648if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008649 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8650echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008651else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008652 { echo "$as_me:$LINENO: result: no" >&5
8653echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008654fi
8655
8656
8657 test -n "$OCAMLDOC" && break
8658done
8659
Torok Edwincc499a42008-10-22 09:56:27 +00008660for ac_prog in gas as
8661do
8662 # Extract the first word of "$ac_prog", so it can be a program name with args.
8663set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8666if test "${ac_cv_path_GAS+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008668else
8669 case $GAS in
8670 [\\/]* | ?:[\\/]*)
8671 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8672 ;;
8673 *)
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675for as_dir in $PATH
8676do
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 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 +00008681 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008683 break 2
8684 fi
8685done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008686done
Torok Edwincc499a42008-10-22 09:56:27 +00008687IFS=$as_save_IFS
8688
8689 ;;
8690esac
8691fi
8692GAS=$ac_cv_path_GAS
8693if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008694 { echo "$as_me:$LINENO: result: $GAS" >&5
8695echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008696else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008697 { echo "$as_me:$LINENO: result: no" >&5
8698echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008699fi
8700
8701
8702 test -n "$GAS" && break
8703done
8704
Reid Spencera773bd52006-08-04 18:18:08 +00008705
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008706{ echo "$as_me:$LINENO: checking for linker version" >&5
8707echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8708if test "${llvm_cv_link_version+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711
8712 version_string="$(ld -v 2>&1 | head -1)"
8713
8714 # Check for ld64.
8715 if (echo "$version_string" | grep -q "ld64"); then
8716 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8717 else
8718 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8719 fi
8720
8721fi
8722{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8723echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8724
8725cat >>confdefs.h <<_ACEOF
8726#define HOST_LINK_VERSION "$llvm_cv_link_version"
8727_ACEOF
8728
8729
8730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008731{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8732echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8733if test "${llvm_cv_link_use_r+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008735else
8736 ac_ext=c
8737ac_cpp='$CPP $CPPFLAGS'
8738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741
8742 oldcflags="$CFLAGS"
8743 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008744 cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h. */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008749/* end confdefs.h. */
8750
8751int
8752main ()
8753{
Dan Gohman39ed6782010-04-25 00:12:20 +00008754
Reid Spencera773bd52006-08-04 18:18:08 +00008755 ;
8756 return 0;
8757}
8758_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008759rm -f conftest.$ac_objext conftest$ac_exeext
8760if { (ac_try="$ac_link"
8761case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764esac
8765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_link") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } &&
8773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774 { (case "(($ac_try" in
8775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776 *) ac_try_echo=$ac_try;;
8777esac
8778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779 (eval "$ac_try") 2>&5
8780 ac_status=$?
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8787esac
8788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_try") 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008793 llvm_cv_link_use_r=yes
8794else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008795 echo "$as_me: failed program was:" >&5
8796sed 's/^/| /' conftest.$ac_ext >&5
8797
8798 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008799fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008800
Bill Wendlingebcceee2009-04-18 11:20:33 +00008801rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008802 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008803 CFLAGS="$oldcflags"
8804 ac_ext=c
8805ac_cpp='$CPP $CPPFLAGS'
8806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8808ac_compiler_gnu=$ac_cv_c_compiler_gnu
8809
8810
8811fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008812{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8813echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008814if test "$llvm_cv_link_use_r" = yes ; then
8815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008816cat >>confdefs.h <<\_ACEOF
8817#define HAVE_LINK_R 1
8818_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008819
8820 fi
8821
8822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008823{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8824echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8825if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008827else
8828 ac_ext=c
8829ac_cpp='$CPP $CPPFLAGS'
8830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8832ac_compiler_gnu=$ac_cv_c_compiler_gnu
8833
8834 oldcflags="$CFLAGS"
8835 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008836 cat >conftest.$ac_ext <<_ACEOF
8837/* confdefs.h. */
8838_ACEOF
8839cat confdefs.h >>conftest.$ac_ext
8840cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008841/* end confdefs.h. */
8842
8843int
8844main ()
8845{
Dan Gohman39ed6782010-04-25 00:12:20 +00008846
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008847 ;
8848 return 0;
8849}
8850_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008851rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (ac_try="$ac_link"
8853case "(($ac_try" in
8854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8855 *) ac_try_echo=$ac_try;;
8856esac
8857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8858 (eval "$ac_link") 2>conftest.er1
8859 ac_status=$?
8860 grep -v '^ *+' conftest.er1 >conftest.err
8861 rm -f conftest.er1
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869esac
8870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871 (eval "$ac_try") 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879esac
8880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_try") 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008885 llvm_cv_link_use_export_dynamic=yes
8886else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008887 echo "$as_me: failed program was:" >&5
8888sed 's/^/| /' conftest.$ac_ext >&5
8889
8890 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008891fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008892
Bill Wendlingebcceee2009-04-18 11:20:33 +00008893rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008894 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008895 CFLAGS="$oldcflags"
8896 ac_ext=c
8897ac_cpp='$CPP $CPPFLAGS'
8898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900ac_compiler_gnu=$ac_cv_c_compiler_gnu
8901
8902
8903fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008904{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8905echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008906if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008908cat >>confdefs.h <<\_ACEOF
8909#define HAVE_LINK_EXPORT_DYNAMIC 1
8910_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008911
8912 fi
8913
8914
Dan Gohmanda612d62010-06-01 14:56:56 +00008915{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8916echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8917if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919else
8920 ac_ext=c
8921ac_cpp='$CPP $CPPFLAGS'
8922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924ac_compiler_gnu=$ac_cv_c_compiler_gnu
8925
8926 oldcflags="$CFLAGS"
8927
8928 # The following code is from the autoconf manual,
8929 # "11.13: Limitations of Usual Tools".
8930 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8931 # Use mktemp if possible; otherwise fall back on mkdir,
8932 # with $RANDOM to make collisions less likely.
8933 : ${TMPDIR=/tmp}
8934 {
8935 tmp=`
8936 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8937 ` &&
8938 test -n "$tmp" && test -d "$tmp"
8939 } || {
8940 tmp=$TMPDIR/foo$$-$RANDOM
8941 (umask 077 && mkdir "$tmp")
8942 } || exit $?
8943
Dan Gohmanda612d62010-06-01 14:56:56 +00008944 echo "{" > "$tmp/export.map"
8945 echo " global: main;" >> "$tmp/export.map"
8946 echo " local: *;" >> "$tmp/export.map"
8947 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008948
Dan Gohmanda612d62010-06-01 14:56:56 +00008949 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008950 cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956
8957int
8958main ()
8959{
Dan Gohman39ed6782010-04-25 00:12:20 +00008960
Dan Gohman391569c2010-04-16 22:59:06 +00008961 ;
8962 return 0;
8963}
8964_ACEOF
8965rm -f conftest.$ac_objext conftest$ac_exeext
8966if { (ac_try="$ac_link"
8967case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970esac
8971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8972 (eval "$ac_link") 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8980 { (case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983esac
8984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_try") 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993esac
8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_try") 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008999 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00009000else
9001 echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
Dan Gohman943005e2010-06-01 16:22:27 +00009004 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00009005fi
9006
9007rm -f core conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00009009 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00009010 rmdir "$tmp"
9011 CFLAGS="$oldcflags"
9012 ac_ext=c
9013ac_cpp='$CPP $CPPFLAGS'
9014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9016ac_compiler_gnu=$ac_cv_c_compiler_gnu
9017
9018
9019fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009020{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9021echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9022if test "$llvm_cv_link_use_version_script" = yes ; then
9023 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009024
9025 fi
9026
9027
Reid Spencera773bd52006-08-04 18:18:08 +00009028
9029
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009030{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9031echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9032if test "${ac_cv_c_const+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009034else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009035 cat >conftest.$ac_ext <<_ACEOF
9036/* confdefs.h. */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009040/* end confdefs.h. */
9041
9042int
9043main ()
9044{
9045/* FIXME: Include the comments suggested by Paul. */
9046#ifndef __cplusplus
9047 /* Ultrix mips cc rejects this. */
9048 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009049 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009050 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009051 char const *const *ccp;
9052 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009053 /* NEC SVR4.0.2 mips cc rejects this. */
9054 struct point {int x, y;};
9055 static struct point const zero = {0,0};
9056 /* AIX XL C 1.02.0.0 rejects this.
9057 It does not let you subtract one const X* pointer from another in
9058 an arm of an if-expression whose if-part is not a constant
9059 expression */
9060 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009061 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009062 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009063 ++ccp;
9064 p = (char**) ccp;
9065 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009066 { /* SCO 3.2v4 cc rejects this. */
9067 char *t;
9068 char const *s = 0 ? (char *) 0 : (char const *) 0;
9069
9070 *t++ = 0;
9071 if (s) return 0;
9072 }
9073 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9074 int x[] = {25, 17};
9075 const int *foo = &x[0];
9076 ++foo;
9077 }
9078 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9079 typedef const int *iptr;
9080 iptr p = 0;
9081 ++p;
9082 }
9083 { /* AIX XL C 1.02.0.0 rejects this saying
9084 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9085 struct s { int j; const int *ap[3]; };
9086 struct s *b; b->j = 5;
9087 }
9088 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9089 const int foo = 10;
9090 if (!foo) return 0;
9091 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009092 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009093#endif
9094
9095 ;
9096 return 0;
9097}
9098_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009099rm -f conftest.$ac_objext
9100if { (ac_try="$ac_compile"
9101case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104esac
9105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9106 (eval "$ac_compile") 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9114 { (case "(($ac_try" in
9115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9117esac
9118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_try") 2>&5
9120 ac_status=$?
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); }; } &&
9123 { ac_try='test -s conftest.$ac_objext'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127esac
9128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009133 ac_cv_c_const=yes
9134else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009135 echo "$as_me: failed program was:" >&5
9136sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009139fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009140
Reid Spencera773bd52006-08-04 18:18:08 +00009141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9142fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009143{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9144echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009145if test $ac_cv_c_const = no; then
9146
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009147cat >>confdefs.h <<\_ACEOF
9148#define const
9149_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009150
9151fi
9152
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009153
9154
9155
9156
9157
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009158ac_header_dirent=no
9159for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009160 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9161{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9162echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009166 cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171/* end confdefs.h. */
9172#include <sys/types.h>
9173#include <$ac_hdr>
9174
9175int
9176main ()
9177{
9178if ((DIR *) 0)
9179return 0;
9180 ;
9181 return 0;
9182}
9183_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009184rm -f conftest.$ac_objext
9185if { (ac_try="$ac_compile"
9186case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189esac
9190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_compile") 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9199 { (case "(($ac_try" in
9200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9202esac
9203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9204 (eval "$ac_try") 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest.$ac_objext'
9209 { (case "(($ac_try" in
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9212esac
9213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_try") 2>&5
9215 ac_status=$?
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218 eval "$as_ac_Header=yes"
9219else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009220 echo "$as_me: failed program was:" >&5
9221sed 's/^/| /' conftest.$ac_ext >&5
9222
9223 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009225
Reid Spencera773bd52006-08-04 18:18:08 +00009226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009227fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009228ac_res=`eval echo '${'$as_ac_Header'}'`
9229 { echo "$as_me:$LINENO: result: $ac_res" >&5
9230echo "${ECHO_T}$ac_res" >&6; }
9231if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009232 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009233#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234_ACEOF
9235
9236ac_header_dirent=$ac_hdr; break
9237fi
9238
9239done
9240# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9241if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009242 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9243echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9244if test "${ac_cv_search_opendir+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009246else
9247 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009248cat >conftest.$ac_ext <<_ACEOF
9249/* confdefs.h. */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009253/* end confdefs.h. */
9254
Reid Spencera773bd52006-08-04 18:18:08 +00009255/* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009258#ifdef __cplusplus
9259extern "C"
9260#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009261char opendir ();
9262int
9263main ()
9264{
Reid Spencera773bd52006-08-04 18:18:08 +00009265return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009266 ;
9267 return 0;
9268}
9269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009270for ac_lib in '' dir; do
9271 if test -z "$ac_lib"; then
9272 ac_res="none required"
9273 else
9274 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009276 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009277 rm -f conftest.$ac_objext conftest$ac_exeext
9278if { (ac_try="$ac_link"
9279case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282esac
9283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_link") 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9292 { (case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295esac
9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_try") 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest$ac_exeext'
9302 { (case "(($ac_try" in
9303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304 *) ac_try_echo=$ac_try;;
9305esac
9306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307 (eval "$ac_try") 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009311 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009312else
9313 echo "$as_me: failed program was:" >&5
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
9316
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009318
Bill Wendlingebcceee2009-04-18 11:20:33 +00009319rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320 conftest$ac_exeext
9321 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009322 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323fi
John Criswell7a73b802003-06-30 21:59:07 +00009324done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009325if test "${ac_cv_search_opendir+set}" = set; then
9326 :
Reid Spencera773bd52006-08-04 18:18:08 +00009327else
9328 ac_cv_search_opendir=no
9329fi
9330rm conftest.$ac_ext
9331LIBS=$ac_func_search_save_LIBS
9332fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009333{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9334echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009335ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009336if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009338
Reid Spencera773bd52006-08-04 18:18:08 +00009339fi
9340
9341else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9343echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9344if test "${ac_cv_search_opendir+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009346else
9347 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009348cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009353/* end confdefs.h. */
9354
9355/* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358#ifdef __cplusplus
9359extern "C"
9360#endif
9361char opendir ();
9362int
9363main ()
9364{
9365return opendir ();
9366 ;
9367 return 0;
9368}
9369_ACEOF
9370for ac_lib in '' x; do
9371 if test -z "$ac_lib"; then
9372 ac_res="none required"
9373 else
9374 ac_res=-l$ac_lib
9375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9376 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009377 rm -f conftest.$ac_objext conftest$ac_exeext
9378if { (ac_try="$ac_link"
9379case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382esac
9383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_link") 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } &&
9391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9392 { (case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395esac
9396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_try") 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest$ac_exeext'
9402 { (case "(($ac_try" in
9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404 *) ac_try_echo=$ac_try;;
9405esac
9406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9407 (eval "$ac_try") 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009411 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009412else
9413 echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416
Reid Spencera773bd52006-08-04 18:18:08 +00009417fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009418
Bill Wendlingebcceee2009-04-18 11:20:33 +00009419rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009420 conftest$ac_exeext
9421 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009422 break
9423fi
9424done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009425if test "${ac_cv_search_opendir+set}" = set; then
9426 :
Reid Spencera773bd52006-08-04 18:18:08 +00009427else
9428 ac_cv_search_opendir=no
9429fi
9430rm conftest.$ac_ext
9431LIBS=$ac_func_search_save_LIBS
9432fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009433{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9434echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009435ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009436if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9438
9439fi
9440
9441fi
John Criswell7a73b802003-06-30 21:59:07 +00009442
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009443
John Criswell7a73b802003-06-30 21:59:07 +00009444for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009445do
9446as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9447if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9449echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452fi
9453ac_res=`eval echo '${'$as_ac_Header'}'`
9454 { echo "$as_me:$LINENO: result: $ac_res" >&5
9455echo "${ECHO_T}$ac_res" >&6; }
9456else
9457 # Is the header compilable?
9458{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9459echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9460cat >conftest.$ac_ext <<_ACEOF
9461/* confdefs.h. */
9462_ACEOF
9463cat confdefs.h >>conftest.$ac_ext
9464cat >>conftest.$ac_ext <<_ACEOF
9465/* end confdefs.h. */
9466$ac_includes_default
9467#include <$ac_header>
9468_ACEOF
9469rm -f conftest.$ac_objext
9470if { (ac_try="$ac_compile"
9471case "(($ac_try" in
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9474esac
9475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
9477 ac_status=$?
9478 grep -v '^ *+' conftest.er1 >conftest.err
9479 rm -f conftest.er1
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9490 ac_status=$?
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497esac
9498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_header_compiler=yes
9504else
9505 echo "$as_me: failed program was:" >&5
9506sed 's/^/| /' conftest.$ac_ext >&5
9507
9508 ac_header_compiler=no
9509fi
9510
9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513echo "${ECHO_T}$ac_header_compiler" >&6; }
9514
9515# Is the header present?
9516{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9518cat >conftest.$ac_ext <<_ACEOF
9519/* confdefs.h. */
9520_ACEOF
9521cat confdefs.h >>conftest.$ac_ext
9522cat >>conftest.$ac_ext <<_ACEOF
9523/* end confdefs.h. */
9524#include <$ac_header>
9525_ACEOF
9526if { (ac_try="$ac_cpp conftest.$ac_ext"
9527case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9533 ac_status=$?
9534 grep -v '^ *+' conftest.er1 >conftest.err
9535 rm -f conftest.er1
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } >/dev/null; then
9539 if test -s conftest.err; then
9540 ac_cpp_err=$ac_c_preproc_warn_flag
9541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9542 else
9543 ac_cpp_err=
9544 fi
9545else
9546 ac_cpp_err=yes
9547fi
9548if test -z "$ac_cpp_err"; then
9549 ac_header_preproc=yes
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_header_preproc=no
9555fi
9556
9557rm -f conftest.err conftest.$ac_ext
9558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9559echo "${ECHO_T}$ac_header_preproc" >&6; }
9560
9561# So? What about this header?
9562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9563 yes:no: )
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9568 ac_header_preproc=yes
9569 ;;
9570 no:yes:* )
9571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9583 ( cat <<\_ASBOX
9584## ----------------------------------- ##
9585## Report this to llvmbugs@cs.uiuc.edu ##
9586## ----------------------------------- ##
9587_ASBOX
9588 ) | sed "s/^/$as_me: WARNING: /" >&2
9589 ;;
9590esac
9591{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595else
9596 eval "$as_ac_Header=\$ac_header_preproc"
9597fi
9598ac_res=`eval echo '${'$as_ac_Header'}'`
9599 { echo "$as_me:$LINENO: result: $ac_res" >&5
9600echo "${ECHO_T}$ac_res" >&6; }
9601
9602fi
9603if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009604 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009606_ACEOF
9607
9608fi
9609
9610done
9611
Reid Spencera773bd52006-08-04 18:18:08 +00009612# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009613if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009614 enableval=$enable_ltdl_install;
9615fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009616
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009618
9619
9620if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621 INSTALL_LTDL_TRUE=
9622 INSTALL_LTDL_FALSE='#'
9623else
9624 INSTALL_LTDL_TRUE='#'
9625 INSTALL_LTDL_FALSE=
9626fi
9627
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009628
9629
9630if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009631 CONVENIENCE_LTDL_TRUE=
9632 CONVENIENCE_LTDL_FALSE='#'
9633else
9634 CONVENIENCE_LTDL_TRUE='#'
9635 CONVENIENCE_LTDL_FALSE=
9636fi
9637
9638
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009639{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9640echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641library_names_spec=
9642libname_spec='lib$name'
9643soname_spec=
9644shrext_cmds=".so"
9645postinstall_cmds=
9646postuninstall_cmds=
9647finish_cmds=
9648finish_eval=
9649shlibpath_var=
9650shlibpath_overrides_runpath=unknown
9651version_type=none
9652dynamic_linker="$host_os ld.so"
9653sys_lib_dlsearch_path_spec="/lib /usr/lib"
9654if test "$GCC" = yes; then
9655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9656 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9657 # if the path contains ";" then we assume it to be the separator
9658 # otherwise default to the standard path separator (i.e. ":") - it is
9659 # assumed that no part of a normal pathname contains ";" but that should
9660 # okay in the real world where ";" in dirpaths is itself problematic.
9661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9662 else
9663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9664 fi
9665else
9666 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9667fi
9668need_lib_prefix=unknown
9669hardcode_into_libs=no
9670
9671# when you set need_version to no, make sure it does not cause -set_version
9672# flags to be left without arguments
9673need_version=unknown
9674
9675case $host_os in
9676aix3*)
9677 version_type=linux
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9679 shlibpath_var=LIBPATH
9680
9681 # AIX 3 has no versioning support, so we append a major version to the name.
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 ;;
9684
9685aix4* | aix5*)
9686 version_type=linux
9687 need_lib_prefix=no
9688 need_version=no
9689 hardcode_into_libs=yes
9690 if test "$host_cpu" = ia64; then
9691 # AIX 5 supports IA64
9692 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 else
9695 # With GCC up to 2.95.x, collect2 would create an import file
9696 # for dependence libraries. The import file would start with
9697 # the line `#! .'. This would cause the generated library to
9698 # depend on `.', always an invalid library. This was fixed in
9699 # development snapshots of GCC prior to 3.0.
9700 case $host_os in
9701 aix4 | aix4.[01] | aix4.[01].*)
9702 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9703 echo ' yes '
9704 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9705 :
9706 else
9707 can_build_shared=no
9708 fi
9709 ;;
9710 esac
9711 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9712 # soname into executable. Probably we can add versioning support to
9713 # collect2, so additional links can be useful in future.
9714 if test "$aix_use_runtimelinking" = yes; then
9715 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9716 # instead of lib<name>.a to let people know that these are not
9717 # typical AIX shared libraries.
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719 else
9720 # We preserve .a as extension for shared libraries through AIX4.2
9721 # and later when we are not doing run time linking.
9722 library_names_spec='${libname}${release}.a $libname.a'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 fi
9725 shlibpath_var=LIBPATH
9726 fi
9727 ;;
9728
9729amigaos*)
9730 library_names_spec='$libname.ixlibrary $libname.a'
9731 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9732 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'
9733 ;;
9734
9735beos*)
9736 library_names_spec='${libname}${shared_ext}'
9737 dynamic_linker="$host_os ld.so"
9738 shlibpath_var=LIBRARY_PATH
9739 ;;
9740
9741bsdi[45]*)
9742 version_type=linux
9743 need_version=no
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9747 shlibpath_var=LD_LIBRARY_PATH
9748 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9749 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9750 # the default ld.so.conf also contains /usr/contrib/lib and
9751 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9752 # libtool to hard-code these into programs
9753 ;;
9754
9755cygwin* | mingw* | pw32*)
9756 version_type=windows
9757 shrext_cmds=".dll"
9758 need_version=no
9759 need_lib_prefix=no
9760
9761 case $GCC,$host_os in
9762 yes,cygwin* | yes,mingw* | yes,pw32*)
9763 library_names_spec='$libname.dll.a'
9764 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9765 postinstall_cmds='base_file=`basename \${file}`~
9766 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9767 dldir=$destdir/`dirname \$dlpath`~
9768 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009769 $install_prog $dir/$dlname \$dldir/$dlname~
9770 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9772 dlpath=$dir/\$dldll~
9773 $rm \$dlpath'
9774 shlibpath_overrides_runpath=yes
9775
9776 case $host_os in
9777 cygwin*)
9778 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9779 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9781 ;;
9782 mingw*)
9783 # MinGW DLLs use traditional 'lib' prefix
9784 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9786 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9787 # It is most probably a Windows format PATH printed by
9788 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9789 # path with ; separators, and with drive letters. We can handle the
9790 # drive letters (cygwin fileutils understands them), so leave them,
9791 # especially as we might pass files found there to a mingw objdump,
9792 # which wouldn't understand a cygwinified path. Ahh.
9793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9794 else
9795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9796 fi
9797 ;;
9798 pw32*)
9799 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009800 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 +00009801 ;;
9802 esac
9803 ;;
9804
9805 *)
9806 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9807 ;;
9808 esac
9809 dynamic_linker='Win32 ld.exe'
9810 # FIXME: first we should search . and the directory the executable is in
9811 shlibpath_var=PATH
9812 ;;
9813
9814darwin* | rhapsody*)
9815 dynamic_linker="$host_os dyld"
9816 version_type=darwin
9817 need_lib_prefix=no
9818 need_version=no
9819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9820 soname_spec='${libname}${release}${major}$shared_ext'
9821 shlibpath_overrides_runpath=yes
9822 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009823 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009824 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9825 if test "$GCC" = yes; then
9826 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"`
9827 else
9828 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9829 fi
9830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9831 ;;
9832
9833dgux*)
9834 version_type=linux
9835 need_lib_prefix=no
9836 need_version=no
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 shlibpath_var=LD_LIBRARY_PATH
9840 ;;
9841
9842freebsd1*)
9843 dynamic_linker=no
9844 ;;
9845
9846kfreebsd*-gnu)
9847 version_type=linux
9848 need_lib_prefix=no
9849 need_version=no
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=no
9854 hardcode_into_libs=yes
9855 dynamic_linker='GNU ld.so'
9856 ;;
9857
Reid Spencera773bd52006-08-04 18:18:08 +00009858freebsd* | dragonfly*)
9859 # DragonFly does not have aout. When/if they implement a new
9860 # versioning mechanism, adjust this.
9861 if test -x /usr/bin/objformat; then
9862 objformat=`/usr/bin/objformat`
9863 else
9864 case $host_os in
9865 freebsd[123]*) objformat=aout ;;
9866 *) objformat=elf ;;
9867 esac
9868 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869 version_type=freebsd-$objformat
9870 case $version_type in
9871 freebsd-elf*)
9872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9873 need_version=no
9874 need_lib_prefix=no
9875 ;;
9876 freebsd-*)
9877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9878 need_version=yes
9879 ;;
9880 esac
9881 shlibpath_var=LD_LIBRARY_PATH
9882 case $host_os in
9883 freebsd2*)
9884 shlibpath_overrides_runpath=yes
9885 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009886 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887 shlibpath_overrides_runpath=yes
9888 hardcode_into_libs=yes
9889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009892 shlibpath_overrides_runpath=no
9893 hardcode_into_libs=yes
9894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009895 freebsd*) # from 4.6 on
9896 shlibpath_overrides_runpath=yes
9897 hardcode_into_libs=yes
9898 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 esac
9900 ;;
9901
9902gnu*)
9903 version_type=linux
9904 need_lib_prefix=no
9905 need_version=no
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 hardcode_into_libs=yes
9910 ;;
9911
9912hpux9* | hpux10* | hpux11*)
9913 # Give a soname corresponding to the major version so that dld.sl refuses to
9914 # link against other versions.
9915 version_type=sunos
9916 need_lib_prefix=no
9917 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009918 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919 ia64*)
9920 shrext_cmds='.so'
9921 hardcode_into_libs=yes
9922 dynamic_linker="$host_os dld.so"
9923 shlibpath_var=LD_LIBRARY_PATH
9924 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 soname_spec='${libname}${release}${shared_ext}$major'
9927 if test "X$HPUX_IA64_MODE" = X32; then
9928 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9929 else
9930 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9931 fi
9932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9933 ;;
9934 hppa*64*)
9935 shrext_cmds='.sl'
9936 hardcode_into_libs=yes
9937 dynamic_linker="$host_os dld.sl"
9938 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9939 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 soname_spec='${libname}${release}${shared_ext}$major'
9942 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9944 ;;
9945 *)
9946 shrext_cmds='.sl'
9947 dynamic_linker="$host_os dld.sl"
9948 shlibpath_var=SHLIB_PATH
9949 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9952 ;;
9953 esac
9954 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9955 postinstall_cmds='chmod 555 $lib'
9956 ;;
9957
Reid Spencera773bd52006-08-04 18:18:08 +00009958interix3*)
9959 version_type=linux
9960 need_lib_prefix=no
9961 need_version=no
9962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=no
9967 hardcode_into_libs=yes
9968 ;;
9969
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009970irix5* | irix6* | nonstopux*)
9971 case $host_os in
9972 nonstopux*) version_type=nonstopux ;;
9973 *)
9974 if test "$lt_cv_prog_gnu_ld" = yes; then
9975 version_type=linux
9976 else
9977 version_type=irix
9978 fi ;;
9979 esac
9980 need_lib_prefix=no
9981 need_version=no
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9984 case $host_os in
9985 irix5* | nonstopux*)
9986 libsuff= shlibsuff=
9987 ;;
9988 *)
9989 case $LD in # libtool.m4 will add one of these switches to LD
9990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9991 libsuff= shlibsuff= libmagic=32-bit;;
9992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9993 libsuff=32 shlibsuff=N32 libmagic=N32;;
9994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9995 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9996 *) libsuff= shlibsuff= libmagic=never-match;;
9997 esac
9998 ;;
9999 esac
10000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10001 shlibpath_overrides_runpath=no
10002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10004 hardcode_into_libs=yes
10005 ;;
10006
10007# No shared lib support for Linux oldld, aout, or coff.
10008linux*oldld* | linux*aout* | linux*coff*)
10009 dynamic_linker=no
10010 ;;
10011
10012# This must be Linux ELF.
10013linux*)
10014 version_type=linux
10015 need_lib_prefix=no
10016 need_version=no
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018 soname_spec='${libname}${release}${shared_ext}$major'
10019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10020 shlibpath_var=LD_LIBRARY_PATH
10021 shlibpath_overrides_runpath=no
10022 # This implies no fast_install, which is unacceptable.
10023 # Some rework will be needed to allow for fast_install
10024 # before this can be enabled.
10025 hardcode_into_libs=yes
10026
10027 # Append ld.so.conf contents to the search path
10028 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010029 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 +000010030 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10031 fi
10032
10033 # We used to test for /lib/ld.so.1 and disable shared libraries on
10034 # powerpc, because MkLinux only supported shared libraries with the
10035 # GNU dynamic linker. Since this was broken with cross compilers,
10036 # most powerpc-linux boxes support dynamic linking these days and
10037 # people can always --disable-shared, the test was removed, and we
10038 # assume the GNU/Linux dynamic linker is in use.
10039 dynamic_linker='GNU/Linux ld.so'
10040 ;;
10041
10042knetbsd*-gnu)
10043 version_type=linux
10044 need_lib_prefix=no
10045 need_version=no
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10051 dynamic_linker='GNU ld.so'
10052 ;;
10053
10054netbsd*)
10055 version_type=sunos
10056 need_lib_prefix=no
10057 need_version=no
10058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10060 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10061 dynamic_linker='NetBSD (a.out) ld.so'
10062 else
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10064 soname_spec='${libname}${release}${shared_ext}$major'
10065 dynamic_linker='NetBSD ld.elf_so'
10066 fi
10067 shlibpath_var=LD_LIBRARY_PATH
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10070 ;;
10071
10072newsos6)
10073 version_type=linux
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=yes
10077 ;;
10078
10079nto-qnx*)
10080 version_type=linux
10081 need_lib_prefix=no
10082 need_version=no
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 shlibpath_overrides_runpath=yes
10087 ;;
10088
10089openbsd*)
10090 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010091 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010093 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10094 case $host_os in
10095 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10096 *) need_version=no ;;
10097 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10102 case $host_os in
10103 openbsd2.[89] | openbsd2.[89].*)
10104 shlibpath_overrides_runpath=no
10105 ;;
10106 *)
10107 shlibpath_overrides_runpath=yes
10108 ;;
10109 esac
10110 else
10111 shlibpath_overrides_runpath=yes
10112 fi
10113 ;;
10114
10115os2*)
10116 libname_spec='$name'
10117 shrext_cmds=".dll"
10118 need_lib_prefix=no
10119 library_names_spec='$libname${shared_ext} $libname.a'
10120 dynamic_linker='OS/2 ld.exe'
10121 shlibpath_var=LIBPATH
10122 ;;
10123
10124osf3* | osf4* | osf5*)
10125 version_type=osf
10126 need_lib_prefix=no
10127 need_version=no
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 shlibpath_var=LD_LIBRARY_PATH
10131 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10132 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10133 ;;
10134
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010135solaris*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 shlibpath_overrides_runpath=yes
10143 hardcode_into_libs=yes
10144 # ldd complains unless libraries are executable
10145 postinstall_cmds='chmod +x $lib'
10146 ;;
10147
10148sunos4*)
10149 version_type=sunos
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10152 shlibpath_var=LD_LIBRARY_PATH
10153 shlibpath_overrides_runpath=yes
10154 if test "$with_gnu_ld" = yes; then
10155 need_lib_prefix=no
10156 fi
10157 need_version=yes
10158 ;;
10159
Reid Spencera773bd52006-08-04 18:18:08 +000010160sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161 version_type=linux
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 case $host_vendor in
10166 sni)
10167 shlibpath_overrides_runpath=no
10168 need_lib_prefix=no
10169 export_dynamic_flag_spec='${wl}-Blargedynsym'
10170 runpath_var=LD_RUN_PATH
10171 ;;
10172 siemens)
10173 need_lib_prefix=no
10174 ;;
10175 motorola)
10176 need_lib_prefix=no
10177 need_version=no
10178 shlibpath_overrides_runpath=no
10179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10180 ;;
10181 esac
10182 ;;
10183
10184sysv4*MP*)
10185 if test -d /usr/nec ;then
10186 version_type=linux
10187 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10188 soname_spec='$libname${shared_ext}.$major'
10189 shlibpath_var=LD_LIBRARY_PATH
10190 fi
10191 ;;
10192
Reid Spencera773bd52006-08-04 18:18:08 +000010193sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10194 version_type=freebsd-elf
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 hardcode_into_libs=yes
10201 if test "$with_gnu_ld" = yes; then
10202 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10203 shlibpath_overrides_runpath=no
10204 else
10205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10206 shlibpath_overrides_runpath=yes
10207 case $host_os in
10208 sco3.2v5*)
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10210 ;;
10211 esac
10212 fi
10213 sys_lib_dlsearch_path_spec='/usr/lib'
10214 ;;
10215
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216uts4*)
10217 version_type=linux
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 ;;
10222
10223*)
10224 dynamic_linker=no
10225 ;;
10226esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010227{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10228echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010229test "$dynamic_linker" = no && can_build_shared=no
10230
Reid Spencera773bd52006-08-04 18:18:08 +000010231variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10232if test "$GCC" = yes; then
10233 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10234fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235
Reid Spencera773bd52006-08-04 18:18:08 +000010236
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010237{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10238echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10239if test "${libltdl_cv_shlibext+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241else
10242
10243module=yes
10244eval libltdl_cv_shlibext=$shrext_cmds
10245
10246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010247{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10248echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010249if test -n "$libltdl_cv_shlibext"; then
10250
10251cat >>confdefs.h <<_ACEOF
10252#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10253_ACEOF
10254
10255fi
10256
10257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010258{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10259echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10260if test "${libltdl_cv_shlibpath_var+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010262else
10263 libltdl_cv_shlibpath_var="$shlibpath_var"
10264fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010265{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10266echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267if test -n "$libltdl_cv_shlibpath_var"; then
10268
10269cat >>confdefs.h <<_ACEOF
10270#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10271_ACEOF
10272
10273fi
10274
10275
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010276{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10277echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10278if test "${libltdl_cv_sys_search_path+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280else
10281 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10282fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010283{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10284echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285if test -n "$libltdl_cv_sys_search_path"; then
10286 sys_search_path=
10287 for dir in $libltdl_cv_sys_search_path; do
10288 if test -z "$sys_search_path"; then
10289 sys_search_path="$dir"
10290 else
10291 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10292 fi
10293 done
10294
10295cat >>confdefs.h <<_ACEOF
10296#define LTDL_SYSSEARCHPATH "$sys_search_path"
10297_ACEOF
10298
10299fi
10300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010301{ echo "$as_me:$LINENO: checking for objdir" >&5
10302echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10303if test "${libltdl_cv_objdir+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305else
10306 libltdl_cv_objdir="$objdir"
10307 if test -n "$objdir"; then
10308 :
10309 else
10310 rm -f .libs 2>/dev/null
10311 mkdir .libs 2>/dev/null
10312 if test -d .libs; then
10313 libltdl_cv_objdir=.libs
10314 else
10315 # MS-DOS does not allow filenames that begin with a dot.
10316 libltdl_cv_objdir=_libs
10317 fi
10318 rmdir .libs 2>/dev/null
10319 fi
10320
10321fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010322{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10323echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324
10325cat >>confdefs.h <<_ACEOF
10326#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10327_ACEOF
10328
10329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330
10331
10332
10333
10334# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010335{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10336echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10337if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339else
10340
10341# These are sane defaults that work on at least a few old systems.
10342# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10343
10344# Character class describing NM global symbol codes.
10345symcode='[BCDEGRST]'
10346
10347# Regexp to match symbols that can be accessed directly from C.
10348sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10349
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350# Transform an extracted symbol line into a proper C declaration
10351lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10352
10353# Transform an extracted symbol line into symbol name and symbol address
10354lt_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'"
10355
10356# Define system-specific variables.
10357case $host_os in
10358aix*)
10359 symcode='[BCDT]'
10360 ;;
10361cygwin* | mingw* | pw32*)
10362 symcode='[ABCDGISTW]'
10363 ;;
10364hpux*) # Its linker distinguishes data from code symbols
10365 if test "$host_cpu" = ia64; then
10366 symcode='[ABCDEGRST]'
10367 fi
10368 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10369 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'"
10370 ;;
10371linux*)
10372 if test "$host_cpu" = ia64; then
10373 symcode='[ABCDGIRSTW]'
10374 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10375 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'"
10376 fi
10377 ;;
10378irix* | nonstopux*)
10379 symcode='[BCDEGRST]'
10380 ;;
10381osf*)
10382 symcode='[BCDEGQRST]'
10383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010384solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010385 symcode='[BDRT]'
10386 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010387sco3.2v5*)
10388 symcode='[DT]'
10389 ;;
10390sysv4.2uw2*)
10391 symcode='[DT]'
10392 ;;
10393sysv5* | sco5v6* | unixware* | OpenUNIX*)
10394 symcode='[ABDT]'
10395 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396sysv4)
10397 symcode='[DFNSTU]'
10398 ;;
10399esac
10400
10401# Handle CRLF in mingw tool chain
10402opt_cr=
10403case $build_os in
10404mingw*)
10405 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10406 ;;
10407esac
10408
10409# If we're using GNU nm, then use its standard symbol codes.
10410case `$NM -V 2>&1` in
10411*GNU* | *'with BFD'*)
10412 symcode='[ABCDGIRSTW]' ;;
10413esac
10414
10415# Try without a prefix undercore, then with it.
10416for ac_symprfx in "" "_"; do
10417
Reid Spencera773bd52006-08-04 18:18:08 +000010418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10419 symxfrm="\\1 $ac_symprfx\\2 \\2"
10420
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010422 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 +000010423
10424 # Check to see that the pipe works correctly.
10425 pipe_works=no
10426
10427 rm -f conftest*
10428 cat > conftest.$ac_ext <<EOF
10429#ifdef __cplusplus
10430extern "C" {
10431#endif
10432char nm_test_var;
10433void nm_test_func(){}
10434#ifdef __cplusplus
10435}
10436#endif
10437int main(){nm_test_var='a';nm_test_func();return(0);}
10438EOF
10439
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441 (eval $ac_compile) 2>&5
10442 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 # Now try to grab the symbols.
10446 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010447 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 +000010448 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10449 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 # Try sorting and uniquifying the output.
10453 if sort "$nlist" | uniq > "$nlist"T; then
10454 mv -f "$nlist"T "$nlist"
10455 else
10456 rm -f "$nlist"T
10457 fi
10458
10459 # Make sure that we snagged all the symbols we need.
10460 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10461 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10462 cat <<EOF > conftest.$ac_ext
10463#ifdef __cplusplus
10464extern "C" {
10465#endif
10466
10467EOF
10468 # Now generate the symbol file.
10469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10470
10471 cat <<EOF >> conftest.$ac_ext
10472#if defined (__STDC__) && __STDC__
10473# define lt_ptr_t void *
10474#else
10475# define lt_ptr_t char *
10476# define const
10477#endif
10478
10479/* The mapping between symbol names and symbols. */
10480const struct {
10481 const char *name;
10482 lt_ptr_t address;
10483}
10484lt_preloaded_symbols[] =
10485{
10486EOF
10487 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10488 cat <<\EOF >> conftest.$ac_ext
10489 {0, (lt_ptr_t) 0}
10490};
10491
10492#ifdef __cplusplus
10493}
10494#endif
10495EOF
10496 # Now try linking the two files.
10497 mv conftest.$ac_objext conftstm.$ac_objext
10498 lt_save_LIBS="$LIBS"
10499 lt_save_CFLAGS="$CFLAGS"
10500 LIBS="conftstm.$ac_objext"
10501 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503 (eval $ac_link) 2>&5
10504 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507 pipe_works=yes
10508 fi
10509 LIBS="$lt_save_LIBS"
10510 CFLAGS="$lt_save_CFLAGS"
10511 else
10512 echo "cannot find nm_test_func in $nlist" >&5
10513 fi
10514 else
10515 echo "cannot find nm_test_var in $nlist" >&5
10516 fi
10517 else
10518 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10519 fi
10520 else
10521 echo "$progname: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10523 fi
10524 rm -f conftest* conftst*
10525
10526 # Do not use the global_symbol_pipe unless it works.
10527 if test "$pipe_works" = yes; then
10528 break
10529 else
10530 lt_cv_sys_global_symbol_pipe=
10531 fi
10532done
10533
10534fi
10535
10536if test -z "$lt_cv_sys_global_symbol_pipe"; then
10537 lt_cv_sys_global_symbol_to_cdecl=
10538fi
10539if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010540 { echo "$as_me:$LINENO: result: failed" >&5
10541echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010543 { echo "$as_me:$LINENO: result: ok" >&5
10544echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545fi
10546
10547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010548{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10549echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10550if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552else
10553 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10554 libltdl_cv_preloaded_symbols=yes
10555 else
10556 libltdl_cv_preloaded_symbols=no
10557 fi
10558
10559fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010560{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10561echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10563
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010564cat >>confdefs.h <<\_ACEOF
10565#define HAVE_PRELOADED_SYMBOLS 1
10566_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567
10568fi
10569
10570LIBADD_DL=
10571
10572ac_ext=c
10573ac_cpp='$CPP $CPPFLAGS'
10574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10576ac_compiler_gnu=$ac_cv_c_compiler_gnu
10577
10578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010579{ echo "$as_me:$LINENO: checking for shl_load" >&5
10580echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10581if test "${ac_cv_func_shl_load+set}" = set; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583else
10584 cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
10590/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10592#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010594/* System header to define __stub macros and hopefully few prototypes,
10595 which can conflict with char shl_load (); below.
10596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10597 <limits.h> exists even on freestanding compilers. */
10598
10599#ifdef __STDC__
10600# include <limits.h>
10601#else
10602# include <assert.h>
10603#endif
10604
10605#undef shl_load
10606
10607/* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610#ifdef __cplusplus
10611extern "C"
10612#endif
10613char shl_load ();
10614/* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617#if defined __stub_shl_load || defined __stub___shl_load
10618choke me
10619#endif
10620
10621int
10622main ()
10623{
10624return shl_load ();
10625 ;
10626 return 0;
10627}
10628_ACEOF
10629rm -f conftest.$ac_objext conftest$ac_exeext
10630if { (ac_try="$ac_link"
10631case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634esac
10635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10644 { (case "(($ac_try" in
10645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646 *) ac_try_echo=$ac_try;;
10647esac
10648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649 (eval "$ac_try") 2>&5
10650 ac_status=$?
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; } &&
10653 { ac_try='test -s conftest$ac_exeext'
10654 { (case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657esac
10658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_try") 2>&5
10660 ac_status=$?
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); }; }; then
10663 ac_cv_func_shl_load=yes
10664else
10665 echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668 ac_cv_func_shl_load=no
10669fi
10670
10671rm -f core conftest.err conftest.$ac_objext \
10672 conftest$ac_exeext conftest.$ac_ext
10673fi
10674{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10675echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10676if test $ac_cv_func_shl_load = yes; then
10677
10678cat >>confdefs.h <<\_ACEOF
10679#define HAVE_SHL_LOAD 1
10680_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681
10682else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010683 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10684echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10685if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687else
10688 ac_check_lib_save_LIBS=$LIBS
10689LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010690cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h. */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695/* end confdefs.h. */
10696
Reid Spencera773bd52006-08-04 18:18:08 +000010697/* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700#ifdef __cplusplus
10701extern "C"
10702#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703char shl_load ();
10704int
10705main ()
10706{
Reid Spencera773bd52006-08-04 18:18:08 +000010707return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708 ;
10709 return 0;
10710}
10711_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010712rm -f conftest.$ac_objext conftest$ac_exeext
10713if { (ac_try="$ac_link"
10714case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717esac
10718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10720 ac_status=$?
10721 grep -v '^ *+' conftest.er1 >conftest.err
10722 rm -f conftest.er1
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740esac
10741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10743 ac_status=$?
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746 ac_cv_lib_dld_shl_load=yes
10747else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010752fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010753
Bill Wendlingebcceee2009-04-18 11:20:33 +000010754rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010755 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756LIBS=$ac_check_lib_save_LIBS
10757fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010758{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10759echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10760if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010762cat >>confdefs.h <<\_ACEOF
10763#define HAVE_SHL_LOAD 1
10764_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765
10766 LIBADD_DL="$LIBADD_DL -ldld"
10767else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010768 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10769echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10770if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772else
10773 ac_check_lib_save_LIBS=$LIBS
10774LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010775cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780/* end confdefs.h. */
10781
Reid Spencera773bd52006-08-04 18:18:08 +000010782/* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785#ifdef __cplusplus
10786extern "C"
10787#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010788char dlopen ();
10789int
10790main ()
10791{
Reid Spencera773bd52006-08-04 18:18:08 +000010792return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793 ;
10794 return 0;
10795}
10796_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010797rm -f conftest.$ac_objext conftest$ac_exeext
10798if { (ac_try="$ac_link"
10799case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802esac
10803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10805 ac_status=$?
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10825esac
10826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831 ac_cv_lib_dl_dlopen=yes
10832else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010838
Bill Wendlingebcceee2009-04-18 11:20:33 +000010839rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010840 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010841LIBS=$ac_check_lib_save_LIBS
10842fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010843{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10844echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10845if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010847cat >>confdefs.h <<\_ACEOF
10848#define HAVE_LIBDL 1
10849_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010850
10851 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10852else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010853 cat >conftest.$ac_ext <<_ACEOF
10854/* confdefs.h. */
10855_ACEOF
10856cat confdefs.h >>conftest.$ac_ext
10857cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858/* end confdefs.h. */
10859#if HAVE_DLFCN_H
10860# include <dlfcn.h>
10861#endif
10862
10863int
10864main ()
10865{
10866dlopen(0, 0);
10867 ;
10868 return 0;
10869}
10870_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010871rm -f conftest.$ac_objext conftest$ac_exeext
10872if { (ac_try="$ac_link"
10873case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_link") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_try") 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; } &&
10895 { ac_try='test -s conftest$ac_exeext'
10896 { (case "(($ac_try" in
10897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10899esac
10900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_try") 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010906cat >>confdefs.h <<\_ACEOF
10907#define HAVE_LIBDL 1
10908_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909 libltdl_cv_func_dlopen="yes"
10910else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010911 echo "$as_me: failed program was:" >&5
10912sed 's/^/| /' conftest.$ac_ext >&5
10913
10914 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10915echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10916if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918else
10919 ac_check_lib_save_LIBS=$LIBS
10920LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010921cat >conftest.$ac_ext <<_ACEOF
10922/* confdefs.h. */
10923_ACEOF
10924cat confdefs.h >>conftest.$ac_ext
10925cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926/* end confdefs.h. */
10927
Reid Spencera773bd52006-08-04 18:18:08 +000010928/* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931#ifdef __cplusplus
10932extern "C"
10933#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934char dlopen ();
10935int
10936main ()
10937{
Reid Spencera773bd52006-08-04 18:18:08 +000010938return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939 ;
10940 return 0;
10941}
10942_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010943rm -f conftest.$ac_objext conftest$ac_exeext
10944if { (ac_try="$ac_link"
10945case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_link") 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest$ac_exeext'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977 ac_cv_lib_svld_dlopen=yes
10978else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010979 echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
10982 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010983fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010984
Bill Wendlingebcceee2009-04-18 11:20:33 +000010985rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010986 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987LIBS=$ac_check_lib_save_LIBS
10988fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010989{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10990echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10991if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010992
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010993cat >>confdefs.h <<\_ACEOF
10994#define HAVE_LIBDL 1
10995_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010996
10997 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10998else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010999 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11000echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11001if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003else
11004 ac_check_lib_save_LIBS=$LIBS
11005LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011006cat >conftest.$ac_ext <<_ACEOF
11007/* confdefs.h. */
11008_ACEOF
11009cat confdefs.h >>conftest.$ac_ext
11010cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011/* end confdefs.h. */
11012
Reid Spencera773bd52006-08-04 18:18:08 +000011013/* Override any GCC internal prototype to avoid an error.
11014 Use char because int might match the return type of a GCC
11015 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016#ifdef __cplusplus
11017extern "C"
11018#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011019char dld_link ();
11020int
11021main ()
11022{
Reid Spencera773bd52006-08-04 18:18:08 +000011023return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011024 ;
11025 return 0;
11026}
11027_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011028rm -f conftest.$ac_objext conftest$ac_exeext
11029if { (ac_try="$ac_link"
11030case "(($ac_try" in
11031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11033esac
11034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_link") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest$ac_exeext'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062 ac_cv_lib_dld_dld_link=yes
11063else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011064 echo "$as_me: failed program was:" >&5
11065sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011069
Bill Wendlingebcceee2009-04-18 11:20:33 +000011070rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011071 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072LIBS=$ac_check_lib_save_LIBS
11073fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011074{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11075echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11076if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011078cat >>confdefs.h <<\_ACEOF
11079#define HAVE_DLD 1
11080_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081
11082 LIBADD_DL="$LIBADD_DL -ldld"
11083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011084 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11085echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11086if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088else
11089 cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
11095/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11097#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011099/* System header to define __stub macros and hopefully few prototypes,
11100 which can conflict with char _dyld_func_lookup (); below.
11101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11102 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011104#ifdef __STDC__
11105# include <limits.h>
11106#else
11107# include <assert.h>
11108#endif
11109
11110#undef _dyld_func_lookup
11111
11112/* Override any GCC internal prototype to avoid an error.
11113 Use char because int might match the return type of a GCC
11114 builtin and then its argument prototype would still apply. */
11115#ifdef __cplusplus
11116extern "C"
11117#endif
11118char _dyld_func_lookup ();
11119/* The GNU C library defines this for functions which it implements
11120 to always fail with ENOSYS. Some functions are actually named
11121 something starting with __ and the normal name is an alias. */
11122#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11123choke me
11124#endif
11125
11126int
11127main ()
11128{
11129return _dyld_func_lookup ();
11130 ;
11131 return 0;
11132}
11133_ACEOF
11134rm -f conftest.$ac_objext conftest$ac_exeext
11135if { (ac_try="$ac_link"
11136case "(($ac_try" in
11137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138 *) ac_try_echo=$ac_try;;
11139esac
11140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141 (eval "$ac_link") 2>conftest.er1
11142 ac_status=$?
11143 grep -v '^ *+' conftest.er1 >conftest.err
11144 rm -f conftest.er1
11145 cat conftest.err >&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } &&
11148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11149 { (case "(($ac_try" in
11150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11151 *) ac_try_echo=$ac_try;;
11152esac
11153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_try") 2>&5
11155 ac_status=$?
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); }; } &&
11158 { ac_try='test -s conftest$ac_exeext'
11159 { (case "(($ac_try" in
11160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161 *) ac_try_echo=$ac_try;;
11162esac
11163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164 (eval "$ac_try") 2>&5
11165 ac_status=$?
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_func__dyld_func_lookup=yes
11169else
11170 echo "$as_me: failed program was:" >&5
11171sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011174fi
Reid Spencera773bd52006-08-04 18:18:08 +000011175
Bill Wendlingebcceee2009-04-18 11:20:33 +000011176rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011177 conftest$ac_exeext conftest.$ac_ext
11178fi
11179{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11180echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11181if test $ac_cv_func__dyld_func_lookup = yes; then
11182
11183cat >>confdefs.h <<\_ACEOF
11184#define HAVE_DYLD 1
11185_ACEOF
11186
11187fi
11188
11189
11190fi
11191
11192
11193fi
11194
11195
11196fi
11197
11198rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200
11201fi
11202
11203
11204fi
11205
11206
11207fi
11208
11209
11210if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11211then
11212 lt_save_LIBS="$LIBS"
11213 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011214
11215for ac_func in dlerror
11216do
11217as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11218{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11219echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11220if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11222else
11223 cat >conftest.$ac_ext <<_ACEOF
11224/* confdefs.h. */
11225_ACEOF
11226cat confdefs.h >>conftest.$ac_ext
11227cat >>conftest.$ac_ext <<_ACEOF
11228/* end confdefs.h. */
11229/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11231#define $ac_func innocuous_$ac_func
11232
11233/* System header to define __stub macros and hopefully few prototypes,
11234 which can conflict with char $ac_func (); below.
11235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11236 <limits.h> exists even on freestanding compilers. */
11237
11238#ifdef __STDC__
11239# include <limits.h>
11240#else
11241# include <assert.h>
11242#endif
11243
11244#undef $ac_func
11245
11246/* Override any GCC internal prototype to avoid an error.
11247 Use char because int might match the return type of a GCC
11248 builtin and then its argument prototype would still apply. */
11249#ifdef __cplusplus
11250extern "C"
11251#endif
11252char $ac_func ();
11253/* The GNU C library defines this for functions which it implements
11254 to always fail with ENOSYS. Some functions are actually named
11255 something starting with __ and the normal name is an alias. */
11256#if defined __stub_$ac_func || defined __stub___$ac_func
11257choke me
11258#endif
11259
11260int
11261main ()
11262{
11263return $ac_func ();
11264 ;
11265 return 0;
11266}
11267_ACEOF
11268rm -f conftest.$ac_objext conftest$ac_exeext
11269if { (ac_try="$ac_link"
11270case "(($ac_try" in
11271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272 *) ac_try_echo=$ac_try;;
11273esac
11274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275 (eval "$ac_link") 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11283 { (case "(($ac_try" in
11284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285 *) ac_try_echo=$ac_try;;
11286esac
11287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288 (eval "$ac_try") 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest$ac_exeext'
11293 { (case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_try") 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }; }; then
11302 eval "$as_ac_var=yes"
11303else
11304 echo "$as_me: failed program was:" >&5
11305sed 's/^/| /' conftest.$ac_ext >&5
11306
11307 eval "$as_ac_var=no"
11308fi
11309
11310rm -f core conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312fi
11313ac_res=`eval echo '${'$as_ac_var'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315echo "${ECHO_T}$ac_res" >&6; }
11316if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319_ACEOF
11320
11321fi
11322done
11323
11324 LIBS="$lt_save_LIBS"
11325fi
11326ac_ext=c
11327ac_cpp='$CPP $CPPFLAGS'
11328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330ac_compiler_gnu=$ac_cv_c_compiler_gnu
11331
11332
11333
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011334{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11335echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11336if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11337 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338else
11339 ac_cv_sys_symbol_underscore=no
11340 cat > conftest.$ac_ext <<EOF
11341void nm_test_func(){}
11342int main(){nm_test_func;return 0;}
11343EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011345 (eval $ac_compile) 2>&5
11346 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349 # Now try to grab the symbols.
11350 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011351 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 +000011352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11353 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011356 # See whether the symbols have a leading underscore.
11357 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11358 ac_cv_sys_symbol_underscore=yes
11359 else
11360 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11361 :
11362 else
11363 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11364 fi
11365 fi
11366 else
11367 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11368 fi
11369 else
11370 echo "configure: failed program was:" >&5
11371 cat conftest.c >&5
11372 fi
11373 rm -rf conftest*
11374
11375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011376{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11377echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011378
11379
11380if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11381 if test x"$libltdl_cv_func_dlopen" = xyes ||
11382 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011383 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11384echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11385if test "${libltdl_cv_need_uscore+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387else
11388 libltdl_cv_need_uscore=unknown
11389 save_LIBS="$LIBS"
11390 LIBS="$LIBS $LIBADD_DL"
11391 if test "$cross_compiling" = yes; then :
11392 libltdl_cv_need_uscore=cross
11393else
11394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11395 lt_status=$lt_dlunknown
11396 cat > conftest.$ac_ext <<EOF
Nick Lewyckyde2e4ac2010-09-07 18:14:42 +000011397#line 11397 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398#include "confdefs.h"
11399
11400#if HAVE_DLFCN_H
11401#include <dlfcn.h>
11402#endif
11403
11404#include <stdio.h>
11405
11406#ifdef RTLD_GLOBAL
11407# define LT_DLGLOBAL RTLD_GLOBAL
11408#else
11409# ifdef DL_GLOBAL
11410# define LT_DLGLOBAL DL_GLOBAL
11411# else
11412# define LT_DLGLOBAL 0
11413# endif
11414#endif
11415
11416/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11417 find out it does not work in some platform. */
11418#ifndef LT_DLLAZY_OR_NOW
11419# ifdef RTLD_LAZY
11420# define LT_DLLAZY_OR_NOW RTLD_LAZY
11421# else
11422# ifdef DL_LAZY
11423# define LT_DLLAZY_OR_NOW DL_LAZY
11424# else
11425# ifdef RTLD_NOW
11426# define LT_DLLAZY_OR_NOW RTLD_NOW
11427# else
11428# ifdef DL_NOW
11429# define LT_DLLAZY_OR_NOW DL_NOW
11430# else
11431# define LT_DLLAZY_OR_NOW 0
11432# endif
11433# endif
11434# endif
11435# endif
11436#endif
11437
11438#ifdef __cplusplus
11439extern "C" void exit (int);
11440#endif
11441
11442void fnord() { int i=42;}
11443int main ()
11444{
11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446 int status = $lt_dlunknown;
11447
11448 if (self)
11449 {
11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11451 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452 /* dlclose (self); */
11453 }
Reid Spencera773bd52006-08-04 18:18:08 +000011454 else
11455 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456
11457 exit (status);
11458}
11459EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461 (eval $ac_link) 2>&5
11462 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011465 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466 lt_status=$?
11467 case x$lt_status in
11468 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11469 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011470 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471 esac
11472 else :
11473 # compilation failed
11474
11475 fi
11476fi
11477rm -fr conftest*
11478
11479 LIBS="$save_LIBS"
11480
11481fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011482{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11483echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484 fi
11485fi
11486
11487if test x"$libltdl_cv_need_uscore" = xyes; then
11488
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011489cat >>confdefs.h <<\_ACEOF
11490#define NEED_USCORE 1
11491_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492
11493fi
11494
11495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011496{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11497echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11498if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11499 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500else
11501 # PORTME does your system automatically load deplibs for dlopen?
11502 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11503 # For now, we just catch OSes we know something about -- in the
11504 # future, we'll try test this programmatically.
11505 libltdl_cv_sys_dlopen_deplibs=unknown
11506 case "$host_os" in
11507 aix3*|aix4.1.*|aix4.2.*)
11508 # Unknown whether this is true for these versions of AIX, but
11509 # we want this `case' here to explicitly catch those versions.
11510 libltdl_cv_sys_dlopen_deplibs=unknown
11511 ;;
11512 aix[45]*)
11513 libltdl_cv_sys_dlopen_deplibs=yes
11514 ;;
11515 darwin*)
11516 # Assuming the user has installed a libdl from somewhere, this is true
11517 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11518 libltdl_cv_sys_dlopen_deplibs=yes
11519 ;;
11520 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11521 # GNU and its variants, using gnu ld.so (Glibc)
11522 libltdl_cv_sys_dlopen_deplibs=yes
11523 ;;
11524 hpux10*|hpux11*)
11525 libltdl_cv_sys_dlopen_deplibs=yes
11526 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011527 interix*)
11528 libltdl_cv_sys_dlopen_deplibs=yes
11529 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530 irix[12345]*|irix6.[01]*)
11531 # Catch all versions of IRIX before 6.2, and indicate that we don't
11532 # know how it worked for any of those versions.
11533 libltdl_cv_sys_dlopen_deplibs=unknown
11534 ;;
11535 irix*)
11536 # The case above catches anything before 6.2, and it's known that
11537 # at 6.2 and later dlopen does load deplibs.
11538 libltdl_cv_sys_dlopen_deplibs=yes
11539 ;;
11540 netbsd*)
11541 libltdl_cv_sys_dlopen_deplibs=yes
11542 ;;
11543 openbsd*)
11544 libltdl_cv_sys_dlopen_deplibs=yes
11545 ;;
11546 osf[1234]*)
11547 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11548 # it did *not* use an RPATH in a shared library to find objects the
11549 # library depends on, so we explictly say `no'.
11550 libltdl_cv_sys_dlopen_deplibs=no
11551 ;;
11552 osf5.0|osf5.0a|osf5.1)
11553 # dlopen *does* load deplibs and with the right loader patch applied
11554 # it even uses RPATH in a shared library to search for shared objects
11555 # that the library depends on, but there's no easy way to know if that
11556 # patch is installed. Since this is the case, all we can really
11557 # say is unknown -- it depends on the patch being installed. If
11558 # it is, this changes to `yes'. Without it, it would be `no'.
11559 libltdl_cv_sys_dlopen_deplibs=unknown
11560 ;;
11561 osf*)
11562 # the two cases above should catch all versions of osf <= 5.1. Read
11563 # the comments above for what we know about them.
11564 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11565 # is used to find them so we can finally say `yes'.
11566 libltdl_cv_sys_dlopen_deplibs=yes
11567 ;;
11568 solaris*)
11569 libltdl_cv_sys_dlopen_deplibs=yes
11570 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11572 libltdl_cv_sys_dlopen_deplibs=yes
11573 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011574 esac
11575
11576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011577{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11578echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11580
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011581cat >>confdefs.h <<\_ACEOF
11582#define LTDL_DLOPEN_DEPLIBS 1
11583_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584
11585fi
11586
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011587
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011589do
11590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11596fi
11597ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599echo "${ECHO_T}$ac_res" >&6; }
11600else
11601 # Is the header compilable?
11602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11604cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_includes_default
11611#include <$ac_header>
11612_ACEOF
11613rm -f conftest.$ac_objext
11614if { (ac_try="$ac_compile"
11615case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_compile") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11628 { (case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_try") 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_header_compiler=yes
11648else
11649 echo "$as_me: failed program was:" >&5
11650sed 's/^/| /' conftest.$ac_ext >&5
11651
11652 ac_header_compiler=no
11653fi
11654
11655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11657echo "${ECHO_T}$ac_header_compiler" >&6; }
11658
11659# Is the header present?
11660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11662cat >conftest.$ac_ext <<_ACEOF
11663/* confdefs.h. */
11664_ACEOF
11665cat confdefs.h >>conftest.$ac_ext
11666cat >>conftest.$ac_ext <<_ACEOF
11667/* end confdefs.h. */
11668#include <$ac_header>
11669_ACEOF
11670if { (ac_try="$ac_cpp conftest.$ac_ext"
11671case "(($ac_try" in
11672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673 *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } >/dev/null; then
11683 if test -s conftest.err; then
11684 ac_cpp_err=$ac_c_preproc_warn_flag
11685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11686 else
11687 ac_cpp_err=
11688 fi
11689else
11690 ac_cpp_err=yes
11691fi
11692if test -z "$ac_cpp_err"; then
11693 ac_header_preproc=yes
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698 ac_header_preproc=no
11699fi
11700
11701rm -f conftest.err conftest.$ac_ext
11702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11703echo "${ECHO_T}$ac_header_preproc" >&6; }
11704
11705# So? What about this header?
11706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11707 yes:no: )
11708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11712 ac_header_preproc=yes
11713 ;;
11714 no:yes:* )
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11727 ( cat <<\_ASBOX
11728## ----------------------------------- ##
11729## Report this to llvmbugs@cs.uiuc.edu ##
11730## ----------------------------------- ##
11731_ASBOX
11732 ) | sed "s/^/$as_me: WARNING: /" >&2
11733 ;;
11734esac
11735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11739else
11740 eval "$as_ac_Header=\$ac_header_preproc"
11741fi
11742ac_res=`eval echo '${'$as_ac_Header'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744echo "${ECHO_T}$ac_res" >&6; }
11745
11746fi
11747if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750_ACEOF
11751
11752fi
11753
11754done
11755
11756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011757{ echo "$as_me:$LINENO: checking for error_t" >&5
11758echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11759if test "${ac_cv_type_error_t+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762 cat >conftest.$ac_ext <<_ACEOF
11763/* confdefs.h. */
11764_ACEOF
11765cat confdefs.h >>conftest.$ac_ext
11766cat >>conftest.$ac_ext <<_ACEOF
11767/* end confdefs.h. */
11768#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769# include <argz.h>
11770#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011771
11772typedef error_t ac__type_new_;
11773int
11774main ()
11775{
11776if ((ac__type_new_ *) 0)
11777 return 0;
11778if (sizeof (ac__type_new_))
11779 return 0;
11780 ;
11781 return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext
11785if { (ac_try="$ac_compile"
11786case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789esac
11790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812esac
11813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_type_error_t=yes
11819else
11820 echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 ac_cv_type_error_t=no
11824fi
11825
11826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827fi
11828{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11829echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11830if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831
11832cat >>confdefs.h <<_ACEOF
11833#define HAVE_ERROR_T 1
11834_ACEOF
11835
11836
11837else
11838
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011839cat >>confdefs.h <<\_ACEOF
11840#define error_t int
11841_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842
11843fi
11844
11845
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011846
11847
11848
11849
11850
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011852do
11853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858else
11859 cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867#define $ac_func innocuous_$ac_func
11868
11869/* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11873
11874#ifdef __STDC__
11875# include <limits.h>
11876#else
11877# include <assert.h>
11878#endif
11879
11880#undef $ac_func
11881
11882/* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885#ifdef __cplusplus
11886extern "C"
11887#endif
11888char $ac_func ();
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892#if defined __stub_$ac_func || defined __stub___$ac_func
11893choke me
11894#endif
11895
11896int
11897main ()
11898{
11899return $ac_func ();
11900 ;
11901 return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext conftest$ac_exeext
11905if { (ac_try="$ac_link"
11906case "(($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_link") 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11939else
11940 echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 eval "$as_ac_var=no"
11944fi
11945
11946rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948fi
11949ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951echo "${ECHO_T}$ac_res" >&6; }
11952if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955_ACEOF
11956
11957fi
11958done
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011979
11980
11981
11982
11983
11984
11985
11986
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11988 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011989do
11990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996fi
11997ac_res=`eval echo '${'$as_ac_Header'}'`
11998 { echo "$as_me:$LINENO: result: $ac_res" >&5
11999echo "${ECHO_T}$ac_res" >&6; }
12000else
12001 # Is the header compilable?
12002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12004cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010$ac_includes_default
12011#include <$ac_header>
12012_ACEOF
12013rm -f conftest.$ac_objext
12014if { (ac_try="$ac_compile"
12015case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12028 { (case "(($ac_try" in
12029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12031esac
12032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_try") 2>&5
12034 ac_status=$?
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest.$ac_objext'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12041esac
12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_header_compiler=yes
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052 ac_header_compiler=no
12053fi
12054
12055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12057echo "${ECHO_T}$ac_header_compiler" >&6; }
12058
12059# Is the header present?
12060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12062cat >conftest.$ac_ext <<_ACEOF
12063/* confdefs.h. */
12064_ACEOF
12065cat confdefs.h >>conftest.$ac_ext
12066cat >>conftest.$ac_ext <<_ACEOF
12067/* end confdefs.h. */
12068#include <$ac_header>
12069_ACEOF
12070if { (ac_try="$ac_cpp conftest.$ac_ext"
12071case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev/null; then
12083 if test -s conftest.err; then
12084 ac_cpp_err=$ac_c_preproc_warn_flag
12085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12086 else
12087 ac_cpp_err=
12088 fi
12089else
12090 ac_cpp_err=yes
12091fi
12092if test -z "$ac_cpp_err"; then
12093 ac_header_preproc=yes
12094else
12095 echo "$as_me: failed program was:" >&5
12096sed 's/^/| /' conftest.$ac_ext >&5
12097
12098 ac_header_preproc=no
12099fi
12100
12101rm -f conftest.err conftest.$ac_ext
12102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12103echo "${ECHO_T}$ac_header_preproc" >&6; }
12104
12105# So? What about this header?
12106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 yes:no: )
12108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12112 ac_header_preproc=yes
12113 ;;
12114 no:yes:* )
12115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12127 ( cat <<\_ASBOX
12128## ----------------------------------- ##
12129## Report this to llvmbugs@cs.uiuc.edu ##
12130## ----------------------------------- ##
12131_ASBOX
12132 ) | sed "s/^/$as_me: WARNING: /" >&2
12133 ;;
12134esac
12135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 eval "$as_ac_Header=\$ac_header_preproc"
12141fi
12142ac_res=`eval echo '${'$as_ac_Header'}'`
12143 { echo "$as_me:$LINENO: result: $ac_res" >&5
12144echo "${ECHO_T}$ac_res" >&6; }
12145
12146fi
12147if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012150_ACEOF
12151
12152fi
12153
12154done
12155
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012156
12157
12158
12159
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012161do
12162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12165echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168fi
12169ac_res=`eval echo '${'$as_ac_Header'}'`
12170 { echo "$as_me:$LINENO: result: $ac_res" >&5
12171echo "${ECHO_T}$ac_res" >&6; }
12172else
12173 # Is the header compilable?
12174{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12176cat >conftest.$ac_ext <<_ACEOF
12177/* confdefs.h. */
12178_ACEOF
12179cat confdefs.h >>conftest.$ac_ext
12180cat >>conftest.$ac_ext <<_ACEOF
12181/* end confdefs.h. */
12182$ac_includes_default
12183#include <$ac_header>
12184_ACEOF
12185rm -f conftest.$ac_objext
12186if { (ac_try="$ac_compile"
12187case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190esac
12191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_compile") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } &&
12199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12200 { (case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12203esac
12204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205 (eval "$ac_try") 2>&5
12206 ac_status=$?
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); }; } &&
12209 { ac_try='test -s conftest.$ac_objext'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12213esac
12214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12216 ac_status=$?
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12219 ac_header_compiler=yes
12220else
12221 echo "$as_me: failed program was:" >&5
12222sed 's/^/| /' conftest.$ac_ext >&5
12223
12224 ac_header_compiler=no
12225fi
12226
12227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12229echo "${ECHO_T}$ac_header_compiler" >&6; }
12230
12231# Is the header present?
12232{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12234cat >conftest.$ac_ext <<_ACEOF
12235/* confdefs.h. */
12236_ACEOF
12237cat confdefs.h >>conftest.$ac_ext
12238cat >>conftest.$ac_ext <<_ACEOF
12239/* end confdefs.h. */
12240#include <$ac_header>
12241_ACEOF
12242if { (ac_try="$ac_cpp conftest.$ac_ext"
12243case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } >/dev/null; then
12255 if test -s conftest.err; then
12256 ac_cpp_err=$ac_c_preproc_warn_flag
12257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12258 else
12259 ac_cpp_err=
12260 fi
12261else
12262 ac_cpp_err=yes
12263fi
12264if test -z "$ac_cpp_err"; then
12265 ac_header_preproc=yes
12266else
12267 echo "$as_me: failed program was:" >&5
12268sed 's/^/| /' conftest.$ac_ext >&5
12269
12270 ac_header_preproc=no
12271fi
12272
12273rm -f conftest.err conftest.$ac_ext
12274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12275echo "${ECHO_T}$ac_header_preproc" >&6; }
12276
12277# So? What about this header?
12278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12279 yes:no: )
12280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12284 ac_header_preproc=yes
12285 ;;
12286 no:yes:* )
12287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12299 ( cat <<\_ASBOX
12300## ----------------------------------- ##
12301## Report this to llvmbugs@cs.uiuc.edu ##
12302## ----------------------------------- ##
12303_ASBOX
12304 ) | sed "s/^/$as_me: WARNING: /" >&2
12305 ;;
12306esac
12307{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12309if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311else
12312 eval "$as_ac_Header=\$ac_header_preproc"
12313fi
12314ac_res=`eval echo '${'$as_ac_Header'}'`
12315 { echo "$as_me:$LINENO: result: $ac_res" >&5
12316echo "${ECHO_T}$ac_res" >&6; }
12317
12318fi
12319if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322_ACEOF
12323
12324fi
12325
12326done
12327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012328
12329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012331do
12332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338fi
12339ac_res=`eval echo '${'$as_ac_Header'}'`
12340 { echo "$as_me:$LINENO: result: $ac_res" >&5
12341echo "${ECHO_T}$ac_res" >&6; }
12342else
12343 # Is the header compilable?
12344{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12346cat >conftest.$ac_ext <<_ACEOF
12347/* confdefs.h. */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h. */
12352$ac_includes_default
12353#include <$ac_header>
12354_ACEOF
12355rm -f conftest.$ac_objext
12356if { (ac_try="$ac_compile"
12357case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360esac
12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_compile") 2>conftest.er1
12363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest.$ac_objext'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12389 ac_header_compiler=yes
12390else
12391 echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
12394 ac_header_compiler=no
12395fi
12396
12397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12399echo "${ECHO_T}$ac_header_compiler" >&6; }
12400
12401# Is the header present?
12402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12404cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
12410#include <$ac_header>
12411_ACEOF
12412if { (ac_try="$ac_cpp conftest.$ac_ext"
12413case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12416esac
12417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } >/dev/null; then
12425 if test -s conftest.err; then
12426 ac_cpp_err=$ac_c_preproc_warn_flag
12427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12428 else
12429 ac_cpp_err=
12430 fi
12431else
12432 ac_cpp_err=yes
12433fi
12434if test -z "$ac_cpp_err"; then
12435 ac_header_preproc=yes
12436else
12437 echo "$as_me: failed program was:" >&5
12438sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 ac_header_preproc=no
12441fi
12442
12443rm -f conftest.err conftest.$ac_ext
12444{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445echo "${ECHO_T}$ac_header_preproc" >&6; }
12446
12447# So? What about this header?
12448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12449 yes:no: )
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12454 ac_header_preproc=yes
12455 ;;
12456 no:yes:* )
12457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12469 ( cat <<\_ASBOX
12470## ----------------------------------- ##
12471## Report this to llvmbugs@cs.uiuc.edu ##
12472## ----------------------------------- ##
12473_ASBOX
12474 ) | sed "s/^/$as_me: WARNING: /" >&2
12475 ;;
12476esac
12477{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481else
12482 eval "$as_ac_Header=\$ac_header_preproc"
12483fi
12484ac_res=`eval echo '${'$as_ac_Header'}'`
12485 { echo "$as_me:$LINENO: result: $ac_res" >&5
12486echo "${ECHO_T}$ac_res" >&6; }
12487
12488fi
12489if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492_ACEOF
12493 break
12494fi
12495
12496done
12497
12498
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012499
12500
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012502do
12503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508else
12509 cat >conftest.$ac_ext <<_ACEOF
12510/* confdefs.h. */
12511_ACEOF
12512cat confdefs.h >>conftest.$ac_ext
12513cat >>conftest.$ac_ext <<_ACEOF
12514/* end confdefs.h. */
12515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12517#define $ac_func innocuous_$ac_func
12518
12519/* System header to define __stub macros and hopefully few prototypes,
12520 which can conflict with char $ac_func (); below.
12521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12522 <limits.h> exists even on freestanding compilers. */
12523
12524#ifdef __STDC__
12525# include <limits.h>
12526#else
12527# include <assert.h>
12528#endif
12529
12530#undef $ac_func
12531
12532/* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12535#ifdef __cplusplus
12536extern "C"
12537#endif
12538char $ac_func ();
12539/* The GNU C library defines this for functions which it implements
12540 to always fail with ENOSYS. Some functions are actually named
12541 something starting with __ and the normal name is an alias. */
12542#if defined __stub_$ac_func || defined __stub___$ac_func
12543choke me
12544#endif
12545
12546int
12547main ()
12548{
12549return $ac_func ();
12550 ;
12551 return 0;
12552}
12553_ACEOF
12554rm -f conftest.$ac_objext conftest$ac_exeext
12555if { (ac_try="$ac_link"
12556case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12559esac
12560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_link") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } &&
12568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12569 { (case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12572esac
12573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_try") 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582esac
12583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 eval "$as_ac_var=yes"
12589else
12590 echo "$as_me: failed program was:" >&5
12591sed 's/^/| /' conftest.$ac_ext >&5
12592
12593 eval "$as_ac_var=no"
12594fi
12595
12596rm -f core conftest.err conftest.$ac_objext \
12597 conftest$ac_exeext conftest.$ac_ext
12598fi
12599ac_res=`eval echo '${'$as_ac_var'}'`
12600 { echo "$as_me:$LINENO: result: $ac_res" >&5
12601echo "${ECHO_T}$ac_res" >&6; }
12602if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605_ACEOF
12606 break
12607fi
12608done
12609
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012610
12611
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012612for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012613do
12614as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12615{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12616echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12617if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619else
12620 cat >conftest.$ac_ext <<_ACEOF
12621/* confdefs.h. */
12622_ACEOF
12623cat confdefs.h >>conftest.$ac_ext
12624cat >>conftest.$ac_ext <<_ACEOF
12625/* end confdefs.h. */
12626/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12628#define $ac_func innocuous_$ac_func
12629
12630/* System header to define __stub macros and hopefully few prototypes,
12631 which can conflict with char $ac_func (); below.
12632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12633 <limits.h> exists even on freestanding compilers. */
12634
12635#ifdef __STDC__
12636# include <limits.h>
12637#else
12638# include <assert.h>
12639#endif
12640
12641#undef $ac_func
12642
12643/* Override any GCC internal prototype to avoid an error.
12644 Use char because int might match the return type of a GCC
12645 builtin and then its argument prototype would still apply. */
12646#ifdef __cplusplus
12647extern "C"
12648#endif
12649char $ac_func ();
12650/* The GNU C library defines this for functions which it implements
12651 to always fail with ENOSYS. Some functions are actually named
12652 something starting with __ and the normal name is an alias. */
12653#if defined __stub_$ac_func || defined __stub___$ac_func
12654choke me
12655#endif
12656
12657int
12658main ()
12659{
12660return $ac_func ();
12661 ;
12662 return 0;
12663}
12664_ACEOF
12665rm -f conftest.$ac_objext conftest$ac_exeext
12666if { (ac_try="$ac_link"
12667case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670esac
12671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12680 { (case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683esac
12684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_try") 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest$ac_exeext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 eval "$as_ac_var=yes"
12700else
12701 echo "$as_me: failed program was:" >&5
12702sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 eval "$as_ac_var=no"
12705fi
12706
12707rm -f core conftest.err conftest.$ac_objext \
12708 conftest$ac_exeext conftest.$ac_ext
12709fi
12710ac_res=`eval echo '${'$as_ac_var'}'`
12711 { echo "$as_me:$LINENO: result: $ac_res" >&5
12712echo "${ECHO_T}$ac_res" >&6; }
12713if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012714 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012716_ACEOF
12717 break
12718fi
12719done
12720
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012721
12722
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012723for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012724do
12725as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12726{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12727echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12728if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730else
12731 cat >conftest.$ac_ext <<_ACEOF
12732/* confdefs.h. */
12733_ACEOF
12734cat confdefs.h >>conftest.$ac_ext
12735cat >>conftest.$ac_ext <<_ACEOF
12736/* end confdefs.h. */
12737/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12739#define $ac_func innocuous_$ac_func
12740
12741/* System header to define __stub macros and hopefully few prototypes,
12742 which can conflict with char $ac_func (); below.
12743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12744 <limits.h> exists even on freestanding compilers. */
12745
12746#ifdef __STDC__
12747# include <limits.h>
12748#else
12749# include <assert.h>
12750#endif
12751
12752#undef $ac_func
12753
12754/* Override any GCC internal prototype to avoid an error.
12755 Use char because int might match the return type of a GCC
12756 builtin and then its argument prototype would still apply. */
12757#ifdef __cplusplus
12758extern "C"
12759#endif
12760char $ac_func ();
12761/* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764#if defined __stub_$ac_func || defined __stub___$ac_func
12765choke me
12766#endif
12767
12768int
12769main ()
12770{
12771return $ac_func ();
12772 ;
12773 return 0;
12774}
12775_ACEOF
12776rm -f conftest.$ac_objext conftest$ac_exeext
12777if { (ac_try="$ac_link"
12778case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12781esac
12782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12784 ac_status=$?
12785 grep -v '^ *+' conftest.er1 >conftest.err
12786 rm -f conftest.er1
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } &&
12790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791 { (case "(($ac_try" in
12792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793 *) ac_try_echo=$ac_try;;
12794esac
12795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_try") 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804esac
12805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_try") 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 eval "$as_ac_var=yes"
12811else
12812 echo "$as_me: failed program was:" >&5
12813sed 's/^/| /' conftest.$ac_ext >&5
12814
12815 eval "$as_ac_var=no"
12816fi
12817
12818rm -f core conftest.err conftest.$ac_objext \
12819 conftest$ac_exeext conftest.$ac_ext
12820fi
12821ac_res=`eval echo '${'$as_ac_var'}'`
12822 { echo "$as_me:$LINENO: result: $ac_res" >&5
12823echo "${ECHO_T}$ac_res" >&6; }
12824if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012825 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012827_ACEOF
12828 break
12829fi
12830done
12831
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012832
12833
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012834for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012835do
12836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841else
12842 cat >conftest.$ac_ext <<_ACEOF
12843/* confdefs.h. */
12844_ACEOF
12845cat confdefs.h >>conftest.$ac_ext
12846cat >>conftest.$ac_ext <<_ACEOF
12847/* end confdefs.h. */
12848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12850#define $ac_func innocuous_$ac_func
12851
12852/* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below.
12854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 <limits.h> exists even on freestanding compilers. */
12856
12857#ifdef __STDC__
12858# include <limits.h>
12859#else
12860# include <assert.h>
12861#endif
12862
12863#undef $ac_func
12864
12865/* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12868#ifdef __cplusplus
12869extern "C"
12870#endif
12871char $ac_func ();
12872/* The GNU C library defines this for functions which it implements
12873 to always fail with ENOSYS. Some functions are actually named
12874 something starting with __ and the normal name is an alias. */
12875#if defined __stub_$ac_func || defined __stub___$ac_func
12876choke me
12877#endif
12878
12879int
12880main ()
12881{
12882return $ac_func ();
12883 ;
12884 return 0;
12885}
12886_ACEOF
12887rm -f conftest.$ac_objext conftest$ac_exeext
12888if { (ac_try="$ac_link"
12889case "(($ac_try" in
12890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891 *) ac_try_echo=$ac_try;;
12892esac
12893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12902 { (case "(($ac_try" in
12903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12904 *) ac_try_echo=$ac_try;;
12905esac
12906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12907 (eval "$ac_try") 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest$ac_exeext'
12912 { (case "(($ac_try" in
12913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12915esac
12916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_try") 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 eval "$as_ac_var=yes"
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 eval "$as_ac_var=no"
12927fi
12928
12929rm -f core conftest.err conftest.$ac_objext \
12930 conftest$ac_exeext conftest.$ac_ext
12931fi
12932ac_res=`eval echo '${'$as_ac_var'}'`
12933 { echo "$as_me:$LINENO: result: $ac_res" >&5
12934echo "${ECHO_T}$ac_res" >&6; }
12935if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012936 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012938_ACEOF
12939
12940fi
12941done
12942
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012943
12944
12945
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012946for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012947do
12948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12949{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12951if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12953else
12954 cat >conftest.$ac_ext <<_ACEOF
12955/* confdefs.h. */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h. */
12960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12962#define $ac_func innocuous_$ac_func
12963
12964/* System header to define __stub macros and hopefully few prototypes,
12965 which can conflict with char $ac_func (); below.
12966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12967 <limits.h> exists even on freestanding compilers. */
12968
12969#ifdef __STDC__
12970# include <limits.h>
12971#else
12972# include <assert.h>
12973#endif
12974
12975#undef $ac_func
12976
12977/* Override any GCC internal prototype to avoid an error.
12978 Use char because int might match the return type of a GCC
12979 builtin and then its argument prototype would still apply. */
12980#ifdef __cplusplus
12981extern "C"
12982#endif
12983char $ac_func ();
12984/* The GNU C library defines this for functions which it implements
12985 to always fail with ENOSYS. Some functions are actually named
12986 something starting with __ and the normal name is an alias. */
12987#if defined __stub_$ac_func || defined __stub___$ac_func
12988choke me
12989#endif
12990
12991int
12992main ()
12993{
12994return $ac_func ();
12995 ;
12996 return 0;
12997}
12998_ACEOF
12999rm -f conftest.$ac_objext conftest$ac_exeext
13000if { (ac_try="$ac_link"
13001case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13004esac
13005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13006 (eval "$ac_link") 2>conftest.er1
13007 ac_status=$?
13008 grep -v '^ *+' conftest.er1 >conftest.err
13009 rm -f conftest.er1
13010 cat conftest.err >&5
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } &&
13013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13014 { (case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017esac
13018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_try") 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest$ac_exeext'
13024 { (case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027esac
13028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13029 (eval "$ac_try") 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 eval "$as_ac_var=yes"
13034else
13035 echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038 eval "$as_ac_var=no"
13039fi
13040
13041rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043fi
13044ac_res=`eval echo '${'$as_ac_var'}'`
13045 { echo "$as_me:$LINENO: result: $ac_res" >&5
13046echo "${ECHO_T}$ac_res" >&6; }
13047if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013048 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013050_ACEOF
13051
13052fi
13053done
13054
13055
Douglas Gregor01746742009-05-11 18:05:52 +000013056
Reid Spencer7931a782004-12-27 06:15:02 +000013057if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013058 LLVMGCC="llvm-gcc${EXEEXT}"
13059 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013060 LLVMGCCCOMMAND="$LLVMGCC"
13061 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013062 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13063
13064 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13065
Reid Spencerc84492c2005-06-02 22:34:49 +000013066 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13067set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13070if test "${ac_cv_path_LLVMGCC+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013072else
13073 case $LLVMGCC in
13074 [\\/]* | ?:[\\/]*)
13075 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13076 ;;
13077 *)
13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13079for as_dir in $PATH
13080do
13081 IFS=$as_save_IFS
13082 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013083 for ac_exec_ext in '' $ac_executable_extensions; do
13084 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 +000013085 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013087 break 2
13088 fi
13089done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013090done
Reid Spencera773bd52006-08-04 18:18:08 +000013091IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013092
Reid Spencer59473af2004-12-25 07:31:29 +000013093 ;;
13094esac
13095fi
13096LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013097if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013098 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13099echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013100else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013101 { echo "$as_me:$LINENO: result: no" >&5
13102echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013103fi
13104
Reid Spencera773bd52006-08-04 18:18:08 +000013105
Reid Spencerc84492c2005-06-02 22:34:49 +000013106 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13107set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13110if test "${ac_cv_path_LLVMGXX+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013112else
13113 case $LLVMGXX in
13114 [\\/]* | ?:[\\/]*)
13115 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13116 ;;
13117 *)
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119for as_dir in $PATH
13120do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 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 +000013125 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013127 break 2
13128 fi
13129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013130done
Reid Spencera773bd52006-08-04 18:18:08 +000013131IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013132
Reid Spencer59473af2004-12-25 07:31:29 +000013133 ;;
13134esac
13135fi
13136LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013137if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013138 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13139echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013140else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013141 { echo "$as_me:$LINENO: result: no" >&5
13142echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013143fi
13144
Reid Spencera773bd52006-08-04 18:18:08 +000013145
Reid Spencer59473af2004-12-25 07:31:29 +000013146else
Devang Patel5d28b882007-12-04 22:54:47 +000013147 if test -z "$LLVMGCC"; then
13148 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013149 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013150 fi
13151 if test -z "$LLVMGXX"; then
13152 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013153 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013154 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013155
Reid Spencer59473af2004-12-25 07:31:29 +000013156 LLVMGCC=$LLVMGCC
13157
13158 LLVMGXX=$LLVMGXX
13159
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013160 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13161
13162 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13163
Reid Spencer59473af2004-12-25 07:31:29 +000013164fi
13165
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013166
Daniel Dunbar98515672010-02-23 10:00:49 +000013167# Check whether --with-llvmcc was given.
13168if test "${with_llvmcc+set}" = set; then
13169 withval=$with_llvmcc;
13170else
13171 with_llvmcc=check
13172fi
13173
13174{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13175echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13176if test "$with_llvmcc" != "check"; then
13177 if (test "$with_llvmcc" != "llvm-gcc" &&
13178 test "$with_llvmcc" != "clang" &&
13179 test "$with_llvmcc" != "none"); then
13180 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13181echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13182 { (exit 1); exit 1; }; }
13183 fi
13184 WITH_LLVMCC="$with_llvmcc"
13185elif test -n "$LLVMGCC"; then
13186 WITH_LLVMCC=llvm-gcc
13187elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13188 WITH_LLVMCC=clang
13189else
13190 WITH_LLVMCC=none
13191fi
13192{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13193echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13194LLVMCC_OPTION=$WITH_LLVMCC
13195
13196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13198echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013199
Reid Spencer86901802004-12-08 23:07:27 +000013200ICC=no
13201IXX=no
13202case $CC in
13203 icc*|icpc*)
13204 ICC=yes
13205 IXX=yes
13206 ;;
13207 *)
13208 ;;
13209esac
13210
Duraid Madina937c60a2006-02-15 07:57:42 +000013211if test "$GCC" != "yes" && test "$ICC" != "yes"
13212then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013213 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13214echo "$as_me: error: gcc|icc required but not found" >&2;}
13215 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013216fi
13217
13218if test "$GXX" != "yes" && test "$IXX" != "yes"
13219then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013220 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13221echo "$as_me: error: g++|icc required but not found" >&2;}
13222 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013223fi
13224
Reid Spencer86901802004-12-08 23:07:27 +000013225if test "$GCC" = "yes"
13226then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013227 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013228#if !defined(__GNUC__) || __GNUC__ < 3
13229#error Unsupported GCC version
13230#endif
13231
13232_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013233rm -f conftest.$ac_objext
13234if { (ac_try="$ac_compile"
13235case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13238esac
13239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
13241 ac_status=$?
13242 grep -v '^ *+' conftest.er1 >conftest.err
13243 rm -f conftest.er1
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13251esac
13252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest.$ac_objext'
13258 { (case "(($ac_try" in
13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260 *) ac_try_echo=$ac_try;;
13261esac
13262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263 (eval "$ac_try") 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013268else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13273echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13274 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013275fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013276
Chris Lattner399c7c72008-02-05 19:43:53 +000013277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013278fi
13279
13280if test -z "$llvm_cv_gnu_make_command"
13281then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013282 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13283echo "$as_me: error: GNU Make required but not found" >&2;}
13284 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013285fi
13286
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013287{ echo "$as_me:$LINENO: result: ok" >&5
13288echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013290{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13291echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013292NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13293
13294NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13295
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013296{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13297echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013298
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013299
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013300
13301{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13302echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13303if test "${ac_cv_lib_m_sin+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013305else
13306 ac_check_lib_save_LIBS=$LIBS
13307LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013308cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013313/* end confdefs.h. */
13314
Reid Spencera773bd52006-08-04 18:18:08 +000013315/* Override any GCC internal prototype to avoid an error.
13316 Use char because int might match the return type of a GCC
13317 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013318#ifdef __cplusplus
13319extern "C"
13320#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013321char sin ();
13322int
13323main ()
13324{
Reid Spencera773bd52006-08-04 18:18:08 +000013325return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013326 ;
13327 return 0;
13328}
13329_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013330rm -f conftest.$ac_objext conftest$ac_exeext
13331if { (ac_try="$ac_link"
13332case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13335esac
13336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013364 ac_cv_lib_m_sin=yes
13365else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013366 echo "$as_me: failed program was:" >&5
13367sed 's/^/| /' conftest.$ac_ext >&5
13368
13369 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013370fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013371
Bill Wendlingebcceee2009-04-18 11:20:33 +000013372rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013373 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013374LIBS=$ac_check_lib_save_LIBS
13375fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013376{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13377echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13378if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013379 cat >>confdefs.h <<_ACEOF
13380#define HAVE_LIBM 1
13381_ACEOF
13382
13383 LIBS="-lm $LIBS"
13384
13385fi
13386
Jeff Cohen28783c32007-01-12 18:22:38 +000013387if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013388
13389{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13390echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13391if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013393else
13394 ac_check_lib_save_LIBS=$LIBS
13395LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013396cat >conftest.$ac_ext <<_ACEOF
13397/* confdefs.h. */
13398_ACEOF
13399cat confdefs.h >>conftest.$ac_ext
13400cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013401/* end confdefs.h. */
13402
Reid Spencer48fdf912006-06-01 19:03:21 +000013403
Reid Spencer484fc8e2006-06-01 16:55:59 +000013404int
13405main ()
13406{
Reid Spencera773bd52006-08-04 18:18:08 +000013407return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013408 ;
13409 return 0;
13410}
13411_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013412rm -f conftest.$ac_objext conftest$ac_exeext
13413if { (ac_try="$ac_link"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013446 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013447else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013448 echo "$as_me: failed program was:" >&5
13449sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013452fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453
Bill Wendlingebcceee2009-04-18 11:20:33 +000013454rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013455 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013456LIBS=$ac_check_lib_save_LIBS
13457fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013458{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13459echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13460if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013461 cat >>confdefs.h <<_ACEOF
13462#define HAVE_LIBIMAGEHLP 1
13463_ACEOF
13464
13465 LIBS="-limagehlp $LIBS"
13466
13467fi
13468
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013469
13470{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13471echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13472if test "${ac_cv_lib_psapi_main+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013474else
13475 ac_check_lib_save_LIBS=$LIBS
13476LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477cat >conftest.$ac_ext <<_ACEOF
13478/* confdefs.h. */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013482/* end confdefs.h. */
13483
Reid Spencer48fdf912006-06-01 19:03:21 +000013484
Reid Spencer484fc8e2006-06-01 16:55:59 +000013485int
13486main ()
13487{
Reid Spencera773bd52006-08-04 18:18:08 +000013488return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013489 ;
13490 return 0;
13491}
13492_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013493rm -f conftest.$ac_objext conftest$ac_exeext
13494if { (ac_try="$ac_link"
13495case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13498esac
13499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_link") 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508 { (case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511esac
13512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_try") 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521esac
13522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013527 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013529 echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013533fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013534
Bill Wendlingebcceee2009-04-18 11:20:33 +000013535rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013536 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013537LIBS=$ac_check_lib_save_LIBS
13538fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013539{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13540echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13541if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013542 cat >>confdefs.h <<_ACEOF
13543#define HAVE_LIBPSAPI 1
13544_ACEOF
13545
13546 LIBS="-lpsapi $LIBS"
13547
13548fi
13549
13550fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013551
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013552{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13553echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13554if test "${ac_cv_search_dlopen+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013556else
13557 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013558cat >conftest.$ac_ext <<_ACEOF
13559/* confdefs.h. */
13560_ACEOF
13561cat confdefs.h >>conftest.$ac_ext
13562cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013564
Reid Spencera773bd52006-08-04 18:18:08 +000013565/* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013568#ifdef __cplusplus
13569extern "C"
13570#endif
John Criswell7a73b802003-06-30 21:59:07 +000013571char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013572int
13573main ()
13574{
Reid Spencera773bd52006-08-04 18:18:08 +000013575return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013576 ;
13577 return 0;
13578}
13579_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013580for ac_lib in '' dl; do
13581 if test -z "$ac_lib"; then
13582 ac_res="none required"
13583 else
13584 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013586 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013587 rm -f conftest.$ac_objext conftest$ac_exeext
13588if { (ac_try="$ac_link"
13589case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
13595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($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_try") 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615esac
13616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013621 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013622else
13623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
13626
John Criswell7a73b802003-06-30 21:59:07 +000013627fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013628
Bill Wendlingebcceee2009-04-18 11:20:33 +000013629rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013630 conftest$ac_exeext
13631 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013632 break
John Criswell7a73b802003-06-30 21:59:07 +000013633fi
Reid Spencera773bd52006-08-04 18:18:08 +000013634done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013635if test "${ac_cv_search_dlopen+set}" = set; then
13636 :
Reid Spencera773bd52006-08-04 18:18:08 +000013637else
13638 ac_cv_search_dlopen=no
13639fi
13640rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013641LIBS=$ac_func_search_save_LIBS
13642fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013643{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13644echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013645ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013646if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013647 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013649cat >>confdefs.h <<\_ACEOF
13650#define HAVE_DLOPEN 1
13651_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013652
13653else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013654 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13655echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013656fi
13657
13658
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013659if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013660 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13661echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13662if test "${ac_cv_search_ffi_call+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013664else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013665 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013666cat >conftest.$ac_ext <<_ACEOF
13667/* confdefs.h. */
13668_ACEOF
13669cat confdefs.h >>conftest.$ac_ext
13670cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013671/* end confdefs.h. */
13672
13673/* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13676#ifdef __cplusplus
13677extern "C"
13678#endif
13679char ffi_call ();
13680int
13681main ()
13682{
13683return ffi_call ();
13684 ;
13685 return 0;
13686}
13687_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013688for ac_lib in '' ffi; do
13689 if test -z "$ac_lib"; then
13690 ac_res="none required"
13691 else
13692 ac_res=-l$ac_lib
13693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13694 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013695 rm -f conftest.$ac_objext conftest$ac_exeext
13696if { (ac_try="$ac_link"
13697case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13700esac
13701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13703 ac_status=$?
13704 grep -v '^ *+' conftest.er1 >conftest.err
13705 rm -f conftest.er1
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } &&
13709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_try") 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest$ac_exeext'
13720 { (case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723esac
13724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_try") 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013729 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013730else
13731 echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
13734
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013735fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013736
Bill Wendlingebcceee2009-04-18 11:20:33 +000013737rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738 conftest$ac_exeext
13739 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013740 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013741fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013742done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013743if test "${ac_cv_search_ffi_call+set}" = set; then
13744 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013745else
13746 ac_cv_search_ffi_call=no
13747fi
13748rm conftest.$ac_ext
13749LIBS=$ac_func_search_save_LIBS
13750fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013751{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13752echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013753ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013754if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13756
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013757cat >>confdefs.h <<\_ACEOF
13758#define HAVE_FFI_CALL 1
13759_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013760
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013761else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013762 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13763echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13764 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013765fi
13766
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013767fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013769{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13770echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13771if test "${ac_cv_search_mallinfo+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013773else
13774 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013775cat >conftest.$ac_ext <<_ACEOF
13776/* confdefs.h. */
13777_ACEOF
13778cat confdefs.h >>conftest.$ac_ext
13779cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013780/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013781
Reid Spencera773bd52006-08-04 18:18:08 +000013782/* Override any GCC internal prototype to avoid an error.
13783 Use char because int might match the return type of a GCC
13784 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013785#ifdef __cplusplus
13786extern "C"
13787#endif
John Criswell7a73b802003-06-30 21:59:07 +000013788char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013789int
13790main ()
13791{
Reid Spencera773bd52006-08-04 18:18:08 +000013792return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013793 ;
13794 return 0;
13795}
13796_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013797for ac_lib in '' malloc; do
13798 if test -z "$ac_lib"; then
13799 ac_res="none required"
13800 else
13801 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013803 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013804 rm -f conftest.$ac_objext conftest$ac_exeext
13805if { (ac_try="$ac_link"
13806case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13809esac
13810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_link") 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } &&
13818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13819 { (case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13822esac
13823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_try") 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); }; } &&
13828 { ac_try='test -s conftest$ac_exeext'
13829 { (case "(($ac_try" in
13830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13831 *) ac_try_echo=$ac_try;;
13832esac
13833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13834 (eval "$ac_try") 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013838 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013839else
13840 echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
13842
13843
John Criswell7a73b802003-06-30 21:59:07 +000013844fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013845
Bill Wendlingebcceee2009-04-18 11:20:33 +000013846rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013847 conftest$ac_exeext
13848 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013849 break
John Criswell7a73b802003-06-30 21:59:07 +000013850fi
Reid Spencera773bd52006-08-04 18:18:08 +000013851done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013852if test "${ac_cv_search_mallinfo+set}" = set; then
13853 :
Reid Spencera773bd52006-08-04 18:18:08 +000013854else
13855 ac_cv_search_mallinfo=no
13856fi
13857rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013858LIBS=$ac_func_search_save_LIBS
13859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013860{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13861echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013862ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013863if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866cat >>confdefs.h <<\_ACEOF
13867#define HAVE_MALLINFO 1
13868_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013869
13870fi
13871
13872
Reid Spencer0a262ba2005-08-24 10:07:20 +000013873if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013874
13875{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13876echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13877if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13878 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013879else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013880 ac_check_lib_save_LIBS=$LIBS
13881LIBS="-lpthread $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
Reid Spencer22177fe2005-07-12 15:24:20 +000013887/* end confdefs.h. */
13888
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. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013892#ifdef __cplusplus
13893extern "C"
13894#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013895char pthread_mutex_init ();
13896int
13897main ()
13898{
Reid Spencera773bd52006-08-04 18:18:08 +000013899return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013900 ;
13901 return 0;
13902}
13903_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013904rm -f conftest.$ac_objext conftest$ac_exeext
13905if { (ac_try="$ac_link"
13906case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909esac
13910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13911 (eval "$ac_link") 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13919 { (case "(($ac_try" in
13920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921 *) ac_try_echo=$ac_try;;
13922esac
13923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924 (eval "$ac_try") 2>&5
13925 ac_status=$?
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; } &&
13928 { ac_try='test -s conftest$ac_exeext'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13932esac
13933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013938 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013939else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013940 echo "$as_me: failed program was:" >&5
13941sed 's/^/| /' conftest.$ac_ext >&5
13942
13943 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013944fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945
Bill Wendlingebcceee2009-04-18 11:20:33 +000013946rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013947 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013948LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013950{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13951echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13952if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013953 cat >>confdefs.h <<_ACEOF
13954#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013955_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013956
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013957 LIBS="-lpthread $LIBS"
13958
Reid Spencer22177fe2005-07-12 15:24:20 +000013959fi
13960
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013961 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13962echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13963if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013965else
13966 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013967cat >conftest.$ac_ext <<_ACEOF
13968/* confdefs.h. */
13969_ACEOF
13970cat confdefs.h >>conftest.$ac_ext
13971cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013972/* end confdefs.h. */
13973
Reid Spencera773bd52006-08-04 18:18:08 +000013974/* Override any GCC internal prototype to avoid an error.
13975 Use char because int might match the return type of a GCC
13976 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013977#ifdef __cplusplus
13978extern "C"
13979#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013980char pthread_mutex_lock ();
13981int
13982main ()
13983{
Reid Spencera773bd52006-08-04 18:18:08 +000013984return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013985 ;
13986 return 0;
13987}
13988_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013989for ac_lib in '' pthread; do
13990 if test -z "$ac_lib"; then
13991 ac_res="none required"
13992 else
13993 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013995 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013996 rm -f conftest.$ac_objext conftest$ac_exeext
13997if { (ac_try="$ac_link"
13998case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001esac
14002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_link") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14014esac
14015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14017 ac_status=$?
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; } &&
14020 { ac_try='test -s conftest$ac_exeext'
14021 { (case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14024esac
14025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_try") 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014030 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014031else
14032 echo "$as_me: failed program was:" >&5
14033sed 's/^/| /' conftest.$ac_ext >&5
14034
14035
Brian Gaeke5f268f72003-12-05 19:29:01 +000014036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014037
Bill Wendlingebcceee2009-04-18 11:20:33 +000014038rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039 conftest$ac_exeext
14040 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014041 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014042fi
Reid Spencera773bd52006-08-04 18:18:08 +000014043done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014044if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14045 :
Reid Spencera773bd52006-08-04 18:18:08 +000014046else
14047 ac_cv_search_pthread_mutex_lock=no
14048fi
14049rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014050LIBS=$ac_func_search_save_LIBS
14051fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014052{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14053echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014054ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014055if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014056 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014058cat >>confdefs.h <<\_ACEOF
14059#define HAVE_PTHREAD_MUTEX_LOCK 1
14060_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014061
14062fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014064 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14065echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14066if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014068else
14069 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014070cat >conftest.$ac_ext <<_ACEOF
14071/* confdefs.h. */
14072_ACEOF
14073cat confdefs.h >>conftest.$ac_ext
14074cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014075/* end confdefs.h. */
14076
14077/* Override any GCC internal prototype to avoid an error.
14078 Use char because int might match the return type of a GCC
14079 builtin and then its argument prototype would still apply. */
14080#ifdef __cplusplus
14081extern "C"
14082#endif
14083char pthread_rwlock_init ();
14084int
14085main ()
14086{
14087return pthread_rwlock_init ();
14088 ;
14089 return 0;
14090}
14091_ACEOF
14092for ac_lib in '' pthread; do
14093 if test -z "$ac_lib"; then
14094 ac_res="none required"
14095 else
14096 ac_res=-l$ac_lib
14097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14098 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014099 rm -f conftest.$ac_objext conftest$ac_exeext
14100if { (ac_try="$ac_link"
14101case "(($ac_try" in
14102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14103 *) ac_try_echo=$ac_try;;
14104esac
14105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14106 (eval "$ac_link") 2>conftest.er1
14107 ac_status=$?
14108 grep -v '^ *+' conftest.er1 >conftest.err
14109 rm -f conftest.er1
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14114 { (case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117esac
14118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14119 (eval "$ac_try") 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; } &&
14123 { ac_try='test -s conftest$ac_exeext'
14124 { (case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14127esac
14128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_try") 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014133 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014134else
14135 echo "$as_me: failed program was:" >&5
14136sed 's/^/| /' conftest.$ac_ext >&5
14137
14138
Owen Andersonde8aed22009-06-16 18:20:20 +000014139fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014140
Owen Andersonde8aed22009-06-16 18:20:20 +000014141rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142 conftest$ac_exeext
14143 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014144 break
14145fi
14146done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014147if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14148 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014149else
14150 ac_cv_search_pthread_rwlock_init=no
14151fi
14152rm conftest.$ac_ext
14153LIBS=$ac_func_search_save_LIBS
14154fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014155{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14156echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014157ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014158if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014161cat >>confdefs.h <<\_ACEOF
14162#define HAVE_PTHREAD_RWLOCK_INIT 1
14163_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014164
14165fi
14166
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014167 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14168echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14169if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014171else
14172 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014173cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014178/* end confdefs.h. */
14179
14180/* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
14183#ifdef __cplusplus
14184extern "C"
14185#endif
14186char pthread_getspecific ();
14187int
14188main ()
14189{
14190return pthread_getspecific ();
14191 ;
14192 return 0;
14193}
14194_ACEOF
14195for ac_lib in '' pthread; do
14196 if test -z "$ac_lib"; then
14197 ac_res="none required"
14198 else
14199 ac_res=-l$ac_lib
14200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14201 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014202 rm -f conftest.$ac_objext conftest$ac_exeext
14203if { (ac_try="$ac_link"
14204case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_link") 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
14216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest$ac_exeext'
14227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14230esac
14231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014236 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014237else
14238 echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
14241
Owen Anderson27fcfe12009-06-25 23:10:26 +000014242fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014243
Owen Anderson27fcfe12009-06-25 23:10:26 +000014244rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245 conftest$ac_exeext
14246 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014247 break
14248fi
14249done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014250if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14251 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014252else
14253 ac_cv_search_pthread_getspecific=no
14254fi
14255rm conftest.$ac_ext
14256LIBS=$ac_func_search_save_LIBS
14257fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14259echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014260ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014261if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014262 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14263
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014264cat >>confdefs.h <<\_ACEOF
14265#define HAVE_PTHREAD_GETSPECIFIC 1
14266_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014267
14268fi
14269
Reid Spencer0a262ba2005-08-24 10:07:20 +000014270fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014271
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014272
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014273# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014274if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014275 withval=$with_udis86;
14276 USE_UDIS86=1
14277
14278 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014279 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014280 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14281 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014282
14283{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14284echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14285if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14286 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014287else
14288 ac_check_lib_save_LIBS=$LIBS
14289LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014290cat >conftest.$ac_ext <<_ACEOF
14291/* confdefs.h. */
14292_ACEOF
14293cat confdefs.h >>conftest.$ac_ext
14294cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014295/* end confdefs.h. */
14296
14297/* Override any GCC internal prototype to avoid an error.
14298 Use char because int might match the return type of a GCC
14299 builtin and then its argument prototype would still apply. */
14300#ifdef __cplusplus
14301extern "C"
14302#endif
14303char ud_init ();
14304int
14305main ()
14306{
14307return ud_init ();
14308 ;
14309 return 0;
14310}
14311_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014312rm -f conftest.$ac_objext conftest$ac_exeext
14313if { (ac_try="$ac_link"
14314case "(($ac_try" in
14315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14317esac
14318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319 (eval "$ac_link") 2>conftest.er1
14320 ac_status=$?
14321 grep -v '^ *+' conftest.er1 >conftest.err
14322 rm -f conftest.er1
14323 cat conftest.err >&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14327 { (case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330esac
14331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_try") 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340esac
14341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_try") 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014346 ac_cv_lib_udis86_ud_init=yes
14347else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014348 echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014352fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014353
Bill Wendlingebcceee2009-04-18 11:20:33 +000014354rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014355 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014356LIBS=$ac_check_lib_save_LIBS
14357fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014358{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14359echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14360if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014361 cat >>confdefs.h <<_ACEOF
14362#define HAVE_LIBUDIS86 1
14363_ACEOF
14364
14365 LIBS="-ludis86 $LIBS"
14366
14367else
14368
14369 echo "Error! You need to have libudis86 around."
14370 exit -1
14371
14372fi
14373
14374
14375else
14376 USE_UDIS86=0
14377
14378fi
14379
14380
14381cat >>confdefs.h <<_ACEOF
14382#define USE_UDIS86 $USE_UDIS86
14383_ACEOF
14384
14385
14386
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014387# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014388if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014389 withval=$with_oprofile;
14390 USE_OPROFILE=1
14391
14392 case "$withval" in
14393 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014394 no) llvm_cv_oppath=
14395 USE_OPROFILE=0
14396 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014397 *) llvm_cv_oppath="${withval}/lib/oprofile"
14398 CPPFLAGS="-I${withval}/include";;
14399 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014400 if test -n "$llvm_cv_oppath" ; then
14401 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014402 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14403echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14404if test "${ac_cv_search_bfd_init+set}" = set; then
14405 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014406else
14407 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014408cat >conftest.$ac_ext <<_ACEOF
14409/* confdefs.h. */
14410_ACEOF
14411cat confdefs.h >>conftest.$ac_ext
14412cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014413/* end confdefs.h. */
14414
14415/* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14418#ifdef __cplusplus
14419extern "C"
14420#endif
14421char bfd_init ();
14422int
14423main ()
14424{
14425return bfd_init ();
14426 ;
14427 return 0;
14428}
14429_ACEOF
14430for ac_lib in '' bfd; do
14431 if test -z "$ac_lib"; then
14432 ac_res="none required"
14433 else
14434 ac_res=-l$ac_lib
14435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14436 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014437 rm -f conftest.$ac_objext conftest$ac_exeext
14438if { (ac_try="$ac_link"
14439case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14442esac
14443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14444 (eval "$ac_link") 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14452 { (case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_try") 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest$ac_exeext'
14462 { (case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465esac
14466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14467 (eval "$ac_try") 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014471 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014477fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014478
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014479rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480 conftest$ac_exeext
14481 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014482 break
14483fi
14484done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485if test "${ac_cv_search_bfd_init+set}" = set; then
14486 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014487else
14488 ac_cv_search_bfd_init=no
14489fi
14490rm conftest.$ac_ext
14491LIBS=$ac_func_search_save_LIBS
14492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014493{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14494echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014495ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014496if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14498
14499fi
14500
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014501 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14502echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14503if test "${ac_cv_search_op_open_agent+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014505else
14506 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014507cat >conftest.$ac_ext <<_ACEOF
14508/* confdefs.h. */
14509_ACEOF
14510cat confdefs.h >>conftest.$ac_ext
14511cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014512/* end confdefs.h. */
14513
14514/* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
14516 builtin and then its argument prototype would still apply. */
14517#ifdef __cplusplus
14518extern "C"
14519#endif
14520char op_open_agent ();
14521int
14522main ()
14523{
14524return op_open_agent ();
14525 ;
14526 return 0;
14527}
14528_ACEOF
14529for ac_lib in '' opagent; do
14530 if test -z "$ac_lib"; then
14531 ac_res="none required"
14532 else
14533 ac_res=-l$ac_lib
14534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14535 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014536 rm -f conftest.$ac_objext conftest$ac_exeext
14537if { (ac_try="$ac_link"
14538case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14541esac
14542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14544 ac_status=$?
14545 grep -v '^ *+' conftest.er1 >conftest.err
14546 rm -f conftest.er1
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14551 { (case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554esac
14555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_try") 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564esac
14565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_try") 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014570 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014571else
14572 echo "$as_me: failed program was:" >&5
14573sed 's/^/| /' conftest.$ac_ext >&5
14574
14575
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014576fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014577
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014578rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579 conftest$ac_exeext
14580 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014581 break
14582fi
14583done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014584if test "${ac_cv_search_op_open_agent+set}" = set; then
14585 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014586else
14587 ac_cv_search_op_open_agent=no
14588fi
14589rm conftest.$ac_ext
14590LIBS=$ac_func_search_save_LIBS
14591fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014592{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14593echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014594ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014595if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14597
14598else
14599
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014600 echo "Error! You need to have libopagent around."
14601 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014602
14603fi
14604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014605 if test "${ac_cv_header_opagent_h+set}" = set; then
14606 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14607echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14608if test "${ac_cv_header_opagent_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610fi
14611{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14612echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14613else
14614 # Is the header compilable?
14615{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14616echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14617cat >conftest.$ac_ext <<_ACEOF
14618/* confdefs.h. */
14619_ACEOF
14620cat confdefs.h >>conftest.$ac_ext
14621cat >>conftest.$ac_ext <<_ACEOF
14622/* end confdefs.h. */
14623$ac_includes_default
14624#include <opagent.h>
14625_ACEOF
14626rm -f conftest.$ac_objext
14627if { (ac_try="$ac_compile"
14628case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_compile") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
14645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest.$ac_objext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654esac
14655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
14660 ac_header_compiler=yes
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014664
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014665 ac_header_compiler=no
14666fi
14667
14668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14670echo "${ECHO_T}$ac_header_compiler" >&6; }
14671
14672# Is the header present?
14673{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14674echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14675cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
14681#include <opagent.h>
14682_ACEOF
14683if { (ac_try="$ac_cpp conftest.$ac_ext"
14684case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14687esac
14688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14690 ac_status=$?
14691 grep -v '^ *+' conftest.er1 >conftest.err
14692 rm -f conftest.er1
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } >/dev/null; then
14696 if test -s conftest.err; then
14697 ac_cpp_err=$ac_c_preproc_warn_flag
14698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14699 else
14700 ac_cpp_err=
14701 fi
14702else
14703 ac_cpp_err=yes
14704fi
14705if test -z "$ac_cpp_err"; then
14706 ac_header_preproc=yes
14707else
14708 echo "$as_me: failed program was:" >&5
14709sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 ac_header_preproc=no
14712fi
14713
14714rm -f conftest.err conftest.$ac_ext
14715{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14716echo "${ECHO_T}$ac_header_preproc" >&6; }
14717
14718# So? What about this header?
14719case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14720 yes:no: )
14721 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14722echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14724echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14725 ac_header_preproc=yes
14726 ;;
14727 no:yes:* )
14728 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14729echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14731echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14733echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14735echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14737echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14739echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14740 ( cat <<\_ASBOX
14741## ----------------------------------- ##
14742## Report this to llvmbugs@cs.uiuc.edu ##
14743## ----------------------------------- ##
14744_ASBOX
14745 ) | sed "s/^/$as_me: WARNING: /" >&2
14746 ;;
14747esac
14748{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14749echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14750if test "${ac_cv_header_opagent_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753 ac_cv_header_opagent_h=$ac_header_preproc
14754fi
14755{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14756echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14757
14758fi
14759if test $ac_cv_header_opagent_h = yes; then
14760 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014761else
14762
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014763 echo "Error! You need to have opagent.h around."
14764 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014765
14766fi
14767
14768
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014769 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014770
14771else
14772
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014773 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014774
14775
14776fi
14777
14778
14779cat >>confdefs.h <<_ACEOF
14780#define USE_OPROFILE $USE_OPROFILE
14781_ACEOF
14782
14783
14784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014785
14786
14787
14788
14789
Reid Spencer59473af2004-12-25 07:31:29 +000014790ac_header_dirent=no
14791for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014792 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14793{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14794echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14796 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014797else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014798 cat >conftest.$ac_ext <<_ACEOF
14799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014803/* end confdefs.h. */
14804#include <sys/types.h>
14805#include <$ac_hdr>
14806
14807int
14808main ()
14809{
14810if ((DIR *) 0)
14811return 0;
14812 ;
14813 return 0;
14814}
14815_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014816rm -f conftest.$ac_objext
14817if { (ac_try="$ac_compile"
14818case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821esac
14822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_compile") 2>conftest.er1
14824 ac_status=$?
14825 grep -v '^ *+' conftest.er1 >conftest.err
14826 rm -f conftest.er1
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } &&
14830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14831 { (case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14834esac
14835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_try") 2>&5
14837 ac_status=$?
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); }; } &&
14840 { ac_try='test -s conftest.$ac_objext'
14841 { (case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14844esac
14845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_try") 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014850 eval "$as_ac_Header=yes"
14851else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014852 echo "$as_me: failed program was:" >&5
14853sed 's/^/| /' conftest.$ac_ext >&5
14854
14855 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014857
Reid Spencera773bd52006-08-04 18:18:08 +000014858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014860ac_res=`eval echo '${'$as_ac_Header'}'`
14861 { echo "$as_me:$LINENO: result: $ac_res" >&5
14862echo "${ECHO_T}$ac_res" >&6; }
14863if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014864 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014865#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014866_ACEOF
14867
14868ac_header_dirent=$ac_hdr; break
14869fi
14870
14871done
14872# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14873if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014874 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14875echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14876if test "${ac_cv_search_opendir+set}" = set; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014878else
14879 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014880cat >conftest.$ac_ext <<_ACEOF
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014885/* end confdefs.h. */
14886
Reid Spencera773bd52006-08-04 18:18:08 +000014887/* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014890#ifdef __cplusplus
14891extern "C"
14892#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014893char opendir ();
14894int
14895main ()
14896{
Reid Spencera773bd52006-08-04 18:18:08 +000014897return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014898 ;
14899 return 0;
14900}
14901_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014902for ac_lib in '' dir; do
14903 if test -z "$ac_lib"; then
14904 ac_res="none required"
14905 else
14906 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014908 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014909 rm -f conftest.$ac_objext conftest$ac_exeext
14910if { (ac_try="$ac_link"
14911case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914esac
14915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_link") 2>conftest.er1
14917 ac_status=$?
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14924 { (case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927esac
14928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14929 (eval "$ac_try") 2>&5
14930 ac_status=$?
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); }; } &&
14933 { ac_try='test -s conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14937esac
14938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014943 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014944else
14945 echo "$as_me: failed program was:" >&5
14946sed 's/^/| /' conftest.$ac_ext >&5
14947
14948
Reid Spencer59473af2004-12-25 07:31:29 +000014949fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014950
Bill Wendlingebcceee2009-04-18 11:20:33 +000014951rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014952 conftest$ac_exeext
14953 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014954 break
Reid Spencer59473af2004-12-25 07:31:29 +000014955fi
Reid Spencera773bd52006-08-04 18:18:08 +000014956done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014957if test "${ac_cv_search_opendir+set}" = set; then
14958 :
Reid Spencera773bd52006-08-04 18:18:08 +000014959else
14960 ac_cv_search_opendir=no
14961fi
14962rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014963LIBS=$ac_func_search_save_LIBS
14964fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014965{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14966echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014967ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014968if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014970
14971fi
14972
14973else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014974 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14975echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14976if test "${ac_cv_search_opendir+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014978else
14979 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014980cat >conftest.$ac_ext <<_ACEOF
14981/* confdefs.h. */
14982_ACEOF
14983cat confdefs.h >>conftest.$ac_ext
14984cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014985/* end confdefs.h. */
14986
Reid Spencera773bd52006-08-04 18:18:08 +000014987/* Override any GCC internal prototype to avoid an error.
14988 Use char because int might match the return type of a GCC
14989 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014990#ifdef __cplusplus
14991extern "C"
14992#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014993char opendir ();
14994int
14995main ()
14996{
Reid Spencera773bd52006-08-04 18:18:08 +000014997return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014998 ;
14999 return 0;
15000}
15001_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000015002for ac_lib in '' x; do
15003 if test -z "$ac_lib"; then
15004 ac_res="none required"
15005 else
15006 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000015007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000015008 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015009 rm -f conftest.$ac_objext conftest$ac_exeext
15010if { (ac_try="$ac_link"
15011case "(($ac_try" in
15012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15014esac
15015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_link") 2>conftest.er1
15017 ac_status=$?
15018 grep -v '^ *+' conftest.er1 >conftest.err
15019 rm -f conftest.er1
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } &&
15023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15024 { (case "(($ac_try" in
15025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026 *) ac_try_echo=$ac_try;;
15027esac
15028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029 (eval "$ac_try") 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (case "(($ac_try" in
15035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036 *) ac_try_echo=$ac_try;;
15037esac
15038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039 (eval "$ac_try") 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015043 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015044else
15045 echo "$as_me: failed program was:" >&5
15046sed 's/^/| /' conftest.$ac_ext >&5
15047
15048
Reid Spencer59473af2004-12-25 07:31:29 +000015049fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015050
Bill Wendlingebcceee2009-04-18 11:20:33 +000015051rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015052 conftest$ac_exeext
15053 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015054 break
Reid Spencer59473af2004-12-25 07:31:29 +000015055fi
Reid Spencera773bd52006-08-04 18:18:08 +000015056done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015057if test "${ac_cv_search_opendir+set}" = set; then
15058 :
Reid Spencera773bd52006-08-04 18:18:08 +000015059else
15060 ac_cv_search_opendir=no
15061fi
15062rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015063LIBS=$ac_func_search_save_LIBS
15064fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015065{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15066echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015067ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015068if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015070
15071fi
15072
15073fi
15074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015075{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15076echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15077if test "${ac_cv_header_mmap_anon+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015079else
15080 ac_ext=c
15081ac_cpp='$CPP $CPPFLAGS'
15082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15084ac_compiler_gnu=$ac_cv_c_compiler_gnu
15085
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015086 cat >conftest.$ac_ext <<_ACEOF
15087/* confdefs.h. */
15088_ACEOF
15089cat confdefs.h >>conftest.$ac_ext
15090cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015091/* end confdefs.h. */
15092#include <sys/mman.h>
15093#include <unistd.h>
15094#include <fcntl.h>
15095int
15096main ()
15097{
15098mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15099 ;
15100 return 0;
15101}
15102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015103rm -f conftest.$ac_objext
15104if { (ac_try="$ac_compile"
15105case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15108esac
15109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_compile") 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15121esac
15122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15131esac
15132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015137 ac_cv_header_mmap_anon=yes
15138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015139 echo "$as_me: failed program was:" >&5
15140sed 's/^/| /' conftest.$ac_ext >&5
15141
15142 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015144
Reid Spencera773bd52006-08-04 18:18:08 +000015145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015146 ac_ext=c
15147ac_cpp='$CPP $CPPFLAGS'
15148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150ac_compiler_gnu=$ac_cv_c_compiler_gnu
15151
15152
15153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015154{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15155echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015156if test "$ac_cv_header_mmap_anon" = yes; then
15157
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015158cat >>confdefs.h <<\_ACEOF
15159#define HAVE_MMAP_ANONYMOUS 1
15160_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015161
15162fi
15163
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015164{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15165echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15166if test "${ac_cv_header_stat_broken+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169 cat >conftest.$ac_ext <<_ACEOF
15170/* confdefs.h. */
15171_ACEOF
15172cat confdefs.h >>conftest.$ac_ext
15173cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015174/* end confdefs.h. */
15175#include <sys/types.h>
15176#include <sys/stat.h>
15177
Reid Spencera773bd52006-08-04 18:18:08 +000015178#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015179# if S_ISBLK (S_IFDIR)
15180You lose.
15181# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015182#endif
15183
Reid Spencera773bd52006-08-04 18:18:08 +000015184#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015185# if S_ISBLK (S_IFCHR)
15186You lose.
15187# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015188#endif
15189
Reid Spencera773bd52006-08-04 18:18:08 +000015190#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015191# if S_ISLNK (S_IFREG)
15192You lose.
15193# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015194#endif
15195
Reid Spencera773bd52006-08-04 18:18:08 +000015196#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015197# if S_ISSOCK (S_IFREG)
15198You lose.
15199# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015200#endif
15201
15202_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15204 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015205 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015206else
15207 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015209rm -f conftest*
15210
Reid Spencer59473af2004-12-25 07:31:29 +000015211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015212{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15213echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015214if test $ac_cv_header_stat_broken = yes; then
15215
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015216cat >>confdefs.h <<\_ACEOF
15217#define STAT_MACROS_BROKEN 1
15218_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015219
15220fi
15221
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015222{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15223echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15224if test "${ac_cv_header_stdc+set}" = set; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015226else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015227 cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h. */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015232/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015233#include <stdlib.h>
15234#include <stdarg.h>
15235#include <string.h>
15236#include <float.h>
15237
John Criswell0c38eaf2003-09-10 15:17:25 +000015238int
15239main ()
15240{
15241
15242 ;
15243 return 0;
15244}
John Criswell7a73b802003-06-30 21:59:07 +000015245_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015246rm -f conftest.$ac_objext
15247if { (ac_try="$ac_compile"
15248case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15251esac
15252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_compile") 2>conftest.er1
15254 ac_status=$?
15255 grep -v '^ *+' conftest.er1 >conftest.err
15256 rm -f conftest.er1
15257 cat conftest.err >&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15261 { (case "(($ac_try" in
15262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15263 *) ac_try_echo=$ac_try;;
15264esac
15265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15266 (eval "$ac_try") 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
15271 { (case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274esac
15275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15276 (eval "$ac_try") 2>&5
15277 ac_status=$?
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015280 ac_cv_header_stdc=yes
15281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015282 echo "$as_me: failed program was:" >&5
15283sed 's/^/| /' conftest.$ac_ext >&5
15284
15285 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015287
Reid Spencera773bd52006-08-04 18:18:08 +000015288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015289
15290if test $ac_cv_header_stdc = yes; then
15291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015292 cat >conftest.$ac_ext <<_ACEOF
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015297/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015298#include <string.h>
15299
15300_ACEOF
15301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015302 $EGREP "memchr" >/dev/null 2>&1; then
15303 :
John Criswell7a73b802003-06-30 21:59:07 +000015304else
15305 ac_cv_header_stdc=no
15306fi
15307rm -f conftest*
15308
15309fi
15310
15311if test $ac_cv_header_stdc = yes; then
15312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015313 cat >conftest.$ac_ext <<_ACEOF
15314/* confdefs.h. */
15315_ACEOF
15316cat confdefs.h >>conftest.$ac_ext
15317cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015318/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015319#include <stdlib.h>
15320
15321_ACEOF
15322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015323 $EGREP "free" >/dev/null 2>&1; then
15324 :
John Criswell7a73b802003-06-30 21:59:07 +000015325else
15326 ac_cv_header_stdc=no
15327fi
15328rm -f conftest*
15329
15330fi
15331
15332if test $ac_cv_header_stdc = yes; then
15333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015334 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015335 :
15336else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015337 cat >conftest.$ac_ext <<_ACEOF
15338/* confdefs.h. */
15339_ACEOF
15340cat confdefs.h >>conftest.$ac_ext
15341cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015343#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015344#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015345#if ((' ' & 0x0FF) == 0x020)
15346# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15347# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15348#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015349# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015350 (('a' <= (c) && (c) <= 'i') \
15351 || ('j' <= (c) && (c) <= 'r') \
15352 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015353# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15354#endif
15355
15356#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15357int
15358main ()
15359{
15360 int i;
15361 for (i = 0; i < 256; i++)
15362 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015363 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015364 return 2;
15365 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015366}
15367_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015368rm -f conftest$ac_exeext
15369if { (ac_try="$ac_link"
15370case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15373esac
15374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_link") 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382esac
15383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 :
John Criswell7a73b802003-06-30 21:59:07 +000015389else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015390 echo "$as_me: program exited with status $ac_status" >&5
15391echo "$as_me: failed program was:" >&5
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
15394( exit $ac_status )
15395ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015396fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015397rm -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 +000015398fi
15399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015400
John Criswell7a73b802003-06-30 21:59:07 +000015401fi
15402fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015403{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15404echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015405if test $ac_cv_header_stdc = yes; then
15406
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015407cat >>confdefs.h <<\_ACEOF
15408#define STDC_HEADERS 1
15409_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015410
15411fi
15412
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015413{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15414echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15415if test "${ac_cv_header_sys_wait_h+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015418 cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015424#include <sys/types.h>
15425#include <sys/wait.h>
15426#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015427# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015428#endif
15429#ifndef WIFEXITED
15430# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15431#endif
15432
John Criswell7a73b802003-06-30 21:59:07 +000015433int
15434main ()
15435{
15436 int s;
15437 wait (&s);
15438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15439 ;
15440 return 0;
15441}
15442_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015443rm -f conftest.$ac_objext
15444if { (ac_try="$ac_compile"
15445case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15448esac
15449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } &&
15457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15458 { (case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461esac
15462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_try") 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest.$ac_objext'
15468 { (case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15471esac
15472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_try") 2>&5
15474 ac_status=$?
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015477 ac_cv_header_sys_wait_h=yes
15478else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015479 echo "$as_me: failed program was:" >&5
15480sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015483fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015484
Reid Spencera773bd52006-08-04 18:18:08 +000015485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015486fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015487{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15488echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015489if test $ac_cv_header_sys_wait_h = yes; then
15490
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015491cat >>confdefs.h <<\_ACEOF
15492#define HAVE_SYS_WAIT_H 1
15493_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015494
15495fi
15496
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015497{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15498echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15499if test "${ac_cv_header_time+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015501else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015502 cat >conftest.$ac_ext <<_ACEOF
15503/* confdefs.h. */
15504_ACEOF
15505cat confdefs.h >>conftest.$ac_ext
15506cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015507/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015508#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015509#include <sys/time.h>
15510#include <time.h>
15511
15512int
15513main ()
15514{
15515if ((struct tm *) 0)
15516return 0;
15517 ;
15518 return 0;
15519}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015520_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015521rm -f conftest.$ac_objext
15522if { (ac_try="$ac_compile"
15523case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526esac
15527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_compile") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536 { (case "(($ac_try" in
15537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538 *) ac_try_echo=$ac_try;;
15539esac
15540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541 (eval "$ac_try") 2>&5
15542 ac_status=$?
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); }; } &&
15545 { ac_try='test -s conftest.$ac_objext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015555 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015556else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015557 echo "$as_me: failed program was:" >&5
15558sed 's/^/| /' conftest.$ac_ext >&5
15559
15560 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015561fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015562
Reid Spencera773bd52006-08-04 18:18:08 +000015563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015564fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015565{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15566echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015567if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015568
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015569cat >>confdefs.h <<\_ACEOF
15570#define TIME_WITH_SYS_TIME 1
15571_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015572
15573fi
15574
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015576
15577
15578
15579
15580
15581
Reid Spencer59473af2004-12-25 07:31:29 +000015582for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015583do
15584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15589 echo $ECHO_N "(cached) $ECHO_C" >&6
15590fi
15591ac_res=`eval echo '${'$as_ac_Header'}'`
15592 { echo "$as_me:$LINENO: result: $ac_res" >&5
15593echo "${ECHO_T}$ac_res" >&6; }
15594else
15595 # Is the header compilable?
15596{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15598cat >conftest.$ac_ext <<_ACEOF
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604$ac_includes_default
15605#include <$ac_header>
15606_ACEOF
15607rm -f conftest.$ac_objext
15608if { (ac_try="$ac_compile"
15609case "(($ac_try" in
15610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15612esac
15613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_compile") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15622 { (case "(($ac_try" in
15623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15624 *) ac_try_echo=$ac_try;;
15625esac
15626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15627 (eval "$ac_try") 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635esac
15636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 ac_header_compiler=yes
15642else
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646 ac_header_compiler=no
15647fi
15648
15649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15651echo "${ECHO_T}$ac_header_compiler" >&6; }
15652
15653# Is the header present?
15654{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15656cat >conftest.$ac_ext <<_ACEOF
15657/* confdefs.h. */
15658_ACEOF
15659cat confdefs.h >>conftest.$ac_ext
15660cat >>conftest.$ac_ext <<_ACEOF
15661/* end confdefs.h. */
15662#include <$ac_header>
15663_ACEOF
15664if { (ac_try="$ac_cpp conftest.$ac_ext"
15665case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668esac
15669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } >/dev/null; then
15677 if test -s conftest.err; then
15678 ac_cpp_err=$ac_c_preproc_warn_flag
15679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15680 else
15681 ac_cpp_err=
15682 fi
15683else
15684 ac_cpp_err=yes
15685fi
15686if test -z "$ac_cpp_err"; then
15687 ac_header_preproc=yes
15688else
15689 echo "$as_me: failed program was:" >&5
15690sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 ac_header_preproc=no
15693fi
15694
15695rm -f conftest.err conftest.$ac_ext
15696{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15697echo "${ECHO_T}$ac_header_preproc" >&6; }
15698
15699# So? What about this header?
15700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15701 yes:no: )
15702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15706 ac_header_preproc=yes
15707 ;;
15708 no:yes:* )
15709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15721 ( cat <<\_ASBOX
15722## ----------------------------------- ##
15723## Report this to llvmbugs@cs.uiuc.edu ##
15724## ----------------------------------- ##
15725_ASBOX
15726 ) | sed "s/^/$as_me: WARNING: /" >&2
15727 ;;
15728esac
15729{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15733else
15734 eval "$as_ac_Header=\$ac_header_preproc"
15735fi
15736ac_res=`eval echo '${'$as_ac_Header'}'`
15737 { echo "$as_me:$LINENO: result: $ac_res" >&5
15738echo "${ECHO_T}$ac_res" >&6; }
15739
15740fi
15741if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015742 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015744_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015745
15746fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015747
Reid Spencer59473af2004-12-25 07:31:29 +000015748done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015749
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015750
15751
15752
15753
15754
15755
Douglas Gregor071d73d2009-05-18 17:21:34 +000015756for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015757do
15758as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764fi
15765ac_res=`eval echo '${'$as_ac_Header'}'`
15766 { echo "$as_me:$LINENO: result: $ac_res" >&5
15767echo "${ECHO_T}$ac_res" >&6; }
15768else
15769 # Is the header compilable?
15770{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15771echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15772cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778$ac_includes_default
15779#include <$ac_header>
15780_ACEOF
15781rm -f conftest.$ac_objext
15782if { (ac_try="$ac_compile"
15783case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15786esac
15787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_compile") 2>conftest.er1
15789 ac_status=$?
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15796 { (case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799esac
15800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_try") 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15809esac
15810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_try") 2>&5
15812 ac_status=$?
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); }; }; then
15815 ac_header_compiler=yes
15816else
15817 echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_header_compiler=no
15821fi
15822
15823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825echo "${ECHO_T}$ac_header_compiler" >&6; }
15826
15827# Is the header present?
15828{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836#include <$ac_header>
15837_ACEOF
15838if { (ac_try="$ac_cpp conftest.$ac_ext"
15839case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842esac
15843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null; then
15851 if test -s conftest.err; then
15852 ac_cpp_err=$ac_c_preproc_warn_flag
15853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15854 else
15855 ac_cpp_err=
15856 fi
15857else
15858 ac_cpp_err=yes
15859fi
15860if test -z "$ac_cpp_err"; then
15861 ac_header_preproc=yes
15862else
15863 echo "$as_me: failed program was:" >&5
15864sed 's/^/| /' conftest.$ac_ext >&5
15865
15866 ac_header_preproc=no
15867fi
15868
15869rm -f conftest.err conftest.$ac_ext
15870{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15871echo "${ECHO_T}$ac_header_preproc" >&6; }
15872
15873# So? What about this header?
15874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15875 yes:no: )
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15880 ac_header_preproc=yes
15881 ;;
15882 no:yes:* )
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15895 ( cat <<\_ASBOX
15896## ----------------------------------- ##
15897## Report this to llvmbugs@cs.uiuc.edu ##
15898## ----------------------------------- ##
15899_ASBOX
15900 ) | sed "s/^/$as_me: WARNING: /" >&2
15901 ;;
15902esac
15903{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15907else
15908 eval "$as_ac_Header=\$ac_header_preproc"
15909fi
15910ac_res=`eval echo '${'$as_ac_Header'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912echo "${ECHO_T}$ac_res" >&6; }
15913
15914fi
15915if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015916 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015918_ACEOF
15919
15920fi
15921
15922done
15923
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015924
15925
Douglas Gregor071d73d2009-05-18 17:21:34 +000015926for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015927do
15928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15934fi
15935ac_res=`eval echo '${'$as_ac_Header'}'`
15936 { echo "$as_me:$LINENO: result: $ac_res" >&5
15937echo "${ECHO_T}$ac_res" >&6; }
15938else
15939 # Is the header compilable?
15940{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15942cat >conftest.$ac_ext <<_ACEOF
15943/* confdefs.h. */
15944_ACEOF
15945cat confdefs.h >>conftest.$ac_ext
15946cat >>conftest.$ac_ext <<_ACEOF
15947/* end confdefs.h. */
15948$ac_includes_default
15949#include <$ac_header>
15950_ACEOF
15951rm -f conftest.$ac_objext
15952if { (ac_try="$ac_compile"
15953case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15956esac
15957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_compile") 2>conftest.er1
15959 ac_status=$?
15960 grep -v '^ *+' conftest.er1 >conftest.err
15961 rm -f conftest.er1
15962 cat conftest.err >&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15969esac
15970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979esac
15980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_try") 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 ac_header_compiler=yes
15986else
15987 echo "$as_me: failed program was:" >&5
15988sed 's/^/| /' conftest.$ac_ext >&5
15989
15990 ac_header_compiler=no
15991fi
15992
15993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995echo "${ECHO_T}$ac_header_compiler" >&6; }
15996
15997# Is the header present?
15998{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16000cat >conftest.$ac_ext <<_ACEOF
16001/* confdefs.h. */
16002_ACEOF
16003cat confdefs.h >>conftest.$ac_ext
16004cat >>conftest.$ac_ext <<_ACEOF
16005/* end confdefs.h. */
16006#include <$ac_header>
16007_ACEOF
16008if { (ac_try="$ac_cpp conftest.$ac_ext"
16009case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012esac
16013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } >/dev/null; then
16021 if test -s conftest.err; then
16022 ac_cpp_err=$ac_c_preproc_warn_flag
16023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16024 else
16025 ac_cpp_err=
16026 fi
16027else
16028 ac_cpp_err=yes
16029fi
16030if test -z "$ac_cpp_err"; then
16031 ac_header_preproc=yes
16032else
16033 echo "$as_me: failed program was:" >&5
16034sed 's/^/| /' conftest.$ac_ext >&5
16035
16036 ac_header_preproc=no
16037fi
16038
16039rm -f conftest.err conftest.$ac_ext
16040{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16041echo "${ECHO_T}$ac_header_preproc" >&6; }
16042
16043# So? What about this header?
16044case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16045 yes:no: )
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16047echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16049echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16050 ac_header_preproc=yes
16051 ;;
16052 no:yes:* )
16053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16054echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16056echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16058echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16060echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16064echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16065 ( cat <<\_ASBOX
16066## ----------------------------------- ##
16067## Report this to llvmbugs@cs.uiuc.edu ##
16068## ----------------------------------- ##
16069_ASBOX
16070 ) | sed "s/^/$as_me: WARNING: /" >&2
16071 ;;
16072esac
16073{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16076 echo $ECHO_N "(cached) $ECHO_C" >&6
16077else
16078 eval "$as_ac_Header=\$ac_header_preproc"
16079fi
16080ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082echo "${ECHO_T}$ac_res" >&6; }
16083
16084fi
16085if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016086 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016088_ACEOF
16089
16090fi
16091
16092done
Reid Spencer59473af2004-12-25 07:31:29 +000016093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016094
16095
16096
16097
Reid Spencerbe3e4192007-08-17 05:45:26 +000016098for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016099do
16100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16105 echo $ECHO_N "(cached) $ECHO_C" >&6
16106fi
16107ac_res=`eval echo '${'$as_ac_Header'}'`
16108 { echo "$as_me:$LINENO: result: $ac_res" >&5
16109echo "${ECHO_T}$ac_res" >&6; }
16110else
16111 # Is the header compilable?
16112{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16114cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
16120$ac_includes_default
16121#include <$ac_header>
16122_ACEOF
16123rm -f conftest.$ac_objext
16124if { (ac_try="$ac_compile"
16125case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16128esac
16129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_compile") 2>conftest.er1
16131 ac_status=$?
16132 grep -v '^ *+' conftest.er1 >conftest.err
16133 rm -f conftest.er1
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16138 { (case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141esac
16142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_try") 2>&5
16144 ac_status=$?
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); }; } &&
16147 { ac_try='test -s conftest.$ac_objext'
16148 { (case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151esac
16152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16153 (eval "$ac_try") 2>&5
16154 ac_status=$?
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 ac_header_compiler=yes
16158else
16159 echo "$as_me: failed program was:" >&5
16160sed 's/^/| /' conftest.$ac_ext >&5
16161
16162 ac_header_compiler=no
16163fi
16164
16165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16167echo "${ECHO_T}$ac_header_compiler" >&6; }
16168
16169# Is the header present?
16170{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16172cat >conftest.$ac_ext <<_ACEOF
16173/* confdefs.h. */
16174_ACEOF
16175cat confdefs.h >>conftest.$ac_ext
16176cat >>conftest.$ac_ext <<_ACEOF
16177/* end confdefs.h. */
16178#include <$ac_header>
16179_ACEOF
16180if { (ac_try="$ac_cpp conftest.$ac_ext"
16181case "(($ac_try" in
16182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183 *) ac_try_echo=$ac_try;;
16184esac
16185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16187 ac_status=$?
16188 grep -v '^ *+' conftest.er1 >conftest.err
16189 rm -f conftest.er1
16190 cat conftest.err >&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } >/dev/null; then
16193 if test -s conftest.err; then
16194 ac_cpp_err=$ac_c_preproc_warn_flag
16195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16196 else
16197 ac_cpp_err=
16198 fi
16199else
16200 ac_cpp_err=yes
16201fi
16202if test -z "$ac_cpp_err"; then
16203 ac_header_preproc=yes
16204else
16205 echo "$as_me: failed program was:" >&5
16206sed 's/^/| /' conftest.$ac_ext >&5
16207
16208 ac_header_preproc=no
16209fi
16210
16211rm -f conftest.err conftest.$ac_ext
16212{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16213echo "${ECHO_T}$ac_header_preproc" >&6; }
16214
16215# So? What about this header?
16216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16217 yes:no: )
16218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16221echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16222 ac_header_preproc=yes
16223 ;;
16224 no:yes:* )
16225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16230echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16232echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16236echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16237 ( cat <<\_ASBOX
16238## ----------------------------------- ##
16239## Report this to llvmbugs@cs.uiuc.edu ##
16240## ----------------------------------- ##
16241_ASBOX
16242 ) | sed "s/^/$as_me: WARNING: /" >&2
16243 ;;
16244esac
16245{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249else
16250 eval "$as_ac_Header=\$ac_header_preproc"
16251fi
16252ac_res=`eval echo '${'$as_ac_Header'}'`
16253 { echo "$as_me:$LINENO: result: $ac_res" >&5
16254echo "${ECHO_T}$ac_res" >&6; }
16255
16256fi
16257if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016258 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016260_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016261
16262fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016263
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016264done
16265
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016266
16267
16268
16269
Douglas Gregor01746742009-05-11 18:05:52 +000016270for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016271do
16272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278fi
16279ac_res=`eval echo '${'$as_ac_Header'}'`
16280 { echo "$as_me:$LINENO: result: $ac_res" >&5
16281echo "${ECHO_T}$ac_res" >&6; }
16282else
16283 # Is the header compilable?
16284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16286cat >conftest.$ac_ext <<_ACEOF
16287/* confdefs.h. */
16288_ACEOF
16289cat confdefs.h >>conftest.$ac_ext
16290cat >>conftest.$ac_ext <<_ACEOF
16291/* end confdefs.h. */
16292$ac_includes_default
16293#include <$ac_header>
16294_ACEOF
16295rm -f conftest.$ac_objext
16296if { (ac_try="$ac_compile"
16297case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300esac
16301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_compile") 2>conftest.er1
16303 ac_status=$?
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
16309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; } &&
16319 { ac_try='test -s conftest.$ac_objext'
16320 { (case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323esac
16324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_try") 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_header_compiler=yes
16330else
16331 echo "$as_me: failed program was:" >&5
16332sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 ac_header_compiler=no
16335fi
16336
16337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16338{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16339echo "${ECHO_T}$ac_header_compiler" >&6; }
16340
16341# Is the header present?
16342{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16344cat >conftest.$ac_ext <<_ACEOF
16345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
16350#include <$ac_header>
16351_ACEOF
16352if { (ac_try="$ac_cpp conftest.$ac_ext"
16353case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16356esac
16357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev/null; then
16365 if test -s conftest.err; then
16366 ac_cpp_err=$ac_c_preproc_warn_flag
16367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16368 else
16369 ac_cpp_err=
16370 fi
16371else
16372 ac_cpp_err=yes
16373fi
16374if test -z "$ac_cpp_err"; then
16375 ac_header_preproc=yes
16376else
16377 echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380 ac_header_preproc=no
16381fi
16382
16383rm -f conftest.err conftest.$ac_ext
16384{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16385echo "${ECHO_T}$ac_header_preproc" >&6; }
16386
16387# So? What about this header?
16388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16389 yes:no: )
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16394 ac_header_preproc=yes
16395 ;;
16396 no:yes:* )
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16409 ( cat <<\_ASBOX
16410## ----------------------------------- ##
16411## Report this to llvmbugs@cs.uiuc.edu ##
16412## ----------------------------------- ##
16413_ASBOX
16414 ) | sed "s/^/$as_me: WARNING: /" >&2
16415 ;;
16416esac
16417{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16421else
16422 eval "$as_ac_Header=\$ac_header_preproc"
16423fi
16424ac_res=`eval echo '${'$as_ac_Header'}'`
16425 { echo "$as_me:$LINENO: result: $ac_res" >&5
16426echo "${ECHO_T}$ac_res" >&6; }
16427
16428fi
16429if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016430 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016432_ACEOF
16433
16434fi
16435
16436done
16437
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016438
16439for ac_header in valgrind/valgrind.h
16440do
16441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16447fi
16448ac_res=`eval echo '${'$as_ac_Header'}'`
16449 { echo "$as_me:$LINENO: result: $ac_res" >&5
16450echo "${ECHO_T}$ac_res" >&6; }
16451else
16452 # Is the header compilable?
16453{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16455cat >conftest.$ac_ext <<_ACEOF
16456/* confdefs.h. */
16457_ACEOF
16458cat confdefs.h >>conftest.$ac_ext
16459cat >>conftest.$ac_ext <<_ACEOF
16460/* end confdefs.h. */
16461$ac_includes_default
16462#include <$ac_header>
16463_ACEOF
16464rm -f conftest.$ac_objext
16465if { (ac_try="$ac_compile"
16466case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_compile") 2>conftest.er1
16472 ac_status=$?
16473 grep -v '^ *+' conftest.er1 >conftest.err
16474 rm -f conftest.er1
16475 cat conftest.err >&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); } &&
16478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16479 { (case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16482esac
16483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_try") 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; } &&
16488 { ac_try='test -s conftest.$ac_objext'
16489 { (case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16492esac
16493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_try") 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 ac_header_compiler=yes
16499else
16500 echo "$as_me: failed program was:" >&5
16501sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 ac_header_compiler=no
16504fi
16505
16506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16507{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16508echo "${ECHO_T}$ac_header_compiler" >&6; }
16509
16510# Is the header present?
16511{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16513cat >conftest.$ac_ext <<_ACEOF
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519#include <$ac_header>
16520_ACEOF
16521if { (ac_try="$ac_cpp conftest.$ac_ext"
16522case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16525esac
16526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev/null; then
16534 if test -s conftest.err; then
16535 ac_cpp_err=$ac_c_preproc_warn_flag
16536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16537 else
16538 ac_cpp_err=
16539 fi
16540else
16541 ac_cpp_err=yes
16542fi
16543if test -z "$ac_cpp_err"; then
16544 ac_header_preproc=yes
16545else
16546 echo "$as_me: failed program was:" >&5
16547sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 ac_header_preproc=no
16550fi
16551
16552rm -f conftest.err conftest.$ac_ext
16553{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16554echo "${ECHO_T}$ac_header_preproc" >&6; }
16555
16556# So? What about this header?
16557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16558 yes:no: )
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16563 ac_header_preproc=yes
16564 ;;
16565 no:yes:* )
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16569echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16573echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16578 ( cat <<\_ASBOX
16579## ----------------------------------- ##
16580## Report this to llvmbugs@cs.uiuc.edu ##
16581## ----------------------------------- ##
16582_ASBOX
16583 ) | sed "s/^/$as_me: WARNING: /" >&2
16584 ;;
16585esac
16586{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16590else
16591 eval "$as_ac_Header=\$ac_header_preproc"
16592fi
16593ac_res=`eval echo '${'$as_ac_Header'}'`
16594 { echo "$as_me:$LINENO: result: $ac_res" >&5
16595echo "${ECHO_T}$ac_res" >&6; }
16596
16597fi
16598if test `eval echo '${'$as_ac_Header'}'` = yes; then
16599 cat >>confdefs.h <<_ACEOF
16600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16601_ACEOF
16602
16603fi
16604
16605done
16606
Reid Spencer0a262ba2005-08-24 10:07:20 +000016607if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016608
16609for ac_header in pthread.h
16610do
16611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617fi
16618ac_res=`eval echo '${'$as_ac_Header'}'`
16619 { echo "$as_me:$LINENO: result: $ac_res" >&5
16620echo "${ECHO_T}$ac_res" >&6; }
16621else
16622 # Is the header compilable?
16623{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16625cat >conftest.$ac_ext <<_ACEOF
16626/* confdefs.h. */
16627_ACEOF
16628cat confdefs.h >>conftest.$ac_ext
16629cat >>conftest.$ac_ext <<_ACEOF
16630/* end confdefs.h. */
16631$ac_includes_default
16632#include <$ac_header>
16633_ACEOF
16634rm -f conftest.$ac_objext
16635if { (ac_try="$ac_compile"
16636case "(($ac_try" in
16637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16638 *) ac_try_echo=$ac_try;;
16639esac
16640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
16648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16652esac
16653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
16659 { (case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662esac
16663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_try") 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_header_compiler=yes
16669else
16670 echo "$as_me: failed program was:" >&5
16671sed 's/^/| /' conftest.$ac_ext >&5
16672
16673 ac_header_compiler=no
16674fi
16675
16676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16677{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16678echo "${ECHO_T}$ac_header_compiler" >&6; }
16679
16680# Is the header present?
16681{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16683cat >conftest.$ac_ext <<_ACEOF
16684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
16689#include <$ac_header>
16690_ACEOF
16691if { (ac_try="$ac_cpp conftest.$ac_ext"
16692case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695esac
16696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16698 ac_status=$?
16699 grep -v '^ *+' conftest.er1 >conftest.err
16700 rm -f conftest.er1
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } >/dev/null; then
16704 if test -s conftest.err; then
16705 ac_cpp_err=$ac_c_preproc_warn_flag
16706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16707 else
16708 ac_cpp_err=
16709 fi
16710else
16711 ac_cpp_err=yes
16712fi
16713if test -z "$ac_cpp_err"; then
16714 ac_header_preproc=yes
16715else
16716 echo "$as_me: failed program was:" >&5
16717sed 's/^/| /' conftest.$ac_ext >&5
16718
16719 ac_header_preproc=no
16720fi
16721
16722rm -f conftest.err conftest.$ac_ext
16723{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16724echo "${ECHO_T}$ac_header_preproc" >&6; }
16725
16726# So? What about this header?
16727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16728 yes:no: )
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16733 ac_header_preproc=yes
16734 ;;
16735 no:yes:* )
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16748 ( cat <<\_ASBOX
16749## ----------------------------------- ##
16750## Report this to llvmbugs@cs.uiuc.edu ##
16751## ----------------------------------- ##
16752_ASBOX
16753 ) | sed "s/^/$as_me: WARNING: /" >&2
16754 ;;
16755esac
16756{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760else
16761 eval "$as_ac_Header=\$ac_header_preproc"
16762fi
16763ac_res=`eval echo '${'$as_ac_Header'}'`
16764 { echo "$as_me:$LINENO: result: $ac_res" >&5
16765echo "${ECHO_T}$ac_res" >&6; }
16766
16767fi
16768if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016769 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016770#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016771_ACEOF
16772 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016773
16774else
16775 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016776
16777fi
16778
Reid Spencerbe3e4192007-08-17 05:45:26 +000016779done
Reid Spencer1000b732006-12-01 00:37:14 +000016780
16781else
16782 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016783
16784fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016785
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016786if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016787
16788
16789for ac_header in ffi.h ffi/ffi.h
16790do
16791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797fi
16798ac_res=`eval echo '${'$as_ac_Header'}'`
16799 { echo "$as_me:$LINENO: result: $ac_res" >&5
16800echo "${ECHO_T}$ac_res" >&6; }
16801else
16802 # Is the header compilable?
16803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16805cat >conftest.$ac_ext <<_ACEOF
16806/* confdefs.h. */
16807_ACEOF
16808cat confdefs.h >>conftest.$ac_ext
16809cat >>conftest.$ac_ext <<_ACEOF
16810/* end confdefs.h. */
16811$ac_includes_default
16812#include <$ac_header>
16813_ACEOF
16814rm -f conftest.$ac_objext
16815if { (ac_try="$ac_compile"
16816case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16819esac
16820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_compile") 2>conftest.er1
16822 ac_status=$?
16823 grep -v '^ *+' conftest.er1 >conftest.err
16824 rm -f conftest.er1
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16829 { (case "(($ac_try" in
16830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16831 *) ac_try_echo=$ac_try;;
16832esac
16833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16834 (eval "$ac_try") 2>&5
16835 ac_status=$?
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; } &&
16838 { ac_try='test -s conftest.$ac_objext'
16839 { (case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16842esac
16843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_try") 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_header_compiler=yes
16849else
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 ac_header_compiler=no
16854fi
16855
16856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16858echo "${ECHO_T}$ac_header_compiler" >&6; }
16859
16860# Is the header present?
16861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16863cat >conftest.$ac_ext <<_ACEOF
16864/* confdefs.h. */
16865_ACEOF
16866cat confdefs.h >>conftest.$ac_ext
16867cat >>conftest.$ac_ext <<_ACEOF
16868/* end confdefs.h. */
16869#include <$ac_header>
16870_ACEOF
16871if { (ac_try="$ac_cpp conftest.$ac_ext"
16872case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16875esac
16876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16878 ac_status=$?
16879 grep -v '^ *+' conftest.er1 >conftest.err
16880 rm -f conftest.er1
16881 cat conftest.err >&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } >/dev/null; then
16884 if test -s conftest.err; then
16885 ac_cpp_err=$ac_c_preproc_warn_flag
16886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16887 else
16888 ac_cpp_err=
16889 fi
16890else
16891 ac_cpp_err=yes
16892fi
16893if test -z "$ac_cpp_err"; then
16894 ac_header_preproc=yes
16895else
16896 echo "$as_me: failed program was:" >&5
16897sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 ac_header_preproc=no
16900fi
16901
16902rm -f conftest.err conftest.$ac_ext
16903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16904echo "${ECHO_T}$ac_header_preproc" >&6; }
16905
16906# So? What about this header?
16907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16908 yes:no: )
16909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16913 ac_header_preproc=yes
16914 ;;
16915 no:yes:* )
16916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16928 ( cat <<\_ASBOX
16929## ----------------------------------- ##
16930## Report this to llvmbugs@cs.uiuc.edu ##
16931## ----------------------------------- ##
16932_ASBOX
16933 ) | sed "s/^/$as_me: WARNING: /" >&2
16934 ;;
16935esac
16936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16940else
16941 eval "$as_ac_Header=\$ac_header_preproc"
16942fi
16943ac_res=`eval echo '${'$as_ac_Header'}'`
16944 { echo "$as_me:$LINENO: result: $ac_res" >&5
16945echo "${ECHO_T}$ac_res" >&6; }
16946
16947fi
16948if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016949 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016951_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016952
16953fi
16954
16955done
16956
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016957fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016958
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016959
Eric Christopher654dee42010-06-22 21:01:04 +000016960for ac_header in CrashReporterClient.h
16961do
16962as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16967 echo $ECHO_N "(cached) $ECHO_C" >&6
16968fi
16969ac_res=`eval echo '${'$as_ac_Header'}'`
16970 { echo "$as_me:$LINENO: result: $ac_res" >&5
16971echo "${ECHO_T}$ac_res" >&6; }
16972else
16973 # Is the header compilable?
16974{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16976cat >conftest.$ac_ext <<_ACEOF
16977/* confdefs.h. */
16978_ACEOF
16979cat confdefs.h >>conftest.$ac_ext
16980cat >>conftest.$ac_ext <<_ACEOF
16981/* end confdefs.h. */
16982$ac_includes_default
16983#include <$ac_header>
16984_ACEOF
16985rm -f conftest.$ac_objext
16986if { (ac_try="$ac_compile"
16987case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16990esac
16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_compile") 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest.$ac_objext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_header_compiler=yes
17020else
17021 echo "$as_me: failed program was:" >&5
17022sed 's/^/| /' conftest.$ac_ext >&5
17023
17024 ac_header_compiler=no
17025fi
17026
17027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17028{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17029echo "${ECHO_T}$ac_header_compiler" >&6; }
17030
17031# Is the header present?
17032{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17034cat >conftest.$ac_ext <<_ACEOF
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040#include <$ac_header>
17041_ACEOF
17042if { (ac_try="$ac_cpp conftest.$ac_ext"
17043case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17049 ac_status=$?
17050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } >/dev/null; then
17055 if test -s conftest.err; then
17056 ac_cpp_err=$ac_c_preproc_warn_flag
17057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17058 else
17059 ac_cpp_err=
17060 fi
17061else
17062 ac_cpp_err=yes
17063fi
17064if test -z "$ac_cpp_err"; then
17065 ac_header_preproc=yes
17066else
17067 echo "$as_me: failed program was:" >&5
17068sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 ac_header_preproc=no
17071fi
17072
17073rm -f conftest.err conftest.$ac_ext
17074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17075echo "${ECHO_T}$ac_header_preproc" >&6; }
17076
17077# So? What about this header?
17078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17079 yes:no: )
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17084 ac_header_preproc=yes
17085 ;;
17086 no:yes:* )
17087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17099 ( cat <<\_ASBOX
17100## ----------------------------------- ##
17101## Report this to llvmbugs@cs.uiuc.edu ##
17102## ----------------------------------- ##
17103_ASBOX
17104 ) | sed "s/^/$as_me: WARNING: /" >&2
17105 ;;
17106esac
17107{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 eval "$as_ac_Header=\$ac_header_preproc"
17113fi
17114ac_res=`eval echo '${'$as_ac_Header'}'`
17115 { echo "$as_me:$LINENO: result: $ac_res" >&5
17116echo "${ECHO_T}$ac_res" >&6; }
17117
17118fi
17119if test `eval echo '${'$as_ac_Header'}'` = yes; then
17120 cat >>confdefs.h <<_ACEOF
17121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17122_ACEOF
17123
17124fi
17125
17126done
17127
17128
17129
Reid Spencer8085cff2005-01-16 02:58:39 +000017130
Torok Edwin871384f2010-01-26 08:50:50 +000017131
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017132 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17133echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17134if test "${ac_cv_huge_val_sanity+set}" = set; then
17135 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017136else
17137
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017138 ac_ext=cpp
17139ac_cpp='$CXXCPP $CPPFLAGS'
17140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017143
Eric Christopherc7718502010-03-02 05:06:54 +000017144 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017145 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017146 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017147 ac_cv_huge_val_sanity=yes
17148else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017149 cat >conftest.$ac_ext <<_ACEOF
17150/* confdefs.h. */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017154/* end confdefs.h. */
17155#include <math.h>
17156int
17157main ()
17158{
17159double x = HUGE_VAL; return x != x;
17160 ;
17161 return 0;
17162}
17163_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017164rm -f conftest$ac_exeext
17165if { (ac_try="$ac_link"
17166case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_link") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17175 { (case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017184 ac_cv_huge_val_sanity=yes
17185else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017186 echo "$as_me: program exited with status $ac_status" >&5
17187echo "$as_me: failed program was:" >&5
17188sed 's/^/| /' conftest.$ac_ext >&5
17189
17190( exit $ac_status )
17191ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017193rm -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 +000017194fi
17195
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017196
Eric Christopherc7718502010-03-02 05:06:54 +000017197 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017198 ac_ext=c
17199ac_cpp='$CPP $CPPFLAGS'
17200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17202ac_compiler_gnu=$ac_cv_c_compiler_gnu
17203
17204
17205fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017206{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17207echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017208 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17209
17210
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017211{ echo "$as_me:$LINENO: checking for pid_t" >&5
17212echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17213if test "${ac_cv_type_pid_t+set}" = set; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17215else
17216 cat >conftest.$ac_ext <<_ACEOF
17217/* confdefs.h. */
17218_ACEOF
17219cat confdefs.h >>conftest.$ac_ext
17220cat >>conftest.$ac_ext <<_ACEOF
17221/* end confdefs.h. */
17222$ac_includes_default
17223typedef pid_t ac__type_new_;
17224int
17225main ()
17226{
17227if ((ac__type_new_ *) 0)
17228 return 0;
17229if (sizeof (ac__type_new_))
17230 return 0;
17231 ;
17232 return 0;
17233}
17234_ACEOF
17235rm -f conftest.$ac_objext
17236if { (ac_try="$ac_compile"
17237case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17240esac
17241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_compile") 2>conftest.er1
17243 ac_status=$?
17244 grep -v '^ *+' conftest.er1 >conftest.err
17245 rm -f conftest.er1
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250 { (case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253esac
17254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_try") 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; } &&
17259 { ac_try='test -s conftest.$ac_objext'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17263esac
17264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_type_pid_t=yes
17270else
17271 echo "$as_me: failed program was:" >&5
17272sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017274 ac_cv_type_pid_t=no
17275fi
17276
17277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17278fi
17279{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17280echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17281if test $ac_cv_type_pid_t = yes; then
17282 :
John Criswell7a73b802003-06-30 21:59:07 +000017283else
17284
17285cat >>confdefs.h <<_ACEOF
17286#define pid_t int
17287_ACEOF
17288
17289fi
17290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017291{ echo "$as_me:$LINENO: checking for size_t" >&5
17292echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17293if test "${ac_cv_type_size_t+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295else
17296 cat >conftest.$ac_ext <<_ACEOF
17297/* confdefs.h. */
17298_ACEOF
17299cat confdefs.h >>conftest.$ac_ext
17300cat >>conftest.$ac_ext <<_ACEOF
17301/* end confdefs.h. */
17302$ac_includes_default
17303typedef size_t ac__type_new_;
17304int
17305main ()
17306{
17307if ((ac__type_new_ *) 0)
17308 return 0;
17309if (sizeof (ac__type_new_))
17310 return 0;
17311 ;
17312 return 0;
17313}
17314_ACEOF
17315rm -f conftest.$ac_objext
17316if { (ac_try="$ac_compile"
17317case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320esac
17321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_compile") 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17330 { (case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17333esac
17334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_try") 2>&5
17336 ac_status=$?
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); }; } &&
17339 { ac_try='test -s conftest.$ac_objext'
17340 { (case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343esac
17344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_try") 2>&5
17346 ac_status=$?
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); }; }; then
17349 ac_cv_type_size_t=yes
17350else
17351 echo "$as_me: failed program was:" >&5
17352sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017353
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017354 ac_cv_type_size_t=no
17355fi
17356
17357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358fi
17359{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17360echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17361if test $ac_cv_type_size_t = yes; then
17362 :
John Criswell7a73b802003-06-30 21:59:07 +000017363else
17364
17365cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017366#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017367_ACEOF
17368
17369fi
17370
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017371
17372cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017373#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017374_ACEOF
17375
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017376{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17377echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17378if test "${ac_cv_struct_tm+set}" = set; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017380else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017381 cat >conftest.$ac_ext <<_ACEOF
17382/* confdefs.h. */
17383_ACEOF
17384cat confdefs.h >>conftest.$ac_ext
17385cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017386/* end confdefs.h. */
17387#include <sys/types.h>
17388#include <time.h>
17389
17390int
17391main ()
17392{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017393struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017394 ;
17395 return 0;
17396}
17397_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017398rm -f conftest.$ac_objext
17399if { (ac_try="$ac_compile"
17400case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17403esac
17404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_compile") 2>conftest.er1
17406 ac_status=$?
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } &&
17412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17413 { (case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17416esac
17417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17418 (eval "$ac_try") 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest.$ac_objext'
17423 { (case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17426esac
17427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_try") 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017432 ac_cv_struct_tm=time.h
17433else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017434 echo "$as_me: failed program was:" >&5
17435sed 's/^/| /' conftest.$ac_ext >&5
17436
17437 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017438fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017439
Reid Spencera773bd52006-08-04 18:18:08 +000017440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017442{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17443echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017444if test $ac_cv_struct_tm = sys/time.h; then
17445
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017446cat >>confdefs.h <<\_ACEOF
17447#define TM_IN_SYS_TIME 1
17448_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017449
17450fi
17451
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017452{ echo "$as_me:$LINENO: checking for int64_t" >&5
17453echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17454if test "${ac_cv_type_int64_t+set}" = set; then
17455 echo $ECHO_N "(cached) $ECHO_C" >&6
17456else
17457 cat >conftest.$ac_ext <<_ACEOF
17458/* confdefs.h. */
17459_ACEOF
17460cat confdefs.h >>conftest.$ac_ext
17461cat >>conftest.$ac_ext <<_ACEOF
17462/* end confdefs.h. */
17463$ac_includes_default
17464typedef int64_t ac__type_new_;
17465int
17466main ()
17467{
17468if ((ac__type_new_ *) 0)
17469 return 0;
17470if (sizeof (ac__type_new_))
17471 return 0;
17472 ;
17473 return 0;
17474}
17475_ACEOF
17476rm -f conftest.$ac_objext
17477if { (ac_try="$ac_compile"
17478case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481esac
17482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491 { (case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17494esac
17495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17497 ac_status=$?
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest.$ac_objext'
17501 { (case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17504esac
17505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_try") 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; }; then
17510 ac_cv_type_int64_t=yes
17511else
17512 echo "$as_me: failed program was:" >&5
17513sed 's/^/| /' conftest.$ac_ext >&5
17514
17515 ac_cv_type_int64_t=no
17516fi
17517
17518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519fi
17520{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17521echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17522if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017523
17524cat >>confdefs.h <<_ACEOF
17525#define HAVE_INT64_T 1
17526_ACEOF
17527
17528
17529else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017530 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17531echo "$as_me: error: Type int64_t required but not found" >&2;}
17532 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017533fi
17534
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017535{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17536echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17537if test "${ac_cv_type_uint64_t+set}" = set; then
17538 echo $ECHO_N "(cached) $ECHO_C" >&6
17539else
17540 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546$ac_includes_default
17547typedef uint64_t ac__type_new_;
17548int
17549main ()
17550{
17551if ((ac__type_new_ *) 0)
17552 return 0;
17553if (sizeof (ac__type_new_))
17554 return 0;
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (ac_try="$ac_compile"
17561case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_compile") 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577esac
17578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17587esac
17588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_try") 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; }; then
17593 ac_cv_type_uint64_t=yes
17594else
17595 echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 ac_cv_type_uint64_t=no
17599fi
17600
17601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17602fi
17603{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17604echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17605if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017606
17607cat >>confdefs.h <<_ACEOF
17608#define HAVE_UINT64_T 1
17609_ACEOF
17610
17611
17612else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017613 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17614echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17615if test "${ac_cv_type_u_int64_t+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17617else
17618 cat >conftest.$ac_ext <<_ACEOF
17619/* confdefs.h. */
17620_ACEOF
17621cat confdefs.h >>conftest.$ac_ext
17622cat >>conftest.$ac_ext <<_ACEOF
17623/* end confdefs.h. */
17624$ac_includes_default
17625typedef u_int64_t ac__type_new_;
17626int
17627main ()
17628{
17629if ((ac__type_new_ *) 0)
17630 return 0;
17631if (sizeof (ac__type_new_))
17632 return 0;
17633 ;
17634 return 0;
17635}
17636_ACEOF
17637rm -f conftest.$ac_objext
17638if { (ac_try="$ac_compile"
17639case "(($ac_try" in
17640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17641 *) ac_try_echo=$ac_try;;
17642esac
17643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17644 (eval "$ac_compile") 2>conftest.er1
17645 ac_status=$?
17646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
17651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17652 { (case "(($ac_try" in
17653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654 *) ac_try_echo=$ac_try;;
17655esac
17656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17657 (eval "$ac_try") 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; } &&
17661 { ac_try='test -s conftest.$ac_objext'
17662 { (case "(($ac_try" in
17663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664 *) ac_try_echo=$ac_try;;
17665esac
17666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17667 (eval "$ac_try") 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 ac_cv_type_u_int64_t=yes
17672else
17673 echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
17676 ac_cv_type_u_int64_t=no
17677fi
17678
17679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680fi
17681{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17682echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17683if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017684
17685cat >>confdefs.h <<_ACEOF
17686#define HAVE_U_INT64_T 1
17687_ACEOF
17688
17689
Misha Brukmanceca9042004-09-02 23:02:30 +000017690else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017691 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17692echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17693 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017694fi
17695
John Criswell679ff312004-09-02 18:44:44 +000017696fi
17697
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017698
17699
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017700
17701
17702
17703
17704
17705
17706
Reid Spencerdf3be822006-01-23 08:15:53 +000017707for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017708do
17709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714else
17715 cat >conftest.$ac_ext <<_ACEOF
17716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
17721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17723#define $ac_func innocuous_$ac_func
17724
17725/* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func (); below.
17727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728 <limits.h> exists even on freestanding compilers. */
17729
17730#ifdef __STDC__
17731# include <limits.h>
17732#else
17733# include <assert.h>
17734#endif
17735
17736#undef $ac_func
17737
17738/* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17741#ifdef __cplusplus
17742extern "C"
17743#endif
17744char $ac_func ();
17745/* The GNU C library defines this for functions which it implements
17746 to always fail with ENOSYS. Some functions are actually named
17747 something starting with __ and the normal name is an alias. */
17748#if defined __stub_$ac_func || defined __stub___$ac_func
17749choke me
17750#endif
17751
17752int
17753main ()
17754{
17755return $ac_func ();
17756 ;
17757 return 0;
17758}
17759_ACEOF
17760rm -f conftest.$ac_objext conftest$ac_exeext
17761if { (ac_try="$ac_link"
17762case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765esac
17766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_link") 2>conftest.er1
17768 ac_status=$?
17769 grep -v '^ *+' conftest.er1 >conftest.err
17770 rm -f conftest.er1
17771 cat conftest.err >&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); } &&
17774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17788esac
17789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_try") 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 eval "$as_ac_var=yes"
17795else
17796 echo "$as_me: failed program was:" >&5
17797sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 eval "$as_ac_var=no"
17800fi
17801
17802rm -f core conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17804fi
17805ac_res=`eval echo '${'$as_ac_var'}'`
17806 { echo "$as_me:$LINENO: result: $ac_res" >&5
17807echo "${ECHO_T}$ac_res" >&6; }
17808if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017809 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017811_ACEOF
17812
17813fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017814done
John Criswell7a73b802003-06-30 21:59:07 +000017815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017816
17817
17818
17819
Reid Spencer96cf5872007-07-13 10:05:30 +000017820for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017821do
17822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827else
17828 cat >conftest.$ac_ext <<_ACEOF
17829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
17834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17836#define $ac_func innocuous_$ac_func
17837
17838/* System header to define __stub macros and hopefully few prototypes,
17839 which can conflict with char $ac_func (); below.
17840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17841 <limits.h> exists even on freestanding compilers. */
17842
17843#ifdef __STDC__
17844# include <limits.h>
17845#else
17846# include <assert.h>
17847#endif
17848
17849#undef $ac_func
17850
17851/* Override any GCC internal prototype to avoid an error.
17852 Use char because int might match the return type of a GCC
17853 builtin and then its argument prototype would still apply. */
17854#ifdef __cplusplus
17855extern "C"
17856#endif
17857char $ac_func ();
17858/* The GNU C library defines this for functions which it implements
17859 to always fail with ENOSYS. Some functions are actually named
17860 something starting with __ and the normal name is an alias. */
17861#if defined __stub_$ac_func || defined __stub___$ac_func
17862choke me
17863#endif
17864
17865int
17866main ()
17867{
17868return $ac_func ();
17869 ;
17870 return 0;
17871}
17872_ACEOF
17873rm -f conftest.$ac_objext conftest$ac_exeext
17874if { (ac_try="$ac_link"
17875case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17878esac
17879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_link") 2>conftest.er1
17881 ac_status=$?
17882 grep -v '^ *+' conftest.er1 >conftest.err
17883 rm -f conftest.er1
17884 cat conftest.err >&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891esac
17892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest$ac_exeext'
17898 { (case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901esac
17902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_try") 2>&5
17904 ac_status=$?
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); }; }; then
17907 eval "$as_ac_var=yes"
17908else
17909 echo "$as_me: failed program was:" >&5
17910sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 eval "$as_ac_var=no"
17913fi
17914
17915rm -f core conftest.err conftest.$ac_objext \
17916 conftest$ac_exeext conftest.$ac_ext
17917fi
17918ac_res=`eval echo '${'$as_ac_var'}'`
17919 { echo "$as_me:$LINENO: result: $ac_res" >&5
17920echo "${ECHO_T}$ac_res" >&6; }
17921if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017922 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017924_ACEOF
17925
17926fi
17927done
17928
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017929
17930
17931
17932
17933
Reid Spencerb90645c2007-02-16 19:17:20 +000017934for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017935do
17936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17937{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17939if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17940 echo $ECHO_N "(cached) $ECHO_C" >&6
17941else
17942 cat >conftest.$ac_ext <<_ACEOF
17943/* confdefs.h. */
17944_ACEOF
17945cat confdefs.h >>conftest.$ac_ext
17946cat >>conftest.$ac_ext <<_ACEOF
17947/* end confdefs.h. */
17948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17950#define $ac_func innocuous_$ac_func
17951
17952/* System header to define __stub macros and hopefully few prototypes,
17953 which can conflict with char $ac_func (); below.
17954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17955 <limits.h> exists even on freestanding compilers. */
17956
17957#ifdef __STDC__
17958# include <limits.h>
17959#else
17960# include <assert.h>
17961#endif
17962
17963#undef $ac_func
17964
17965/* Override any GCC internal prototype to avoid an error.
17966 Use char because int might match the return type of a GCC
17967 builtin and then its argument prototype would still apply. */
17968#ifdef __cplusplus
17969extern "C"
17970#endif
17971char $ac_func ();
17972/* The GNU C library defines this for functions which it implements
17973 to always fail with ENOSYS. Some functions are actually named
17974 something starting with __ and the normal name is an alias. */
17975#if defined __stub_$ac_func || defined __stub___$ac_func
17976choke me
17977#endif
17978
17979int
17980main ()
17981{
17982return $ac_func ();
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest.$ac_objext conftest$ac_exeext
17988if { (ac_try="$ac_link"
17989case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_link") 2>conftest.er1
17995 ac_status=$?
17996 grep -v '^ *+' conftest.er1 >conftest.err
17997 rm -f conftest.er1
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest$ac_exeext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015esac
18016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 eval "$as_ac_var=yes"
18022else
18023 echo "$as_me: failed program was:" >&5
18024sed 's/^/| /' conftest.$ac_ext >&5
18025
18026 eval "$as_ac_var=no"
18027fi
18028
18029rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031fi
18032ac_res=`eval echo '${'$as_ac_var'}'`
18033 { echo "$as_me:$LINENO: result: $ac_res" >&5
18034echo "${ECHO_T}$ac_res" >&6; }
18035if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018036 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018038_ACEOF
18039
18040fi
18041done
18042
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018043
18044
18045
Reid Spencerb90645c2007-02-16 19:17:20 +000018046for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018047do
18048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18049{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18053else
18054 cat >conftest.$ac_ext <<_ACEOF
18055/* confdefs.h. */
18056_ACEOF
18057cat confdefs.h >>conftest.$ac_ext
18058cat >>conftest.$ac_ext <<_ACEOF
18059/* end confdefs.h. */
18060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18062#define $ac_func innocuous_$ac_func
18063
18064/* System header to define __stub macros and hopefully few prototypes,
18065 which can conflict with char $ac_func (); below.
18066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18067 <limits.h> exists even on freestanding compilers. */
18068
18069#ifdef __STDC__
18070# include <limits.h>
18071#else
18072# include <assert.h>
18073#endif
18074
18075#undef $ac_func
18076
18077/* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18080#ifdef __cplusplus
18081extern "C"
18082#endif
18083char $ac_func ();
18084/* The GNU C library defines this for functions which it implements
18085 to always fail with ENOSYS. Some functions are actually named
18086 something starting with __ and the normal name is an alias. */
18087#if defined __stub_$ac_func || defined __stub___$ac_func
18088choke me
18089#endif
18090
18091int
18092main ()
18093{
18094return $ac_func ();
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext conftest$ac_exeext
18100if { (ac_try="$ac_link"
18101case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18104esac
18105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_link") 2>conftest.er1
18107 ac_status=$?
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest$ac_exeext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18127esac
18128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 eval "$as_ac_var=yes"
18134else
18135 echo "$as_me: failed program was:" >&5
18136sed 's/^/| /' conftest.$ac_ext >&5
18137
18138 eval "$as_ac_var=no"
18139fi
18140
18141rm -f core conftest.err conftest.$ac_objext \
18142 conftest$ac_exeext conftest.$ac_ext
18143fi
18144ac_res=`eval echo '${'$as_ac_var'}'`
18145 { echo "$as_me:$LINENO: result: $ac_res" >&5
18146echo "${ECHO_T}$ac_res" >&6; }
18147if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018148 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018150_ACEOF
18151
18152fi
18153done
18154
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018155
18156
18157
18158
18159
Eric Christophere4291822010-04-16 05:14:21 +000018160
18161for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018162do
18163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168else
18169 cat >conftest.$ac_ext <<_ACEOF
18170/* confdefs.h. */
18171_ACEOF
18172cat confdefs.h >>conftest.$ac_ext
18173cat >>conftest.$ac_ext <<_ACEOF
18174/* end confdefs.h. */
18175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177#define $ac_func innocuous_$ac_func
18178
18179/* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18183
18184#ifdef __STDC__
18185# include <limits.h>
18186#else
18187# include <assert.h>
18188#endif
18189
18190#undef $ac_func
18191
18192/* Override any GCC internal prototype to avoid an error.
18193 Use char because int might match the return type of a GCC
18194 builtin and then its argument prototype would still apply. */
18195#ifdef __cplusplus
18196extern "C"
18197#endif
18198char $ac_func ();
18199/* The GNU C library defines this for functions which it implements
18200 to always fail with ENOSYS. Some functions are actually named
18201 something starting with __ and the normal name is an alias. */
18202#if defined __stub_$ac_func || defined __stub___$ac_func
18203choke me
18204#endif
18205
18206int
18207main ()
18208{
18209return $ac_func ();
18210 ;
18211 return 0;
18212}
18213_ACEOF
18214rm -f conftest.$ac_objext conftest$ac_exeext
18215if { (ac_try="$ac_link"
18216case "(($ac_try" in
18217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18218 *) ac_try_echo=$ac_try;;
18219esac
18220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18221 (eval "$ac_link") 2>conftest.er1
18222 ac_status=$?
18223 grep -v '^ *+' conftest.er1 >conftest.err
18224 rm -f conftest.er1
18225 cat conftest.err >&5
18226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227 (exit $ac_status); } &&
18228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18229 { (case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18232esac
18233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_try") 2>&5
18235 ac_status=$?
18236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237 (exit $ac_status); }; } &&
18238 { ac_try='test -s conftest$ac_exeext'
18239 { (case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242esac
18243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_try") 2>&5
18245 ac_status=$?
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); }; }; then
18248 eval "$as_ac_var=yes"
18249else
18250 echo "$as_me: failed program was:" >&5
18251sed 's/^/| /' conftest.$ac_ext >&5
18252
18253 eval "$as_ac_var=no"
18254fi
18255
18256rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258fi
18259ac_res=`eval echo '${'$as_ac_var'}'`
18260 { echo "$as_me:$LINENO: result: $ac_res" >&5
18261echo "${ECHO_T}$ac_res" >&6; }
18262if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018263 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018265_ACEOF
18266
18267fi
18268done
Reid Spencerdf3be822006-01-23 08:15:53 +000018269
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018270
18271
18272
18273
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018274for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018275do
18276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18279if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281else
18282 cat >conftest.$ac_ext <<_ACEOF
18283/* confdefs.h. */
18284_ACEOF
18285cat confdefs.h >>conftest.$ac_ext
18286cat >>conftest.$ac_ext <<_ACEOF
18287/* end confdefs.h. */
18288/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290#define $ac_func innocuous_$ac_func
18291
18292/* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18296
18297#ifdef __STDC__
18298# include <limits.h>
18299#else
18300# include <assert.h>
18301#endif
18302
18303#undef $ac_func
18304
18305/* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18308#ifdef __cplusplus
18309extern "C"
18310#endif
18311char $ac_func ();
18312/* The GNU C library defines this for functions which it implements
18313 to always fail with ENOSYS. Some functions are actually named
18314 something starting with __ and the normal name is an alias. */
18315#if defined __stub_$ac_func || defined __stub___$ac_func
18316choke me
18317#endif
18318
18319int
18320main ()
18321{
18322return $ac_func ();
18323 ;
18324 return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext conftest$ac_exeext
18328if { (ac_try="$ac_link"
18329case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332esac
18333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_link") 2>conftest.er1
18335 ac_status=$?
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
18341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18342 { (case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18345esac
18346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_try") 2>&5
18348 ac_status=$?
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; } &&
18351 { ac_try='test -s conftest$ac_exeext'
18352 { (case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18355esac
18356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_try") 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 eval "$as_ac_var=yes"
18362else
18363 echo "$as_me: failed program was:" >&5
18364sed 's/^/| /' conftest.$ac_ext >&5
18365
18366 eval "$as_ac_var=no"
18367fi
18368
18369rm -f core conftest.err conftest.$ac_objext \
18370 conftest$ac_exeext conftest.$ac_ext
18371fi
18372ac_res=`eval echo '${'$as_ac_var'}'`
18373 { echo "$as_me:$LINENO: result: $ac_res" >&5
18374echo "${ECHO_T}$ac_res" >&6; }
18375if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018376 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018377#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018378_ACEOF
18379
18380fi
18381done
18382
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018383
18384
18385
18386
Chris Lattner511f11d2005-11-14 07:25:50 +000018387for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018388do
18389as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18390{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18391echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18392if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394else
18395 cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h. */
18401/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18403#define $ac_func innocuous_$ac_func
18404
18405/* System header to define __stub macros and hopefully few prototypes,
18406 which can conflict with char $ac_func (); below.
18407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408 <limits.h> exists even on freestanding compilers. */
18409
18410#ifdef __STDC__
18411# include <limits.h>
18412#else
18413# include <assert.h>
18414#endif
18415
18416#undef $ac_func
18417
18418/* Override any GCC internal prototype to avoid an error.
18419 Use char because int might match the return type of a GCC
18420 builtin and then its argument prototype would still apply. */
18421#ifdef __cplusplus
18422extern "C"
18423#endif
18424char $ac_func ();
18425/* The GNU C library defines this for functions which it implements
18426 to always fail with ENOSYS. Some functions are actually named
18427 something starting with __ and the normal name is an alias. */
18428#if defined __stub_$ac_func || defined __stub___$ac_func
18429choke me
18430#endif
18431
18432int
18433main ()
18434{
18435return $ac_func ();
18436 ;
18437 return 0;
18438}
18439_ACEOF
18440rm -f conftest.$ac_objext conftest$ac_exeext
18441if { (ac_try="$ac_link"
18442case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18445esac
18446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_link") 2>conftest.er1
18448 ac_status=$?
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18455 { (case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_try") 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; } &&
18464 { ac_try='test -s conftest$ac_exeext'
18465 { (case "(($ac_try" in
18466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467 *) ac_try_echo=$ac_try;;
18468esac
18469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470 (eval "$ac_try") 2>&5
18471 ac_status=$?
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); }; }; then
18474 eval "$as_ac_var=yes"
18475else
18476 echo "$as_me: failed program was:" >&5
18477sed 's/^/| /' conftest.$ac_ext >&5
18478
18479 eval "$as_ac_var=no"
18480fi
18481
18482rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484fi
18485ac_res=`eval echo '${'$as_ac_var'}'`
18486 { echo "$as_me:$LINENO: result: $ac_res" >&5
18487echo "${ECHO_T}$ac_res" >&6; }
18488if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018489 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018491_ACEOF
18492
18493fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018494done
John Criswell7a73b802003-06-30 21:59:07 +000018495
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018496
18497
18498
18499
Reid Spencerafa22e22006-12-10 23:29:19 +000018500for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018501do
18502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18503{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18505if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18507else
18508 cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
18514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18516#define $ac_func innocuous_$ac_func
18517
18518/* System header to define __stub macros and hopefully few prototypes,
18519 which can conflict with char $ac_func (); below.
18520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18521 <limits.h> exists even on freestanding compilers. */
18522
18523#ifdef __STDC__
18524# include <limits.h>
18525#else
18526# include <assert.h>
18527#endif
18528
18529#undef $ac_func
18530
18531/* Override any GCC internal prototype to avoid an error.
18532 Use char because int might match the return type of a GCC
18533 builtin and then its argument prototype would still apply. */
18534#ifdef __cplusplus
18535extern "C"
18536#endif
18537char $ac_func ();
18538/* The GNU C library defines this for functions which it implements
18539 to always fail with ENOSYS. Some functions are actually named
18540 something starting with __ and the normal name is an alias. */
18541#if defined __stub_$ac_func || defined __stub___$ac_func
18542choke me
18543#endif
18544
18545int
18546main ()
18547{
18548return $ac_func ();
18549 ;
18550 return 0;
18551}
18552_ACEOF
18553rm -f conftest.$ac_objext conftest$ac_exeext
18554if { (ac_try="$ac_link"
18555case "(($ac_try" in
18556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557 *) ac_try_echo=$ac_try;;
18558esac
18559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18560 (eval "$ac_link") 2>conftest.er1
18561 ac_status=$?
18562 grep -v '^ *+' conftest.er1 >conftest.err
18563 rm -f conftest.er1
18564 cat conftest.err >&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); } &&
18567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18571esac
18572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest$ac_exeext'
18578 { (case "(($ac_try" in
18579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18580 *) ac_try_echo=$ac_try;;
18581esac
18582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18583 (eval "$ac_try") 2>&5
18584 ac_status=$?
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); }; }; then
18587 eval "$as_ac_var=yes"
18588else
18589 echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592 eval "$as_ac_var=no"
18593fi
18594
18595rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18597fi
18598ac_res=`eval echo '${'$as_ac_var'}'`
18599 { echo "$as_me:$LINENO: result: $ac_res" >&5
18600echo "${ECHO_T}$ac_res" >&6; }
18601if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018602 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018603#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018604_ACEOF
18605
18606fi
18607done
18608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018609{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18610echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18611if test "${llvm_cv_c_printf_a+set}" = set; then
18612 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018613else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018614 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018615ac_cpp='$CPP $CPPFLAGS'
18616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18618ac_compiler_gnu=$ac_cv_c_compiler_gnu
18619
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018620 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018621 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018622else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018623 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018624
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018625 /* confdefs.h. */
18626_ACEOF
18627cat confdefs.h >>conftest.$ac_ext
18628cat >>conftest.$ac_ext <<_ACEOF
18629/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018630
John Criswella0137d32003-10-13 16:22:01 +000018631#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018632#include <stdlib.h>
18633
John Criswella0137d32003-10-13 16:22:01 +000018634int
18635main ()
18636{
18637
Reid Spencer2706f8c2004-09-19 23:53:36 +000018638volatile double A, B;
18639char Buffer[100];
18640A = 1;
18641A /= 10.0;
18642sprintf(Buffer, "%a", A);
18643B = atof(Buffer);
18644if (A != B)
18645 return (1);
18646if (A != 0x1.999999999999ap-4)
18647 return (1);
18648return (0);
John Criswella0137d32003-10-13 16:22:01 +000018649 ;
18650 return 0;
18651}
18652_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018653rm -f conftest$ac_exeext
18654if { (ac_try="$ac_link"
18655case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18658esac
18659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_link") 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18664 { (case "(($ac_try" in
18665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666 *) ac_try_echo=$ac_try;;
18667esac
18668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669 (eval "$ac_try") 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018673 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018675 echo "$as_me: program exited with status $ac_status" >&5
18676echo "$as_me: failed program was:" >&5
18677sed 's/^/| /' conftest.$ac_ext >&5
18678
18679( exit $ac_status )
18680llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018681fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018682rm -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 +000018683fi
Reid Spencera773bd52006-08-04 18:18:08 +000018684
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018685
Reid Spencer2706f8c2004-09-19 23:53:36 +000018686 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018687ac_cpp='$CPP $CPPFLAGS'
18688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18690ac_compiler_gnu=$ac_cv_c_compiler_gnu
18691
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018692fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018693{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18694echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018695 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018696
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018697cat >>confdefs.h <<\_ACEOF
18698#define HAVE_PRINTF_A 1
18699_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018700
Reid Spencer2706f8c2004-09-19 23:53:36 +000018701 fi
John Criswella0137d32003-10-13 16:22:01 +000018702
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018703
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018704{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18705echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18706if test "${ac_cv_func_rand48+set}" = set; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018708else
Reid Spencera773bd52006-08-04 18:18:08 +000018709 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018710ac_cpp='$CXXCPP $CPPFLAGS'
18711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018715 cat >conftest.$ac_ext <<_ACEOF
18716/* confdefs.h. */
18717_ACEOF
18718cat confdefs.h >>conftest.$ac_ext
18719cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018720/* end confdefs.h. */
18721#include <stdlib.h>
18722int
18723main ()
18724{
18725srand48(0);lrand48();drand48();
18726 ;
18727 return 0;
18728}
18729_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018730rm -f conftest.$ac_objext
18731if { (ac_try="$ac_compile"
18732case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735esac
18736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18738 ac_status=$?
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } &&
18744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
18751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; } &&
18754 { ac_try='test -s conftest.$ac_objext'
18755 { (case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18758esac
18759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_try") 2>&5
18761 ac_status=$?
18762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018764 ac_cv_func_rand48=yes
18765else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018766 echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
18769 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018770fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018771
Reid Spencera773bd52006-08-04 18:18:08 +000018772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018773 ac_ext=c
18774ac_cpp='$CPP $CPPFLAGS'
18775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18777ac_compiler_gnu=$ac_cv_c_compiler_gnu
18778
18779fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018780{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18781echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018782
18783if test "$ac_cv_func_rand48" = "yes" ; then
18784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018785cat >>confdefs.h <<\_ACEOF
18786#define HAVE_RAND48 1
18787_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018788
18789fi
John Criswell0021c312004-02-13 21:57:29 +000018790
18791
Torok Edwin871384f2010-01-26 08:50:50 +000018792
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018793{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18794echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18795if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018797else
Reid Spencera773bd52006-08-04 18:18:08 +000018798 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018799ac_cpp='$CXXCPP $CPPFLAGS'
18800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18803
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018804 cat >conftest.$ac_ext <<_ACEOF
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018809/* end confdefs.h. */
18810#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018811int
18812main ()
18813{
18814float f; isnan(f);
18815 ;
18816 return 0;
18817}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018818_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018819rm -f conftest.$ac_objext
18820if { (ac_try="$ac_compile"
18821case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18824esac
18825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18826 (eval "$ac_compile") 2>conftest.er1
18827 ac_status=$?
18828 grep -v '^ *+' conftest.er1 >conftest.err
18829 rm -f conftest.er1
18830 cat conftest.err >&5
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); } &&
18833 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18834 { (case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18837esac
18838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_try") 2>&5
18840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; } &&
18843 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018853 ac_cv_func_isnan_in_math_h=yes
18854else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018855 echo "$as_me: failed program was:" >&5
18856sed 's/^/| /' conftest.$ac_ext >&5
18857
18858 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018859fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018860
Reid Spencera773bd52006-08-04 18:18:08 +000018861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018862 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018863ac_cpp='$CPP $CPPFLAGS'
18864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18866ac_compiler_gnu=$ac_cv_c_compiler_gnu
18867
18868fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018869{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18870echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018871
18872
18873if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018874
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018875cat >>confdefs.h <<\_ACEOF
18876#define HAVE_ISNAN_IN_MATH_H 1
18877_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018878
Reid Spencerabec8f92004-10-27 23:03:44 +000018879fi
18880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018881{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18882echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18883if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018885else
Reid Spencera773bd52006-08-04 18:18:08 +000018886 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018887ac_cpp='$CXXCPP $CPPFLAGS'
18888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018892 cat >conftest.$ac_ext <<_ACEOF
18893/* confdefs.h. */
18894_ACEOF
18895cat confdefs.h >>conftest.$ac_ext
18896cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018897/* end confdefs.h. */
18898#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018899int
18900main ()
18901{
18902float f; isnan(f);
18903 ;
18904 return 0;
18905}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018906_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018907rm -f conftest.$ac_objext
18908if { (ac_try="$ac_compile"
18909case "(($ac_try" in
18910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18911 *) ac_try_echo=$ac_try;;
18912esac
18913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18914 (eval "$ac_compile") 2>conftest.er1
18915 ac_status=$?
18916 grep -v '^ *+' conftest.er1 >conftest.err
18917 rm -f conftest.er1
18918 cat conftest.err >&5
18919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } &&
18921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18922 { (case "(($ac_try" in
18923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18924 *) ac_try_echo=$ac_try;;
18925esac
18926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18927 (eval "$ac_try") 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest.$ac_objext'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935esac
18936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018941 ac_cv_func_isnan_in_cmath=yes
18942else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018943 echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018947fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018948
Reid Spencera773bd52006-08-04 18:18:08 +000018949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018950 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018951ac_cpp='$CPP $CPPFLAGS'
18952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954ac_compiler_gnu=$ac_cv_c_compiler_gnu
18955
18956fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018957{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18958echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018959
18960if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018961
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018962cat >>confdefs.h <<\_ACEOF
18963#define HAVE_ISNAN_IN_CMATH 1
18964_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018965
Reid Spencerabec8f92004-10-27 23:03:44 +000018966fi
18967
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018968{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18969echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18970if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18971 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018972else
Reid Spencera773bd52006-08-04 18:18:08 +000018973 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018974ac_cpp='$CXXCPP $CPPFLAGS'
18975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18978
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018979 cat >conftest.$ac_ext <<_ACEOF
18980/* confdefs.h. */
18981_ACEOF
18982cat confdefs.h >>conftest.$ac_ext
18983cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018984/* end confdefs.h. */
18985#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018986int
18987main ()
18988{
18989float f; std::isnan(f);
18990 ;
18991 return 0;
18992}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018993_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018994rm -f conftest.$ac_objext
18995if { (ac_try="$ac_compile"
18996case "(($ac_try" in
18997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18998 *) ac_try_echo=$ac_try;;
18999esac
19000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19001 (eval "$ac_compile") 2>conftest.er1
19002 ac_status=$?
19003 grep -v '^ *+' conftest.er1 >conftest.err
19004 rm -f conftest.er1
19005 cat conftest.err >&5
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); } &&
19008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19009 { (case "(($ac_try" in
19010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011 *) ac_try_echo=$ac_try;;
19012esac
19013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19014 (eval "$ac_try") 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; } &&
19018 { ac_try='test -s conftest.$ac_objext'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19022esac
19023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019028 ac_cv_func_std_isnan_in_cmath=yes
19029else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019030 echo "$as_me: failed program was:" >&5
19031sed 's/^/| /' conftest.$ac_ext >&5
19032
19033 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019034fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019035
Reid Spencera773bd52006-08-04 18:18:08 +000019036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019037 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019038ac_cpp='$CPP $CPPFLAGS'
19039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041ac_compiler_gnu=$ac_cv_c_compiler_gnu
19042
19043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019044{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19045echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019046
19047if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019049cat >>confdefs.h <<\_ACEOF
19050#define HAVE_STD_ISNAN_IN_CMATH 1
19051_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019052
Reid Spencerabec8f92004-10-27 23:03:44 +000019053fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019054
19055
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019056{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19057echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19058if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019060else
Reid Spencera773bd52006-08-04 18:18:08 +000019061 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019062ac_cpp='$CXXCPP $CPPFLAGS'
19063ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19064ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19065ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019067 cat >conftest.$ac_ext <<_ACEOF
19068/* confdefs.h. */
19069_ACEOF
19070cat confdefs.h >>conftest.$ac_ext
19071cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019072/* end confdefs.h. */
19073#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019074int
19075main ()
19076{
19077float f; isinf(f);
19078 ;
19079 return 0;
19080}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019081_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019082rm -f conftest.$ac_objext
19083if { (ac_try="$ac_compile"
19084case "(($ac_try" in
19085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086 *) ac_try_echo=$ac_try;;
19087esac
19088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089 (eval "$ac_compile") 2>conftest.er1
19090 ac_status=$?
19091 grep -v '^ *+' conftest.er1 >conftest.err
19092 rm -f conftest.er1
19093 cat conftest.err >&5
19094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095 (exit $ac_status); } &&
19096 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19097 { (case "(($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_try") 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; } &&
19106 { ac_try='test -s conftest.$ac_objext'
19107 { (case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110esac
19111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_try") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019116 ac_cv_func_isinf_in_math_h=yes
19117else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019122fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019123
Reid Spencera773bd52006-08-04 18:18:08 +000019124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019125 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019126ac_cpp='$CPP $CPPFLAGS'
19127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19129ac_compiler_gnu=$ac_cv_c_compiler_gnu
19130
19131fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019132{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19133echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019134
19135if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019137cat >>confdefs.h <<\_ACEOF
19138#define HAVE_ISINF_IN_MATH_H 1
19139_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019140
Reid Spencerabec8f92004-10-27 23:03:44 +000019141fi
19142
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019143{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19144echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19145if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019147else
Reid Spencera773bd52006-08-04 18:18:08 +000019148 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019149ac_cpp='$CXXCPP $CPPFLAGS'
19150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019154 cat >conftest.$ac_ext <<_ACEOF
19155/* confdefs.h. */
19156_ACEOF
19157cat confdefs.h >>conftest.$ac_ext
19158cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019159/* end confdefs.h. */
19160#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019161int
19162main ()
19163{
19164float f; isinf(f);
19165 ;
19166 return 0;
19167}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019169rm -f conftest.$ac_objext
19170if { (ac_try="$ac_compile"
19171case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19174esac
19175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_compile") 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
19183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19184 { (case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187esac
19188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19189 (eval "$ac_try") 2>&5
19190 ac_status=$?
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); }; } &&
19193 { ac_try='test -s conftest.$ac_objext'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197esac
19198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019203 ac_cv_func_isinf_in_cmath=yes
19204else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019205 echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019209fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019210
Reid Spencera773bd52006-08-04 18:18:08 +000019211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019212 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019213ac_cpp='$CPP $CPPFLAGS'
19214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19216ac_compiler_gnu=$ac_cv_c_compiler_gnu
19217
19218fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019219{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19220echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019221
19222if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019223
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019224cat >>confdefs.h <<\_ACEOF
19225#define HAVE_ISINF_IN_CMATH 1
19226_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019227
Reid Spencerabec8f92004-10-27 23:03:44 +000019228fi
19229
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019230{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19231echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19232if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019234else
Reid Spencera773bd52006-08-04 18:18:08 +000019235 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019236ac_cpp='$CXXCPP $CPPFLAGS'
19237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19240
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019241 cat >conftest.$ac_ext <<_ACEOF
19242/* confdefs.h. */
19243_ACEOF
19244cat confdefs.h >>conftest.$ac_ext
19245cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019246/* end confdefs.h. */
19247#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019248int
19249main ()
19250{
19251float f; std::isinf(f)}
19252 ;
19253 return 0;
19254}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019255_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019256rm -f conftest.$ac_objext
19257if { (ac_try="$ac_compile"
19258case "(($ac_try" in
19259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19260 *) ac_try_echo=$ac_try;;
19261esac
19262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19263 (eval "$ac_compile") 2>conftest.er1
19264 ac_status=$?
19265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
19270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19271 { (case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19274esac
19275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_try") 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest.$ac_objext'
19281 { (case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19284esac
19285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_try") 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019290 ac_cv_func_std_isinf_in_cmath=yes
19291else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019292 echo "$as_me: failed program was:" >&5
19293sed 's/^/| /' conftest.$ac_ext >&5
19294
19295 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019296fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019297
Reid Spencera773bd52006-08-04 18:18:08 +000019298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019299 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019300ac_cpp='$CPP $CPPFLAGS'
19301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19303ac_compiler_gnu=$ac_cv_c_compiler_gnu
19304
19305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019306{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19307echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019308
19309if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019310
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019311cat >>confdefs.h <<\_ACEOF
19312#define HAVE_STD_ISINF_IN_CMATH 1
19313_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019314
Reid Spencerabec8f92004-10-27 23:03:44 +000019315fi
19316
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019317{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19318echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19319if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019321else
Reid Spencera773bd52006-08-04 18:18:08 +000019322 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019323ac_cpp='$CXXCPP $CPPFLAGS'
19324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19327
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019328 cat >conftest.$ac_ext <<_ACEOF
19329/* confdefs.h. */
19330_ACEOF
19331cat confdefs.h >>conftest.$ac_ext
19332cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019333/* end confdefs.h. */
19334#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019335int
19336main ()
19337{
19338float f; finite(f);
19339 ;
19340 return 0;
19341}
Brian Gaeked59a6472004-07-21 03:33:58 +000019342_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019343rm -f conftest.$ac_objext
19344if { (ac_try="$ac_compile"
19345case "(($ac_try" in
19346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19347 *) ac_try_echo=$ac_try;;
19348esac
19349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19350 (eval "$ac_compile") 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19358 { (case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361esac
19362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_try") 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; } &&
19367 { ac_try='test -s conftest.$ac_objext'
19368 { (case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371esac
19372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_try") 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019377 ac_cv_func_finite_in_ieeefp_h=yes
19378else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019379 echo "$as_me: failed program was:" >&5
19380sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019383fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019384
Reid Spencera773bd52006-08-04 18:18:08 +000019385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019386 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019387ac_cpp='$CPP $CPPFLAGS'
19388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19390ac_compiler_gnu=$ac_cv_c_compiler_gnu
19391
19392fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019393{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19394echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019395
Brian Gaeke6802b552004-10-28 05:06:45 +000019396if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019397
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019398cat >>confdefs.h <<\_ACEOF
19399#define HAVE_FINITE_IN_IEEEFP_H 1
19400_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019401
Reid Spencerabec8f92004-10-27 23:03:44 +000019402fi
19403
19404
19405
Reid Spencer30fe5262007-01-20 07:48:49 +000019406if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019407
19408
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019409for ac_header in stdlib.h unistd.h
19410do
19411as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19415if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417fi
19418ac_res=`eval echo '${'$as_ac_Header'}'`
19419 { echo "$as_me:$LINENO: result: $ac_res" >&5
19420echo "${ECHO_T}$ac_res" >&6; }
19421else
19422 # Is the header compilable?
19423{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19425cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431$ac_includes_default
19432#include <$ac_header>
19433_ACEOF
19434rm -f conftest.$ac_objext
19435if { (ac_try="$ac_compile"
19436case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19439esac
19440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_compile") 2>conftest.er1
19442 ac_status=$?
19443 grep -v '^ *+' conftest.er1 >conftest.err
19444 rm -f conftest.er1
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); } &&
19448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19452esac
19453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462esac
19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; }; then
19468 ac_header_compiler=yes
19469else
19470 echo "$as_me: failed program was:" >&5
19471sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019473 ac_header_compiler=no
19474fi
19475
19476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19478echo "${ECHO_T}$ac_header_compiler" >&6; }
19479
19480# Is the header present?
19481{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19483cat >conftest.$ac_ext <<_ACEOF
19484/* confdefs.h. */
19485_ACEOF
19486cat confdefs.h >>conftest.$ac_ext
19487cat >>conftest.$ac_ext <<_ACEOF
19488/* end confdefs.h. */
19489#include <$ac_header>
19490_ACEOF
19491if { (ac_try="$ac_cpp conftest.$ac_ext"
19492case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19495esac
19496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19498 ac_status=$?
19499 grep -v '^ *+' conftest.er1 >conftest.err
19500 rm -f conftest.er1
19501 cat conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } >/dev/null; then
19504 if test -s conftest.err; then
19505 ac_cpp_err=$ac_c_preproc_warn_flag
19506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19507 else
19508 ac_cpp_err=
19509 fi
19510else
19511 ac_cpp_err=yes
19512fi
19513if test -z "$ac_cpp_err"; then
19514 ac_header_preproc=yes
19515else
19516 echo "$as_me: failed program was:" >&5
19517sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 ac_header_preproc=no
19520fi
19521
19522rm -f conftest.err conftest.$ac_ext
19523{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19524echo "${ECHO_T}$ac_header_preproc" >&6; }
19525
19526# So? What about this header?
19527case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19528 yes:no: )
19529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19533 ac_header_preproc=yes
19534 ;;
19535 no:yes:* )
19536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19548 ( cat <<\_ASBOX
19549## ----------------------------------- ##
19550## Report this to llvmbugs@cs.uiuc.edu ##
19551## ----------------------------------- ##
19552_ASBOX
19553 ) | sed "s/^/$as_me: WARNING: /" >&2
19554 ;;
19555esac
19556{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19560else
19561 eval "$as_ac_Header=\$ac_header_preproc"
19562fi
19563ac_res=`eval echo '${'$as_ac_Header'}'`
19564 { echo "$as_me:$LINENO: result: $ac_res" >&5
19565echo "${ECHO_T}$ac_res" >&6; }
19566
19567fi
19568if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019569 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019571_ACEOF
19572
19573fi
19574
19575done
19576
19577
19578for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019579do
19580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19581{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19583if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19585else
19586 cat >conftest.$ac_ext <<_ACEOF
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19594#define $ac_func innocuous_$ac_func
19595
19596/* System header to define __stub macros and hopefully few prototypes,
19597 which can conflict with char $ac_func (); below.
19598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19599 <limits.h> exists even on freestanding compilers. */
19600
19601#ifdef __STDC__
19602# include <limits.h>
19603#else
19604# include <assert.h>
19605#endif
19606
19607#undef $ac_func
19608
19609/* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612#ifdef __cplusplus
19613extern "C"
19614#endif
19615char $ac_func ();
19616/* The GNU C library defines this for functions which it implements
19617 to always fail with ENOSYS. Some functions are actually named
19618 something starting with __ and the normal name is an alias. */
19619#if defined __stub_$ac_func || defined __stub___$ac_func
19620choke me
19621#endif
19622
19623int
19624main ()
19625{
19626return $ac_func ();
19627 ;
19628 return 0;
19629}
19630_ACEOF
19631rm -f conftest.$ac_objext conftest$ac_exeext
19632if { (ac_try="$ac_link"
19633case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19636esac
19637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_link") 2>conftest.er1
19639 ac_status=$?
19640 grep -v '^ *+' conftest.er1 >conftest.err
19641 rm -f conftest.er1
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } &&
19645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19646 { (case "(($ac_try" in
19647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648 *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651 (eval "$ac_try") 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest$ac_exeext'
19656 { (case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659esac
19660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_try") 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; }; then
19665 eval "$as_ac_var=yes"
19666else
19667 echo "$as_me: failed program was:" >&5
19668sed 's/^/| /' conftest.$ac_ext >&5
19669
19670 eval "$as_ac_var=no"
19671fi
19672
19673rm -f core conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
19675fi
19676ac_res=`eval echo '${'$as_ac_var'}'`
19677 { echo "$as_me:$LINENO: result: $ac_res" >&5
19678echo "${ECHO_T}$ac_res" >&6; }
19679if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019680 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019681#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019682_ACEOF
19683
19684fi
19685done
19686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019687{ echo "$as_me:$LINENO: checking for working mmap" >&5
19688echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19689if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019691else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019692 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019693 ac_cv_func_mmap_fixed_mapped=no
19694else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019695 cat >conftest.$ac_ext <<_ACEOF
19696/* confdefs.h. */
19697_ACEOF
19698cat confdefs.h >>conftest.$ac_ext
19699cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019701$ac_includes_default
19702/* malloc might have been renamed as rpl_malloc. */
19703#undef malloc
19704
19705/* Thanks to Mike Haertel and Jim Avera for this test.
19706 Here is a matrix of mmap possibilities:
19707 mmap private not fixed
19708 mmap private fixed at somewhere currently unmapped
19709 mmap private fixed at somewhere already mapped
19710 mmap shared not fixed
19711 mmap shared fixed at somewhere currently unmapped
19712 mmap shared fixed at somewhere already mapped
19713 For private mappings, we should verify that changes cannot be read()
19714 back from the file, nor mmap's back from the file at a different
19715 address. (There have been systems where private was not correctly
19716 implemented like the infamous i386 svr4.0, and systems where the
19717 VM page cache was not coherent with the file system buffer cache
19718 like early versions of FreeBSD and possibly contemporary NetBSD.)
19719 For shared mappings, we should conversely verify that changes get
19720 propagated back to all the places they're supposed to be.
19721
19722 Grep wants private fixed already mapped.
19723 The main things grep needs to know about mmap are:
19724 * does it exist and is it safe to write into the mmap'd area
19725 * how to use it (BSD variants) */
19726
19727#include <fcntl.h>
19728#include <sys/mman.h>
19729
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019730#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019731char *malloc ();
19732#endif
19733
19734/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019735#if !HAVE_GETPAGESIZE
19736/* Assume that all systems that can run configure have sys/param.h. */
19737# if !HAVE_SYS_PARAM_H
19738# define HAVE_SYS_PARAM_H 1
19739# endif
19740
John Criswell7a73b802003-06-30 21:59:07 +000019741# ifdef _SC_PAGESIZE
19742# define getpagesize() sysconf(_SC_PAGESIZE)
19743# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019744# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019745# include <sys/param.h>
19746# ifdef EXEC_PAGESIZE
19747# define getpagesize() EXEC_PAGESIZE
19748# else /* no EXEC_PAGESIZE */
19749# ifdef NBPG
19750# define getpagesize() NBPG * CLSIZE
19751# ifndef CLSIZE
19752# define CLSIZE 1
19753# endif /* no CLSIZE */
19754# else /* no NBPG */
19755# ifdef NBPC
19756# define getpagesize() NBPC
19757# else /* no NBPC */
19758# ifdef PAGESIZE
19759# define getpagesize() PAGESIZE
19760# endif /* PAGESIZE */
19761# endif /* no NBPC */
19762# endif /* no NBPG */
19763# endif /* no EXEC_PAGESIZE */
19764# else /* no HAVE_SYS_PARAM_H */
19765# define getpagesize() 8192 /* punt totally */
19766# endif /* no HAVE_SYS_PARAM_H */
19767# endif /* no _SC_PAGESIZE */
19768
19769#endif /* no HAVE_GETPAGESIZE */
19770
19771int
19772main ()
19773{
19774 char *data, *data2, *data3;
19775 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019776 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019777
19778 pagesize = getpagesize ();
19779
19780 /* First, make a file with some known garbage in it. */
19781 data = (char *) malloc (pagesize);
19782 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019783 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019784 for (i = 0; i < pagesize; ++i)
19785 *(data + i) = rand ();
19786 umask (0);
19787 fd = creat ("conftest.mmap", 0600);
19788 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019789 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019790 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019791 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019792 close (fd);
19793
19794 /* Next, try to mmap the file at a fixed address which already has
19795 something else allocated at it. If we can, also make sure that
19796 we see the same garbage. */
19797 fd = open ("conftest.mmap", O_RDWR);
19798 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019799 return 1;
19800 data2 = (char *) malloc (2 * pagesize);
19801 if (!data2)
19802 return 1;
19803 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019804 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019805 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019806 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019807 for (i = 0; i < pagesize; ++i)
19808 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019809 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019810
19811 /* Finally, make sure that changes to the mapped area do not
19812 percolate back to the file as seen by read(). (This is a bug on
19813 some variants of i386 svr4.0.) */
19814 for (i = 0; i < pagesize; ++i)
19815 *(data2 + i) = *(data2 + i) + 1;
19816 data3 = (char *) malloc (pagesize);
19817 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019818 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019819 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019820 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019821 for (i = 0; i < pagesize; ++i)
19822 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019823 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019824 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019825 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019826}
19827_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019828rm -f conftest$ac_exeext
19829if { (ac_try="$ac_link"
19830case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833esac
19834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19839 { (case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19842esac
19843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_try") 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019848 ac_cv_func_mmap_fixed_mapped=yes
19849else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850 echo "$as_me: program exited with status $ac_status" >&5
19851echo "$as_me: failed program was:" >&5
19852sed 's/^/| /' conftest.$ac_ext >&5
19853
19854( exit $ac_status )
19855ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019856fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019857rm -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 +000019858fi
Reid Spencera773bd52006-08-04 18:18:08 +000019859
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019860
John Criswell7a73b802003-06-30 21:59:07 +000019861fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019862{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19863echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019864if test $ac_cv_func_mmap_fixed_mapped = yes; then
19865
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019866cat >>confdefs.h <<\_ACEOF
19867#define HAVE_MMAP 1
19868_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019869
19870fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019871rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019873 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19874echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19875if test "${ac_cv_func_mmap_file+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019877else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019878 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019879ac_cpp='$CPP $CPPFLAGS'
19880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19882ac_compiler_gnu=$ac_cv_c_compiler_gnu
19883
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019884 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019885 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019886else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019887 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019888
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019889 /* confdefs.h. */
19890_ACEOF
19891cat confdefs.h >>conftest.$ac_ext
19892cat >>conftest.$ac_ext <<_ACEOF
19893/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019894
John Criswell7a73b802003-06-30 21:59:07 +000019895#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019896#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019897#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019898
19899int
19900main ()
19901{
John Criswell7a73b802003-06-30 21:59:07 +000019902
19903 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019904 fd = creat ("foo",0777);
19905 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19906 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019907 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019908 ;
19909 return 0;
19910}
John Criswell7a73b802003-06-30 21:59:07 +000019911_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019912rm -f conftest$ac_exeext
19913if { (ac_try="$ac_link"
19914case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917esac
19918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923 { (case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19926esac
19927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_try") 2>&5
19929 ac_status=$?
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019932 ac_cv_func_mmap_file=yes
19933else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019934 echo "$as_me: program exited with status $ac_status" >&5
19935echo "$as_me: failed program was:" >&5
19936sed 's/^/| /' conftest.$ac_ext >&5
19937
19938( exit $ac_status )
19939ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019941rm -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 +000019942fi
Reid Spencera773bd52006-08-04 18:18:08 +000019943
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019944
John Criswell7a73b802003-06-30 21:59:07 +000019945 ac_ext=c
19946ac_cpp='$CPP $CPPFLAGS'
19947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949ac_compiler_gnu=$ac_cv_c_compiler_gnu
19950
19951
19952fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019953{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19954echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019955if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019957cat >>confdefs.h <<\_ACEOF
19958#define HAVE_MMAP_FILE
19959_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019960
19961 MMAP_FILE=yes
19962
19963fi
19964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019965 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19966echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19967if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019969else
Reid Spencer582a23c2004-12-29 07:07:57 +000019970 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019971 ac_cv_need_dev_zero_for_mmap=yes
19972 else
19973 ac_cv_need_dev_zero_for_mmap=no
19974 fi
19975
19976fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019977{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19978echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019979if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19980
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019981cat >>confdefs.h <<\_ACEOF
19982#define NEED_DEV_ZERO_FOR_MMAP 1
19983_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019984
19985fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019986
Reid Spencer30fe5262007-01-20 07:48:49 +000019987 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19988 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019989 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19990echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019991 fi
19992 if test "$ac_cv_func_mmap_file" = "no"
19993 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019994 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19995echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019996 fi
John Criswellb13092b2003-07-22 21:00:24 +000019997fi
John Criswell7a73b802003-06-30 21:59:07 +000019998
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019999{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20000echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000020001ac_ext=cpp
20002ac_cpp='$CXXCPP $CPPFLAGS'
20003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20006
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007cat >conftest.$ac_ext <<_ACEOF
20008/* confdefs.h. */
20009_ACEOF
20010cat confdefs.h >>conftest.$ac_ext
20011cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000020012/* end confdefs.h. */
20013int main() {
Owen Andersona8603702009-05-19 22:18:56 +000020014 volatile unsigned long val = 1;
20015 __sync_synchronize();
20016 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020017 __sync_add_and_fetch(&val, 1);
20018 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020019 return 0;
20020 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020021
20022_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020023rm -f conftest.$ac_objext conftest$ac_exeext
20024if { (ac_try="$ac_link"
20025case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20028esac
20029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } &&
20037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20038 { (case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041esac
20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20043 (eval "$ac_try") 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest$ac_exeext'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20051esac
20052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20054 ac_status=$?
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020057 ac_ext=c
20058ac_cpp='$CPP $CPPFLAGS'
20059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061ac_compiler_gnu=$ac_cv_c_compiler_gnu
20062
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020063 { echo "$as_me:$LINENO: result: yes" >&5
20064echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020065
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020066cat >>confdefs.h <<\_ACEOF
20067#define LLVM_MULTITHREADED 1
20068_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020069
Owen Andersond4b272b2009-05-18 23:58:51 +000020070else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020071 echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020073
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020074 { echo "$as_me:$LINENO: result: no" >&5
20075echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020076
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020077cat >>confdefs.h <<\_ACEOF
20078#define LLVM_MULTITHREADED 0
20079_ACEOF
20080
20081 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20082echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020083fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020084
Owen Andersond4b272b2009-05-18 23:58:51 +000020085rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020086 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020087
John Criswell7a73b802003-06-30 21:59:07 +000020088
Nick Lewycky4372e692009-09-29 06:18:23 +000020089if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020090 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20091echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20092if test "${llvm_cv_linux_mixed+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020094else
20095 ac_ext=c
20096ac_cpp='$CPP $CPPFLAGS'
20097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20099ac_compiler_gnu=$ac_cv_c_compiler_gnu
20100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020101 cat >conftest.$ac_ext <<_ACEOF
20102/* confdefs.h. */
20103_ACEOF
20104cat confdefs.h >>conftest.$ac_ext
20105cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020106/* end confdefs.h. */
20107#ifndef __x86_64__
20108 error: Not x86-64 even if uname says so!
20109 #endif
20110
20111int
20112main ()
20113{
20114
20115 ;
20116 return 0;
20117}
20118_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020119rm -f conftest.$ac_objext
20120if { (ac_try="$ac_compile"
20121case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20124esac
20125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_compile") 2>conftest.er1
20127 ac_status=$?
20128 grep -v '^ *+' conftest.er1 >conftest.err
20129 rm -f conftest.er1
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } &&
20133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20134 { (case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20137esac
20138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_try") 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; } &&
20143 { ac_try='test -s conftest.$ac_objext'
20144 { (case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20147esac
20148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_try") 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020153 llvm_cv_linux_mixed=no
20154else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020155 echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020159fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020160
Nick Lewycky4372e692009-09-29 06:18:23 +000020161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20162 ac_ext=c
20163ac_cpp='$CPP $CPPFLAGS'
20164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20166ac_compiler_gnu=$ac_cv_c_compiler_gnu
20167
20168
20169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020170{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20171echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020172
20173 if test "$llvm_cv_linux_mixed" = "yes"; then
20174 llvm_cv_target_arch="x86"
20175 ARCH="x86"
20176 fi
20177fi
20178
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020179
Reid Spencer9372f152007-07-30 20:13:24 +000020180for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020181do
20182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20183{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20185if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20186 echo $ECHO_N "(cached) $ECHO_C" >&6
20187else
20188 cat >conftest.$ac_ext <<_ACEOF
20189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
20194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20196#define $ac_func innocuous_$ac_func
20197
20198/* System header to define __stub macros and hopefully few prototypes,
20199 which can conflict with char $ac_func (); below.
20200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20201 <limits.h> exists even on freestanding compilers. */
20202
20203#ifdef __STDC__
20204# include <limits.h>
20205#else
20206# include <assert.h>
20207#endif
20208
20209#undef $ac_func
20210
20211/* Override any GCC internal prototype to avoid an error.
20212 Use char because int might match the return type of a GCC
20213 builtin and then its argument prototype would still apply. */
20214#ifdef __cplusplus
20215extern "C"
20216#endif
20217char $ac_func ();
20218/* The GNU C library defines this for functions which it implements
20219 to always fail with ENOSYS. Some functions are actually named
20220 something starting with __ and the normal name is an alias. */
20221#if defined __stub_$ac_func || defined __stub___$ac_func
20222choke me
20223#endif
20224
20225int
20226main ()
20227{
20228return $ac_func ();
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext conftest$ac_exeext
20234if { (ac_try="$ac_link"
20235case "(($ac_try" in
20236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20237 *) ac_try_echo=$ac_try;;
20238esac
20239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20240 (eval "$ac_link") 2>conftest.er1
20241 ac_status=$?
20242 grep -v '^ *+' conftest.er1 >conftest.err
20243 rm -f conftest.er1
20244 cat conftest.err >&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } &&
20247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20248 { (case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20251esac
20252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_try") 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; } &&
20257 { ac_try='test -s conftest$ac_exeext'
20258 { (case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261esac
20262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_try") 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 eval "$as_ac_var=yes"
20268else
20269 echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 eval "$as_ac_var=no"
20273fi
20274
20275rm -f core conftest.err conftest.$ac_objext \
20276 conftest$ac_exeext conftest.$ac_ext
20277fi
20278ac_res=`eval echo '${'$as_ac_var'}'`
20279 { echo "$as_me:$LINENO: result: $ac_res" >&5
20280echo "${ECHO_T}$ac_res" >&6; }
20281if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020282 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020284_ACEOF
20285
20286fi
20287done
20288
20289
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020290{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20291echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20292if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20293 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020294else
20295 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020296if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020297 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020298 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20299 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020300 if test $? -eq 0 ; then
20301 llvm_cv_llvmgcc_sanity="yes"
20302 fi
20303 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020304fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020306{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20307echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020308
20309if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020310 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20311echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020312 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020313 LLVMCC1=$llvmcc1path
20314
Reid Spencer502935f2004-12-22 05:56:56 +000020315 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020316 LLVMCC1PLUS=$llvmcc1pluspath
20317
Reid Spencer502935f2004-12-22 05:56:56 +000020318 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20319 LLVMGCCDIR=$llvmgccdir
20320
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020321 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020322 LLVMGCC_LANGS=$llvmgcclangs
20323
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020324 { echo "$as_me:$LINENO: result: ok" >&5
20325echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020326fi
20327
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020328SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020329
20330
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020331SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20332
20333
Reid Spencere9de0912004-08-20 09:03:57 +000020334# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020335# information into substitutions that will end up in Makefile.config.in
20336# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020337if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020338 prefix="/usr/local"
20339fi
Reid Spencere9de0912004-08-20 09:03:57 +000020340eval LLVM_PREFIX="${prefix}";
20341eval LLVM_BINDIR="${prefix}/bin";
20342eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020343eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020344eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020345eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020346eval LLVM_INCLUDEDIR="${prefix}/include";
20347eval LLVM_INFODIR="${prefix}/info";
20348eval LLVM_MANDIR="${prefix}/man";
20349LLVM_CONFIGTIME=`date`
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020361# Place the various directores into the config.h file as #defines so that we
20362# can know about the installation paths within LLVM.
20363
Reid Spencere9de0912004-08-20 09:03:57 +000020364cat >>confdefs.h <<_ACEOF
20365#define LLVM_PREFIX "$LLVM_PREFIX"
20366_ACEOF
20367
20368
20369cat >>confdefs.h <<_ACEOF
20370#define LLVM_BINDIR "$LLVM_BINDIR"
20371_ACEOF
20372
20373
20374cat >>confdefs.h <<_ACEOF
20375#define LLVM_LIBDIR "$LLVM_LIBDIR"
20376_ACEOF
20377
20378
20379cat >>confdefs.h <<_ACEOF
20380#define LLVM_DATADIR "$LLVM_DATADIR"
20381_ACEOF
20382
20383
20384cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020385#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020386_ACEOF
20387
20388
20389cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020390#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020391_ACEOF
20392
20393
20394cat >>confdefs.h <<_ACEOF
20395#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20396_ACEOF
20397
20398
20399cat >>confdefs.h <<_ACEOF
20400#define LLVM_INFODIR "$LLVM_INFODIR"
20401_ACEOF
20402
20403
20404cat >>confdefs.h <<_ACEOF
20405#define LLVM_MANDIR "$LLVM_MANDIR"
20406_ACEOF
20407
20408
20409cat >>confdefs.h <<_ACEOF
20410#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20411_ACEOF
20412
20413
Eric Christopher790e11c2007-12-01 00:34:39 +000020414cat >>confdefs.h <<_ACEOF
20415#define LLVM_HOSTTRIPLE "$host"
20416_ACEOF
20417
20418
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020419# Determine which bindings to build.
20420if test "$BINDINGS_TO_BUILD" = auto ; then
20421 BINDINGS_TO_BUILD=""
20422 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20423 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20424 fi
20425fi
20426BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20427
20428
20429# This isn't really configurey, but it avoids having to repeat the list in
20430# other files.
20431ALL_BINDINGS=ocaml
20432
20433
Gordon Henriksenf0915682007-10-02 16:42:22 +000020434# Do any work necessary to ensure that bindings have what they need.
20435binding_prereqs_failed=0
20436for a_binding in $BINDINGS_TO_BUILD ; do
20437 case "$a_binding" in
20438 ocaml)
20439 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20441echo "$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 +000020442 binding_prereqs_failed=1
20443 fi
20444 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20446echo "$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 +000020447 binding_prereqs_failed=1
20448 fi
20449 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20451echo "$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 +000020452 fi
20453 if test "x$with_ocaml_libdir" != xauto ; then
20454 OCAML_LIBDIR=$with_ocaml_libdir
20455
20456 else
20457 ocaml_stdlib="`"$OCAMLC" -where`"
20458 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20459 then
20460 # ocaml stdlib is beneath our prefix; use stdlib
20461 OCAML_LIBDIR=$ocaml_stdlib
20462
20463 else
20464 # ocaml stdlib is outside our prefix; use libdir/ocaml
20465 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20466
20467 fi
20468 fi
20469 ;;
20470 esac
20471done
20472if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020473 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20474echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20475 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020476fi
20477
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020478{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20479echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20480if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020482else
20483 ac_ext=cpp
20484ac_cpp='$CXXCPP $CPPFLAGS'
20485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20488
20489 oldcxxflags="$CXXFLAGS"
20490 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020491 cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h. */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020496/* end confdefs.h. */
20497
20498int
20499main ()
20500{
20501
20502 ;
20503 return 0;
20504}
20505_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020506rm -f conftest.$ac_objext
20507if { (ac_try="$ac_compile"
20508case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20511esac
20512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_compile") 2>conftest.er1
20514 ac_status=$?
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20521 { (case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524esac
20525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_try") 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest.$ac_objext'
20531 { (case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20534esac
20535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_try") 2>&5
20537 ac_status=$?
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020540 llvm_cv_cxx_visibility_inlines_hidden=yes
20541else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020542 echo "$as_me: failed program was:" >&5
20543sed 's/^/| /' conftest.$ac_ext >&5
20544
20545 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020546fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020547
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20549 CXXFLAGS="$oldcxxflags"
20550 ac_ext=c
20551ac_cpp='$CPP $CPPFLAGS'
20552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20554ac_compiler_gnu=$ac_cv_c_compiler_gnu
20555
20556
20557fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020558{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20559echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020560if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20561 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20562
20563else
20564 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20565
20566fi
20567
Gordon Henriksenf0915682007-10-02 16:42:22 +000020568
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020569if test "$llvm_cv_link_use_r" = "yes" ; then
20570 RPATH="-Wl,-R"
20571else
20572 RPATH="-Wl,-rpath"
20573fi
20574
20575
20576if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20577 RDYNAMIC="-Wl,-export-dynamic"
20578else
20579 RDYNAMIC=""
20580fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020581
20582
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020583
Eric Christophera1cba682010-08-08 02:44:25 +000020584ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020585
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020586
20587
20588
20589
20590
Douglas Gregor1555a232009-06-16 20:12:29 +000020591ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20592
20593ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20594
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020595ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20596
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020597ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20598
Chandler Carruth8b67f772009-10-26 01:35:46 +000020599ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020600
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020601
Reid Spencera773bd52006-08-04 18:18:08 +000020602ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020603
20604
Reid Spencerea949cf2006-08-16 00:45:38 +000020605ac_config_files="$ac_config_files llvm.spec"
20606
20607
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020608ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020609
20610
Reid Spencera773bd52006-08-04 18:18:08 +000020611ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020612
20613
Reid Spencera773bd52006-08-04 18:18:08 +000020614ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020615
Reid Spencera773bd52006-08-04 18:18:08 +000020616ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020617
20618
Reid Spencera773bd52006-08-04 18:18:08 +000020619ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020620
20621
Reid Spencera773bd52006-08-04 18:18:08 +000020622ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020623
20624
Reid Spencera773bd52006-08-04 18:18:08 +000020625ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020626
20627
Reid Spencer8b2e1412006-11-17 03:32:33 +000020628ac_config_commands="$ac_config_commands runtime/Makefile"
20629
20630
Reid Spencera773bd52006-08-04 18:18:08 +000020631ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020632
20633
Reid Spencera773bd52006-08-04 18:18:08 +000020634ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020635
20636
Bill Wendlingf24eb392009-01-04 23:12:30 +000020637ac_config_commands="$ac_config_commands unittests/Makefile"
20638
20639
Reid Spencera773bd52006-08-04 18:18:08 +000020640ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020641
20642
Reid Spencera773bd52006-08-04 18:18:08 +000020643ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020644
20645
Reid Spencera773bd52006-08-04 18:18:08 +000020646ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020647
20648
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020649ac_config_commands="$ac_config_commands bindings/Makefile"
20650
20651
20652ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20653
20654
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020655
John Criswell7a73b802003-06-30 21:59:07 +000020656cat >confcache <<\_ACEOF
20657# This file is a shell script that caches the results of configure
20658# tests run on this system so they can be shared between configure
20659# scripts and configure runs, see configure's option --config-cache.
20660# It is not useful on other systems. If it contains results you don't
20661# want to keep, you may remove or edit it.
20662#
20663# config.status only pays attention to the cache file if you give it
20664# the --recheck option to rerun configure.
20665#
John Criswell0c38eaf2003-09-10 15:17:25 +000020666# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020667# loading this file, other *unset* `ac_cv_foo' will be assigned the
20668# following values.
20669
20670_ACEOF
20671
20672# The following way of writing the cache mishandles newlines in values,
20673# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020674# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020675# Ultrix sh set writes to stderr and can't be redirected directly,
20676# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020677(
20678 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20679 eval ac_val=\$$ac_var
20680 case $ac_val in #(
20681 *${as_nl}*)
20682 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20684echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020685 esac
20686 case $ac_var in #(
20687 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020688 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020689 esac ;;
20690 esac
20691 done
20692
John Criswell7a73b802003-06-30 21:59:07 +000020693 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020694 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20695 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020696 # `set' does not quote correctly, so add quotes (double-quote
20697 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020698 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020699 "s/'/'\\\\''/g;
20700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020701 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020702 *)
20703 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020705 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020706 esac |
20707 sort
20708) |
John Criswell7a73b802003-06-30 21:59:07 +000020709 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020710 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020711 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020712 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20714 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20716 :end' >>confcache
20717if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20718 if test -w "$cache_file"; then
20719 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020720 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20721echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020722 cat confcache >$cache_file
20723 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020724 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20725echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020726 fi
20727fi
20728rm -f confcache
20729
20730test "x$prefix" = xNONE && prefix=$ac_default_prefix
20731# Let make expand exec_prefix.
20732test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20733
John Criswell7a73b802003-06-30 21:59:07 +000020734DEFS=-DHAVE_CONFIG_H
20735
John Criswell0c38eaf2003-09-10 15:17:25 +000020736ac_libobjs=
20737ac_ltlibobjs=
20738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20739 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020741 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20743 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020744 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20745 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020746done
20747LIBOBJS=$ac_libobjs
20748
20749LTLIBOBJS=$ac_ltlibobjs
20750
20751
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020752if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020753 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20754Usually this means the macro was only invoked conditionally." >&5
20755echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20756Usually this means the macro was only invoked conditionally." >&2;}
20757 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020758fi
20759if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020760 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20761Usually this means the macro was only invoked conditionally." >&5
20762echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20763Usually this means the macro was only invoked conditionally." >&2;}
20764 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020765fi
John Criswell7a73b802003-06-30 21:59:07 +000020766
20767: ${CONFIG_STATUS=./config.status}
20768ac_clean_files_save=$ac_clean_files
20769ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020770{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20771echo "$as_me: creating $CONFIG_STATUS" >&6;}
20772cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020773#! $SHELL
20774# Generated by $as_me.
20775# Run this file to recreate the current configuration.
20776# Compiler output produced by configure, useful for debugging
20777# configure, is in config.log if it exists.
20778
20779debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020780ac_cs_recheck=false
20781ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020782SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020784
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785cat >>$CONFIG_STATUS <<\_ACEOF
20786## --------------------- ##
20787## M4sh Initialization. ##
20788## --------------------- ##
20789
20790# Be Bourne compatible
20791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020792 emulate sh
20793 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020794 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020795 # is contrary to our usage. Disable this feature.
20796 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020797 setopt NO_GLOB_SUBST
20798else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020800fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020801BIN_SH=xpg4; export BIN_SH # for Tru64
20802DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020803
John Criswell7a73b802003-06-30 21:59:07 +000020804
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020805# PATH needs CR
20806# Avoid depending upon Character Ranges.
20807as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20808as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20809as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20810as_cr_digits='0123456789'
20811as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020812
20813# The user is always right.
20814if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020815 echo "#! /bin/sh" >conf$$.sh
20816 echo "exit 0" >>conf$$.sh
20817 chmod +x conf$$.sh
20818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20819 PATH_SEPARATOR=';'
20820 else
20821 PATH_SEPARATOR=:
20822 fi
20823 rm -f conf$$.sh
20824fi
20825
20826# Support unset when possible.
20827if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20828 as_unset=unset
20829else
20830 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020831fi
John Criswell7a73b802003-06-30 21:59:07 +000020832
Reid Spencera773bd52006-08-04 18:18:08 +000020833
20834# IFS
20835# We need space, tab and new line, in precisely that order. Quoting is
20836# there to prevent editors from complaining about space-tab.
20837# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20838# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020839as_nl='
20840'
Reid Spencera773bd52006-08-04 18:18:08 +000020841IFS=" "" $as_nl"
20842
20843# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020844case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020845 *[\\/]* ) as_myself=$0 ;;
20846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020847for as_dir in $PATH
20848do
20849 IFS=$as_save_IFS
20850 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20852done
Reid Spencera773bd52006-08-04 18:18:08 +000020853IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020854
Reid Spencera773bd52006-08-04 18:18:08 +000020855 ;;
20856esac
20857# We did not find ourselves, most probably we were run as `sh COMMAND'
20858# in which case we are not to be found in the path.
20859if test "x$as_myself" = x; then
20860 as_myself=$0
20861fi
20862if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020863 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20864 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020865fi
20866
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020867# Work around bugs in pre-3.0 UWIN ksh.
20868for as_var in ENV MAIL MAILPATH
20869do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020870done
20871PS1='$ '
20872PS2='> '
20873PS4='+ '
20874
20875# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020876for as_var in \
20877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20879 LC_TELEPHONE LC_TIME
20880do
20881 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20882 eval $as_var=C; export $as_var
20883 else
20884 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020885 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020886done
Torok Edwin871384f2010-01-26 08:50:50 +000020887
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020888# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020889if expr a : '\(a\)' >/dev/null 2>&1 &&
20890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20891 as_expr=expr
20892else
20893 as_expr=false
20894fi
20895
20896if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20897 as_basename=basename
20898else
20899 as_basename=false
20900fi
20901
20902
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020903# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020904as_me=`$as_basename -- "$0" ||
20905$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20906 X"$0" : 'X\(//\)$' \| \
20907 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020908echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020909 sed '/^.*\/\([^/][^/]*\)\/*$/{
20910 s//\1/
20911 q
20912 }
20913 /^X\/\(\/\/\)$/{
20914 s//\1/
20915 q
20916 }
20917 /^X\/\(\/\).*/{
20918 s//\1/
20919 q
20920 }
20921 s/.*/./; q'`
20922
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020923# CDPATH.
20924$as_unset CDPATH
20925
20926
20927
20928 as_lineno_1=$LINENO
20929 as_lineno_2=$LINENO
20930 test "x$as_lineno_1" != "x$as_lineno_2" &&
20931 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20932
20933 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20934 # uniformly replaced by the line number. The first 'sed' inserts a
20935 # line-number line after each line using $LINENO; the second 'sed'
20936 # does the real work. The second script uses 'N' to pair each
20937 # line-number line with the line containing $LINENO, and appends
20938 # trailing '-' during substitution so that $LINENO is not a special
20939 # case at line end.
20940 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20941 # scripts with optimization help from Paolo Bonzini. Blame Lee
20942 # E. McMahon (1931-1989) for sed's syntax. :-)
20943 sed -n '
20944 p
20945 /[$]LINENO/=
20946 ' <$as_myself |
20947 sed '
20948 s/[$]LINENO.*/&-/
20949 t lineno
20950 b
20951 :lineno
20952 N
20953 :loop
20954 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20955 t loop
20956 s/-\n.*//
20957 ' >$as_me.lineno &&
20958 chmod +x "$as_me.lineno" ||
20959 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20960 { (exit 1); exit 1; }; }
20961
20962 # Don't try to exec as it changes $[0], causing all sort of problems
20963 # (the dirname of $[0] is not the place where we might find the
20964 # original and so on. Autoconf is especially sensitive to this).
20965 . "./$as_me.lineno"
20966 # Exit status is that of the last command.
20967 exit
20968}
20969
20970
20971if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20972 as_dirname=dirname
20973else
20974 as_dirname=false
20975fi
Reid Spencera773bd52006-08-04 18:18:08 +000020976
20977ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020978case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020979-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020980 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020981 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020982 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020983 esac;;
20984*)
20985 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020986esac
20987
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020988if expr a : '\(a\)' >/dev/null 2>&1 &&
20989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20990 as_expr=expr
20991else
20992 as_expr=false
20993fi
20994
John Criswell7a73b802003-06-30 21:59:07 +000020995rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020996if test -d conf$$.dir; then
20997 rm -f conf$$.dir/conf$$.file
20998else
20999 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021000 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000021001fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021002echo >conf$$.file
21003if ln -s conf$$.file conf$$ 2>/dev/null; then
21004 as_ln_s='ln -s'
21005 # ... but there are two gotchas:
21006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21008 # In both cases, we have to default to `cp -p'.
21009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000021010 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021011elif ln conf$$.file conf$$ 2>/dev/null; then
21012 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000021013else
21014 as_ln_s='cp -p'
21015fi
Reid Spencera773bd52006-08-04 18:18:08 +000021016rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21017rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021018
John Criswell0c38eaf2003-09-10 15:17:25 +000021019if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021020 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021021else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021022 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021023 as_mkdir_p=false
21024fi
21025
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021026# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21027# systems may use methods other than mode bits to determine executability.
21028cat >conf$$.file <<_ASEOF
21029#! /bin/sh
21030exit 0
21031_ASEOF
21032chmod +x conf$$.file
21033if test -x conf$$.file >/dev/null 2>&1; then
21034 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021035else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021036 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021037fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021038rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021039
21040# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021041as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021042
21043# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021044as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021045
21046
John Criswell7a73b802003-06-30 21:59:07 +000021047exec 6>&1
21048
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021049# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021050# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021051# values after options handling.
21052ac_log="
Eric Christopherb26697c2010-09-06 18:47:10 +000021053This file was extended by llvm $as_me 2.9svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021054generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021055
21056 CONFIG_FILES = $CONFIG_FILES
21057 CONFIG_HEADERS = $CONFIG_HEADERS
21058 CONFIG_LINKS = $CONFIG_LINKS
21059 CONFIG_COMMANDS = $CONFIG_COMMANDS
21060 $ $0 $@
21061
Reid Spencera773bd52006-08-04 18:18:08 +000021062on `(hostname || uname -n) 2>/dev/null | sed 1q`
21063"
21064
John Criswell7a73b802003-06-30 21:59:07 +000021065_ACEOF
21066
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021068# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021069config_files="$ac_config_files"
21070config_headers="$ac_config_headers"
21071config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021072
Reid Spencera773bd52006-08-04 18:18:08 +000021073_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021074
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021075cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021076ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021077\`$as_me' instantiates files from templates according to the
21078current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021079
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021080Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021081
21082 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021083 -V, --version print version number, then exit
21084 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021085 -d, --debug don't remove temporary files
21086 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021087 --file=FILE[:TEMPLATE]
21088 instantiate the configuration file FILE
21089 --header=FILE[:TEMPLATE]
21090 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021091
21092Configuration files:
21093$config_files
21094
21095Configuration headers:
21096$config_headers
21097
John Criswellc764fbc2003-09-06 15:17:13 +000021098Configuration commands:
21099$config_commands
21100
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021101Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021102
Reid Spencera773bd52006-08-04 18:18:08 +000021103_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021104cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021105ac_cs_version="\\
Eric Christopherb26697c2010-09-06 18:47:10 +000021106llvm config.status 2.9svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021107configured by $0, generated by GNU Autoconf 2.60,
21108 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021109
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021110Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021111This config.status script is free software; the Free Software Foundation
21112gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021113
21114ac_pwd='$ac_pwd'
21115srcdir='$srcdir'
21116INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021117_ACEOF
21118
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021119cat >>$CONFIG_STATUS <<\_ACEOF
21120# If no file are specified by the user, then we need to provide default
21121# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021122ac_need_defaults=:
21123while test $# != 0
21124do
21125 case $1 in
21126 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21128 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021129 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021130 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021131 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021132 ac_option=$1
21133 ac_optarg=$2
21134 ac_shift=shift
21135 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021136 esac
21137
John Criswell0c38eaf2003-09-10 15:17:25 +000021138 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021139 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21141 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021142 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021143 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021144 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021145 debug=: ;;
21146 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021147 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021148 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021149 ac_need_defaults=false;;
21150 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021151 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021152 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021153 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021154 --he | --h)
21155 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021156 { echo "$as_me: error: ambiguous option: $1
21157Try \`$0 --help' for more information." >&2
21158 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021159 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021160 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21162 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21163 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021164
21165 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021166 -*) { echo "$as_me: error: unrecognized option: $1
21167Try \`$0 --help' for more information." >&2
21168 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021169
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021170 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021171 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021172
21173 esac
21174 shift
21175done
21176
John Criswell0c38eaf2003-09-10 15:17:25 +000021177ac_configure_extra_args=
21178
21179if $ac_cs_silent; then
21180 exec 6>/dev/null
21181 ac_configure_extra_args="$ac_configure_extra_args --silent"
21182fi
21183
21184_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021186if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021187 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21188 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021189 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021190 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021191fi
21192
John Criswell7a73b802003-06-30 21:59:07 +000021193_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021194cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021195exec 5>>config.log
21196{
21197 echo
21198 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21199## Running $as_me. ##
21200_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021201 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021202} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021203
Reid Spencera773bd52006-08-04 18:18:08 +000021204_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021205cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021206#
Reid Spencera773bd52006-08-04 18:18:08 +000021207# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021208#
Reid Spencerc0682832005-02-24 19:05:19 +000021209llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021210
21211_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021212
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021213cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021214
21215# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021216for ac_config_target in $ac_config_targets
21217do
Reid Spencera773bd52006-08-04 18:18:08 +000021218 case $ac_config_target in
21219 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021220 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021221 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21222 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021223 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021224 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021225 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021226 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021227 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021228 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021229 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21230 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21231 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21232 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21233 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21234 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021235 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021236 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21237 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021238 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021239 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21240 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21241 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021242 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21243 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021244
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021245 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21246echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21247 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021248 esac
21249done
21250
Reid Spencera773bd52006-08-04 18:18:08 +000021251
John Criswell7a73b802003-06-30 21:59:07 +000021252# If the user did not use the arguments to specify the items to instantiate,
21253# then the envvar interface is used. Set only those that are not.
21254# We use the long form for the default assignment because of an extremely
21255# bizarre bug on SunOS 4.1.3.
21256if $ac_need_defaults; then
21257 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21258 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021259 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021260fi
21261
John Criswell0c38eaf2003-09-10 15:17:25 +000021262# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021263# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021264# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021265# Hook for its removal unless debugging.
21266# Note that there is a small window in which the directory will not be cleaned:
21267# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021268$debug ||
21269{
Reid Spencera773bd52006-08-04 18:18:08 +000021270 tmp=
21271 trap 'exit_status=$?
21272 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21273' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021274 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021275}
John Criswell7a73b802003-06-30 21:59:07 +000021276# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021277
John Criswell7a73b802003-06-30 21:59:07 +000021278{
Reid Spencera773bd52006-08-04 18:18:08 +000021279 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021280 test -n "$tmp" && test -d "$tmp"
21281} ||
21282{
Reid Spencera773bd52006-08-04 18:18:08 +000021283 tmp=./conf$$-$RANDOM
21284 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021285} ||
21286{
21287 echo "$me: cannot create a temporary directory in ." >&2
21288 { (exit 1); exit 1; }
21289}
John Criswell7a73b802003-06-30 21:59:07 +000021290
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021291#
21292# Set up the sed scripts for CONFIG_FILES section.
21293#
21294
21295# No need to generate the scripts if there are no CONFIG_FILES.
21296# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021297if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021298
21299_ACEOF
21300
Reid Spencera773bd52006-08-04 18:18:08 +000021301
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021302
Reid Spencera773bd52006-08-04 18:18:08 +000021303ac_delim='%!_!# '
21304for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021305 cat >conf$$subs.sed <<_ACEOF
21306SHELL!$SHELL$ac_delim
21307PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21308PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21309PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21310PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21311PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21312PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21313exec_prefix!$exec_prefix$ac_delim
21314prefix!$prefix$ac_delim
21315program_transform_name!$program_transform_name$ac_delim
21316bindir!$bindir$ac_delim
21317sbindir!$sbindir$ac_delim
21318libexecdir!$libexecdir$ac_delim
21319datarootdir!$datarootdir$ac_delim
21320datadir!$datadir$ac_delim
21321sysconfdir!$sysconfdir$ac_delim
21322sharedstatedir!$sharedstatedir$ac_delim
21323localstatedir!$localstatedir$ac_delim
21324includedir!$includedir$ac_delim
21325oldincludedir!$oldincludedir$ac_delim
21326docdir!$docdir$ac_delim
21327infodir!$infodir$ac_delim
21328htmldir!$htmldir$ac_delim
21329dvidir!$dvidir$ac_delim
21330pdfdir!$pdfdir$ac_delim
21331psdir!$psdir$ac_delim
21332libdir!$libdir$ac_delim
21333localedir!$localedir$ac_delim
21334mandir!$mandir$ac_delim
21335DEFS!$DEFS$ac_delim
21336ECHO_C!$ECHO_C$ac_delim
21337ECHO_N!$ECHO_N$ac_delim
21338ECHO_T!$ECHO_T$ac_delim
21339LIBS!$LIBS$ac_delim
21340build_alias!$build_alias$ac_delim
21341host_alias!$host_alias$ac_delim
21342target_alias!$target_alias$ac_delim
21343LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21344subdirs!$subdirs$ac_delim
21345build!$build$ac_delim
21346build_cpu!$build_cpu$ac_delim
21347build_vendor!$build_vendor$ac_delim
21348build_os!$build_os$ac_delim
21349host!$host$ac_delim
21350host_cpu!$host_cpu$ac_delim
21351host_vendor!$host_vendor$ac_delim
21352host_os!$host_os$ac_delim
21353target!$target$ac_delim
21354target_cpu!$target_cpu$ac_delim
21355target_vendor!$target_vendor$ac_delim
21356target_os!$target_os$ac_delim
21357OS!$OS$ac_delim
21358HOST_OS!$HOST_OS$ac_delim
21359TARGET_OS!$TARGET_OS$ac_delim
21360LINKALL!$LINKALL$ac_delim
21361NOLINKALL!$NOLINKALL$ac_delim
21362LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21363LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21364ARCH!$ARCH$ac_delim
21365ENDIAN!$ENDIAN$ac_delim
21366CC!$CC$ac_delim
21367CFLAGS!$CFLAGS$ac_delim
21368LDFLAGS!$LDFLAGS$ac_delim
21369CPPFLAGS!$CPPFLAGS$ac_delim
21370ac_ct_CC!$ac_ct_CC$ac_delim
21371EXEEXT!$EXEEXT$ac_delim
21372OBJEXT!$OBJEXT$ac_delim
21373CPP!$CPP$ac_delim
21374GREP!$GREP$ac_delim
21375EGREP!$EGREP$ac_delim
21376LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21377BUILD_CC!$BUILD_CC$ac_delim
21378BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21379BUILD_CXX!$BUILD_CXX$ac_delim
21380CVSBUILD!$CVSBUILD$ac_delim
21381ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21382ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21383DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21384ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21385EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21386DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21387DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21388JIT!$JIT$ac_delim
21389TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21390ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21391ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21392ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021393ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021394ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021395TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21396LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21397LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21398LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21399LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21400ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021401CLANGPATH!$CLANGPATH$ac_delim
21402CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021403_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021404
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021405 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021406 break
21407 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021408 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21409echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21410 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021411 else
21412 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021413 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021414done
21415
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021416ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21417if test -n "$ac_eof"; then
21418 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21419 ac_eof=`expr $ac_eof + 1`
21420fi
21421
21422cat >>$CONFIG_STATUS <<_ACEOF
21423cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21424/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021426sed '
21427s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21428s/^/s,@/; s/!/@,|#_!!_#|/
21429:n
21430t n
21431s/'"$ac_delim"'$/,g/; t
21432s/$/\\/; p
21433N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21434' >>$CONFIG_STATUS <conf$$subs.sed
21435rm -f conf$$subs.sed
21436cat >>$CONFIG_STATUS <<_ACEOF
21437CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021438_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021439
21440
21441ac_delim='%!_!# '
21442for ac_last_try in false false false false false :; do
21443 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021444ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021445OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021446EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21447BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021448CXX!$CXX$ac_delim
21449CXXFLAGS!$CXXFLAGS$ac_delim
21450ac_ct_CXX!$ac_ct_CXX$ac_delim
21451NM!$NM$ac_delim
21452ifGNUmake!$ifGNUmake$ac_delim
21453LN_S!$LN_S$ac_delim
21454CMP!$CMP$ac_delim
21455CP!$CP$ac_delim
21456DATE!$DATE$ac_delim
21457FIND!$FIND$ac_delim
21458MKDIR!$MKDIR$ac_delim
21459MV!$MV$ac_delim
21460RANLIB!$RANLIB$ac_delim
21461AR!$AR$ac_delim
21462RM!$RM$ac_delim
21463SED!$SED$ac_delim
21464TAR!$TAR$ac_delim
21465BINPWD!$BINPWD$ac_delim
21466GRAPHVIZ!$GRAPHVIZ$ac_delim
21467DOT!$DOT$ac_delim
21468FDP!$FDP$ac_delim
21469NEATO!$NEATO$ac_delim
21470TWOPI!$TWOPI$ac_delim
21471CIRCO!$CIRCO$ac_delim
21472GV!$GV$ac_delim
21473DOTTY!$DOTTY$ac_delim
21474PERL!$PERL$ac_delim
21475HAVE_PERL!$HAVE_PERL$ac_delim
21476INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21477INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21478INSTALL_DATA!$INSTALL_DATA$ac_delim
21479BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021480CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021481DOXYGEN!$DOXYGEN$ac_delim
21482GROFF!$GROFF$ac_delim
21483GZIP!$GZIP$ac_delim
21484POD2HTML!$POD2HTML$ac_delim
21485POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021486PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021487RUNTEST!$RUNTEST$ac_delim
21488TCLSH!$TCLSH$ac_delim
21489ZIP!$ZIP$ac_delim
21490OCAMLC!$OCAMLC$ac_delim
21491OCAMLOPT!$OCAMLOPT$ac_delim
21492OCAMLDEP!$OCAMLDEP$ac_delim
21493OCAMLDOC!$OCAMLDOC$ac_delim
21494GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021495HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021496INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21497INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21498CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21499CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21500LIBADD_DL!$LIBADD_DL$ac_delim
21501LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21502LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21503LLVMGCC!$LLVMGCC$ac_delim
21504LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021505LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021506NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21507NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21508USE_UDIS86!$USE_UDIS86$ac_delim
21509USE_OPROFILE!$USE_OPROFILE$ac_delim
21510HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21511HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21512MMAP_FILE!$MMAP_FILE$ac_delim
21513LLVMCC1!$LLVMCC1$ac_delim
21514LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21515LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021516LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21517SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021518SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021519LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21520LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21521LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21522LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21523LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21524LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21525LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21526LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21527LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21528LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21529BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21530ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21531OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21532ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21533RPATH!$RPATH$ac_delim
21534RDYNAMIC!$RDYNAMIC$ac_delim
21535LIBOBJS!$LIBOBJS$ac_delim
21536LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021537_ACEOF
21538
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021539 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021540 break
21541 elif $ac_last_try; then
21542 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21543echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21544 { (exit 1); exit 1; }; }
21545 else
21546 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21547 fi
21548done
21549
21550ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21551if test -n "$ac_eof"; then
21552 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21553 ac_eof=`expr $ac_eof + 1`
21554fi
21555
21556cat >>$CONFIG_STATUS <<_ACEOF
21557cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21558/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21559_ACEOF
21560sed '
21561s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21562s/^/s,@/; s/!/@,|#_!!_#|/
21563:n
21564t n
21565s/'"$ac_delim"'$/,g/; t
21566s/$/\\/; p
21567N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21568' >>$CONFIG_STATUS <conf$$subs.sed
21569rm -f conf$$subs.sed
21570cat >>$CONFIG_STATUS <<_ACEOF
21571:end
21572s/|#_!!_#|//g
21573CEOF$ac_eof
21574_ACEOF
21575
21576
Reid Spencera773bd52006-08-04 18:18:08 +000021577# VPATH may cause trouble with some makes, so we remove $(srcdir),
21578# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21579# trailing colons and then remove the whole line if VPATH becomes empty
21580# (actually we leave an empty line to preserve line numbers).
21581if test "x$srcdir" = x.; then
21582 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21583s/:*\$(srcdir):*/:/
21584s/:*\${srcdir}:*/:/
21585s/:*@srcdir@:*/:/
21586s/^\([^=]*=[ ]*\):*/\1/
21587s/:*$//
21588s/^[^=]*=[ ]*$//
21589}'
21590fi
21591
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021592cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021593fi # test -n "$CONFIG_FILES"
21594
Reid Spencera773bd52006-08-04 18:18:08 +000021595
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021596for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021597do
21598 case $ac_tag in
21599 :[FHLC]) ac_mode=$ac_tag; continue;;
21600 esac
21601 case $ac_mode$ac_tag in
21602 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021603 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21604echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21605 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021606 :[FH]-) ac_tag=-:-;;
21607 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21608 esac
21609 ac_save_IFS=$IFS
21610 IFS=:
21611 set x $ac_tag
21612 IFS=$ac_save_IFS
21613 shift
21614 ac_file=$1
21615 shift
21616
21617 case $ac_mode in
21618 :L) ac_source=$1;;
21619 :[FH])
21620 ac_file_inputs=
21621 for ac_f
21622 do
21623 case $ac_f in
21624 -) ac_f="$tmp/stdin";;
21625 *) # Look for the file first in the build tree, then in the source tree
21626 # (if the path is not absolute). The absolute path cannot be DOS-style,
21627 # because $ac_f cannot contain `:'.
21628 test -f "$ac_f" ||
21629 case $ac_f in
21630 [\\/$]*) false;;
21631 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21632 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021633 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21634echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21635 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021636 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021637 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021638 done
21639
21640 # Let's still pretend it is `configure' which instantiates (i.e., don't
21641 # use $as_me), people would be surprised to read:
21642 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021643 configure_input="Generated from "`IFS=:
21644 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021645 if test x"$ac_file" != x-; then
21646 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021647 { echo "$as_me:$LINENO: creating $ac_file" >&5
21648echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021649 fi
21650
21651 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021652 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021653 esac
21654 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021655 esac
21656
Reid Spencera773bd52006-08-04 18:18:08 +000021657 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021658$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021659 X"$ac_file" : 'X\(//\)[^/]' \| \
21660 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021661 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021662echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21664 s//\1/
21665 q
21666 }
21667 /^X\(\/\/\)[^/].*/{
21668 s//\1/
21669 q
21670 }
21671 /^X\(\/\/\)$/{
21672 s//\1/
21673 q
21674 }
21675 /^X\(\/\).*/{
21676 s//\1/
21677 q
21678 }
21679 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021680 { as_dir="$ac_dir"
21681 case $as_dir in #(
21682 -*) as_dir=./$as_dir;;
21683 esac
21684 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21685 as_dirs=
21686 while :; do
21687 case $as_dir in #(
21688 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21689 *) as_qdir=$as_dir;;
21690 esac
21691 as_dirs="'$as_qdir' $as_dirs"
21692 as_dir=`$as_dirname -- "$as_dir" ||
21693$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21694 X"$as_dir" : 'X\(//\)[^/]' \| \
21695 X"$as_dir" : 'X\(//\)$' \| \
21696 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21697echo X"$as_dir" |
21698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21699 s//\1/
21700 q
21701 }
21702 /^X\(\/\/\)[^/].*/{
21703 s//\1/
21704 q
21705 }
21706 /^X\(\/\/\)$/{
21707 s//\1/
21708 q
21709 }
21710 /^X\(\/\).*/{
21711 s//\1/
21712 q
21713 }
21714 s/.*/./; q'`
21715 test -d "$as_dir" && break
21716 done
21717 test -z "$as_dirs" || eval "mkdir $as_dirs"
21718 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21719echo "$as_me: error: cannot create directory $as_dir" >&2;}
21720 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021721 ac_builddir=.
21722
Reid Spencera773bd52006-08-04 18:18:08 +000021723case "$ac_dir" in
21724.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21725*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021726 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021727 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021728 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021729 case $ac_top_builddir_sub in
21730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21732 esac ;;
21733esac
21734ac_abs_top_builddir=$ac_pwd
21735ac_abs_builddir=$ac_pwd$ac_dir_suffix
21736# for backward compatibility:
21737ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021738
21739case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021740 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021741 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021742 ac_top_srcdir=$ac_top_builddir_sub
21743 ac_abs_top_srcdir=$ac_pwd ;;
21744 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021745 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021746 ac_top_srcdir=$srcdir
21747 ac_abs_top_srcdir=$srcdir ;;
21748 *) # Relative name.
21749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21750 ac_top_srcdir=$ac_top_build_prefix$srcdir
21751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021752esac
Reid Spencera773bd52006-08-04 18:18:08 +000021753ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021754
John Criswell7a73b802003-06-30 21:59:07 +000021755
Reid Spencera773bd52006-08-04 18:18:08 +000021756 case $ac_mode in
21757 :F)
21758 #
21759 # CONFIG_FILE
21760 #
John Criswell7a73b802003-06-30 21:59:07 +000021761
21762 case $INSTALL in
21763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021764 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021765 esac
John Criswell7a73b802003-06-30 21:59:07 +000021766_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021767
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021768cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021769# If the template does not know about datarootdir, expand it.
21770# FIXME: This hack should be removed a few years after 2.60.
21771ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772
21773case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021774 p
21775 q
21776}
21777/@datadir@/p
21778/@docdir@/p
21779/@infodir@/p
21780/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021781/@mandir@/p
21782' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021783*datarootdir*) ac_datarootdir_seen=yes;;
21784*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021785 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21786echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021787_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021788cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021789 ac_datarootdir_hack='
21790 s&@datadir@&$datadir&g
21791 s&@docdir@&$docdir&g
21792 s&@infodir@&$infodir&g
21793 s&@localedir@&$localedir&g
21794 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021795 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021796esac
21797_ACEOF
21798
21799# Neutralize VPATH when `$srcdir' = `.'.
21800# Shell code in configure.ac might set extrasub.
21801# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021802cat >>$CONFIG_STATUS <<_ACEOF
21803 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021804$extrasub
21805_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021806cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021807:t
21808/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021810s&@top_builddir@&$ac_top_builddir_sub&;t t
21811s&@srcdir@&$ac_srcdir&;t t
21812s&@abs_srcdir@&$ac_abs_srcdir&;t t
21813s&@top_srcdir@&$ac_top_srcdir&;t t
21814s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21815s&@builddir@&$ac_builddir&;t t
21816s&@abs_builddir@&$ac_abs_builddir&;t t
21817s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21818s&@INSTALL@&$ac_INSTALL&;t t
21819$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021820" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021821
Reid Spencera773bd52006-08-04 18:18:08 +000021822test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21823 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021825 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021826which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021827echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021828which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021829
Reid Spencera773bd52006-08-04 18:18:08 +000021830 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021831 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021832 -) cat "$tmp/out"; rm -f "$tmp/out";;
21833 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21834 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021835 ;;
21836 :H)
21837 #
21838 # CONFIG_HEADER
21839 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021840_ACEOF
21841
21842# Transform confdefs.h into a sed script `conftest.defines', that
21843# substitutes the proper values into config.h.in to produce config.h.
21844rm -f conftest.defines conftest.tail
21845# First, append a space to every undef/define line, to ease matching.
21846echo 's/$/ /' >conftest.defines
21847# Then, protect against being on the right side of a sed subst, or in
21848# an unquoted here document, in config.status. If some macros were
21849# called several times there might be several #defines for the same
21850# symbol, which is useless. But do not sort them, since the last
21851# AC_DEFINE must be honored.
21852ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21853# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21854# NAME is the cpp macro being defined, VALUE is the value it is being given.
21855# PARAMS is the parameter list in the macro definition--in most cases, it's
21856# just an empty string.
21857ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21858ac_dB='\\)[ (].*,\\1define\\2'
21859ac_dC=' '
21860ac_dD=' ,'
21861
21862uniq confdefs.h |
21863 sed -n '
21864 t rset
21865 :rset
21866 s/^[ ]*#[ ]*define[ ][ ]*//
21867 t ok
21868 d
21869 :ok
21870 s/[\\&,]/\\&/g
21871 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21872 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21873 ' >>conftest.defines
21874
21875# Remove the space that was appended to ease matching.
21876# Then replace #undef with comments. This is necessary, for
21877# example, in the case of _POSIX_SOURCE, which is predefined and required
21878# on some systems where configure will not decide to define it.
21879# (The regexp can be short, since the line contains either #define or #undef.)
21880echo 's/ $//
21881s,^[ #]*u.*,/* & */,' >>conftest.defines
21882
21883# Break up conftest.defines:
21884ac_max_sed_lines=50
21885
21886# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21887# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21888# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21889# et cetera.
21890ac_in='$ac_file_inputs'
21891ac_out='"$tmp/out1"'
21892ac_nxt='"$tmp/out2"'
21893
21894while :
21895do
21896 # Write a here document:
21897 cat >>$CONFIG_STATUS <<_ACEOF
21898 # First, check the format of the line:
21899 cat >"\$tmp/defines.sed" <<\\CEOF
21900/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21901/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21902b
21903:def
21904_ACEOF
21905 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21906 echo 'CEOF
21907 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21908 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21909 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21910 grep . conftest.tail >/dev/null || break
21911 rm -f conftest.defines
21912 mv conftest.tail conftest.defines
21913done
21914rm -f conftest.defines conftest.tail
21915
21916echo "ac_result=$ac_in" >>$CONFIG_STATUS
21917cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021918 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919 echo "/* $configure_input */" >"$tmp/config.h"
21920 cat "$ac_result" >>"$tmp/config.h"
21921 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21922 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21923echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021924 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021925 rm -f $ac_file
21926 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021927 fi
21928 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021929 echo "/* $configure_input */"
21930 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021931 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021932 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021933 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021934
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021935 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21936echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021937 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021938 esac
John Criswell7a73b802003-06-30 21:59:07 +000021939
Reid Spencera773bd52006-08-04 18:18:08 +000021940
21941 case $ac_file$ac_mode in
21942 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021943 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021944 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021945 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021946 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021947 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021948 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021949 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021950 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021951 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021952 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021953 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021954 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021955 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021956 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021957 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021958 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021959 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021960 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021961 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021962 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021963 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021964 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021965 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021966 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021967 ${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 +000021968
21969 esac
21970done # for ac_tag
21971
John Criswell7a73b802003-06-30 21:59:07 +000021972
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021973{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021974_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021975chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021976ac_clean_files=$ac_clean_files_save
21977
21978
21979# configure is writing to config.log, and then calls config.status.
21980# config.status does its own redirection, appending to config.log.
21981# Unfortunately, on DOS this fails, as config.log is still kept open
21982# by configure, so config.status won't be able to write to it; its
21983# output is simply discarded. So we exec the FD to /dev/null,
21984# effectively closing config.log, so it can be properly (re)opened and
21985# appended to by config.status. When coming back to configure, we
21986# need to make the FD available again.
21987if test "$no_create" != yes; then
21988 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021989 ac_config_status_args=
21990 test "$silent" = yes &&
21991 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021992 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021993 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021994 exec 5>>config.log
21995 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21996 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021997 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021998fi
21999
John Criswell12399a12003-09-30 15:55:44 +000022000#
22001# CONFIG_SUBDIRS section.
22002#
22003if test "$no_recursion" != yes; then
22004
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022005 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000022006 ac_sub_configure_args=
22007 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000022008 eval "set x $ac_configure_args"
22009 shift
22010 for ac_arg
22011 do
John Criswell12399a12003-09-30 15:55:44 +000022012 if test -n "$ac_prev"; then
22013 ac_prev=
22014 continue
22015 fi
22016 case $ac_arg in
22017 -cache-file | --cache-file | --cache-fil | --cache-fi \
22018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22019 ac_prev=cache_file ;;
22020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22022 | --c=*)
22023 ;;
22024 --config-cache | -C)
22025 ;;
22026 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22027 ac_prev=srcdir ;;
22028 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22029 ;;
22030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22031 ac_prev=prefix ;;
22032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22033 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022034 *)
22035 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022036 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022037 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022038 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022039 esac
22040 done
22041
22042 # Always prepend --prefix to ensure using the same prefix
22043 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022044 ac_arg="--prefix=$prefix"
22045 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022046 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022047 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022048 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022049
22050 ac_popdir=`pwd`
22051 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22052
22053 # Do not complain, so a configure script can configure whichever
22054 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022055 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022056
Reid Spencera773bd52006-08-04 18:18:08 +000022057 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022058 echo "$as_me:$LINENO: $ac_msg" >&5
22059 echo "$ac_msg" >&6
22060 { as_dir="$ac_dir"
22061 case $as_dir in #(
22062 -*) as_dir=./$as_dir;;
22063 esac
22064 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22065 as_dirs=
22066 while :; do
22067 case $as_dir in #(
22068 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22069 *) as_qdir=$as_dir;;
22070 esac
22071 as_dirs="'$as_qdir' $as_dirs"
22072 as_dir=`$as_dirname -- "$as_dir" ||
22073$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22074 X"$as_dir" : 'X\(//\)[^/]' \| \
22075 X"$as_dir" : 'X\(//\)$' \| \
22076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22077echo X"$as_dir" |
22078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22079 s//\1/
22080 q
22081 }
22082 /^X\(\/\/\)[^/].*/{
22083 s//\1/
22084 q
22085 }
22086 /^X\(\/\/\)$/{
22087 s//\1/
22088 q
22089 }
22090 /^X\(\/\).*/{
22091 s//\1/
22092 q
22093 }
22094 s/.*/./; q'`
22095 test -d "$as_dir" && break
22096 done
22097 test -z "$as_dirs" || eval "mkdir $as_dirs"
22098 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22099echo "$as_me: error: cannot create directory $as_dir" >&2;}
22100 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022101 ac_builddir=.
22102
Reid Spencera773bd52006-08-04 18:18:08 +000022103case "$ac_dir" in
22104.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22105*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022107 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022108 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022109 case $ac_top_builddir_sub in
22110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22112 esac ;;
22113esac
22114ac_abs_top_builddir=$ac_pwd
22115ac_abs_builddir=$ac_pwd$ac_dir_suffix
22116# for backward compatibility:
22117ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022118
22119case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022120 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022121 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022122 ac_top_srcdir=$ac_top_builddir_sub
22123 ac_abs_top_srcdir=$ac_pwd ;;
22124 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022125 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022126 ac_top_srcdir=$srcdir
22127 ac_abs_top_srcdir=$srcdir ;;
22128 *) # Relative name.
22129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22130 ac_top_srcdir=$ac_top_build_prefix$srcdir
22131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022132esac
Reid Spencera773bd52006-08-04 18:18:08 +000022133ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022134
22135
Reid Spencera773bd52006-08-04 18:18:08 +000022136 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022137
22138 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022139 if test -f "$ac_srcdir/configure.gnu"; then
22140 ac_sub_configure=$ac_srcdir/configure.gnu
22141 elif test -f "$ac_srcdir/configure"; then
22142 ac_sub_configure=$ac_srcdir/configure
22143 elif test -f "$ac_srcdir/configure.in"; then
22144 # This should be Cygnus configure.
22145 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022146 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022147 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22148echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022149 ac_sub_configure=
22150 fi
22151
22152 # The recursion is here.
22153 if test -n "$ac_sub_configure"; then
22154 # Make the cache file name correct relative to the subdirectory.
22155 case $cache_file in
22156 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022157 *) # Relative name.
22158 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022159 esac
22160
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022161 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22162echo "$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 +000022163 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022164 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22165 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022166 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22167echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22168 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022169 fi
22170
Reid Spencera773bd52006-08-04 18:18:08 +000022171 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022172 done
22173fi
22174