blob: 272895b9cc85b26a388512d9d0fb1893062ab3b4 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00003# Generated by GNU Autoconf 2.60 for llvm 2.8svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswell5a129712010-03-19 21:04:16 +000012# Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000016
Daniel Dunbar195d2de2010-04-10 18:56:24 +000017# Be Bourne compatible
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000019 emulate sh
20 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000022 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000032# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell0c38eaf2003-09-10 15:17:25 +000039
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000042 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000058fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000066as_nl='
67'
Reid Spencera773bd52006-08-04 18:18:08 +000068IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000071case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000072 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000078 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000090 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000092fi
93
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000094# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000097done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
Torok Edwin871384f2010-01-26 08:50:50 +0000107do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000110 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +0000112 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000113done
Torok Edwin871384f2010-01-26 08:50:50 +0000114
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000115# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +0000116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000130# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +0000131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000135echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +0000136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000150# CDPATH.
151$as_unset CDPATH
Reid Spencera773bd52006-08-04 18:18:08 +0000152
153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
Reid Spencera773bd52006-08-04 18:18:08 +0000436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
John Criswell0c38eaf2003-09-10 15:17:25 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
Reid Spencera773bd52006-08-04 18:18:08 +0000470ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000471case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +0000472-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000473 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +0000474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000475 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +0000476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
483 as_expr=expr
484else
485 as_expr=false
486fi
487
John Criswell0c38eaf2003-09-10 15:17:25 +0000488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000493 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +0000494fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
John Criswell0c38eaf2003-09-10 15:17:25 +0000506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000513 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +0000514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000540
541exec 7<&0 </dev/null 6>&1
Reid Spencera773bd52006-08-04 18:18:08 +0000542
John Criswell7a73b802003-06-30 21:59:07 +0000543# Name of the host.
544# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
John Criswell7a73b802003-06-30 21:59:07 +0000548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000552ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000553ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000554LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000559SHELL=${CONFIG_SHELL-/bin/sh}
John Criswell7a73b802003-06-30 21:59:07 +0000560
John Criswell7a73b802003-06-30 21:59:07 +0000561# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000562PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000563PACKAGE_TARNAME='-llvm-'
Tanya Lattnerdc29dff2010-03-19 21:22:13 +0000564PACKAGE_VERSION='2.8svn'
565PACKAGE_STRING='llvm 2.8svn'
John Criswell7a73b802003-06-30 21:59:07 +0000566PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
567
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000568ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000572#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000573# include <sys/types.h>
574#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000575#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000576# include <sys/stat.h>
577#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000578#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000582# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000583# include <stdlib.h>
584# endif
585#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000586#if HAVE_STRING_H
587# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000592#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000593# include <strings.h>
594#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000595#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000596# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000597#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000598#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000599# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000600#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000601#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000602# include <unistd.h>
603#endif"
604
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000605ac_subst_vars='SHELL
Torok Edwin871384f2010-01-26 08:50:50 +0000606PATH_SEPARATOR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +0000607PACKAGE_NAME
608PACKAGE_TARNAME
609PACKAGE_VERSION
610PACKAGE_STRING
611PACKAGE_BUGREPORT
612exec_prefix
613prefix
614program_transform_name
615bindir
616sbindir
617libexecdir
618datarootdir
619datadir
620sysconfdir
621sharedstatedir
622localstatedir
623includedir
624oldincludedir
625docdir
626infodir
627htmldir
628dvidir
629pdfdir
630psdir
631libdir
632localedir
633mandir
634DEFS
635ECHO_C
636ECHO_N
637ECHO_T
638LIBS
639build_alias
640host_alias
641target_alias
642LLVM_COPYRIGHT
643subdirs
644build
645build_cpu
646build_vendor
647build_os
648host
649host_cpu
650host_vendor
651host_os
652target
653target_cpu
654target_vendor
655target_os
656OS
657HOST_OS
658TARGET_OS
659LINKALL
660NOLINKALL
661LLVM_ON_UNIX
662LLVM_ON_WIN32
663ARCH
664ENDIAN
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CPP
673GREP
674EGREP
675LLVM_CROSS_COMPILING
676BUILD_CC
677BUILD_EXEEXT
678BUILD_CXX
679CVSBUILD
680ENABLE_OPTIMIZED
681ENABLE_PROFILING
682DISABLE_ASSERTIONS
683ENABLE_EXPENSIVE_CHECKS
684EXPENSIVE_CHECKS
685DEBUG_RUNTIME
686DEBUG_SYMBOLS
687JIT
688TARGET_HAS_JIT
689ENABLE_DOXYGEN
690ENABLE_THREADS
691ENABLE_PIC
Jeffrey Yasskinc9017192010-02-25 06:34:33 +0000692ENABLE_SHARED
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
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001321\`configure' configures llvm 2.8svn 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
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001387 short | recursive ) echo "Configuration of llvm 2.8svn:";;
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,
1417 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
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
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001536llvm configure 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001537generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001538
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001539Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001541This configure script is free software; the Free Software Foundation
1542gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001543
John Criswell5a129712010-03-19 21:04:16 +00001544Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001545_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001546 exit
John Criswell7a73b802003-06-30 21:59:07 +00001547fi
Reid Spencera773bd52006-08-04 18:18:08 +00001548cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001549This file contains any messages produced by compilers while
1550running configure, to aid debugging if configure makes a mistake.
1551
Tanya Lattnerdc29dff2010-03-19 21:22:13 +00001552It was created by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001553generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001554
1555 $ $0 $@
1556
1557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001558exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001559{
1560cat <<_ASUNAME
1561## --------- ##
1562## Platform. ##
1563## --------- ##
1564
1565hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001577/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001578/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582_ASUNAME
1583
1584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585for as_dir in $PATH
1586do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001589 echo "PATH: $as_dir"
1590done
Reid Spencera773bd52006-08-04 18:18:08 +00001591IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593} >&5
1594
1595cat >&5 <<_ACEOF
1596
1597
1598## ----------- ##
1599## Core tests. ##
1600## ----------- ##
1601
1602_ACEOF
1603
1604
1605# Keep a trace of the command line.
1606# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001607# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001608# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001609# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001610ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001611ac_configure_args0=
1612ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001613ac_must_keep_next=false
1614for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001615do
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001623 *\'*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 esac
1626 case $ac_pass in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 2)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001630 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001631 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001645 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001646 ;;
1647 esac
1648 done
John Criswell7a73b802003-06-30 21:59:07 +00001649done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001650$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001652
1653# When interrupted or exit'd, cleanup temporary files, and complete
1654# config.log. We remove comments because anyway the quotes in there
1655# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001656# WARNING: Use '\'' to represent an apostrophe within the trap.
1657# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001658trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001662
John Criswell7a73b802003-06-30 21:59:07 +00001663 cat <<\_ASBOX
1664## ---------------- ##
1665## Cache variables. ##
1666## ---------------- ##
1667_ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001670(
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001681 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001682 esac ;;
1683 esac
1684 done
John Criswell7a73b802003-06-30 21:59:07 +00001685 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001688 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1691 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001692 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001694 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001695 esac |
1696 sort
1697)
John Criswell7a73b802003-06-30 21:59:07 +00001698 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001699
1700 cat <<\_ASBOX
1701## ----------------- ##
1702## Output variables. ##
1703## ----------------- ##
1704_ASBOX
1705 echo
1706 for ac_var in $ac_subst_vars
1707 do
Reid Spencera773bd52006-08-04 18:18:08 +00001708 eval ac_val=\$$ac_var
1709 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001711 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001712 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 done | sort
1714 echo
1715
1716 if test -n "$ac_subst_files"; then
1717 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001718## ------------------- ##
1719## File substitutions. ##
1720## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001721_ASBOX
1722 echo
1723 for ac_var in $ac_subst_files
1724 do
Reid Spencera773bd52006-08-04 18:18:08 +00001725 eval ac_val=\$$ac_var
1726 case $ac_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001729 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 done | sort
1731 echo
1732 fi
1733
John Criswell7a73b802003-06-30 21:59:07 +00001734 if test -s confdefs.h; then
1735 cat <<\_ASBOX
1736## ----------- ##
1737## confdefs.h. ##
1738## ----------- ##
1739_ASBOX
1740 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001741 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001742 echo
1743 fi
1744 test "$ac_signal" != 0 &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
John Criswell7a73b802003-06-30 21:59:07 +00001747 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001750 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001751' 0
John Criswell7a73b802003-06-30 21:59:07 +00001752for ac_signal in 1 2 13 15; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
John Criswell7a73b802003-06-30 21:59:07 +00001754done
1755ac_signal=0
1756
1757# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001758rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001759
1760# Predefined preprocessor variables.
1761
1762cat >>confdefs.h <<_ACEOF
1763#define PACKAGE_NAME "$PACKAGE_NAME"
1764_ACEOF
1765
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001766
John Criswell7a73b802003-06-30 21:59:07 +00001767cat >>confdefs.h <<_ACEOF
1768#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769_ACEOF
1770
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001771
John Criswell7a73b802003-06-30 21:59:07 +00001772cat >>confdefs.h <<_ACEOF
1773#define PACKAGE_VERSION "$PACKAGE_VERSION"
1774_ACEOF
1775
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001776
John Criswell7a73b802003-06-30 21:59:07 +00001777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE_STRING "$PACKAGE_STRING"
1779_ACEOF
1780
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001781
John Criswell7a73b802003-06-30 21:59:07 +00001782cat >>confdefs.h <<_ACEOF
1783#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784_ACEOF
1785
1786
1787# Let the site file select an alternate cache file if it wants to.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001788# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001789if test -n "$CONFIG_SITE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001790 set x "$CONFIG_SITE"
Reid Spencera773bd52006-08-04 18:18:08 +00001791elif test "x$prefix" != xNONE; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
Reid Spencera773bd52006-08-04 18:18:08 +00001793else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001796fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001797shift
1798for ac_site_file
Reid Spencera773bd52006-08-04 18:18:08 +00001799do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802echo "$as_me: loading site script $ac_site_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001803 sed 's/^/| /' "$ac_site_file" >&5
1804 . "$ac_site_file"
1805 fi
1806done
1807
1808if test -r "$cache_file"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813echo "$as_me: loading cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001814 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001817 esac
1818 fi
1819else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821echo "$as_me: creating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +00001822 >$cache_file
1823fi
1824
1825# Check that the precious variables saved in the cache have kept the same
1826# value.
1827ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001828for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001833 case $ac_old_set,$ac_new_set in
1834 set,)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001837 ac_cache_corrupted=: ;;
1838 ,set)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001841 ac_cache_corrupted=: ;;
1842 ,);;
1843 *)
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001852 fi;;
1853 esac
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1856 case $ac_new_val in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001858 *) ac_arg=$ac_var=$ac_new_val ;;
1859 esac
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001863 esac
1864 fi
1865done
1866if $ac_cache_corrupted; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001872fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
Reid Spencera773bd52006-08-04 18:18:08 +00001897
John Criswell7a73b802003-06-30 21:59:07 +00001898ac_ext=c
1899ac_cpp='$CPP $CPPFLAGS'
1900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903
1904
1905
John Criswell5a129712010-03-19 21:04:16 +00001906LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001907
1908
1909
1910
1911
1912
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00001915for ac_dir in autoconf "$srcdir"/autoconf; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001916 if test -f "$ac_dir/install-sh"; then
1917 ac_aux_dir=$ac_dir
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 break
1920 elif test -f "$ac_dir/install.sh"; then
1921 ac_aux_dir=$ac_dir
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 break
1924 elif test -f "$ac_dir/shtool"; then
1925 ac_aux_dir=$ac_dir
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1927 break
1928 fi
John Criswell7a73b802003-06-30 21:59:07 +00001929done
1930if test -z "$ac_aux_dir"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001934fi
Reid Spencera773bd52006-08-04 18:18:08 +00001935
1936# These three variables are undocumented and unsupported,
1937# and are intended to be withdrawn in a future Autoconf release.
1938# They can cause serious problems if a builder's source tree is in a directory
1939# whose full name contains unusual characters.
1940ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1943
John Criswell7a73b802003-06-30 21:59:07 +00001944
John Criswell392aaa32003-07-22 19:18:09 +00001945
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00001948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001951 fi
John Criswell93e1c722003-09-15 17:04:06 +00001952fi
1953
John Criswell0157f502010-03-19 21:31:39 +00001954
1955
1956if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1958
1959fi
1960
1961if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1963
1964fi
1965
1966if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1968
1969fi
1970
1971if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1973
1974fi
1975
1976if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1978
1979fi
1980
John Criswell33a911a2003-11-25 20:36:46 +00001981for i in `ls ${srcdir}/projects`
1982do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001983 if test -d ${srcdir}/projects/${i} ; then
1984 case ${i} in
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" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002364 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002365esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002367{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002369
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "$llvm_cv_target_arch" = "Unknown" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002373fi
John Criswell76595452003-07-01 22:07:39 +00002374
Nick Lewycky83fc4472009-09-29 05:48:51 +00002375# Determine the LLVM native architecture for the target
2376case "$llvm_cv_target_arch" in
2377 x86) LLVM_NATIVE_ARCH="X86" ;;
2378 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2379 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2380esac
2381
2382ARCH=$llvm_cv_target_arch
2383
2384
2385ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002390if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392set dummy ${ac_tool_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397else
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2400else
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 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 +00002408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410 break 2
2411 fi
2412done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002413done
Reid Spencera773bd52006-08-04 18:18:08 +00002414IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002420 { echo "$as_me:$LINENO: result: $CC" >&5
2421echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002423 { echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425fi
2426
Reid Spencera773bd52006-08-04 18:18:08 +00002427
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428fi
2429if test -z "$ac_cv_prog_CC"; then
2430 ac_ct_CC=$CC
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437else
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 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 +00002448 ac_cv_prog_ac_ct_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450 break 2
2451 fi
2452done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002453done
Reid Spencera773bd52006-08-04 18:18:08 +00002454IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455
2456fi
2457fi
2458ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002463 { echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465fi
2466
Reid Spencera773bd52006-08-04 18:18:08 +00002467 if test "x$ac_ct_CC" = x; then
2468 CC=""
2469 else
2470 case $cross_compiling:$ac_tool_warned in
2471yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473whose name does not start with the host triplet. If you think this
2474configuration is useful to you, please write to autoconf@gnu.org." >&5
2475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476whose name does not start with the host triplet. If you think this
2477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002478ac_tool_warned=yes ;;
2479esac
2480 CC=$ac_ct_CC
2481 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002482else
2483 CC="$ac_cv_prog_CC"
2484fi
2485
2486if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002487 if test -n "$ac_tool_prefix"; then
2488 # 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 +00002489set dummy ${ac_tool_prefix}cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494else
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 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 +00002505 ac_cv_prog_CC="${ac_tool_prefix}cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507 break 2
2508 fi
2509done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002510done
Reid Spencera773bd52006-08-04 18:18:08 +00002511IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002512
2513fi
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002517 { echo "$as_me:$LINENO: result: $CC" >&5
2518echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002520 { echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002522fi
2523
Reid Spencera773bd52006-08-04 18:18:08 +00002524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526fi
2527if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534else
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2537else
2538 ac_prog_rejected=no
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 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 +00002546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2548 continue
2549 fi
2550 ac_cv_prog_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552 break 2
2553 fi
2554done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002555done
Reid Spencera773bd52006-08-04 18:18:08 +00002556IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557
2558if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2561 shift
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2566 shift
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2568 fi
2569fi
2570fi
2571fi
2572CC=$ac_cv_prog_CC
2573if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002574 { echo "$as_me:$LINENO: result: $CC" >&5
2575echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002576else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002577 { echo "$as_me:$LINENO: result: no" >&5
2578echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579fi
2580
Reid Spencera773bd52006-08-04 18:18:08 +00002581
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582fi
2583if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002585 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002586 do
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002593else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 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 +00002604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 break 2
2607 fi
2608done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002609done
Reid Spencera773bd52006-08-04 18:18:08 +00002610IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002611
2612fi
2613fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614CC=$ac_cv_prog_CC
2615if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002616 { echo "$as_me:$LINENO: result: $CC" >&5
2617echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002618else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002619 { echo "$as_me:$LINENO: result: no" >&5
2620echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002621fi
2622
Reid Spencera773bd52006-08-04 18:18:08 +00002623
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002624 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002625 done
2626fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627if test -z "$CC"; then
2628 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002629 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002630do
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002637else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 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 +00002648 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002650 break 2
2651 fi
2652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002653done
Reid Spencera773bd52006-08-04 18:18:08 +00002654IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002655
2656fi
2657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002662else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002665fi
2666
Reid Spencera773bd52006-08-04 18:18:08 +00002667
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002668 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002669done
John Criswell7a73b802003-06-30 21:59:07 +00002670
Reid Spencera773bd52006-08-04 18:18:08 +00002671 if test "x$ac_ct_CC" = x; then
2672 CC=""
2673 else
2674 case $cross_compiling:$ac_tool_warned in
2675yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002676{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677whose name does not start with the host triplet. If you think this
2678configuration is useful to you, please write to autoconf@gnu.org." >&5
2679echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680whose name does not start with the host triplet. If you think this
2681configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00002682ac_tool_warned=yes ;;
2683esac
2684 CC=$ac_ct_CC
2685 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686fi
2687
John Criswell7a73b802003-06-30 21:59:07 +00002688fi
2689
2690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002691test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692See \`config.log' for more details." >&5
2693echo "$as_me: error: no acceptable C compiler found in \$PATH
2694See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002696
John Criswell7a73b802003-06-30 21:59:07 +00002697# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002698echo "$as_me:$LINENO: checking for C compiler version" >&5
2699ac_compiler=`set X $ac_compile; echo $2`
2700{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00002701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002707 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710{ (ac_try="$ac_compiler -v >&5"
2711case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720{ (ac_try="$ac_compiler -V >&5"
2721case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
John Criswell7a73b802003-06-30 21:59:07 +00002730
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002731cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002737
John Criswell7a73b802003-06-30 21:59:07 +00002738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746ac_clean_files_save=$ac_clean_files
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002747ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002748# Try to create an executable without -o first, disregard a.out.
2749# It will help us diagnose broken compilers, and finding out an intuition
2750# of exeext.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002751{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754#
2755# List of possible output files, starting from the most likely.
2756# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757# only as a last resort. b.out is created by i960 compilers.
2758ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2759#
2760# The IRIX 6 linker writes into existing files which may not be
2761# executable, retaining their permissions. Remove them first so a
2762# subsequent execution test works.
Reid Spencera773bd52006-08-04 18:18:08 +00002763ac_rmfiles=
2764for ac_file in $ac_files
2765do
2766 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2769 esac
2770done
2771rm -f $ac_rmfiles
2772
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002773if { (ac_try="$ac_link_default"
Reid Spencera773bd52006-08-04 18:18:08 +00002774case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002779 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002780 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785# in a Makefile. We should not override ac_cv_exeext if it was cached,
2786# so that the user can short-circuit this test for compilers unknown to
2787# Autoconf.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002788for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002789do
2790 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002791 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 # We found the default executable, but exeext='' is most
2796 # certainly right.
2797 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002798 *.* )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Reid Spencera773bd52006-08-04 18:18:08 +00002800 then :; else
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2802 fi
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2807 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002808 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002809 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002810 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002811 esac
2812done
Reid Spencera773bd52006-08-04 18:18:08 +00002813test "$ac_cv_exeext" = no && ac_cv_exeext=
2814
John Criswell7a73b802003-06-30 21:59:07 +00002815else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002817sed 's/^/| /' conftest.$ac_ext >&5
2818
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002819{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820See \`config.log' for more details." >&5
2821echo "$as_me: error: C compiler cannot create executables
2822See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002824fi
John Criswell7a73b802003-06-30 21:59:07 +00002825
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002826ac_exeext=$ac_cv_exeext
2827{ echo "$as_me:$LINENO: result: $ac_file" >&5
2828echo "${ECHO_T}$ac_file" >&6; }
2829
2830# Check that the compiler produces executables we can run. If not, either
2831# the compiler is broken, or we cross compile.
2832{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835# If not cross compiling, check that we can run a simple program.
2836if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841esac
2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2847 cross_compiling=no
2848 else
2849 if test "$cross_compiling" = maybe; then
2850 cross_compiling=yes
2851 else
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853If you meant to cross compile, use \`--host'.
2854See \`config.log' for more details." >&5
2855echo "$as_me: error: cannot run C compiled programs.
2856If you meant to cross compile, use \`--host'.
2857See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2859 fi
2860 fi
2861fi
2862{ echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6; }
2864
2865rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002866ac_clean_files=$ac_clean_files_save
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002867# Check that the compiler produces executables we can run. If not, either
2868# the compiler is broken, or we cross compile.
2869{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872echo "${ECHO_T}$cross_compiling" >&6; }
2873
2874{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876if { (ac_try="$ac_link"
Reid Spencera773bd52006-08-04 18:18:08 +00002877case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2880esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002882 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002883 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
John Criswell7a73b802003-06-30 21:59:07 +00002886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2888# work properly (i.e., refer to `conftest.exe'), while it won't with
2889# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002890for ac_file in conftest.exe conftest conftest.*; do
2891 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002892 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002895 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002896 * ) break;;
2897 esac
2898done
2899else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901See \`config.log' for more details." >&5
2902echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002905fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002906
2907rm -f conftest$ac_cv_exeext
2908{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002910
2911rm -f conftest.$ac_ext
2912EXEEXT=$ac_cv_exeext
2913ac_exeext=$EXEEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002914{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00002918else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002925
John Criswell7a73b802003-06-30 21:59:07 +00002926int
2927main ()
2928{
2929
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934rm -f conftest.o conftest.obj
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002935if { (ac_try="$ac_compile"
Reid Spencera773bd52006-08-04 18:18:08 +00002936case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00002941 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002942 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002947 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950 break;;
2951 esac
2952done
2953else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002955sed 's/^/| /' conftest.$ac_ext >&5
2956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958See \`config.log' for more details." >&5
2959echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00002962fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002963
John Criswell7a73b802003-06-30 21:59:07 +00002964rm -f conftest.$ac_cv_objext conftest.$ac_ext
2965fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002966{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2967echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002968OBJEXT=$ac_cv_objext
2969ac_objext=$OBJEXT
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002970{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2972if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002980/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002981
John Criswell7a73b802003-06-30 21:59:07 +00002982int
2983main ()
2984{
2985#ifndef __GNUC__
2986 choke me
2987#endif
2988
2989 ;
2990 return 0;
2991}
2992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00002993rm -f conftest.$ac_objext
2994if { (ac_try="$ac_compile"
2995case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998esac
2999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3001 ac_status=$?
3002 grep -v '^ *+' conftest.er1 >conftest.err
3003 rm -f conftest.er1
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021esac
3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003027 ac_compiler_gnu=yes
3028else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003029 echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003034
Reid Spencera773bd52006-08-04 18:18:08 +00003035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003036ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003037
3038fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003039{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_test_CFLAGS=${CFLAGS+set}
3043ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003044{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003048else
Reid Spencera773bd52006-08-04 18:18:08 +00003049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3051 ac_cv_prog_cc_g=no
3052 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003053 cat >conftest.$ac_ext <<_ACEOF
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003059
John Criswell7a73b802003-06-30 21:59:07 +00003060int
3061main ()
3062{
3063
3064 ;
3065 return 0;
3066}
3067_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003068rm -f conftest.$ac_objext
3069if { (ac_try="$ac_compile"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096esac
3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003102 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003103else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003104 echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 CFLAGS=""
3108 cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h. */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003113/* end confdefs.h. */
3114
3115int
3116main ()
3117{
3118
3119 ;
3120 return 0;
3121}
3122_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003123rm -f conftest.$ac_objext
3124if { (ac_try="$ac_compile"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3144 ac_status=$?
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
3152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 :
Torok Edwin871384f2010-01-26 08:50:50 +00003158else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003159 echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00003163 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3187 ac_status=$?
3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207esac
3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3210 ac_status=$?
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003213 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003214else
3215 echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218
John Criswell7a73b802003-06-30 21:59:07 +00003219fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003220
Reid Spencera773bd52006-08-04 18:18:08 +00003221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003222fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003223
Reid Spencera773bd52006-08-04 18:18:08 +00003224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003226
Reid Spencera773bd52006-08-04 18:18:08 +00003227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3229fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003230{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003232if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3236 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003237 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003239 fi
3240else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003241 if test "$GCC" = yes; then
3242 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003247{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3249if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251else
Reid Spencera773bd52006-08-04 18:18:08 +00003252 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003254cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259/* end confdefs.h. */
3260#include <stdarg.h>
3261#include <stdio.h>
3262#include <sys/types.h>
3263#include <sys/stat.h>
3264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265struct buf { int x; };
3266FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267static char *e (p, i)
3268 char **p;
3269 int i;
3270{
3271 return p[i];
3272}
3273static char *f (char * (*g) (char **, int), char **p, ...)
3274{
3275 char *s;
3276 va_list v;
3277 va_start (v,p);
3278 s = g (p, va_arg (v,int));
3279 va_end (v);
3280 return s;
3281}
3282
3283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003286 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003289 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
Reid Spencera773bd52006-08-04 18:18:08 +00003292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3294#define FOO(x) 'x'
3295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297int test (int i, double x);
3298struct s1 {int (*f) (int a);};
3299struct s2 {int (*f) (double a);};
3300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301int argc;
3302char **argv;
3303int
3304main ()
3305{
3306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 ;
3308 return 0;
3309}
3310_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313do
3314 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003315 rm -f conftest.$ac_objext
3316if { (ac_try="$ac_compile"
3317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
3321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003349 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003350else
3351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003356
Reid Spencera773bd52006-08-04 18:18:08 +00003357rm -f core conftest.err conftest.$ac_objext
3358 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359done
Reid Spencera773bd52006-08-04 18:18:08 +00003360rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361CC=$ac_save_CC
3362
3363fi
Reid Spencera773bd52006-08-04 18:18:08 +00003364# AC_CACHE_VAL
3365case "x$ac_cv_prog_cc_c89" in
3366 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003367 { echo "$as_me:$LINENO: result: none needed" >&5
3368echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00003369 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003370 { echo "$as_me:$LINENO: result: unsupported" >&5
3371echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003373 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003374 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3375echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376esac
3377
John Criswell0c38eaf2003-09-10 15:17:25 +00003378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379ac_ext=c
3380ac_cpp='$CPP $CPPFLAGS'
3381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383ac_compiler_gnu=$ac_cv_c_compiler_gnu
3384
3385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003391{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393# On Suns, sometimes $CPP names a directory.
3394if test -n "$CPP" && test -d "$CPP"; then
3395 CPP=
3396fi
3397if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400else
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3403 do
3404 ac_preproc_ok=false
3405for ac_c_preproc_warn_flag in '' yes
3406do
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418/* end confdefs.h. */
3419#ifdef __STDC__
3420# include <limits.h>
3421#else
3422# include <assert.h>
3423#endif
3424 Syntax error
3425_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003426if { (ac_try="$ac_cpp conftest.$ac_ext"
3427case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430esac
3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3442 else
3443 ac_cpp_err=
3444 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003445else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003446 ac_cpp_err=yes
3447fi
3448if test -z "$ac_cpp_err"; then
3449 :
3450else
3451 echo "$as_me: failed program was:" >&5
3452sed 's/^/| /' conftest.$ac_ext >&5
3453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003454 # Broken: fails on valid input.
3455continue
3456fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003457
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458rm -f conftest.err conftest.$ac_ext
3459
Reid Spencera773bd52006-08-04 18:18:08 +00003460 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003462 cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467/* end confdefs.h. */
3468#include <ac_nonexistent.h>
3469_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003470if { (ac_try="$ac_cpp conftest.$ac_ext"
3471case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474esac
3475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003493 # Broken: success on invalid input.
3494continue
3495else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504rm -f conftest.err conftest.$ac_ext
3505
3506done
3507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003509if $ac_preproc_ok; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510 break
3511fi
3512
3513 done
3514 ac_cv_prog_CPP=$CPP
3515
3516fi
3517 CPP=$ac_cv_prog_CPP
3518else
3519 ac_cv_prog_CPP=$CPP
3520fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003521{ echo "$as_me:$LINENO: result: $CPP" >&5
3522echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523ac_preproc_ok=false
3524for ac_c_preproc_warn_flag in '' yes
3525do
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003532 cat >conftest.$ac_ext <<_ACEOF
3533/* confdefs.h. */
3534_ACEOF
3535cat confdefs.h >>conftest.$ac_ext
3536cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537/* end confdefs.h. */
3538#ifdef __STDC__
3539# include <limits.h>
3540#else
3541# include <assert.h>
3542#endif
3543 Syntax error
3544_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003545if { (ac_try="$ac_cpp conftest.$ac_ext"
3546case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549esac
3550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3561 else
3562 ac_cpp_err=
3563 fi
Torok Edwin871384f2010-01-26 08:50:50 +00003564else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003565 ac_cpp_err=yes
3566fi
3567if test -z "$ac_cpp_err"; then
3568 :
3569else
3570 echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003573 # Broken: fails on valid input.
3574continue
3575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003576
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577rm -f conftest.err conftest.$ac_ext
3578
Reid Spencera773bd52006-08-04 18:18:08 +00003579 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003581 cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586/* end confdefs.h. */
3587#include <ac_nonexistent.h>
3588_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003589if { (ac_try="$ac_cpp conftest.$ac_ext"
3590case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593esac
3594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3605 else
3606 ac_cpp_err=
3607 fi
3608else
3609 ac_cpp_err=yes
3610fi
3611if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003612 # Broken: success on invalid input.
3613continue
3614else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003615 echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Passes both tests.
3619ac_preproc_ok=:
3620break
3621fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003622
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003623rm -f conftest.err conftest.$ac_ext
3624
3625done
3626# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003628if $ac_preproc_ok; then
3629 :
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003631 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3632See \`config.log' for more details." >&5
3633echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636fi
3637
John Criswell7a73b802003-06-30 21:59:07 +00003638ac_ext=c
3639ac_cpp='$CPP $CPPFLAGS'
3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003645{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003649else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003650 # Extract the first word of "grep ggrep" to use in msg output
3651if test -z "$GREP"; then
3652set dummy grep ggrep; ac_prog_name=$2
3653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
Reid Spencera773bd52006-08-04 18:18:08 +00003656 ac_path_GREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003657# Loop through the user's path and test for each of PROGNAME-LIST
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003663 for ac_prog in grep ggrep; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003668 # Check for GNU $ac_path_GREP
3669case `"$ac_path_GREP" --version 2>&1` in
3670*GNU*)
3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3672*)
3673 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003675 while :
3676 do
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003680 echo 'GREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003683 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP="$ac_path_GREP"
3687 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3691 done
3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3693esac
3694
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003695
3696 $ac_path_GREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003697 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003698done
3699
3700done
Reid Spencera773bd52006-08-04 18:18:08 +00003701IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003702
3703
3704fi
3705
3706GREP="$ac_cv_path_GREP"
3707if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3711fi
3712
Reid Spencera773bd52006-08-04 18:18:08 +00003713else
3714 ac_cv_path_GREP=$GREP
3715fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003716
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003717
Reid Spencera773bd52006-08-04 18:18:08 +00003718fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003719{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003721 GREP="$ac_cv_path_GREP"
3722
3723
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003724{ echo "$as_me:$LINENO: checking for egrep" >&5
3725echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00003728else
3729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3730 then ac_cv_path_EGREP="$GREP -E"
3731 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003732 # Extract the first word of "egrep" to use in msg output
3733if test -z "$EGREP"; then
3734set dummy egrep; ac_prog_name=$2
3735if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
Reid Spencera773bd52006-08-04 18:18:08 +00003738 ac_path_EGREP_found=false
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003739# Loop through the user's path and test for each of PROGNAME-LIST
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3742do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003745 for ac_prog in egrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
Reid Spencera773bd52006-08-04 18:18:08 +00003750 # Check for GNU $ac_path_EGREP
3751case `"$ac_path_EGREP" --version 2>&1` in
3752*GNU*)
3753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3754*)
3755 ac_count=0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
Reid Spencera773bd52006-08-04 18:18:08 +00003757 while :
3758 do
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003762 echo 'EGREP' >> "conftest.nl"
Reid Spencera773bd52006-08-04 18:18:08 +00003763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003765 ac_count=`expr $ac_count + 1`
Reid Spencera773bd52006-08-04 18:18:08 +00003766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP="$ac_path_EGREP"
3769 ac_path_EGREP_max=$ac_count
3770 fi
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3773 done
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3775esac
3776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003777
3778 $ac_path_EGREP_found && break 3
Reid Spencera773bd52006-08-04 18:18:08 +00003779 done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003780done
3781
3782done
Reid Spencera773bd52006-08-04 18:18:08 +00003783IFS=$as_save_IFS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003784
3785
3786fi
3787
3788EGREP="$ac_cv_path_EGREP"
3789if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3793fi
3794
Reid Spencera773bd52006-08-04 18:18:08 +00003795else
3796 ac_cv_path_EGREP=$EGREP
3797fi
3798
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003799
Reid Spencera773bd52006-08-04 18:18:08 +00003800 fi
3801fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003802{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00003804 EGREP="$ac_cv_path_EGREP"
3805
3806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003807{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003811else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003812 cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h. */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003818#include <stdlib.h>
3819#include <stdarg.h>
3820#include <string.h>
3821#include <float.h>
3822
John Criswell0c38eaf2003-09-10 15:17:25 +00003823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
John Criswell7a73b802003-06-30 21:59:07 +00003830_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003831rm -f conftest.$ac_objext
3832if { (ac_try="$ac_compile"
3833case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836esac
3837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3859esac
3860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003865 ac_cv_header_stdc=yes
3866else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003867 echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003871fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003872
Reid Spencera773bd52006-08-04 18:18:08 +00003873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003874
3875if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003877 cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003882/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003883#include <string.h>
3884
3885_ACEOF
3886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003887 $EGREP "memchr" >/dev/null 2>&1; then
3888 :
John Criswell7a73b802003-06-30 21:59:07 +00003889else
3890 ac_cv_header_stdc=no
3891fi
3892rm -f conftest*
3893
3894fi
3895
3896if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003898 cat >conftest.$ac_ext <<_ACEOF
3899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003904#include <stdlib.h>
3905
3906_ACEOF
3907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003908 $EGREP "free" >/dev/null 2>&1; then
3909 :
John Criswell7a73b802003-06-30 21:59:07 +00003910else
3911 ac_cv_header_stdc=no
3912fi
3913rm -f conftest*
3914
3915fi
3916
3917if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003919 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00003920 :
3921else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003922 cat >conftest.$ac_ext <<_ACEOF
3923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003929#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003930#if ((' ' & 0x0FF) == 0x020)
3931# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3933#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003934# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003938# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3939#endif
3940
3941#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3942int
3943main ()
3944{
3945 int i;
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003948 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003949 return 2;
3950 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003951}
3952_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003953rm -f conftest$ac_exeext
3954if { (ac_try="$ac_link"
3955case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3973 :
John Criswell7a73b802003-06-30 21:59:07 +00003974else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003975 echo "$as_me: program exited with status $ac_status" >&5
3976echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979( exit $ac_status )
3980ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003981fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003982rm -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 +00003983fi
3984
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003985
John Criswell7a73b802003-06-30 21:59:07 +00003986fi
3987fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003988{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003990if test $ac_cv_header_stdc = yes; then
3991
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003992cat >>confdefs.h <<\_ACEOF
3993#define STDC_HEADERS 1
3994_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00003995
3996fi
3997
Reid Spencera773bd52006-08-04 18:18:08 +00003998# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00003999
4000
4001
4002
4003
4004
4005
4006
4007
Reid Spencera773bd52006-08-04 18:18:08 +00004008for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004010do
4011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
4023$ac_includes_default
4024
4025#include <$ac_header>
4026_ACEOF
4027rm -f conftest.$ac_objext
4028if { (ac_try="$ac_compile"
4029case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4032esac
4033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4035 ac_status=$?
4036 grep -v '^ *+' conftest.er1 >conftest.err
4037 rm -f conftest.er1
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4058 ac_status=$?
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4062else
4063 echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 eval "$as_ac_Header=no"
4067fi
4068
4069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070fi
4071ac_res=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073echo "${ECHO_T}$ac_res" >&6; }
4074if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +00004075 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencera773bd52006-08-04 18:18:08 +00004077_ACEOF
4078
4079fi
4080
4081done
4082
4083
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004084{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004089 # See if sys/param.h defines the BYTE_ORDER macro.
4090cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +00004092_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004095/* end confdefs.h. */
4096#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004097#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004098
4099int
4100main ()
4101{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004102#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4103 bogus endian macros
4104#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004105
4106 ;
4107 return 0;
4108}
4109_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004110rm -f conftest.$ac_objext
4111if { (ac_try="$ac_compile"
4112case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115esac
4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4131 ac_status=$?
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004144 # It does; now see whether it defined to BIG_ENDIAN or not.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004145cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h. */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004150/* end confdefs.h. */
4151#include <sys/types.h>
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004152#include <sys/param.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004153
4154int
4155main ()
4156{
4157#if BYTE_ORDER != BIG_ENDIAN
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004158 not big endian
4159#endif
Reid Spencera773bd52006-08-04 18:18:08 +00004160
4161 ;
4162 return 0;
4163}
4164_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004165rm -f conftest.$ac_objext
4166if { (ac_try="$ac_compile"
4167case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4173 ac_status=$?
4174 grep -v '^ *+' conftest.er1 >conftest.err
4175 rm -f conftest.er1
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004199 ac_cv_c_bigendian=yes
4200else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004201 echo "$as_me: failed program was:" >&5
4202sed 's/^/| /' conftest.$ac_ext >&5
Torok Edwin871384f2010-01-26 08:50:50 +00004203
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004204 ac_cv_c_bigendian=no
4205fi
4206
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208else
4209 echo "$as_me: failed program was:" >&5
4210sed 's/^/| /' conftest.$ac_ext >&5
4211
4212 # It does not; compile a test program.
4213if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian=unknown
4216 cat >conftest.$ac_ext <<_ACEOF
4217/* confdefs.h. */
4218_ACEOF
4219cat confdefs.h >>conftest.$ac_ext
4220cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */
4222short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
Reid Spencera773bd52006-08-04 18:18:08 +00004228int
4229main ()
4230{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004231 _ascii (); _ebcdic ();
Reid Spencera773bd52006-08-04 18:18:08 +00004232 ;
4233 return 0;
4234}
4235_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004236rm -f conftest.$ac_objext
4237if { (ac_try="$ac_compile"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4267 ac_status=$?
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
Reid Spencera773bd52006-08-04 18:18:08 +00004271 ac_cv_c_bigendian=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004272fi
4273if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4276 else
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4279 fi
4280fi
Reid Spencera773bd52006-08-04 18:18:08 +00004281else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004282 echo "$as_me: failed program was:" >&5
4283sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004285
Torok Edwin871384f2010-01-26 08:50:50 +00004286fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004287
Reid Spencera773bd52006-08-04 18:18:08 +00004288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004290 cat >conftest.$ac_ext <<_ACEOF
4291/* confdefs.h. */
4292_ACEOF
4293cat confdefs.h >>conftest.$ac_ext
4294cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00004295/* end confdefs.h. */
4296$ac_includes_default
4297int
4298main ()
4299{
4300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004301 /* Are we little or big endian? From Harbison&Steele. */
4302 union
4303 {
4304 long int l;
4305 char c[sizeof (long int)];
4306 } u;
4307 u.l = 1;
4308 return u.c[sizeof (long int) - 1] == 1;
Reid Spencera773bd52006-08-04 18:18:08 +00004309
4310 ;
4311 return 0;
4312}
4313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004314rm -f conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
4329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004334 ac_cv_c_bigendian=no
4335else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004336 echo "$as_me: program exited with status $ac_status" >&5
4337echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340( exit $ac_status )
4341ac_cv_c_bigendian=yes
Reid Spencera773bd52006-08-04 18:18:08 +00004342fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004343rm -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 +00004344fi
4345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004346
Reid Spencera773bd52006-08-04 18:18:08 +00004347fi
4348
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350fi
4351{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353case $ac_cv_c_bigendian in
4354 yes)
4355 ENDIAN=big
4356 ;;
4357 no)
4358 ENDIAN=little
4359 ;;
4360 *)
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363echo "$as_me: error: unknown endianness
4364presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366esac
Reid Spencera773bd52006-08-04 18:18:08 +00004367
4368
4369if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4371
4372
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004373{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004377else
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4380else
4381 ac_build_prefix=${build_alias}-
4382
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384set dummy ${ac_build_prefix}gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004385{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4386echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004389else
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4392else
4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394for as_dir in $PATH
4395do
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 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 +00004400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004402 break 2
4403 fi
4404done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004405done
Reid Spencera773bd52006-08-04 18:18:08 +00004406IFS=$as_save_IFS
4407
4408fi
4409fi
4410BUILD_CC=$ac_cv_prog_BUILD_CC
4411if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004414else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004415 { echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004417fi
4418
4419
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422set dummy gcc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004427else
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4430else
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004438 ac_cv_prog_BUILD_CC="gcc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004440 break 2
4441 fi
4442done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004443done
Reid Spencera773bd52006-08-04 18:18:08 +00004444IFS=$as_save_IFS
4445
4446fi
4447fi
4448BUILD_CC=$ac_cv_prog_BUILD_CC
4449if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004452else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004453 { echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004455fi
4456
4457
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460set dummy cc; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00004465else
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4468else
4469 ac_prog_rejected=no
4470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471for as_dir in $PATH
4472do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 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 +00004477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_BUILD_CC="cc"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004483 break 2
4484 fi
4485done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004486done
Reid Spencera773bd52006-08-04 18:18:08 +00004487IFS=$as_save_IFS
4488
4489if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4499 fi
4500fi
4501fi
4502fi
4503BUILD_CC=$ac_cv_prog_BUILD_CC
4504if test -n "$BUILD_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506echo "${ECHO_T}$BUILD_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004507else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004508 { echo "$as_me:$LINENO: result: no" >&5
4509echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004510fi
4511
4512
4513 fi
4514 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 rm -f conftest*
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4521 ac_cv_build_exeext=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
Reid Spencera773bd52006-08-04 18:18:08 +00004523 (eval $ac_build_link) 2>&5
4524 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004527 for file in conftest.*; do
4528 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004529 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004530 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4531 esac
4532 done
4533 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00004537 fi
4538 rm -f conftest*
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4540fi
4541fi
4542
4543BUILD_EXEEXT=""
4544test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004545{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00004547ac_build_exeext=$BUILD_EXEEXT
4548
Jim Grosbach673612e2008-10-02 22:56:44 +00004549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551set dummy ${ac_build_prefix}g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004556else
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 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 +00004567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004569 break 2
4570 fi
4571done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004572done
Jim Grosbach673612e2008-10-02 22:56:44 +00004573IFS=$as_save_IFS
4574
4575fi
4576fi
4577BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004581else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004582 { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004584fi
4585
4586
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589set dummy g++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004594else
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004605 ac_cv_prog_BUILD_CXX="g++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004607 break 2
4608 fi
4609done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004610done
Jim Grosbach673612e2008-10-02 22:56:44 +00004611IFS=$as_save_IFS
4612
4613fi
4614fi
4615BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004619else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004620 { echo "$as_me:$LINENO: result: no" >&5
4621echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004622fi
4623
4624
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627set dummy c++; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
Jim Grosbach673612e2008-10-02 22:56:44 +00004632else
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4635else
4636 ac_prog_rejected=no
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 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 +00004644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4646 continue
4647 fi
4648 ac_cv_prog_BUILD_CXX="c++"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Jim Grosbach673612e2008-10-02 22:56:44 +00004650 break 2
4651 fi
4652done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004653done
Jim Grosbach673612e2008-10-02 22:56:44 +00004654IFS=$as_save_IFS
4655
4656if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4659 shift
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4664 shift
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4666 fi
4667fi
4668fi
4669fi
4670BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671if test -n "$BUILD_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673echo "${ECHO_T}$BUILD_CXX" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004675 { echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6; }
Jim Grosbach673612e2008-10-02 22:56:44 +00004677fi
4678
4679
4680 fi
4681 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004682else
4683 LLVM_CROSS_COMPILING=0
4684
4685fi
4686
Dan Gohman56fb5f92010-08-04 16:25:01 +00004687if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004688 cvsbuild="yes"
4689 optimize="no"
4690 CVSBUILD=CVSBUILD=1
4691
4692else
4693 cvsbuild="no"
4694 optimize="yes"
4695fi
4696
4697
4698# Check whether --enable-optimized was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004699if test "${enable_optimized+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004700 enableval=$enable_optimized;
4701else
4702 enableval=$optimize
4703fi
4704
4705if test ${enableval} = "no" ; then
4706 ENABLE_OPTIMIZED=
4707
4708else
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4710
4711fi
4712
David Greene2a5a12c2009-04-17 14:50:39 +00004713# Check whether --enable-profiling was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004714if test "${enable_profiling+set}" = set; then
David Greene2a5a12c2009-04-17 14:50:39 +00004715 enableval=$enable_profiling;
4716else
4717 enableval="no"
4718fi
4719
4720if test ${enableval} = "no" ; then
4721 ENABLE_PROFILING=
4722
4723else
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4725
4726fi
4727
Reid Spencera773bd52006-08-04 18:18:08 +00004728# Check whether --enable-assertions was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004729if test "${enable_assertions+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004730 enableval=$enable_assertions;
4731else
4732 enableval="yes"
4733fi
4734
4735if test ${enableval} = "yes" ; then
4736 DISABLE_ASSERTIONS=
4737
4738else
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4740
4741fi
4742
David Greenea696d242007-06-28 19:36:08 +00004743# Check whether --enable-expensive-checks was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004744if test "${enable_expensive_checks+set}" = set; then
David Greenea696d242007-06-28 19:36:08 +00004745 enableval=$enable_expensive_checks;
4746else
4747 enableval="no"
4748fi
4749
4750if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4752
4753 EXPENSIVE_CHECKS=yes
4754
4755else
4756 ENABLE_EXPENSIVE_CHECKS=
4757
4758 EXPENSIVE_CHECKS=no
4759
4760fi
4761
Reid Spencer8b2e1412006-11-17 03:32:33 +00004762# Check whether --enable-debug-runtime was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004763if test "${enable_debug_runtime+set}" = set; then
Reid Spencer8b2e1412006-11-17 03:32:33 +00004764 enableval=$enable_debug_runtime;
4765else
4766 enableval=no
4767fi
4768
4769if test ${enableval} = "no" ; then
4770 DEBUG_RUNTIME=
4771
4772else
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4774
4775fi
4776
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004777# Check whether --enable-debug-symbols was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004778if test "${enable_debug_symbols+set}" = set; then
Jeffrey Yasskin7fd82e52009-09-27 17:47:29 +00004779 enableval=$enable_debug_symbols;
4780else
4781 enableval=no
4782fi
4783
4784if test ${enableval} = "no" ; then
4785 DEBUG_SYMBOLS=
4786
4787else
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4789
4790fi
4791
Reid Spencera773bd52006-08-04 18:18:08 +00004792# Check whether --enable-jit was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004793if test "${enable_jit+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004794 enableval=$enable_jit;
4795else
4796 enableval=default
4797fi
4798
4799if test ${enableval} = "no"
4800then
4801 JIT=
4802
4803else
4804 case "$llvm_cv_target_arch" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004805 x86) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004806 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004807 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004809 PowerPC) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004810 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004811 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004812 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004813 Alpha) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004814 ;;
Eric Christopher030e5a02009-09-14 16:38:49 +00004815 ARM) TARGET_HAS_JIT=1
Reid Spencer9b5b1822007-01-21 06:32:59 +00004816 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004817 Mips) TARGET_HAS_JIT=0
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004818 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004819 PIC16) TARGET_HAS_JIT=0
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004820 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004821 XCore) TARGET_HAS_JIT=0
Richard Osborneb25baef2008-11-07 10:59:00 +00004822 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004823 MSP430) TARGET_HAS_JIT=0
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004824 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004825 SystemZ) TARGET_HAS_JIT=0
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004826 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004827 Blackfin) TARGET_HAS_JIT=0
4828 ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004829 MBlaze) TARGET_HAS_JIT=0
4830 ;;
Shantonu Sen7e836972009-08-11 13:39:52 +00004831 *) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004832 ;;
4833 esac
4834fi
4835
4836# Check whether --enable-doxygen was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004837if test "${enable_doxygen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004838 enableval=$enable_doxygen;
4839else
4840 enableval=default
4841fi
4842
4843case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4845 ;;
4846 no) ENABLE_DOXYGEN=0
4847 ;;
4848 default) ENABLE_DOXYGEN=0
4849 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004853esac
4854
4855# Check whether --enable-threads was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004856if test "${enable_threads+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004857 enableval=$enable_threads;
4858else
Reid Spencer65c5d752006-11-05 17:08:18 +00004859 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004860fi
4861
4862case "$enableval" in
4863 yes) ENABLE_THREADS=1
4864 ;;
4865 no) ENABLE_THREADS=0
4866 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004867 default) ENABLE_THREADS=1
4868 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004872esac
4873
Owen Andersona8603702009-05-19 22:18:56 +00004874cat >>confdefs.h <<_ACEOF
4875#define ENABLE_THREADS $ENABLE_THREADS
4876_ACEOF
4877
4878
Reid Spencer89b0d992006-12-16 22:07:52 +00004879# Check whether --enable-pic was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004880if test "${enable_pic+set}" = set; then
Reid Spencer89b0d992006-12-16 22:07:52 +00004881 enableval=$enable_pic;
4882else
4883 enableval=default
4884fi
4885
4886case "$enableval" in
4887 yes) ENABLE_PIC=1
4888 ;;
4889 no) ENABLE_PIC=0
4890 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004891 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004892 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
Reid Spencer89b0d992006-12-16 22:07:52 +00004896esac
4897
4898cat >>confdefs.h <<_ACEOF
4899#define ENABLE_PIC $ENABLE_PIC
4900_ACEOF
4901
4902
Jeffrey Yasskinc9017192010-02-25 06:34:33 +00004903# Check whether --enable-shared was given.
4904if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4906else
4907 enableval=default
4908fi
4909
4910case "$enableval" in
4911 yes) ENABLE_SHARED=1
4912 ;;
4913 no) ENABLE_SHARED=0
4914 ;;
4915 default) ENABLE_SHARED=0
4916 ;;
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920esac
4921
Daniel Dunbardd464df2010-05-10 20:11:56 +00004922# Check whether --enable-timestamps was given.
4923if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4925else
4926 enableval=default
4927fi
4928
4929case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4931 ;;
4932 no) ENABLE_TIMESTAMPS=0
4933 ;;
4934 default) ENABLE_TIMESTAMPS=1
4935 ;;
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939esac
4940
4941cat >>confdefs.h <<_ACEOF
4942#define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4943_ACEOF
4944
4945
Reid Spencera773bd52006-08-04 18:18:08 +00004946TARGETS_TO_BUILD=""
4947# Check whether --enable-targets was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004948if test "${enable_targets+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00004949 enableval=$enable_targets;
4950else
4951 enableval=all
4952fi
4953
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004954if test "$enableval" = host-only ; then
4955 enableval=host
4956fi
Reid Spencera773bd52006-08-04 18:18:08 +00004957case "$enableval" in
Wesley Pecka70f28c2010-02-23 19:15:24 +00004958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004959 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4960 case "$a_target" in
Shantonu Sen7e836972009-08-11 13:39:52 +00004961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4976 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004977 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004978 host) case "$llvm_cv_target_arch" in
4979 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Wesley Pecka70f28c2010-02-23 19:15:24 +00004986 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004987 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4989 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4990 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov6ca835d2010-01-05 20:45:43 +00004991 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004992 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskine04701a2009-09-23 17:05:42 +00004996 esac ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00004997 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005000 esac
5001 done
5002 ;;
5003esac
Reid Spencera773bd52006-08-04 18:18:08 +00005004TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5005
5006
Douglas Gregor0711c302009-06-17 00:43:20 +00005007# Determine whether we are building LLVM support for the native architecture.
5008# If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009for a_target in $TARGETS_TO_BUILD; do
5010 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00005011 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00005012
5013cat >>confdefs.h <<_ACEOF
Daniel Dunbarb1247c32010-08-03 14:26:17 +00005014#define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5015_ACEOF
5016
5017
5018cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00005019#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00005020_ACEOF
5021
5022 fi
5023done
5024
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005025# Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5026# target feature def files.
Douglas Gregor1555a232009-06-16 20:12:29 +00005027LLVM_ENUM_TARGETS=""
5028LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005029LLVM_ENUM_ASM_PARSERS=""
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005030LLVM_ENUM_DISASSEMBLERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005031for target_to_build in $TARGETS_TO_BUILD; do
5032 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5033 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5034 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5035 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005036 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5037 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5038 fi
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005039 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5040 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5041 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005042done
5043
5044
5045
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005046
Daniel Dunbar4fc760e2009-11-25 04:37:28 +00005047
Reid Spencer65c5d752006-11-05 17:08:18 +00005048# Check whether --enable-cbe-printf-a was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005049if test "${enable_cbe_printf_a+set}" = set; then
Reid Spencer65c5d752006-11-05 17:08:18 +00005050 enableval=$enable_cbe_printf_a;
5051else
5052 enableval=default
5053fi
5054
5055case "$enableval" in
5056 yes) ENABLE_CBE_PRINTF_A=1
5057 ;;
5058 no) ENABLE_CBE_PRINTF_A=0
5059 ;;
5060 default) ENABLE_CBE_PRINTF_A=1
5061 ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005062 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5063echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5064 { (exit 1); exit 1; }; } ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00005065esac
5066
5067cat >>confdefs.h <<_ACEOF
5068#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5069_ACEOF
5070
5071
Reid Spencera773bd52006-08-04 18:18:08 +00005072
5073# Check whether --with-llvmgccdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005074if test "${with_llvmgccdir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005075 withval=$with_llvmgccdir;
5076else
5077 withval=default
5078fi
5079
5080case "$withval" in
5081 default) WITH_LLVMGCCDIR=default ;;
5082 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005083 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5084echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5085 { (exit 1); exit 1; }; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005086esac
5087
5088
Devang Patel5d28b882007-12-04 22:54:47 +00005089# Check whether --with-llvmgcc was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005090if test "${with_llvmgcc+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005091 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5092 WITH_LLVMGCCDIR=""
5093fi
5094
5095
5096
5097# Check whether --with-llvmgxx was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005098if test "${with_llvmgxx+set}" = set; then
Devang Patel5d28b882007-12-04 22:54:47 +00005099 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5100 WITH_LLVMGCCDIR=""
5101fi
5102
Douglas Gregor01746742009-05-11 18:05:52 +00005103
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005104if test -n "$LLVMGCC"; then
5105 LLVMGCCCOMMAND="$LLVMGCC"
5106fi
5107
5108if test -n "$LLVMGXX"; then
5109 LLVMGXXCOMMAND="$LLVMGXX"
5110fi
Devang Patel5d28b882007-12-04 22:54:47 +00005111
5112if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005113 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5114echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5115 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005116fi
5117
5118if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005119 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5120echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5121 { (exit 1); exit 1; }; };
Devang Patel5d28b882007-12-04 22:54:47 +00005122fi
5123
5124
Daniel Dunbar98515672010-02-23 10:00:49 +00005125# Check whether --with-clang was given.
5126if test "${with_clang+set}" = set; then
5127 withval=$with_clang;
5128else
5129 with_clang=default
5130fi
5131
5132
5133
5134# Check whether --with-built-clang was given.
5135if test "${with_built_clang+set}" = set; then
5136 withval=$with_built_clang;
5137else
5138 with_built_clang=check
5139fi
5140
5141
5142{ echo "$as_me:$LINENO: checking clang compiler" >&5
5143echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5144WITH_CLANGPATH=""
5145WITH_BUILT_CLANG=0
5146if test "$with_clang" != "default"; then
5147 WITH_CLANGPATH="$with_clang"
5148 if ! test -x "$WITH_CLANGPATH"; then
5149 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5150echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5151 { (exit 1); exit 1; }; }
5152 fi
5153elif test "$with_built_clang" = "yes"; then
5154 WITH_BUILT_CLANG=1
5155elif test "$with_built_clang" = "no"; then
5156 WITH_BUILT_CLANG=0
5157else
5158 if test "$with_built_clang" != "check"; then
5159 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5160echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5161 { (exit 1); exit 1; }; }
5162 fi
5163
5164 if test -f ${srcdir}/tools/clang/README.txt; then
5165 WITH_BUILT_CLANG=1
5166 fi
5167fi
5168
5169if ! test -z "$WITH_CLANGPATH"; then
5170 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5171echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5172 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5173elif test "$WITH_BUILT_CLANG" = "1"; then
5174 { echo "$as_me:$LINENO: result: built" >&5
5175echo "${ECHO_T}built" >&6; }
5176else
5177 { echo "$as_me:$LINENO: result: none" >&5
5178echo "${ECHO_T}none" >&6; }
5179fi
5180CLANGPATH=$WITH_CLANGPATH
5181
5182CLANGXXPATH=$WITH_CLANGXXPATH
5183
5184ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5185
5186
5187
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005188# Check whether --with-optimize-option was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005189if test "${with_optimize_option+set}" = set; then
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005190 withval=$with_optimize_option;
5191else
5192 withval=default
5193fi
5194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005195{ echo "$as_me:$LINENO: checking optimization flags" >&5
5196echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005197case "$withval" in
5198 default)
5199 case "$llvm_cv_os_type" in
Daniel Dunbarf9138782010-04-30 17:12:26 +00005200 FreeBSD) optimize_option=-O2 ;;
Daniel Dunbar195d2de2010-04-10 18:56:24 +00005201 MingW) optimize_option=-O2 ;;
5202 *) optimize_option=-O3 ;;
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005203 esac ;;
5204 *) optimize_option="$withval" ;;
5205esac
5206OPTIMIZE_OPTION=$optimize_option
5207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005208{ echo "$as_me:$LINENO: result: $optimize_option" >&5
5209echo "${ECHO_T}$optimize_option" >&6; }
Daniel Dunbar1fce9482009-11-04 04:32:50 +00005210
5211
Reid Spencera773bd52006-08-04 18:18:08 +00005212# Check whether --with-extra-options was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005213if test "${with_extra_options+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00005214 withval=$with_extra_options;
5215else
5216 withval=default
5217fi
5218
5219case "$withval" in
5220 default) EXTRA_OPTIONS= ;;
5221 *) EXTRA_OPTIONS=$withval ;;
5222esac
5223EXTRA_OPTIONS=$EXTRA_OPTIONS
5224
5225
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005226# Check whether --enable-bindings was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005227if test "${enable_bindings+set}" = set; then
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005228 enableval=$enable_bindings;
5229else
5230 enableval=default
5231fi
5232
5233BINDINGS_TO_BUILD=""
5234case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005235 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005236 all ) BINDINGS_TO_BUILD="ocaml" ;;
5237 none | no) BINDINGS_TO_BUILD="" ;;
5238 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5239 case "$a_binding" in
5240 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005241 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5242echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5243 { (exit 1); exit 1; }; } ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005244 esac
5245 done
5246 ;;
5247esac
5248
Reid Spencera773bd52006-08-04 18:18:08 +00005249
Gordon Henriksenf0915682007-10-02 16:42:22 +00005250# Check whether --with-ocaml-libdir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005251if test "${with_ocaml_libdir+set}" = set; then
Gordon Henriksenf0915682007-10-02 16:42:22 +00005252 withval=$with_ocaml_libdir;
5253else
5254 withval=auto
5255fi
5256
5257case "$withval" in
5258 auto) with_ocaml_libdir="$withval" ;;
5259 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005260 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5261echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5262 { (exit 1); exit 1; }; } ;;
Gordon Henriksenf0915682007-10-02 16:42:22 +00005263esac
5264
5265
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005266# Check whether --with-c-include-dirs was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005267if test "${with_c_include_dirs+set}" = set; then
Rafael Espindolad6c8ec62009-12-07 00:27:35 +00005268 withval=$with_c_include_dirs;
Rafael Espindola7f9ec912009-11-12 05:46:09 +00005269else
5270 withval=""
5271fi
5272
5273
5274cat >>confdefs.h <<_ACEOF
5275#define C_INCLUDE_DIRS "$withval"
5276_ACEOF
5277
5278
5279
Rafael Espindola420d23c2009-11-16 19:46:55 +00005280# Check whether --with-cxx-include-root was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005281if test "${with_cxx_include_root+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005282 withval=$with_cxx_include_root;
5283else
5284 withval=""
5285fi
5286
5287
5288cat >>confdefs.h <<_ACEOF
5289#define CXX_INCLUDE_ROOT "$withval"
5290_ACEOF
5291
5292
5293
5294# Check whether --with-cxx-include-arch was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005295if test "${with_cxx_include_arch+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005296 withval=$with_cxx_include_arch;
5297else
5298 withval=""
5299fi
5300
5301
5302cat >>confdefs.h <<_ACEOF
5303#define CXX_INCLUDE_ARCH "$withval"
5304_ACEOF
5305
5306
5307
5308# Check whether --with-cxx-include-32bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005309if test "${with_cxx_include_32bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005310 withval=$with_cxx_include_32bit_dir;
5311else
5312 withval=""
5313fi
5314
5315
5316cat >>confdefs.h <<_ACEOF
5317#define CXX_INCLUDE_32BIT_DIR "$withval"
5318_ACEOF
5319
5320
5321
5322# Check whether --with-cxx-include-64bit-dir was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005323if test "${with_cxx_include_64bit_dir+set}" = set; then
Rafael Espindola420d23c2009-11-16 19:46:55 +00005324 withval=$with_cxx_include_64bit_dir;
5325else
5326 withval=""
5327fi
5328
5329
5330cat >>confdefs.h <<_ACEOF
5331#define CXX_INCLUDE_64BIT_DIR "$withval"
5332_ACEOF
5333
5334
5335
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005336# Check whether --with-binutils-include was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005337if test "${with_binutils_include+set}" = set; then
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005338 withval=$with_binutils_include;
5339else
5340 withval=default
5341fi
5342
5343case "$withval" in
5344 default) WITH_BINUTILS_INCDIR=default ;;
5345 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005346 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5347echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5348 { (exit 1); exit 1; }; } ;;
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005349esac
5350if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5351 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5352
5353 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5354 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005355 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5356echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5357 { (exit 1); exit 1; }; };
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005358 fi
5359fi
5360
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005361# Check whether --enable-libffi was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005362if test "${enable_libffi+set}" = set; then
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005363 enableval=$enable_libffi; case "$enableval" in
5364 yes) llvm_cv_enable_libffi="yes" ;;
5365 no) llvm_cv_enable_libffi="no" ;;
5366 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005367echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5368 { (exit 1); exit 1; }; } ;;
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +00005369 esac
5370else
5371 llvm_cv_enable_libffi=no
5372fi
5373
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005374
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005375
Reid Spencera773bd52006-08-04 18:18:08 +00005376ac_ext=c
5377ac_cpp='$CPP $CPPFLAGS'
5378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380ac_compiler_gnu=$ac_cv_c_compiler_gnu
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005381{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005383# On Suns, sometimes $CPP names a directory.
5384if test -n "$CPP" && test -d "$CPP"; then
5385 CPP=
5386fi
5387if test -z "$CPP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005388 if test "${ac_cv_prog_CPP+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005390else
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5393 do
5394 ac_preproc_ok=false
5395for ac_c_preproc_warn_flag in '' yes
5396do
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005403 cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005408/* end confdefs.h. */
5409#ifdef __STDC__
5410# include <limits.h>
5411#else
5412# include <assert.h>
5413#endif
5414 Syntax error
5415_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005416if { (ac_try="$ac_cpp conftest.$ac_ext"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null; then
5429 if test -s conftest.err; then
5430 ac_cpp_err=$ac_c_preproc_warn_flag
5431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5432 else
5433 ac_cpp_err=
5434 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005435else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005436 ac_cpp_err=yes
5437fi
5438if test -z "$ac_cpp_err"; then
5439 :
5440else
5441 echo "$as_me: failed program was:" >&5
5442sed 's/^/| /' conftest.$ac_ext >&5
5443
Reid Spencera773bd52006-08-04 18:18:08 +00005444 # Broken: fails on valid input.
5445continue
5446fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005447
Reid Spencera773bd52006-08-04 18:18:08 +00005448rm -f conftest.err conftest.$ac_ext
5449
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005457/* end confdefs.h. */
5458#include <ac_nonexistent.h>
5459_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005460if { (ac_try="$ac_cpp conftest.$ac_ext"
5461case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464esac
5465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5476 else
5477 ac_cpp_err=
5478 fi
5479else
5480 ac_cpp_err=yes
5481fi
5482if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005483 # Broken: success on invalid input.
5484continue
5485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005486 echo "$as_me: failed program was:" >&5
5487sed 's/^/| /' conftest.$ac_ext >&5
5488
Reid Spencera773bd52006-08-04 18:18:08 +00005489 # Passes both tests.
5490ac_preproc_ok=:
5491break
5492fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005493
Reid Spencera773bd52006-08-04 18:18:08 +00005494rm -f conftest.err conftest.$ac_ext
5495
5496done
5497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005499if $ac_preproc_ok; then
Reid Spencera773bd52006-08-04 18:18:08 +00005500 break
5501fi
5502
5503 done
5504 ac_cv_prog_CPP=$CPP
5505
5506fi
5507 CPP=$ac_cv_prog_CPP
5508else
5509 ac_cv_prog_CPP=$CPP
5510fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005511{ echo "$as_me:$LINENO: result: $CPP" >&5
5512echo "${ECHO_T}$CPP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005513ac_preproc_ok=false
5514for ac_c_preproc_warn_flag in '' yes
5515do
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005527/* end confdefs.h. */
5528#ifdef __STDC__
5529# include <limits.h>
5530#else
5531# include <assert.h>
5532#endif
5533 Syntax error
5534_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005535if { (ac_try="$ac_cpp conftest.$ac_ext"
5536case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } >/dev/null; then
5548 if test -s conftest.err; then
5549 ac_cpp_err=$ac_c_preproc_warn_flag
5550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5551 else
5552 ac_cpp_err=
5553 fi
Torok Edwin871384f2010-01-26 08:50:50 +00005554else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005555 ac_cpp_err=yes
5556fi
5557if test -z "$ac_cpp_err"; then
5558 :
5559else
5560 echo "$as_me: failed program was:" >&5
5561sed 's/^/| /' conftest.$ac_ext >&5
5562
Reid Spencera773bd52006-08-04 18:18:08 +00005563 # Broken: fails on valid input.
5564continue
5565fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005566
Reid Spencera773bd52006-08-04 18:18:08 +00005567rm -f conftest.err conftest.$ac_ext
5568
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005571 cat >conftest.$ac_ext <<_ACEOF
5572/* confdefs.h. */
5573_ACEOF
5574cat confdefs.h >>conftest.$ac_ext
5575cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005576/* end confdefs.h. */
5577#include <ac_nonexistent.h>
5578_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005579if { (ac_try="$ac_cpp conftest.$ac_ext"
5580case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5586 ac_status=$?
5587 grep -v '^ *+' conftest.er1 >conftest.err
5588 rm -f conftest.er1
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_c_preproc_warn_flag
5594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5595 else
5596 ac_cpp_err=
5597 fi
5598else
5599 ac_cpp_err=yes
5600fi
5601if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005602 # Broken: success on invalid input.
5603continue
5604else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005605 echo "$as_me: failed program was:" >&5
5606sed 's/^/| /' conftest.$ac_ext >&5
5607
Reid Spencera773bd52006-08-04 18:18:08 +00005608 # Passes both tests.
5609ac_preproc_ok=:
5610break
5611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005612
Reid Spencera773bd52006-08-04 18:18:08 +00005613rm -f conftest.err conftest.$ac_ext
5614
5615done
5616# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617rm -f conftest.err conftest.$ac_ext
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005618if $ac_preproc_ok; then
5619 :
Reid Spencera773bd52006-08-04 18:18:08 +00005620else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005621 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5622See \`config.log' for more details." >&5
5623echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5624See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005626fi
5627
5628ac_ext=c
5629ac_cpp='$CPP $CPPFLAGS'
5630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634ac_ext=c
5635ac_cpp='$CPP $CPPFLAGS'
5636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639if test -n "$ac_tool_prefix"; then
5640 for ac_prog in gcc
5641 do
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646if test "${ac_cv_prog_CC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005648else
5649 if test -n "$CC"; then
5650 ac_cv_prog_CC="$CC" # Let the user override the test.
5651else
5652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 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 +00005659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005661 break 2
5662 fi
5663done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005664done
Reid Spencera773bd52006-08-04 18:18:08 +00005665IFS=$as_save_IFS
5666
5667fi
5668fi
5669CC=$ac_cv_prog_CC
5670if test -n "$CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005671 { echo "$as_me:$LINENO: result: $CC" >&5
5672echo "${ECHO_T}$CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005673else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005674 { echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005676fi
5677
5678
5679 test -n "$CC" && break
5680 done
5681fi
5682if test -z "$CC"; then
5683 ac_ct_CC=$CC
5684 for ac_prog in gcc
5685do
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005692else
5693 if test -n "$ac_ct_CC"; then
5694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5695else
5696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 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 +00005703 ac_cv_prog_ac_ct_CC="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00005705 break 2
5706 fi
5707done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005708done
Reid Spencera773bd52006-08-04 18:18:08 +00005709IFS=$as_save_IFS
5710
5711fi
5712fi
5713ac_ct_CC=$ac_cv_prog_ac_ct_CC
5714if test -n "$ac_ct_CC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005715 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5716echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005717else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005718 { echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00005720fi
5721
5722
5723 test -n "$ac_ct_CC" && break
5724done
5725
5726 if test "x$ac_ct_CC" = x; then
5727 CC=""
5728 else
5729 case $cross_compiling:$ac_tool_warned in
5730yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005731{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732whose name does not start with the host triplet. If you think this
5733configuration is useful to you, please write to autoconf@gnu.org." >&5
5734echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735whose name does not start with the host triplet. If you think this
5736configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00005737ac_tool_warned=yes ;;
5738esac
5739 CC=$ac_ct_CC
5740 fi
5741fi
5742
5743
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5745See \`config.log' for more details." >&5
5746echo "$as_me: error: no acceptable C compiler found in \$PATH
5747See \`config.log' for more details." >&2;}
5748 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00005749
5750# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005751echo "$as_me:$LINENO: checking for C compiler version" >&5
5752ac_compiler=`set X $ac_compile; echo $2`
5753{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00005754case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00005760 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
5763{ (ac_try="$ac_compiler -v >&5"
5764case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767esac
5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compiler -v >&5") 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }
5773{ (ac_try="$ac_compiler -V >&5"
5774case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777esac
5778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compiler -V >&5") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00005783
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005784{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5785echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5786if test "${ac_cv_c_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005788else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005789 cat >conftest.$ac_ext <<_ACEOF
5790/* confdefs.h. */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005794/* end confdefs.h. */
5795
5796int
5797main ()
5798{
5799#ifndef __GNUC__
5800 choke me
5801#endif
5802
5803 ;
5804 return 0;
5805}
5806_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005807rm -f conftest.$ac_objext
5808if { (ac_try="$ac_compile"
5809case "(($ac_try" in
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5812esac
5813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825esac
5826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_try") 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005841 ac_compiler_gnu=yes
5842else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005843 echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00005847fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005848
Reid Spencera773bd52006-08-04 18:18:08 +00005849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850ac_cv_c_compiler_gnu=$ac_compiler_gnu
5851
5852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005853{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5854echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5855GCC=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00005856ac_test_CFLAGS=${CFLAGS+set}
5857ac_save_CFLAGS=$CFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005858{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5859echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5860if test "${ac_cv_prog_cc_g+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00005862else
5863 ac_save_c_werror_flag=$ac_c_werror_flag
5864 ac_c_werror_flag=yes
5865 ac_cv_prog_cc_g=no
5866 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005867 cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005872/* end confdefs.h. */
5873
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005882rm -f conftest.$ac_objext
5883if { (ac_try="$ac_compile"
5884case "(($ac_try" in
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compile") 2>conftest.er1
5890 ac_status=$?
5891 grep -v '^ *+' conftest.er1 >conftest.err
5892 rm -f conftest.er1
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest.$ac_objext'
5907 { (case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5910esac
5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005916 ac_cv_prog_cc_g=yes
5917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005918 echo "$as_me: failed program was:" >&5
5919sed 's/^/| /' conftest.$ac_ext >&5
5920
5921 CFLAGS=""
5922 cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005927/* end confdefs.h. */
5928
5929int
5930main ()
5931{
5932
5933 ;
5934 return 0;
5935}
5936_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005937rm -f conftest.$ac_objext
5938if { (ac_try="$ac_compile"
5939case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5968 ac_status=$?
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 :
Torok Edwin871384f2010-01-26 08:50:50 +00005972else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005973 echo "$as_me: failed program was:" >&5
5974sed 's/^/| /' conftest.$ac_ext >&5
5975
5976 ac_c_werror_flag=$ac_save_c_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00005977 CFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005978 cat >conftest.$ac_ext <<_ACEOF
5979/* confdefs.h. */
5980_ACEOF
5981cat confdefs.h >>conftest.$ac_ext
5982cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00005983/* end confdefs.h. */
5984
5985int
5986main ()
5987{
5988
5989 ;
5990 return 0;
5991}
5992_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00005993rm -f conftest.$ac_objext
5994if { (ac_try="$ac_compile"
5995case "(($ac_try" in
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6008 { (case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_try") 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021esac
6022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_try") 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006027 ac_cv_prog_cc_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006028else
6029 echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032
Reid Spencera773bd52006-08-04 18:18:08 +00006033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006034
Reid Spencera773bd52006-08-04 18:18:08 +00006035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006037
Reid Spencera773bd52006-08-04 18:18:08 +00006038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006040
Reid Spencera773bd52006-08-04 18:18:08 +00006041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 ac_c_werror_flag=$ac_save_c_werror_flag
6043fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006044{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6045echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006046if test "$ac_test_CFLAGS" = set; then
6047 CFLAGS=$ac_save_CFLAGS
6048elif test $ac_cv_prog_cc_g = yes; then
6049 if test "$GCC" = yes; then
6050 CFLAGS="-g -O2"
6051 else
6052 CFLAGS="-g"
6053 fi
6054else
6055 if test "$GCC" = yes; then
6056 CFLAGS="-O2"
6057 else
6058 CFLAGS=
6059 fi
6060fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006061{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6062echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6063if test "${ac_cv_prog_cc_c89+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006065else
6066 ac_cv_prog_cc_c89=no
6067ac_save_CC=$CC
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006068cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h. */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006073/* end confdefs.h. */
6074#include <stdarg.h>
6075#include <stdio.h>
6076#include <sys/types.h>
6077#include <sys/stat.h>
6078/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6079struct buf { int x; };
6080FILE * (*rcsopen) (struct buf *, struct stat *, int);
6081static char *e (p, i)
6082 char **p;
6083 int i;
6084{
6085 return p[i];
6086}
6087static char *f (char * (*g) (char **, int), char **p, ...)
6088{
6089 char *s;
6090 va_list v;
6091 va_start (v,p);
6092 s = g (p, va_arg (v,int));
6093 va_end (v);
6094 return s;
6095}
6096
6097/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6098 function prototypes and stuff, but not '\xHH' hex character constants.
6099 These don't provoke an error unfortunately, instead are silently treated
6100 as 'x'. The following induces an error, until -std is added to get
6101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6102 array size at least. It's necessary to write '\x00'==0 to get something
6103 that's true only with -std. */
6104int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6105
6106/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6107 inside strings and character constants. */
6108#define FOO(x) 'x'
6109int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6110
6111int test (int i, double x);
6112struct s1 {int (*f) (int a);};
6113struct s2 {int (*f) (double a);};
6114int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6115int argc;
6116char **argv;
6117int
6118main ()
6119{
6120return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6121 ;
6122 return 0;
6123}
6124_ACEOF
6125for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6127do
6128 CC="$ac_save_CC $ac_arg"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006129 rm -f conftest.$ac_objext
6130if { (ac_try="$ac_compile"
6131case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134esac
6135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6147esac
6148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006163 ac_cv_prog_cc_c89=$ac_arg
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006164else
6165 echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
6167
6168
Reid Spencera773bd52006-08-04 18:18:08 +00006169fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006170
Reid Spencera773bd52006-08-04 18:18:08 +00006171rm -f core conftest.err conftest.$ac_objext
6172 test "x$ac_cv_prog_cc_c89" != "xno" && break
6173done
6174rm -f conftest.$ac_ext
6175CC=$ac_save_CC
6176
6177fi
6178# AC_CACHE_VAL
6179case "x$ac_cv_prog_cc_c89" in
6180 x)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006181 { echo "$as_me:$LINENO: result: none needed" >&5
6182echo "${ECHO_T}none needed" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006183 xno)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006184 { echo "$as_me:$LINENO: result: unsupported" >&5
6185echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006186 *)
6187 CC="$CC $ac_cv_prog_cc_c89"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6189echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencera773bd52006-08-04 18:18:08 +00006190esac
6191
6192
6193ac_ext=c
6194ac_cpp='$CPP $CPPFLAGS'
6195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198
6199ac_ext=cpp
6200ac_cpp='$CXXCPP $CPPFLAGS'
6201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6204if test -z "$CXX"; then
6205 if test -n "$CCC"; then
6206 CXX=$CCC
6207 else
6208 if test -n "$ac_tool_prefix"; then
6209 for ac_prog in g++
6210 do
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215if test "${ac_cv_prog_CXX+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006217else
6218 if test -n "$CXX"; then
6219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 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 +00006228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006230 break 2
6231 fi
6232done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006233done
Reid Spencera773bd52006-08-04 18:18:08 +00006234IFS=$as_save_IFS
6235
6236fi
6237fi
6238CXX=$ac_cv_prog_CXX
6239if test -n "$CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006240 { echo "$as_me:$LINENO: result: $CXX" >&5
6241echo "${ECHO_T}$CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006242else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006243 { echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006245fi
6246
6247
6248 test -n "$CXX" && break
6249 done
6250fi
6251if test -z "$CXX"; then
6252 ac_ct_CXX=$CXX
6253 for ac_prog in g++
6254do
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006261else
6262 if test -n "$ac_ct_CXX"; then
6263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6264else
6265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266for as_dir in $PATH
6267do
6268 IFS=$as_save_IFS
6269 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 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 +00006272 ac_cv_prog_ac_ct_CXX="$ac_prog"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006274 break 2
6275 fi
6276done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006277done
Reid Spencera773bd52006-08-04 18:18:08 +00006278IFS=$as_save_IFS
6279
6280fi
6281fi
6282ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6283if test -n "$ac_ct_CXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006284 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6285echo "${ECHO_T}$ac_ct_CXX" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006286else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006287 { echo "$as_me:$LINENO: result: no" >&5
6288echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006289fi
6290
6291
6292 test -n "$ac_ct_CXX" && break
6293done
6294
6295 if test "x$ac_ct_CXX" = x; then
6296 CXX="g++"
6297 else
6298 case $cross_compiling:$ac_tool_warned in
6299yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006300{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6301whose name does not start with the host triplet. If you think this
6302configuration is useful to you, please write to autoconf@gnu.org." >&5
6303echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6304whose name does not start with the host triplet. If you think this
6305configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006306ac_tool_warned=yes ;;
6307esac
6308 CXX=$ac_ct_CXX
6309 fi
6310fi
6311
6312 fi
6313fi
6314# Provide some information about the compiler.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006315echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6316ac_compiler=`set X $ac_compile; echo $2`
6317{ (ac_try="$ac_compiler --version >&5"
Reid Spencera773bd52006-08-04 18:18:08 +00006318case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler --version >&5") 2>&5
Reid Spencera773bd52006-08-04 18:18:08 +00006324 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6327{ (ac_try="$ac_compiler -v >&5"
6328case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compiler -v >&5") 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }
6337{ (ac_try="$ac_compiler -V >&5"
6338case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler -V >&5") 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00006347
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006348{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6349echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6350if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006352else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006353 cat >conftest.$ac_ext <<_ACEOF
6354/* confdefs.h. */
6355_ACEOF
6356cat confdefs.h >>conftest.$ac_ext
6357cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006358/* end confdefs.h. */
6359
6360int
6361main ()
6362{
6363#ifndef __GNUC__
6364 choke me
6365#endif
6366
6367 ;
6368 return 0;
6369}
6370_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006371rm -f conftest.$ac_objext
6372if { (ac_try="$ac_compile"
6373case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376esac
6377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_compile") 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6386 { (case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6389esac
6390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_try") 2>&5
6392 ac_status=$?
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006405 ac_compiler_gnu=yes
6406else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006407 echo "$as_me: failed program was:" >&5
6408sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 ac_compiler_gnu=no
Reid Spencera773bd52006-08-04 18:18:08 +00006411fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006412
Reid Spencera773bd52006-08-04 18:18:08 +00006413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6415
6416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006417{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6418echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6419GXX=`test $ac_compiler_gnu = yes && echo yes`
Reid Spencera773bd52006-08-04 18:18:08 +00006420ac_test_CXXFLAGS=${CXXFLAGS+set}
6421ac_save_CXXFLAGS=$CXXFLAGS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006422{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6423echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6424if test "${ac_cv_prog_cxx_g+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006426else
6427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6428 ac_cxx_werror_flag=yes
6429 ac_cv_prog_cxx_g=no
6430 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006431 cat >conftest.$ac_ext <<_ACEOF
6432/* confdefs.h. */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006436/* end confdefs.h. */
6437
6438int
6439main ()
6440{
6441
6442 ;
6443 return 0;
6444}
6445_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006446rm -f conftest.$ac_objext
6447if { (ac_try="$ac_compile"
6448case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451esac
6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6454 ac_status=$?
6455 grep -v '^ *+' conftest.er1 >conftest.err
6456 rm -f conftest.er1
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464esac
6465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try='test -s conftest.$ac_objext'
6471 { (case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
6475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_try") 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006480 ac_cv_prog_cxx_g=yes
6481else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006482 echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485 CXXFLAGS=""
6486 cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006491/* end confdefs.h. */
6492
6493int
6494main ()
6495{
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006501rm -f conftest.$ac_objext
6502if { (ac_try="$ac_compile"
6503case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6519esac
6520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529esac
6530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_try") 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 :
Torok Edwin871384f2010-01-26 08:50:50 +00006536else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006537 echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Reid Spencera773bd52006-08-04 18:18:08 +00006541 CXXFLAGS="-g"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006542 cat >conftest.$ac_ext <<_ACEOF
6543/* confdefs.h. */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006547/* end confdefs.h. */
6548
6549int
6550main ()
6551{
6552
6553 ;
6554 return 0;
6555}
6556_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006557rm -f conftest.$ac_objext
6558if { (ac_try="$ac_compile"
6559case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6565 ac_status=$?
6566 grep -v '^ *+' conftest.er1 >conftest.err
6567 rm -f conftest.er1
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6572 { (case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_try") 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6585esac
6586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_try") 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006591 ac_cv_prog_cxx_g=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006592else
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596
Reid Spencera773bd52006-08-04 18:18:08 +00006597fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006598
Reid Spencera773bd52006-08-04 18:18:08 +00006599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006601
Reid Spencera773bd52006-08-04 18:18:08 +00006602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006604
Reid Spencera773bd52006-08-04 18:18:08 +00006605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6607fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006608{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6609echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006610if test "$ac_test_CXXFLAGS" = set; then
6611 CXXFLAGS=$ac_save_CXXFLAGS
6612elif test $ac_cv_prog_cxx_g = yes; then
6613 if test "$GXX" = yes; then
6614 CXXFLAGS="-g -O2"
6615 else
6616 CXXFLAGS="-g"
6617 fi
6618else
6619 if test "$GXX" = yes; then
6620 CXXFLAGS="-O2"
6621 else
6622 CXXFLAGS=
6623 fi
6624fi
6625ac_ext=c
6626ac_cpp='$CPP $CPPFLAGS'
6627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629ac_compiler_gnu=$ac_cv_c_compiler_gnu
6630
Reid Spencera773bd52006-08-04 18:18:08 +00006631
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006632{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6633echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6634if test "${lt_cv_path_NM+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006636else
6637 if test -n "$NM"; then
6638 # Let the user override the test.
6639 lt_cv_path_NM="$NM"
6640else
6641 lt_nm_to_check="${ac_tool_prefix}nm"
6642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6643 lt_nm_to_check="$lt_nm_to_check nm"
6644 fi
6645 for lt_tmp_nm in $lt_nm_to_check; do
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6648 IFS="$lt_save_ifs"
6649 test -z "$ac_dir" && ac_dir=.
6650 tmp_nm="$ac_dir/$lt_tmp_nm"
6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652 # Check to see if the nm accepts a BSD-compat flag.
6653 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654 # nm: unknown option "B" ignored
6655 # Tru64's nm complains that /dev/null is an invalid object file
6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657 */dev/null* | *'Invalid file or object type'*)
6658 lt_cv_path_NM="$tmp_nm -B"
6659 break
6660 ;;
6661 *)
6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6663 */dev/null*)
6664 lt_cv_path_NM="$tmp_nm -p"
6665 break
6666 ;;
6667 *)
6668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669 continue # so that we can try to find one that supports BSD flags
6670 ;;
6671 esac
6672 ;;
6673 esac
6674 fi
6675 done
6676 IFS="$lt_save_ifs"
6677 done
6678 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6679fi
6680fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006681{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6682echo "${ECHO_T}$lt_cv_path_NM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006683NM="$lt_cv_path_NM"
6684
6685
6686
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006687{ echo "$as_me:$LINENO: checking for GNU make" >&5
6688echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6689if test "${llvm_cv_gnu_make_command+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006691else
6692 llvm_cv_gnu_make_command=''
6693 for a in "$MAKE" make gmake gnumake ; do
6694 if test -z "$a" ; then continue ; fi ;
6695 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6696 then
6697 llvm_cv_gnu_make_command=$a ;
6698 break;
6699 fi
6700 done
6701fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006702{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6703echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006704 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6705 ifGNUmake='' ;
6706 else
6707 ifGNUmake='#' ;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006708 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6709echo "${ECHO_T}\"Not found\"" >&6; };
Reid Spencera773bd52006-08-04 18:18:08 +00006710 fi
6711
6712
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006713{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006715LN_S=$as_ln_s
6716if test "$LN_S" = "ln -s"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006717 { echo "$as_me:$LINENO: result: yes" >&5
6718echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006719else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6721echo "${ECHO_T}no, using $LN_S" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006722fi
6723
6724# Extract the first word of "cmp", so it can be a program name with args.
6725set dummy cmp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728if test "${ac_cv_path_CMP+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006730else
6731 case $CMP in
6732 [\\/]* | ?:[\\/]*)
6733 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6734 ;;
6735 *)
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737for as_dir in $PATH
6738do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 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 +00006743 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006745 break 2
6746 fi
6747done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006748done
Reid Spencera773bd52006-08-04 18:18:08 +00006749IFS=$as_save_IFS
6750
6751 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6752 ;;
6753esac
6754fi
6755CMP=$ac_cv_path_CMP
6756if test -n "$CMP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006757 { echo "$as_me:$LINENO: result: $CMP" >&5
6758echo "${ECHO_T}$CMP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006759else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006760 { echo "$as_me:$LINENO: result: no" >&5
6761echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006762fi
6763
6764
6765# Extract the first word of "cp", so it can be a program name with args.
6766set dummy cp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769if test "${ac_cv_path_CP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006771else
6772 case $CP in
6773 [\\/]* | ?:[\\/]*)
6774 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6775 ;;
6776 *)
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 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 +00006784 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006786 break 2
6787 fi
6788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006789done
Reid Spencera773bd52006-08-04 18:18:08 +00006790IFS=$as_save_IFS
6791
6792 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6793 ;;
6794esac
6795fi
6796CP=$ac_cv_path_CP
6797if test -n "$CP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006798 { echo "$as_me:$LINENO: result: $CP" >&5
6799echo "${ECHO_T}$CP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006803fi
6804
6805
6806# Extract the first word of "date", so it can be a program name with args.
6807set dummy date; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810if test "${ac_cv_path_DATE+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006812else
6813 case $DATE in
6814 [\\/]* | ?:[\\/]*)
6815 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6816 ;;
6817 *)
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819for as_dir in $PATH
6820do
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 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 +00006825 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006827 break 2
6828 fi
6829done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006830done
Reid Spencera773bd52006-08-04 18:18:08 +00006831IFS=$as_save_IFS
6832
6833 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6834 ;;
6835esac
6836fi
6837DATE=$ac_cv_path_DATE
6838if test -n "$DATE"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006839 { echo "$as_me:$LINENO: result: $DATE" >&5
6840echo "${ECHO_T}$DATE" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006841else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006842 { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006844fi
6845
6846
6847# Extract the first word of "find", so it can be a program name with args.
6848set dummy find; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851if test "${ac_cv_path_FIND+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006853else
6854 case $FIND in
6855 [\\/]* | ?:[\\/]*)
6856 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6857 ;;
6858 *)
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 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 +00006866 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006868 break 2
6869 fi
6870done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006871done
Reid Spencera773bd52006-08-04 18:18:08 +00006872IFS=$as_save_IFS
6873
6874 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6875 ;;
6876esac
6877fi
6878FIND=$ac_cv_path_FIND
6879if test -n "$FIND"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006880 { echo "$as_me:$LINENO: result: $FIND" >&5
6881echo "${ECHO_T}$FIND" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006882else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006883 { echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006885fi
6886
6887
6888# Extract the first word of "grep", so it can be a program name with args.
6889set dummy grep; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892if test "${ac_cv_path_GREP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006894else
6895 case $GREP in
6896 [\\/]* | ?:[\\/]*)
6897 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6898 ;;
6899 *)
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 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 +00006907 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006909 break 2
6910 fi
6911done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006912done
Reid Spencera773bd52006-08-04 18:18:08 +00006913IFS=$as_save_IFS
6914
6915 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6916 ;;
6917esac
6918fi
6919GREP=$ac_cv_path_GREP
6920if test -n "$GREP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006921 { echo "$as_me:$LINENO: result: $GREP" >&5
6922echo "${ECHO_T}$GREP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006924 { echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006926fi
6927
6928
6929# Extract the first word of "mkdir", so it can be a program name with args.
6930set dummy mkdir; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006931{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933if test "${ac_cv_path_MKDIR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006935else
6936 case $MKDIR in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6939 ;;
6940 *)
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942for as_dir in $PATH
6943do
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 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 +00006948 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006950 break 2
6951 fi
6952done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006953done
Reid Spencera773bd52006-08-04 18:18:08 +00006954IFS=$as_save_IFS
6955
6956 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6957 ;;
6958esac
6959fi
6960MKDIR=$ac_cv_path_MKDIR
6961if test -n "$MKDIR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006962 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6963echo "${ECHO_T}$MKDIR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006964else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006965 { echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00006967fi
6968
6969
6970# Extract the first word of "mv", so it can be a program name with args.
6971set dummy mv; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_path_MV+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00006976else
6977 case $MV in
6978 [\\/]* | ?:[\\/]*)
6979 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6980 ;;
6981 *)
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983for as_dir in $PATH
6984do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 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 +00006989 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006991 break 2
6992 fi
6993done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00006994done
Reid Spencera773bd52006-08-04 18:18:08 +00006995IFS=$as_save_IFS
6996
6997 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6998 ;;
6999esac
7000fi
7001MV=$ac_cv_path_MV
7002if test -n "$MV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007003 { echo "$as_me:$LINENO: result: $MV" >&5
7004echo "${ECHO_T}$MV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007005else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007006 { echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007008fi
7009
7010
7011if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016if test "${ac_cv_prog_RANLIB+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007018else
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021else
7022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023for as_dir in $PATH
7024do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 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 +00007029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007031 break 2
7032 fi
7033done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007034done
Reid Spencera773bd52006-08-04 18:18:08 +00007035IFS=$as_save_IFS
7036
7037fi
7038fi
7039RANLIB=$ac_cv_prog_RANLIB
7040if test -n "$RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7042echo "${ECHO_T}$RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007043else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007044 { echo "$as_me:$LINENO: result: no" >&5
7045echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007046fi
7047
7048
7049fi
7050if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053set dummy ranlib; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007058else
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061else
7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 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 +00007069 ac_cv_prog_ac_ct_RANLIB="ranlib"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007071 break 2
7072 fi
7073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007074done
Reid Spencera773bd52006-08-04 18:18:08 +00007075IFS=$as_save_IFS
7076
7077fi
7078fi
7079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080if test -n "$ac_ct_RANLIB"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7082echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007083else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007084 { echo "$as_me:$LINENO: result: no" >&5
7085echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007086fi
7087
7088 if test "x$ac_ct_RANLIB" = x; then
7089 RANLIB=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007093{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094whose name does not start with the host triplet. If you think this
7095configuration is useful to you, please write to autoconf@gnu.org." >&5
7096echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097whose name does not start with the host triplet. If you think this
7098configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00007099ac_tool_warned=yes ;;
7100esac
7101 RANLIB=$ac_ct_RANLIB
7102 fi
7103else
7104 RANLIB="$ac_cv_prog_RANLIB"
7105fi
7106
Torok Edwin871384f2010-01-26 08:50:50 +00007107if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7109set dummy ${ac_tool_prefix}ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112if test "${ac_cv_prog_AR+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007114else
7115 if test -n "$AR"; then
7116 ac_cv_prog_AR="$AR" # Let the user override the test.
7117else
7118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119for as_dir in $PATH
7120do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 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 +00007125 ac_cv_prog_AR="${ac_tool_prefix}ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007127 break 2
7128 fi
7129done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007130done
Torok Edwin871384f2010-01-26 08:50:50 +00007131IFS=$as_save_IFS
7132
7133fi
7134fi
7135AR=$ac_cv_prog_AR
7136if test -n "$AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007137 { echo "$as_me:$LINENO: result: $AR" >&5
7138echo "${ECHO_T}$AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007139else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007140 { echo "$as_me:$LINENO: result: no" >&5
7141echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007142fi
7143
7144
7145fi
7146if test -z "$ac_cv_prog_AR"; then
7147 ac_ct_AR=$AR
7148 # Extract the first word of "ar", so it can be a program name with args.
7149set dummy ar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007150{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwin871384f2010-01-26 08:50:50 +00007154else
7155 if test -n "$ac_ct_AR"; then
7156 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 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 +00007165 ac_cv_prog_ac_ct_AR="ar"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwin871384f2010-01-26 08:50:50 +00007167 break 2
7168 fi
7169done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007170done
Torok Edwin871384f2010-01-26 08:50:50 +00007171IFS=$as_save_IFS
7172
7173fi
7174fi
7175ac_ct_AR=$ac_cv_prog_ac_ct_AR
7176if test -n "$ac_ct_AR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007177 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7178echo "${ECHO_T}$ac_ct_AR" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007179else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007180 { echo "$as_me:$LINENO: result: no" >&5
7181echo "${ECHO_T}no" >&6; }
Torok Edwin871384f2010-01-26 08:50:50 +00007182fi
7183
7184 if test "x$ac_ct_AR" = x; then
7185 AR="false"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188yes:)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007189{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7190whose name does not start with the host triplet. If you think this
7191configuration is useful to you, please write to autoconf@gnu.org." >&5
7192echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7193whose name does not start with the host triplet. If you think this
7194configuration is useful to you, please write to autoconf@gnu.org." >&2;}
Torok Edwin871384f2010-01-26 08:50:50 +00007195ac_tool_warned=yes ;;
7196esac
7197 AR=$ac_ct_AR
7198 fi
7199else
7200 AR="$ac_cv_prog_AR"
7201fi
7202
Reid Spencera773bd52006-08-04 18:18:08 +00007203# Extract the first word of "rm", so it can be a program name with args.
7204set dummy rm; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207if test "${ac_cv_path_RM+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007209else
7210 case $RM in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7213 ;;
7214 *)
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 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 +00007222 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007224 break 2
7225 fi
7226done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007227done
Reid Spencera773bd52006-08-04 18:18:08 +00007228IFS=$as_save_IFS
7229
7230 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7231 ;;
7232esac
7233fi
7234RM=$ac_cv_path_RM
7235if test -n "$RM"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007236 { echo "$as_me:$LINENO: result: $RM" >&5
7237echo "${ECHO_T}$RM" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007238else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007239 { echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007241fi
7242
7243
7244# Extract the first word of "sed", so it can be a program name with args.
7245set dummy sed; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248if test "${ac_cv_path_SED+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007250else
7251 case $SED in
7252 [\\/]* | ?:[\\/]*)
7253 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7254 ;;
7255 *)
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257for as_dir in $PATH
7258do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 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 +00007263 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007265 break 2
7266 fi
7267done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007268done
Reid Spencera773bd52006-08-04 18:18:08 +00007269IFS=$as_save_IFS
7270
7271 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7272 ;;
7273esac
7274fi
7275SED=$ac_cv_path_SED
7276if test -n "$SED"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007277 { echo "$as_me:$LINENO: result: $SED" >&5
7278echo "${ECHO_T}$SED" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007279else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007280 { echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007282fi
7283
7284
7285# Extract the first word of "tar", so it can be a program name with args.
7286set dummy tar; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289if test "${ac_cv_path_TAR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007291else
7292 case $TAR in
7293 [\\/]* | ?:[\\/]*)
7294 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7295 ;;
7296 *)
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298for as_dir in $PATH
7299do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 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 +00007304 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007306 break 2
7307 fi
7308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007309done
Reid Spencera773bd52006-08-04 18:18:08 +00007310IFS=$as_save_IFS
7311
7312 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7313 ;;
7314esac
7315fi
7316TAR=$ac_cv_path_TAR
7317if test -n "$TAR"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007318 { echo "$as_me:$LINENO: result: $TAR" >&5
7319echo "${ECHO_T}$TAR" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007321 { echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007323fi
7324
7325
7326# Extract the first word of "pwd", so it can be a program name with args.
7327set dummy pwd; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007328{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330if test "${ac_cv_path_BINPWD+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007332else
7333 case $BINPWD in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7336 ;;
7337 *)
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339for as_dir in $PATH
7340do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 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 +00007345 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007347 break 2
7348 fi
7349done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007350done
Reid Spencera773bd52006-08-04 18:18:08 +00007351IFS=$as_save_IFS
7352
7353 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7354 ;;
7355esac
7356fi
7357BINPWD=$ac_cv_path_BINPWD
7358if test -n "$BINPWD"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007359 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7360echo "${ECHO_T}$BINPWD" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007361else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007362 { echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007364fi
7365
7366
7367
7368# Extract the first word of "Graphviz", so it can be a program name with args.
7369set dummy Graphviz; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007374else
7375 case $GRAPHVIZ in
7376 [\\/]* | ?:[\\/]*)
7377 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7378 ;;
7379 *)
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 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 +00007387 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007389 break 2
7390 fi
7391done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007392done
Reid Spencera773bd52006-08-04 18:18:08 +00007393IFS=$as_save_IFS
7394
7395 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7396 ;;
7397esac
7398fi
7399GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7400if test -n "$GRAPHVIZ"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007401 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7402echo "${ECHO_T}$GRAPHVIZ" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007404 { echo "$as_me:$LINENO: result: no" >&5
7405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007406fi
7407
7408
7409if test "$GRAPHVIZ" != "echo Graphviz" ; then
7410
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007411cat >>confdefs.h <<\_ACEOF
7412#define HAVE_GRAPHVIZ 1
7413_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007414
Jeff Cohen28783c32007-01-12 18:22:38 +00007415 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007416 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7417 fi
7418
7419cat >>confdefs.h <<_ACEOF
7420#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7421_ACEOF
7422
7423fi
7424# Extract the first word of "dot", so it can be a program name with args.
7425set dummy dot; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428if test "${ac_cv_path_DOT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007430else
7431 case $DOT in
7432 [\\/]* | ?:[\\/]*)
7433 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7434 ;;
7435 *)
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 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 +00007443 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007445 break 2
7446 fi
7447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007448done
Reid Spencera773bd52006-08-04 18:18:08 +00007449IFS=$as_save_IFS
7450
7451 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7452 ;;
7453esac
7454fi
7455DOT=$ac_cv_path_DOT
7456if test -n "$DOT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007457 { echo "$as_me:$LINENO: result: $DOT" >&5
7458echo "${ECHO_T}$DOT" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007459else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007460 { echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007462fi
7463
7464
7465if test "$DOT" != "echo dot" ; then
7466
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007467cat >>confdefs.h <<\_ACEOF
7468#define HAVE_DOT 1
7469_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007470
Jeff Cohen28783c32007-01-12 18:22:38 +00007471 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007472 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7473 fi
7474
7475cat >>confdefs.h <<_ACEOF
7476#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7477_ACEOF
7478
7479fi
David Greenef0b9eff2009-07-09 17:16:26 +00007480# Extract the first word of "fdp", so it can be a program name with args.
7481set dummy fdp; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484if test "${ac_cv_path_FDP+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007486else
7487 case $FDP in
7488 [\\/]* | ?:[\\/]*)
7489 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7490 ;;
7491 *)
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 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 +00007499 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007501 break 2
7502 fi
7503done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007504done
David Greenef0b9eff2009-07-09 17:16:26 +00007505IFS=$as_save_IFS
7506
7507 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7508 ;;
7509esac
7510fi
7511FDP=$ac_cv_path_FDP
7512if test -n "$FDP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007513 { echo "$as_me:$LINENO: result: $FDP" >&5
7514echo "${ECHO_T}$FDP" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007515else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007516 { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007518fi
7519
7520
7521if test "$FDP" != "echo fdp" ; then
7522
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007523cat >>confdefs.h <<\_ACEOF
7524#define HAVE_FDP 1
7525_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007526
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7529 fi
7530
7531cat >>confdefs.h <<_ACEOF
7532#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7533_ACEOF
7534
7535fi
7536# Extract the first word of "neato", so it can be a program name with args.
7537set dummy neato; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007538{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540if test "${ac_cv_path_NEATO+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007542else
7543 case $NEATO in
7544 [\\/]* | ?:[\\/]*)
7545 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7546 ;;
7547 *)
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551 IFS=$as_save_IFS
7552 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 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 +00007555 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007557 break 2
7558 fi
7559done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007560done
David Greenef0b9eff2009-07-09 17:16:26 +00007561IFS=$as_save_IFS
7562
7563 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7564 ;;
7565esac
7566fi
7567NEATO=$ac_cv_path_NEATO
7568if test -n "$NEATO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007569 { echo "$as_me:$LINENO: result: $NEATO" >&5
7570echo "${ECHO_T}$NEATO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007571else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007572 { echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007574fi
7575
7576
7577if test "$NEATO" != "echo neato" ; then
7578
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007579cat >>confdefs.h <<\_ACEOF
7580#define HAVE_NEATO 1
7581_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007582
7583 if test "$llvm_cv_os_type" = "MingW" ; then
7584 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7585 fi
7586
7587cat >>confdefs.h <<_ACEOF
7588#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7589_ACEOF
7590
7591fi
7592# Extract the first word of "twopi", so it can be a program name with args.
7593set dummy twopi; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596if test "${ac_cv_path_TWOPI+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007598else
7599 case $TWOPI in
7600 [\\/]* | ?:[\\/]*)
7601 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7602 ;;
7603 *)
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 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 +00007611 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007613 break 2
7614 fi
7615done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007616done
David Greenef0b9eff2009-07-09 17:16:26 +00007617IFS=$as_save_IFS
7618
7619 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7620 ;;
7621esac
7622fi
7623TWOPI=$ac_cv_path_TWOPI
7624if test -n "$TWOPI"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007625 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7626echo "${ECHO_T}$TWOPI" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007627else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007628 { echo "$as_me:$LINENO: result: no" >&5
7629echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007630fi
7631
7632
7633if test "$TWOPI" != "echo twopi" ; then
7634
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007635cat >>confdefs.h <<\_ACEOF
7636#define HAVE_TWOPI 1
7637_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007638
7639 if test "$llvm_cv_os_type" = "MingW" ; then
7640 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7641 fi
7642
7643cat >>confdefs.h <<_ACEOF
7644#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7645_ACEOF
7646
7647fi
7648# Extract the first word of "circo", so it can be a program name with args.
7649set dummy circo; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652if test "${ac_cv_path_CIRCO+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
David Greenef0b9eff2009-07-09 17:16:26 +00007654else
7655 case $CIRCO in
7656 [\\/]* | ?:[\\/]*)
7657 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7658 ;;
7659 *)
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 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 +00007667 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
David Greenef0b9eff2009-07-09 17:16:26 +00007669 break 2
7670 fi
7671done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007672done
David Greenef0b9eff2009-07-09 17:16:26 +00007673IFS=$as_save_IFS
7674
7675 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7676 ;;
7677esac
7678fi
7679CIRCO=$ac_cv_path_CIRCO
7680if test -n "$CIRCO"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007681 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7682echo "${ECHO_T}$CIRCO" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007683else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007684 { echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6; }
David Greenef0b9eff2009-07-09 17:16:26 +00007686fi
7687
7688
7689if test "$CIRCO" != "echo circo" ; then
7690
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007691cat >>confdefs.h <<\_ACEOF
7692#define HAVE_CIRCO 1
7693_ACEOF
David Greenef0b9eff2009-07-09 17:16:26 +00007694
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7697 fi
7698
7699cat >>confdefs.h <<_ACEOF
7700#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7701_ACEOF
7702
7703fi
Reid Spencera773bd52006-08-04 18:18:08 +00007704for ac_prog in gv gsview32
7705do
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710if test "${ac_cv_path_GV+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007712else
7713 case $GV in
7714 [\\/]* | ?:[\\/]*)
7715 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7716 ;;
7717 *)
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 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 +00007725 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007727 break 2
7728 fi
7729done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007730done
Reid Spencera773bd52006-08-04 18:18:08 +00007731IFS=$as_save_IFS
7732
7733 ;;
7734esac
7735fi
7736GV=$ac_cv_path_GV
7737if test -n "$GV"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007738 { echo "$as_me:$LINENO: result: $GV" >&5
7739echo "${ECHO_T}$GV" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007740else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007741 { echo "$as_me:$LINENO: result: no" >&5
7742echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007743fi
7744
7745
7746 test -n "$GV" && break
7747done
7748test -n "$GV" || GV="echo gv"
7749
7750if test "$GV" != "echo gv" ; then
7751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007752cat >>confdefs.h <<\_ACEOF
7753#define HAVE_GV 1
7754_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007755
Jeff Cohen28783c32007-01-12 18:22:38 +00007756 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007757 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7758 fi
7759
7760cat >>confdefs.h <<_ACEOF
7761#define LLVM_PATH_GV "$GV${EXEEXT}"
7762_ACEOF
7763
7764fi
7765# Extract the first word of "dotty", so it can be a program name with args.
7766set dummy dotty; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769if test "${ac_cv_path_DOTTY+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007771else
7772 case $DOTTY in
7773 [\\/]* | ?:[\\/]*)
7774 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7775 ;;
7776 *)
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 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 +00007784 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007786 break 2
7787 fi
7788done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007789done
Reid Spencera773bd52006-08-04 18:18:08 +00007790IFS=$as_save_IFS
7791
7792 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7793 ;;
7794esac
7795fi
7796DOTTY=$ac_cv_path_DOTTY
7797if test -n "$DOTTY"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007798 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7799echo "${ECHO_T}$DOTTY" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007800else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007801 { echo "$as_me:$LINENO: result: no" >&5
7802echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007803fi
7804
7805
7806if test "$DOTTY" != "echo dotty" ; then
7807
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007808cat >>confdefs.h <<\_ACEOF
7809#define HAVE_DOTTY 1
7810_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00007811
Jeff Cohen28783c32007-01-12 18:22:38 +00007812 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007813 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7814 fi
7815
7816cat >>confdefs.h <<_ACEOF
7817#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7818_ACEOF
7819
7820fi
7821
7822
7823# Extract the first word of "perl", so it can be a program name with args.
7824set dummy perl; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827if test "${ac_cv_path_PERL+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007829else
7830 case $PERL in
7831 [\\/]* | ?:[\\/]*)
7832 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7833 ;;
7834 *)
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838 IFS=$as_save_IFS
7839 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 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 +00007842 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007844 break 2
7845 fi
7846done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007847done
Reid Spencera773bd52006-08-04 18:18:08 +00007848IFS=$as_save_IFS
7849
7850 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7851 ;;
7852esac
7853fi
7854PERL=$ac_cv_path_PERL
7855if test -n "$PERL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007856 { echo "$as_me:$LINENO: result: $PERL" >&5
7857echo "${ECHO_T}$PERL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007858else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007859 { echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007861fi
7862
7863
7864if test "$PERL" != "none"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007865 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7866echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007867 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007868 { echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007870 else
7871 PERL=none
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007872 { echo "$as_me:$LINENO: result: not found" >&5
7873echo "${ECHO_T}not found" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007874 fi
7875fi
7876
7877
7878if test x"$PERL" = xnone; then
7879 HAVE_PERL=0
7880
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007881 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7882echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7883 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007884else
7885 HAVE_PERL=1
7886
7887fi
7888
7889# Find a good install program. We prefer a C program (faster),
7890# so one script is as good as another. But avoid the broken or
7891# incompatible versions:
7892# SysV /etc/install, /usr/sbin/install
7893# SunOS /usr/etc/install
7894# IRIX /sbin/install
7895# AIX /bin/install
7896# AmigaOS /C/install, which installs bootblocks on floppy discs
7897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7900# OS/2's system install, which has a completely different semantic
7901# ./install, which can be erroneously created by make from ./install.sh.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007902{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7903echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007904if test -z "$INSTALL"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007905if test "${ac_cv_path_install+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007907else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007913 # Account for people who put trailing slashes in PATH elements.
7914case $as_dir/ in
7915 ./ | .// | /cC/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Reid Spencera773bd52006-08-04 18:18:08 +00007918 /usr/ucb/* ) ;;
7919 *)
7920 # OSF1 and SCO ODT 3.0 have their own names for install.
7921 # Don't use installbsd from OSF since it installs stuff as root
7922 # by default.
7923 for ac_prog in ginstall scoinst install; do
7924 for ac_exec_ext in '' $ac_executable_extensions; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007925 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 +00007926 if test $ac_prog = install &&
7927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7928 # AIX install. It has an incompatible calling convention.
7929 :
7930 elif test $ac_prog = install &&
7931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7932 # program-specific install script used by HP pwplus--don't use.
7933 :
7934 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7936 break 3
Reid Spencera773bd52006-08-04 18:18:08 +00007937 fi
7938 fi
7939 done
7940 done
7941 ;;
7942esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007943done
Reid Spencera773bd52006-08-04 18:18:08 +00007944IFS=$as_save_IFS
7945
7946
7947fi
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL=$ac_cv_path_install
7950 else
7951 # As a last resort, use the slow shell script. Don't cache a
7952 # value for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the value is a relative name.
7955 INSTALL=$ac_install_sh
7956 fi
7957fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007958{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7959echo "${ECHO_T}$INSTALL" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00007960
7961# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962# It thinks the first close brace ends the variable substitution.
7963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7964
7965test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7966
7967test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7968
Eric Christopher2a1a44f2010-07-22 21:13:48 +00007969case "$INSTALL" in
7970 [\\/$]* | ?:[\\/]* ) ;;
7971 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7972esac
Reid Spencera773bd52006-08-04 18:18:08 +00007973
7974# Extract the first word of "bzip2", so it can be a program name with args.
7975set dummy bzip2; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978if test "${ac_cv_path_BZIP2+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00007980else
7981 case $BZIP2 in
7982 [\\/]* | ?:[\\/]*)
7983 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7984 ;;
7985 *)
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 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 +00007993 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00007995 break 2
7996 fi
7997done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00007998done
Reid Spencera773bd52006-08-04 18:18:08 +00007999IFS=$as_save_IFS
8000
Reid Spencera773bd52006-08-04 18:18:08 +00008001 ;;
8002esac
8003fi
8004BZIP2=$ac_cv_path_BZIP2
8005if test -n "$BZIP2"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008006 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8007echo "${ECHO_T}$BZIP2" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008008else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008009 { echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008011fi
8012
8013
mike-m68cb3192010-05-06 23:45:43 +00008014# Extract the first word of "cat", so it can be a program name with args.
8015set dummy cat; ac_word=$2
8016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018if test "${ac_cv_path_CAT+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020else
8021 case $CAT in
8022 [\\/]* | ?:[\\/]*)
8023 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8024 ;;
8025 *)
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037done
8038done
8039IFS=$as_save_IFS
8040
8041 ;;
8042esac
8043fi
8044CAT=$ac_cv_path_CAT
8045if test -n "$CAT"; then
8046 { echo "$as_me:$LINENO: result: $CAT" >&5
8047echo "${ECHO_T}$CAT" >&6; }
8048else
8049 { echo "$as_me:$LINENO: result: no" >&5
8050echo "${ECHO_T}no" >&6; }
8051fi
8052
8053
Reid Spencera773bd52006-08-04 18:18:08 +00008054# Extract the first word of "doxygen", so it can be a program name with args.
8055set dummy doxygen; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008056{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058if test "${ac_cv_path_DOXYGEN+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008060else
8061 case $DOXYGEN in
8062 [\\/]* | ?:[\\/]*)
8063 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8064 ;;
8065 *)
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 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 +00008073 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008075 break 2
8076 fi
8077done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008078done
Reid Spencera773bd52006-08-04 18:18:08 +00008079IFS=$as_save_IFS
8080
Reid Spencera773bd52006-08-04 18:18:08 +00008081 ;;
8082esac
8083fi
8084DOXYGEN=$ac_cv_path_DOXYGEN
8085if test -n "$DOXYGEN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008086 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8087echo "${ECHO_T}$DOXYGEN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008088else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008089 { echo "$as_me:$LINENO: result: no" >&5
8090echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008091fi
8092
8093
Reid Spencera773bd52006-08-04 18:18:08 +00008094# Extract the first word of "groff", so it can be a program name with args.
8095set dummy groff; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098if test "${ac_cv_path_GROFF+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008100else
8101 case $GROFF in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8104 ;;
8105 *)
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 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 +00008113 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008115 break 2
8116 fi
8117done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008118done
Reid Spencera773bd52006-08-04 18:18:08 +00008119IFS=$as_save_IFS
8120
Reid Spencera773bd52006-08-04 18:18:08 +00008121 ;;
8122esac
8123fi
8124GROFF=$ac_cv_path_GROFF
8125if test -n "$GROFF"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008126 { echo "$as_me:$LINENO: result: $GROFF" >&5
8127echo "${ECHO_T}$GROFF" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008128else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008129 { echo "$as_me:$LINENO: result: no" >&5
8130echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008131fi
8132
8133
8134# Extract the first word of "gzip", so it can be a program name with args.
8135set dummy gzip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008136{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138if test "${ac_cv_path_GZIP+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008140else
8141 case $GZIP in
8142 [\\/]* | ?:[\\/]*)
8143 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8144 ;;
8145 *)
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 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 +00008153 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008155 break 2
8156 fi
8157done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008158done
Reid Spencera773bd52006-08-04 18:18:08 +00008159IFS=$as_save_IFS
8160
Reid Spencera773bd52006-08-04 18:18:08 +00008161 ;;
8162esac
8163fi
8164GZIP=$ac_cv_path_GZIP
8165if test -n "$GZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008166 { echo "$as_me:$LINENO: result: $GZIP" >&5
8167echo "${ECHO_T}$GZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008168else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008169 { echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008171fi
8172
8173
8174# Extract the first word of "pod2html", so it can be a program name with args.
8175set dummy pod2html; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178if test "${ac_cv_path_POD2HTML+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008180else
8181 case $POD2HTML in
8182 [\\/]* | ?:[\\/]*)
8183 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8184 ;;
8185 *)
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187for as_dir in $PATH
8188do
8189 IFS=$as_save_IFS
8190 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 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 +00008193 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008195 break 2
8196 fi
8197done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008198done
Reid Spencera773bd52006-08-04 18:18:08 +00008199IFS=$as_save_IFS
8200
Reid Spencera773bd52006-08-04 18:18:08 +00008201 ;;
8202esac
8203fi
8204POD2HTML=$ac_cv_path_POD2HTML
8205if test -n "$POD2HTML"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008206 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8207echo "${ECHO_T}$POD2HTML" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008208else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008209 { echo "$as_me:$LINENO: result: no" >&5
8210echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008211fi
8212
8213
8214# Extract the first word of "pod2man", so it can be a program name with args.
8215set dummy pod2man; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218if test "${ac_cv_path_POD2MAN+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008220else
8221 case $POD2MAN in
8222 [\\/]* | ?:[\\/]*)
8223 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8224 ;;
8225 *)
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227for as_dir in $PATH
8228do
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 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 +00008233 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008235 break 2
8236 fi
8237done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008238done
Reid Spencera773bd52006-08-04 18:18:08 +00008239IFS=$as_save_IFS
8240
Reid Spencera773bd52006-08-04 18:18:08 +00008241 ;;
8242esac
8243fi
8244POD2MAN=$ac_cv_path_POD2MAN
8245if test -n "$POD2MAN"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008246 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8247echo "${ECHO_T}$POD2MAN" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008248else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008249 { echo "$as_me:$LINENO: result: no" >&5
8250echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008251fi
8252
8253
mike-m68cb3192010-05-06 23:45:43 +00008254# Extract the first word of "pdfroff", so it can be a program name with args.
8255set dummy pdfroff; ac_word=$2
8256{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258if test "${ac_cv_path_PDFROFF+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 case $PDFROFF in
8262 [\\/]* | ?:[\\/]*)
8263 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8264 ;;
8265 *)
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267for as_dir in $PATH
8268do
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8276 fi
8277done
8278done
8279IFS=$as_save_IFS
8280
8281 ;;
8282esac
8283fi
8284PDFROFF=$ac_cv_path_PDFROFF
8285if test -n "$PDFROFF"; then
8286 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8287echo "${ECHO_T}$PDFROFF" >&6; }
8288else
8289 { echo "$as_me:$LINENO: result: no" >&5
8290echo "${ECHO_T}no" >&6; }
8291fi
8292
8293
Reid Spencera773bd52006-08-04 18:18:08 +00008294# Extract the first word of "runtest", so it can be a program name with args.
8295set dummy runtest; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008296{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298if test "${ac_cv_path_RUNTEST+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008300else
8301 case $RUNTEST in
8302 [\\/]* | ?:[\\/]*)
8303 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8304 ;;
8305 *)
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307for as_dir in $PATH
8308do
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 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 +00008313 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008315 break 2
8316 fi
8317done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008318done
Reid Spencera773bd52006-08-04 18:18:08 +00008319IFS=$as_save_IFS
8320
Reid Spencera773bd52006-08-04 18:18:08 +00008321 ;;
8322esac
8323fi
8324RUNTEST=$ac_cv_path_RUNTEST
8325if test -n "$RUNTEST"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008326 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8327echo "${ECHO_T}$RUNTEST" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008328else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008329 { echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008331fi
8332
8333
8334
8335no_itcl=true
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008336{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8337echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008338
8339# Check whether --with-tclinclude was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008340if test "${with_tclinclude+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008341 withval=$with_tclinclude; with_tclinclude=${withval}
8342else
8343 with_tclinclude=''
8344fi
8345
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008346if test "${ac_cv_path_tclsh+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008348else
8349
8350if test x"${with_tclinclude}" != x ; then
8351 if test -f ${with_tclinclude}/tclsh ; then
8352 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8353 elif test -f ${with_tclinclude}/src/tclsh ; then
8354 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8355 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008356 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8357echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8358 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00008359 fi
8360fi
Torok Edwin871384f2010-01-26 08:50:50 +00008361fi
8362
Reid Spencera773bd52006-08-04 18:18:08 +00008363
8364if test x"${ac_cv_path_tclsh}" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008365 { echo "$as_me:$LINENO: result: none" >&5
8366echo "${ECHO_T}none" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008367 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
8368do
8369 # Extract the first word of "$ac_prog", so it can be a program name with args.
8370set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8373if test "${ac_cv_path_TCLSH+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008375else
8376 case $TCLSH in
8377 [\\/]* | ?:[\\/]*)
8378 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8379 ;;
8380 *)
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 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 +00008388 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008390 break 2
8391 fi
8392done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008393done
Reid Spencera773bd52006-08-04 18:18:08 +00008394IFS=$as_save_IFS
8395
8396 ;;
8397esac
8398fi
8399TCLSH=$ac_cv_path_TCLSH
8400if test -n "$TCLSH"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008401 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8402echo "${ECHO_T}$TCLSH" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008403else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008404 { echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008406fi
8407
8408
8409 test -n "$TCLSH" && break
8410done
8411
8412 if test x"${TCLSH}" = x ; then
8413 ac_cv_path_tclsh='';
8414 else
8415 ac_cv_path_tclsh="${TCLSH}";
8416 fi
8417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008418 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8419echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008420 TCLSH="${ac_cv_path_tclsh}"
8421
8422fi
8423
Reid Spencera773bd52006-08-04 18:18:08 +00008424# Extract the first word of "zip", so it can be a program name with args.
8425set dummy zip; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428if test "${ac_cv_path_ZIP+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008430else
8431 case $ZIP in
8432 [\\/]* | ?:[\\/]*)
8433 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8434 ;;
8435 *)
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437for as_dir in $PATH
8438do
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 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 +00008443 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencera773bd52006-08-04 18:18:08 +00008445 break 2
8446 fi
8447done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008448done
Reid Spencera773bd52006-08-04 18:18:08 +00008449IFS=$as_save_IFS
8450
Reid Spencera773bd52006-08-04 18:18:08 +00008451 ;;
8452esac
8453fi
8454ZIP=$ac_cv_path_ZIP
8455if test -n "$ZIP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008456 { echo "$as_me:$LINENO: result: $ZIP" >&5
8457echo "${ECHO_T}$ZIP" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008458else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008459 { echo "$as_me:$LINENO: result: no" >&5
8460echo "${ECHO_T}no" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008461fi
8462
8463
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008464for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008465do
8466 # Extract the first word of "$ac_prog", so it can be a program name with args.
8467set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470if test "${ac_cv_path_OCAMLC+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008472else
8473 case $OCAMLC in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8476 ;;
8477 *)
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 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 +00008485 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008487 break 2
8488 fi
8489done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008490done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008491IFS=$as_save_IFS
8492
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008493 ;;
8494esac
8495fi
8496OCAMLC=$ac_cv_path_OCAMLC
8497if test -n "$OCAMLC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008498 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8499echo "${ECHO_T}$OCAMLC" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008500else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008501 { echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008503fi
8504
8505
Gordon Henriksene7072162008-03-07 18:20:01 +00008506 test -n "$OCAMLC" && break
8507done
8508
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008509for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008510do
8511 # Extract the first word of "$ac_prog", so it can be a program name with args.
8512set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008517else
8518 case $OCAMLOPT in
8519 [\\/]* | ?:[\\/]*)
8520 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8521 ;;
8522 *)
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524for as_dir in $PATH
8525do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 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 +00008530 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008532 break 2
8533 fi
8534done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008535done
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008536IFS=$as_save_IFS
8537
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008538 ;;
8539esac
8540fi
8541OCAMLOPT=$ac_cv_path_OCAMLOPT
8542if test -n "$OCAMLOPT"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008543 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8544echo "${ECHO_T}$OCAMLOPT" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008545else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008546 { echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6; }
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008548fi
8549
8550
Gordon Henriksene7072162008-03-07 18:20:01 +00008551 test -n "$OCAMLOPT" && break
8552done
8553
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008554for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008555do
8556 # Extract the first word of "$ac_prog", so it can be a program name with args.
8557set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008562else
8563 case $OCAMLDEP in
8564 [\\/]* | ?:[\\/]*)
8565 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8566 ;;
8567 *)
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 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 +00008575 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008577 break 2
8578 fi
8579done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008580done
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008581IFS=$as_save_IFS
8582
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008583 ;;
8584esac
8585fi
8586OCAMLDEP=$ac_cv_path_OCAMLDEP
8587if test -n "$OCAMLDEP"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008588 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8589echo "${ECHO_T}$OCAMLDEP" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008590else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008591 { echo "$as_me:$LINENO: result: no" >&5
8592echo "${ECHO_T}no" >&6; }
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008593fi
8594
8595
Gordon Henriksene7072162008-03-07 18:20:01 +00008596 test -n "$OCAMLDEP" && break
8597done
8598
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008599for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008600do
8601 # Extract the first word of "$ac_prog", so it can be a program name with args.
8602set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8605if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008607else
8608 case $OCAMLDOC in
8609 [\\/]* | ?:[\\/]*)
8610 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8611 ;;
8612 *)
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 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 +00008620 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008622 break 2
8623 fi
8624done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008625done
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008626IFS=$as_save_IFS
8627
8628 ;;
8629esac
8630fi
8631OCAMLDOC=$ac_cv_path_OCAMLDOC
8632if test -n "$OCAMLDOC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008633 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8634echo "${ECHO_T}$OCAMLDOC" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008635else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008636 { echo "$as_me:$LINENO: result: no" >&5
8637echo "${ECHO_T}no" >&6; }
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008638fi
8639
8640
8641 test -n "$OCAMLDOC" && break
8642done
8643
Torok Edwincc499a42008-10-22 09:56:27 +00008644for ac_prog in gas as
8645do
8646 # Extract the first word of "$ac_prog", so it can be a program name with args.
8647set dummy $ac_prog; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008648{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8650if test "${ac_cv_path_GAS+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
Torok Edwincc499a42008-10-22 09:56:27 +00008652else
8653 case $GAS in
8654 [\\/]* | ?:[\\/]*)
8655 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8656 ;;
8657 *)
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 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 +00008665 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Torok Edwincc499a42008-10-22 09:56:27 +00008667 break 2
8668 fi
8669done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008670done
Torok Edwincc499a42008-10-22 09:56:27 +00008671IFS=$as_save_IFS
8672
8673 ;;
8674esac
8675fi
8676GAS=$ac_cv_path_GAS
8677if test -n "$GAS"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008678 { echo "$as_me:$LINENO: result: $GAS" >&5
8679echo "${ECHO_T}$GAS" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008680else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008681 { echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6; }
Torok Edwincc499a42008-10-22 09:56:27 +00008683fi
8684
8685
8686 test -n "$GAS" && break
8687done
8688
Reid Spencera773bd52006-08-04 18:18:08 +00008689
Daniel Dunbaree0f32d2010-08-11 23:53:59 +00008690{ echo "$as_me:$LINENO: checking for linker version" >&5
8691echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8692if test "${llvm_cv_link_version+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
8695
8696 version_string="$(ld -v 2>&1 | head -1)"
8697
8698 # Check for ld64.
8699 if (echo "$version_string" | grep -q "ld64"); then
8700 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8701 else
8702 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8703 fi
8704
8705fi
8706{ echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8707echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8708
8709cat >>confdefs.h <<_ACEOF
8710#define HOST_LINK_VERSION "$llvm_cv_link_version"
8711_ACEOF
8712
8713
8714
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008715{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8716echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8717if test "${llvm_cv_link_use_r+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00008719else
8720 ac_ext=c
8721ac_cpp='$CPP $CPPFLAGS'
8722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724ac_compiler_gnu=$ac_cv_c_compiler_gnu
8725
8726 oldcflags="$CFLAGS"
8727 CFLAGS="$CFLAGS -Wl,-R."
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008728 cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008733/* end confdefs.h. */
8734
8735int
8736main ()
8737{
Dan Gohman39ed6782010-04-25 00:12:20 +00008738
Reid Spencera773bd52006-08-04 18:18:08 +00008739 ;
8740 return 0;
8741}
8742_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008743rm -f conftest.$ac_objext conftest$ac_exeext
8744if { (ac_try="$ac_link"
8745case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8748esac
8749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_link") 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8758 { (case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8761esac
8762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_try") 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771esac
8772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_try") 2>&5
8774 ac_status=$?
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008777 llvm_cv_link_use_r=yes
8778else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008779 echo "$as_me: failed program was:" >&5
8780sed 's/^/| /' conftest.$ac_ext >&5
8781
8782 llvm_cv_link_use_r=no
Reid Spencera773bd52006-08-04 18:18:08 +00008783fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008784
Bill Wendlingebcceee2009-04-18 11:20:33 +00008785rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008786 conftest$ac_exeext conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008787 CFLAGS="$oldcflags"
8788 ac_ext=c
8789ac_cpp='$CPP $CPPFLAGS'
8790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792ac_compiler_gnu=$ac_cv_c_compiler_gnu
8793
8794
8795fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008796{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8797echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00008798if test "$llvm_cv_link_use_r" = yes ; then
8799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008800cat >>confdefs.h <<\_ACEOF
8801#define HAVE_LINK_R 1
8802_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008803
8804 fi
8805
8806
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008807{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8808echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8809if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008811else
8812 ac_ext=c
8813ac_cpp='$CPP $CPPFLAGS'
8814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816ac_compiler_gnu=$ac_cv_c_compiler_gnu
8817
8818 oldcflags="$CFLAGS"
8819 CFLAGS="$CFLAGS -Wl,-export-dynamic"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008820 cat >conftest.$ac_ext <<_ACEOF
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008825/* end confdefs.h. */
8826
8827int
8828main ()
8829{
Dan Gohman39ed6782010-04-25 00:12:20 +00008830
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008831 ;
8832 return 0;
8833}
8834_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008835rm -f conftest.$ac_objext conftest$ac_exeext
8836if { (ac_try="$ac_link"
8837case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840esac
8841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8853esac
8854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008869 llvm_cv_link_use_export_dynamic=yes
8870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008871 echo "$as_me: failed program was:" >&5
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874 llvm_cv_link_use_export_dynamic=no
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008875fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008876
Bill Wendlingebcceee2009-04-18 11:20:33 +00008877rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008878 conftest$ac_exeext conftest.$ac_ext
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008879 CFLAGS="$oldcflags"
8880 ac_ext=c
8881ac_cpp='$CPP $CPPFLAGS'
8882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885
8886
8887fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008888{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8889echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008890if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8891
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00008892cat >>confdefs.h <<\_ACEOF
8893#define HAVE_LINK_EXPORT_DYNAMIC 1
8894_ACEOF
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008895
8896 fi
8897
8898
Dan Gohmanda612d62010-06-01 14:56:56 +00008899{ echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8900echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8901if test "${llvm_cv_link_use_version_script+set}" = set; then
Dan Gohman391569c2010-04-16 22:59:06 +00008902 echo $ECHO_N "(cached) $ECHO_C" >&6
8903else
8904 ac_ext=c
8905ac_cpp='$CPP $CPPFLAGS'
8906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
8910 oldcflags="$CFLAGS"
8911
8912 # The following code is from the autoconf manual,
8913 # "11.13: Limitations of Usual Tools".
8914 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8915 # Use mktemp if possible; otherwise fall back on mkdir,
8916 # with $RANDOM to make collisions less likely.
8917 : ${TMPDIR=/tmp}
8918 {
8919 tmp=`
8920 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8921 ` &&
8922 test -n "$tmp" && test -d "$tmp"
8923 } || {
8924 tmp=$TMPDIR/foo$$-$RANDOM
8925 (umask 077 && mkdir "$tmp")
8926 } || exit $?
8927
Dan Gohmanda612d62010-06-01 14:56:56 +00008928 echo "{" > "$tmp/export.map"
8929 echo " global: main;" >> "$tmp/export.map"
8930 echo " local: *;" >> "$tmp/export.map"
8931 echo "};" >> "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008932
Dan Gohmanda612d62010-06-01 14:56:56 +00008933 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008934 cat >conftest.$ac_ext <<_ACEOF
8935/* confdefs.h. */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h. */
8940
8941int
8942main ()
8943{
Dan Gohman39ed6782010-04-25 00:12:20 +00008944
Dan Gohman391569c2010-04-16 22:59:06 +00008945 ;
8946 return 0;
8947}
8948_ACEOF
8949rm -f conftest.$ac_objext conftest$ac_exeext
8950if { (ac_try="$ac_link"
8951case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_link") 2>conftest.er1
8957 ac_status=$?
8958 grep -v '^ *+' conftest.er1 >conftest.err
8959 rm -f conftest.er1
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8964 { (case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
8968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_try") 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try='test -s conftest$ac_exeext'
8974 { (case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977esac
8978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_try") 2>&5
8980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
Dan Gohmanda612d62010-06-01 14:56:56 +00008983 llvm_cv_link_use_version_script=yes
Dan Gohman391569c2010-04-16 22:59:06 +00008984else
8985 echo "$as_me: failed program was:" >&5
8986sed 's/^/| /' conftest.$ac_ext >&5
8987
Dan Gohman943005e2010-06-01 16:22:27 +00008988 llvm_cv_link_use_version_script=no
Dan Gohman391569c2010-04-16 22:59:06 +00008989fi
8990
8991rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
Dan Gohmanda612d62010-06-01 14:56:56 +00008993 rm "$tmp/export.map"
Dan Gohman391569c2010-04-16 22:59:06 +00008994 rmdir "$tmp"
8995 CFLAGS="$oldcflags"
8996 ac_ext=c
8997ac_cpp='$CPP $CPPFLAGS'
8998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001
9002
9003fi
Dan Gohmanda612d62010-06-01 14:56:56 +00009004{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9005echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9006if test "$llvm_cv_link_use_version_script" = yes ; then
9007 HAVE_LINK_VERSION_SCRIPT=1
Dan Gohman391569c2010-04-16 22:59:06 +00009008
9009 fi
9010
9011
Reid Spencera773bd52006-08-04 18:18:08 +00009012
9013
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009014{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9015echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9016if test "${ac_cv_c_const+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009018else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009019 cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h. */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009024/* end confdefs.h. */
9025
9026int
9027main ()
9028{
9029/* FIXME: Include the comments suggested by Paul. */
9030#ifndef __cplusplus
9031 /* Ultrix mips cc rejects this. */
9032 typedef int charset[2];
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009033 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00009034 /* SunOS 4.1.1 cc rejects this. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009035 char const *const *ccp;
9036 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00009037 /* NEC SVR4.0.2 mips cc rejects this. */
9038 struct point {int x, y;};
9039 static struct point const zero = {0,0};
9040 /* AIX XL C 1.02.0.0 rejects this.
9041 It does not let you subtract one const X* pointer from another in
9042 an arm of an if-expression whose if-part is not a constant
9043 expression */
9044 const char *g = "string";
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009045 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00009046 /* HPUX 7.0 cc rejects these. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009047 ++ccp;
9048 p = (char**) ccp;
9049 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00009050 { /* SCO 3.2v4 cc rejects this. */
9051 char *t;
9052 char const *s = 0 ? (char *) 0 : (char const *) 0;
9053
9054 *t++ = 0;
9055 if (s) return 0;
9056 }
9057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9058 int x[] = {25, 17};
9059 const int *foo = &x[0];
9060 ++foo;
9061 }
9062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9063 typedef const int *iptr;
9064 iptr p = 0;
9065 ++p;
9066 }
9067 { /* AIX XL C 1.02.0.0 rejects this saying
9068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9069 struct s { int j; const int *ap[3]; };
9070 struct s *b; b->j = 5;
9071 }
9072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9073 const int foo = 10;
9074 if (!foo) return 0;
9075 }
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009076 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00009077#endif
9078
9079 ;
9080 return 0;
9081}
9082_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009083rm -f conftest.$ac_objext
9084if { (ac_try="$ac_compile"
9085case "(($ac_try" in
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9088esac
9089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090 (eval "$ac_compile") 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098 { (case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101esac
9102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_try") 2>&5
9104 ac_status=$?
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111esac
9112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9114 ac_status=$?
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009117 ac_cv_c_const=yes
9118else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009119 echo "$as_me: failed program was:" >&5
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
9122 ac_cv_c_const=no
Reid Spencera773bd52006-08-04 18:18:08 +00009123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009124
Reid Spencera773bd52006-08-04 18:18:08 +00009125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9126fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009127{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9128echo "${ECHO_T}$ac_cv_c_const" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009129if test $ac_cv_c_const = no; then
9130
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009131cat >>confdefs.h <<\_ACEOF
9132#define const
9133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009134
9135fi
9136
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009137
9138
9139
9140
9141
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009142ac_header_dirent=no
9143for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009144 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9145{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9146echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009149else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009150 cat >conftest.$ac_ext <<_ACEOF
9151/* confdefs.h. */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155/* end confdefs.h. */
9156#include <sys/types.h>
9157#include <$ac_hdr>
9158
9159int
9160main ()
9161{
9162if ((DIR *) 0)
9163return 0;
9164 ;
9165 return 0;
9166}
9167_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009168rm -f conftest.$ac_objext
9169if { (ac_try="$ac_compile"
9170case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173esac
9174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9183 { (case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_try") 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (case "(($ac_try" in
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9196esac
9197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 (eval "$ac_try") 2>&5
9199 ac_status=$?
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009202 eval "$as_ac_Header=yes"
9203else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009204 echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009208fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009209
Reid Spencera773bd52006-08-04 18:18:08 +00009210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009212ac_res=`eval echo '${'$as_ac_Header'}'`
9213 { echo "$as_me:$LINENO: result: $ac_res" >&5
9214echo "${ECHO_T}$ac_res" >&6; }
9215if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009216 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009217#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218_ACEOF
9219
9220ac_header_dirent=$ac_hdr; break
9221fi
9222
9223done
9224# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9225if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009226 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9227echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9228if test "${ac_cv_search_opendir+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009230else
9231 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009232cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237/* end confdefs.h. */
9238
Reid Spencera773bd52006-08-04 18:18:08 +00009239/* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242#ifdef __cplusplus
9243extern "C"
9244#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009245char opendir ();
9246int
9247main ()
9248{
Reid Spencera773bd52006-08-04 18:18:08 +00009249return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009250 ;
9251 return 0;
9252}
9253_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009254for ac_lib in '' dir; do
9255 if test -z "$ac_lib"; then
9256 ac_res="none required"
9257 else
9258 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00009260 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009261 rm -f conftest.$ac_objext conftest$ac_exeext
9262if { (ac_try="$ac_link"
9263case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9266esac
9267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_link") 2>conftest.er1
9269 ac_status=$?
9270 grep -v '^ *+' conftest.er1 >conftest.err
9271 rm -f conftest.er1
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9276 { (case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9279esac
9280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_try") 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289esac
9290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_try") 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009295 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009301fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009302
Bill Wendlingebcceee2009-04-18 11:20:33 +00009303rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009304 conftest$ac_exeext
9305 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009306 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307fi
John Criswell7a73b802003-06-30 21:59:07 +00009308done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009309if test "${ac_cv_search_opendir+set}" = set; then
9310 :
Reid Spencera773bd52006-08-04 18:18:08 +00009311else
9312 ac_cv_search_opendir=no
9313fi
9314rm conftest.$ac_ext
9315LIBS=$ac_func_search_save_LIBS
9316fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009317{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9318echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009319ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009320if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00009322
Reid Spencera773bd52006-08-04 18:18:08 +00009323fi
9324
9325else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009326 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9327echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9328if test "${ac_cv_search_opendir+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencera773bd52006-08-04 18:18:08 +00009330else
9331 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009332cat >conftest.$ac_ext <<_ACEOF
9333/* confdefs.h. */
9334_ACEOF
9335cat confdefs.h >>conftest.$ac_ext
9336cat >>conftest.$ac_ext <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009337/* end confdefs.h. */
9338
9339/* Override any GCC internal prototype to avoid an error.
9340 Use char because int might match the return type of a GCC
9341 builtin and then its argument prototype would still apply. */
9342#ifdef __cplusplus
9343extern "C"
9344#endif
9345char opendir ();
9346int
9347main ()
9348{
9349return opendir ();
9350 ;
9351 return 0;
9352}
9353_ACEOF
9354for ac_lib in '' x; do
9355 if test -z "$ac_lib"; then
9356 ac_res="none required"
9357 else
9358 ac_res=-l$ac_lib
9359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9360 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009361 rm -f conftest.$ac_objext conftest$ac_exeext
9362if { (ac_try="$ac_link"
9363case "(($ac_try" in
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9379esac
9380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9389esac
9390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_try") 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00009395 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009396else
9397 echo "$as_me: failed program was:" >&5
9398sed 's/^/| /' conftest.$ac_ext >&5
9399
9400
Reid Spencera773bd52006-08-04 18:18:08 +00009401fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009402
Bill Wendlingebcceee2009-04-18 11:20:33 +00009403rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009404 conftest$ac_exeext
9405 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009406 break
9407fi
9408done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009409if test "${ac_cv_search_opendir+set}" = set; then
9410 :
Reid Spencera773bd52006-08-04 18:18:08 +00009411else
9412 ac_cv_search_opendir=no
9413fi
9414rm conftest.$ac_ext
9415LIBS=$ac_func_search_save_LIBS
9416fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009417{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9418echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +00009419ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009420if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +00009421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9422
9423fi
9424
9425fi
John Criswell7a73b802003-06-30 21:59:07 +00009426
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009427
John Criswell7a73b802003-06-30 21:59:07 +00009428for ac_header in dlfcn.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009429do
9430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436fi
9437ac_res=`eval echo '${'$as_ac_Header'}'`
9438 { echo "$as_me:$LINENO: result: $ac_res" >&5
9439echo "${ECHO_T}$ac_res" >&6; }
9440else
9441 # Is the header compilable?
9442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9444cat >conftest.$ac_ext <<_ACEOF
9445/* confdefs.h. */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
9449/* end confdefs.h. */
9450$ac_includes_default
9451#include <$ac_header>
9452_ACEOF
9453rm -f conftest.$ac_objext
9454if { (ac_try="$ac_compile"
9455case "(($ac_try" in
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9458esac
9459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_compile") 2>conftest.er1
9461 ac_status=$?
9462 grep -v '^ *+' conftest.er1 >conftest.err
9463 rm -f conftest.er1
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9468 { (case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9471esac
9472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_try") 2>&5
9474 ac_status=$?
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest.$ac_objext'
9478 { (case "(($ac_try" in
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9481esac
9482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483 (eval "$ac_try") 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_header_compiler=yes
9488else
9489 echo "$as_me: failed program was:" >&5
9490sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 ac_header_compiler=no
9493fi
9494
9495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9497echo "${ECHO_T}$ac_header_compiler" >&6; }
9498
9499# Is the header present?
9500{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9502cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h. */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h. */
9508#include <$ac_header>
9509_ACEOF
9510if { (ac_try="$ac_cpp conftest.$ac_ext"
9511case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514esac
9515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } >/dev/null; then
9523 if test -s conftest.err; then
9524 ac_cpp_err=$ac_c_preproc_warn_flag
9525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9526 else
9527 ac_cpp_err=
9528 fi
9529else
9530 ac_cpp_err=yes
9531fi
9532if test -z "$ac_cpp_err"; then
9533 ac_header_preproc=yes
9534else
9535 echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538 ac_header_preproc=no
9539fi
9540
9541rm -f conftest.err conftest.$ac_ext
9542{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543echo "${ECHO_T}$ac_header_preproc" >&6; }
9544
9545# So? What about this header?
9546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547 yes:no: )
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552 ac_header_preproc=yes
9553 ;;
9554 no:yes:* )
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9567 ( cat <<\_ASBOX
9568## ----------------------------------- ##
9569## Report this to llvmbugs@cs.uiuc.edu ##
9570## ----------------------------------- ##
9571_ASBOX
9572 ) | sed "s/^/$as_me: WARNING: /" >&2
9573 ;;
9574esac
9575{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9579else
9580 eval "$as_ac_Header=\$ac_header_preproc"
9581fi
9582ac_res=`eval echo '${'$as_ac_Header'}'`
9583 { echo "$as_me:$LINENO: result: $ac_res" >&5
9584echo "${ECHO_T}$ac_res" >&6; }
9585
9586fi
9587if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +00009588 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +00009590_ACEOF
9591
9592fi
9593
9594done
9595
Reid Spencera773bd52006-08-04 18:18:08 +00009596# Check whether --enable-ltdl-install was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009597if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009598 enableval=$enable_ltdl_install;
9599fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009602
9603
9604if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605 INSTALL_LTDL_TRUE=
9606 INSTALL_LTDL_FALSE='#'
9607else
9608 INSTALL_LTDL_TRUE='#'
9609 INSTALL_LTDL_FALSE=
9610fi
9611
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009612
9613
9614if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009615 CONVENIENCE_LTDL_TRUE=
9616 CONVENIENCE_LTDL_FALSE='#'
9617else
9618 CONVENIENCE_LTDL_TRUE='#'
9619 CONVENIENCE_LTDL_FALSE=
9620fi
9621
9622
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +00009623{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9624echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625library_names_spec=
9626libname_spec='lib$name'
9627soname_spec=
9628shrext_cmds=".so"
9629postinstall_cmds=
9630postuninstall_cmds=
9631finish_cmds=
9632finish_eval=
9633shlibpath_var=
9634shlibpath_overrides_runpath=unknown
9635version_type=none
9636dynamic_linker="$host_os ld.so"
9637sys_lib_dlsearch_path_spec="/lib /usr/lib"
9638if test "$GCC" = yes; then
9639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9641 # if the path contains ";" then we assume it to be the separator
9642 # otherwise default to the standard path separator (i.e. ":") - it is
9643 # assumed that no part of a normal pathname contains ";" but that should
9644 # okay in the real world where ";" in dirpaths is itself problematic.
9645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9646 else
9647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9648 fi
9649else
9650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9651fi
9652need_lib_prefix=unknown
9653hardcode_into_libs=no
9654
9655# when you set need_version to no, make sure it does not cause -set_version
9656# flags to be left without arguments
9657need_version=unknown
9658
9659case $host_os in
9660aix3*)
9661 version_type=linux
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9663 shlibpath_var=LIBPATH
9664
9665 # AIX 3 has no versioning support, so we append a major version to the name.
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 ;;
9668
9669aix4* | aix5*)
9670 version_type=linux
9671 need_lib_prefix=no
9672 need_version=no
9673 hardcode_into_libs=yes
9674 if test "$host_cpu" = ia64; then
9675 # AIX 5 supports IA64
9676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 else
9679 # With GCC up to 2.95.x, collect2 would create an import file
9680 # for dependence libraries. The import file would start with
9681 # the line `#! .'. This would cause the generated library to
9682 # depend on `.', always an invalid library. This was fixed in
9683 # development snapshots of GCC prior to 3.0.
9684 case $host_os in
9685 aix4 | aix4.[01] | aix4.[01].*)
9686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9687 echo ' yes '
9688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9689 :
9690 else
9691 can_build_shared=no
9692 fi
9693 ;;
9694 esac
9695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9696 # soname into executable. Probably we can add versioning support to
9697 # collect2, so additional links can be useful in future.
9698 if test "$aix_use_runtimelinking" = yes; then
9699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9700 # instead of lib<name>.a to let people know that these are not
9701 # typical AIX shared libraries.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 else
9704 # We preserve .a as extension for shared libraries through AIX4.2
9705 # and later when we are not doing run time linking.
9706 library_names_spec='${libname}${release}.a $libname.a'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9708 fi
9709 shlibpath_var=LIBPATH
9710 fi
9711 ;;
9712
9713amigaos*)
9714 library_names_spec='$libname.ixlibrary $libname.a'
9715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9716 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'
9717 ;;
9718
9719beos*)
9720 library_names_spec='${libname}${shared_ext}'
9721 dynamic_linker="$host_os ld.so"
9722 shlibpath_var=LIBRARY_PATH
9723 ;;
9724
9725bsdi[45]*)
9726 version_type=linux
9727 need_version=no
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9734 # the default ld.so.conf also contains /usr/contrib/lib and
9735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9736 # libtool to hard-code these into programs
9737 ;;
9738
9739cygwin* | mingw* | pw32*)
9740 version_type=windows
9741 shrext_cmds=".dll"
9742 need_version=no
9743 need_lib_prefix=no
9744
9745 case $GCC,$host_os in
9746 yes,cygwin* | yes,mingw* | yes,pw32*)
9747 library_names_spec='$libname.dll.a'
9748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9749 postinstall_cmds='base_file=`basename \${file}`~
9750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9751 dldir=$destdir/`dirname \$dlpath`~
9752 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009753 $install_prog $dir/$dlname \$dldir/$dlname~
9754 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9756 dlpath=$dir/\$dldll~
9757 $rm \$dlpath'
9758 shlibpath_overrides_runpath=yes
9759
9760 case $host_os in
9761 cygwin*)
9762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9765 ;;
9766 mingw*)
9767 # MinGW DLLs use traditional 'lib' prefix
9768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9771 # It is most probably a Windows format PATH printed by
9772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9773 # path with ; separators, and with drive letters. We can handle the
9774 # drive letters (cygwin fileutils understands them), so leave them,
9775 # especially as we might pass files found there to a mingw objdump,
9776 # which wouldn't understand a cygwinified path. Ahh.
9777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9778 else
9779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9780 fi
9781 ;;
9782 pw32*)
9783 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009784 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 +00009785 ;;
9786 esac
9787 ;;
9788
9789 *)
9790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9791 ;;
9792 esac
9793 dynamic_linker='Win32 ld.exe'
9794 # FIXME: first we should search . and the directory the executable is in
9795 shlibpath_var=PATH
9796 ;;
9797
9798darwin* | rhapsody*)
9799 dynamic_linker="$host_os dyld"
9800 version_type=darwin
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9804 soname_spec='${libname}${release}${major}$shared_ext'
9805 shlibpath_overrides_runpath=yes
9806 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009807 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9809 if test "$GCC" = yes; then
9810 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"`
9811 else
9812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9813 fi
9814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9815 ;;
9816
9817dgux*)
9818 version_type=linux
9819 need_lib_prefix=no
9820 need_version=no
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 shlibpath_var=LD_LIBRARY_PATH
9824 ;;
9825
9826freebsd1*)
9827 dynamic_linker=no
9828 ;;
9829
9830kfreebsd*-gnu)
9831 version_type=linux
9832 need_lib_prefix=no
9833 need_version=no
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=no
9838 hardcode_into_libs=yes
9839 dynamic_linker='GNU ld.so'
9840 ;;
9841
Reid Spencera773bd52006-08-04 18:18:08 +00009842freebsd* | dragonfly*)
9843 # DragonFly does not have aout. When/if they implement a new
9844 # versioning mechanism, adjust this.
9845 if test -x /usr/bin/objformat; then
9846 objformat=`/usr/bin/objformat`
9847 else
9848 case $host_os in
9849 freebsd[123]*) objformat=aout ;;
9850 *) objformat=elf ;;
9851 esac
9852 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853 version_type=freebsd-$objformat
9854 case $version_type in
9855 freebsd-elf*)
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9857 need_version=no
9858 need_lib_prefix=no
9859 ;;
9860 freebsd-*)
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9862 need_version=yes
9863 ;;
9864 esac
9865 shlibpath_var=LD_LIBRARY_PATH
9866 case $host_os in
9867 freebsd2*)
9868 shlibpath_overrides_runpath=yes
9869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009870 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871 shlibpath_overrides_runpath=yes
9872 hardcode_into_libs=yes
9873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876 shlibpath_overrides_runpath=no
9877 hardcode_into_libs=yes
9878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009879 freebsd*) # from 4.6 on
9880 shlibpath_overrides_runpath=yes
9881 hardcode_into_libs=yes
9882 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009883 esac
9884 ;;
9885
9886gnu*)
9887 version_type=linux
9888 need_lib_prefix=no
9889 need_version=no
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 hardcode_into_libs=yes
9894 ;;
9895
9896hpux9* | hpux10* | hpux11*)
9897 # Give a soname corresponding to the major version so that dld.sl refuses to
9898 # link against other versions.
9899 version_type=sunos
9900 need_lib_prefix=no
9901 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009902 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903 ia64*)
9904 shrext_cmds='.so'
9905 hardcode_into_libs=yes
9906 dynamic_linker="$host_os dld.so"
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 if test "X$HPUX_IA64_MODE" = X32; then
9912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9913 else
9914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9915 fi
9916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9917 ;;
9918 hppa*64*)
9919 shrext_cmds='.sl'
9920 hardcode_into_libs=yes
9921 dynamic_linker="$host_os dld.sl"
9922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9928 ;;
9929 *)
9930 shrext_cmds='.sl'
9931 dynamic_linker="$host_os dld.sl"
9932 shlibpath_var=SHLIB_PATH
9933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 ;;
9937 esac
9938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9939 postinstall_cmds='chmod 555 $lib'
9940 ;;
9941
Reid Spencera773bd52006-08-04 18:18:08 +00009942interix3*)
9943 version_type=linux
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=no
9951 hardcode_into_libs=yes
9952 ;;
9953
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954irix5* | irix6* | nonstopux*)
9955 case $host_os in
9956 nonstopux*) version_type=nonstopux ;;
9957 *)
9958 if test "$lt_cv_prog_gnu_ld" = yes; then
9959 version_type=linux
9960 else
9961 version_type=irix
9962 fi ;;
9963 esac
9964 need_lib_prefix=no
9965 need_version=no
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9968 case $host_os in
9969 irix5* | nonstopux*)
9970 libsuff= shlibsuff=
9971 ;;
9972 *)
9973 case $LD in # libtool.m4 will add one of these switches to LD
9974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9975 libsuff= shlibsuff= libmagic=32-bit;;
9976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9977 libsuff=32 shlibsuff=N32 libmagic=N32;;
9978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9980 *) libsuff= shlibsuff= libmagic=never-match;;
9981 esac
9982 ;;
9983 esac
9984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9985 shlibpath_overrides_runpath=no
9986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9988 hardcode_into_libs=yes
9989 ;;
9990
9991# No shared lib support for Linux oldld, aout, or coff.
9992linux*oldld* | linux*aout* | linux*coff*)
9993 dynamic_linker=no
9994 ;;
9995
9996# This must be Linux ELF.
9997linux*)
9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 shlibpath_overrides_runpath=no
10006 # This implies no fast_install, which is unacceptable.
10007 # Some rework will be needed to allow for fast_install
10008 # before this can be enabled.
10009 hardcode_into_libs=yes
10010
10011 # Append ld.so.conf contents to the search path
10012 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000010013 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 +000010014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10015 fi
10016
10017 # We used to test for /lib/ld.so.1 and disable shared libraries on
10018 # powerpc, because MkLinux only supported shared libraries with the
10019 # GNU dynamic linker. Since this was broken with cross compilers,
10020 # most powerpc-linux boxes support dynamic linking these days and
10021 # people can always --disable-shared, the test was removed, and we
10022 # assume the GNU/Linux dynamic linker is in use.
10023 dynamic_linker='GNU/Linux ld.so'
10024 ;;
10025
10026knetbsd*-gnu)
10027 version_type=linux
10028 need_lib_prefix=no
10029 need_version=no
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10035 dynamic_linker='GNU ld.so'
10036 ;;
10037
10038netbsd*)
10039 version_type=sunos
10040 need_lib_prefix=no
10041 need_version=no
10042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10045 dynamic_linker='NetBSD (a.out) ld.so'
10046 else
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 dynamic_linker='NetBSD ld.elf_so'
10050 fi
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes
10053 hardcode_into_libs=yes
10054 ;;
10055
10056newsos6)
10057 version_type=linux
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=yes
10061 ;;
10062
10063nto-qnx*)
10064 version_type=linux
10065 need_lib_prefix=no
10066 need_version=no
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=yes
10071 ;;
10072
10073openbsd*)
10074 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000010075 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000010077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10078 case $host_os in
10079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10080 *) need_version=no ;;
10081 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10086 case $host_os in
10087 openbsd2.[89] | openbsd2.[89].*)
10088 shlibpath_overrides_runpath=no
10089 ;;
10090 *)
10091 shlibpath_overrides_runpath=yes
10092 ;;
10093 esac
10094 else
10095 shlibpath_overrides_runpath=yes
10096 fi
10097 ;;
10098
10099os2*)
10100 libname_spec='$name'
10101 shrext_cmds=".dll"
10102 need_lib_prefix=no
10103 library_names_spec='$libname${shared_ext} $libname.a'
10104 dynamic_linker='OS/2 ld.exe'
10105 shlibpath_var=LIBPATH
10106 ;;
10107
10108osf3* | osf4* | osf5*)
10109 version_type=osf
10110 need_lib_prefix=no
10111 need_version=no
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10117 ;;
10118
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119solaris*)
10120 version_type=linux
10121 need_lib_prefix=no
10122 need_version=no
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=yes
10127 hardcode_into_libs=yes
10128 # ldd complains unless libraries are executable
10129 postinstall_cmds='chmod +x $lib'
10130 ;;
10131
10132sunos4*)
10133 version_type=sunos
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes
10138 if test "$with_gnu_ld" = yes; then
10139 need_lib_prefix=no
10140 fi
10141 need_version=yes
10142 ;;
10143
Reid Spencera773bd52006-08-04 18:18:08 +000010144sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145 version_type=linux
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 case $host_vendor in
10150 sni)
10151 shlibpath_overrides_runpath=no
10152 need_lib_prefix=no
10153 export_dynamic_flag_spec='${wl}-Blargedynsym'
10154 runpath_var=LD_RUN_PATH
10155 ;;
10156 siemens)
10157 need_lib_prefix=no
10158 ;;
10159 motorola)
10160 need_lib_prefix=no
10161 need_version=no
10162 shlibpath_overrides_runpath=no
10163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10164 ;;
10165 esac
10166 ;;
10167
10168sysv4*MP*)
10169 if test -d /usr/nec ;then
10170 version_type=linux
10171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10172 soname_spec='$libname${shared_ext}.$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 fi
10175 ;;
10176
Reid Spencera773bd52006-08-04 18:18:08 +000010177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10178 version_type=freebsd-elf
10179 need_lib_prefix=no
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 hardcode_into_libs=yes
10185 if test "$with_gnu_ld" = yes; then
10186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10187 shlibpath_overrides_runpath=no
10188 else
10189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10190 shlibpath_overrides_runpath=yes
10191 case $host_os in
10192 sco3.2v5*)
10193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10194 ;;
10195 esac
10196 fi
10197 sys_lib_dlsearch_path_spec='/usr/lib'
10198 ;;
10199
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200uts4*)
10201 version_type=linux
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 ;;
10206
10207*)
10208 dynamic_linker=no
10209 ;;
10210esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010211{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10212echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213test "$dynamic_linker" = no && can_build_shared=no
10214
Reid Spencera773bd52006-08-04 18:18:08 +000010215variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10216if test "$GCC" = yes; then
10217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10218fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219
Reid Spencera773bd52006-08-04 18:18:08 +000010220
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010221{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10222echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10223if test "${libltdl_cv_shlibext+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225else
10226
10227module=yes
10228eval libltdl_cv_shlibext=$shrext_cmds
10229
10230fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010231{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10232echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233if test -n "$libltdl_cv_shlibext"; then
10234
10235cat >>confdefs.h <<_ACEOF
10236#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10237_ACEOF
10238
10239fi
10240
10241
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010242{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10243echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10244if test "${libltdl_cv_shlibpath_var+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246else
10247 libltdl_cv_shlibpath_var="$shlibpath_var"
10248fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010249{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10250echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251if test -n "$libltdl_cv_shlibpath_var"; then
10252
10253cat >>confdefs.h <<_ACEOF
10254#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10255_ACEOF
10256
10257fi
10258
10259
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010260{ echo "$as_me:$LINENO: checking for the default library search path" >&5
10261echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10262if test "${libltdl_cv_sys_search_path+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010264else
10265 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10266fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010267{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10268echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269if test -n "$libltdl_cv_sys_search_path"; then
10270 sys_search_path=
10271 for dir in $libltdl_cv_sys_search_path; do
10272 if test -z "$sys_search_path"; then
10273 sys_search_path="$dir"
10274 else
10275 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10276 fi
10277 done
10278
10279cat >>confdefs.h <<_ACEOF
10280#define LTDL_SYSSEARCHPATH "$sys_search_path"
10281_ACEOF
10282
10283fi
10284
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010285{ echo "$as_me:$LINENO: checking for objdir" >&5
10286echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10287if test "${libltdl_cv_objdir+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289else
10290 libltdl_cv_objdir="$objdir"
10291 if test -n "$objdir"; then
10292 :
10293 else
10294 rm -f .libs 2>/dev/null
10295 mkdir .libs 2>/dev/null
10296 if test -d .libs; then
10297 libltdl_cv_objdir=.libs
10298 else
10299 # MS-DOS does not allow filenames that begin with a dot.
10300 libltdl_cv_objdir=_libs
10301 fi
10302 rmdir .libs 2>/dev/null
10303 fi
10304
10305fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010306{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10307echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308
10309cat >>confdefs.h <<_ACEOF
10310#define LTDL_OBJDIR "$libltdl_cv_objdir/"
10311_ACEOF
10312
10313
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314
10315
10316
10317
10318# Check for command to grab the raw symbol name followed by C symbol from nm.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010319{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10320echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10321if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323else
10324
10325# These are sane defaults that work on at least a few old systems.
10326# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10327
10328# Character class describing NM global symbol codes.
10329symcode='[BCDEGRST]'
10330
10331# Regexp to match symbols that can be accessed directly from C.
10332sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10333
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010334# Transform an extracted symbol line into a proper C declaration
10335lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10336
10337# Transform an extracted symbol line into symbol name and symbol address
10338lt_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'"
10339
10340# Define system-specific variables.
10341case $host_os in
10342aix*)
10343 symcode='[BCDT]'
10344 ;;
10345cygwin* | mingw* | pw32*)
10346 symcode='[ABCDGISTW]'
10347 ;;
10348hpux*) # Its linker distinguishes data from code symbols
10349 if test "$host_cpu" = ia64; then
10350 symcode='[ABCDEGRST]'
10351 fi
10352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10353 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'"
10354 ;;
10355linux*)
10356 if test "$host_cpu" = ia64; then
10357 symcode='[ABCDGIRSTW]'
10358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10359 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'"
10360 fi
10361 ;;
10362irix* | nonstopux*)
10363 symcode='[BCDEGRST]'
10364 ;;
10365osf*)
10366 symcode='[BCDEGQRST]'
10367 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010368solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369 symcode='[BDRT]'
10370 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010371sco3.2v5*)
10372 symcode='[DT]'
10373 ;;
10374sysv4.2uw2*)
10375 symcode='[DT]'
10376 ;;
10377sysv5* | sco5v6* | unixware* | OpenUNIX*)
10378 symcode='[ABDT]'
10379 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380sysv4)
10381 symcode='[DFNSTU]'
10382 ;;
10383esac
10384
10385# Handle CRLF in mingw tool chain
10386opt_cr=
10387case $build_os in
10388mingw*)
10389 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10390 ;;
10391esac
10392
10393# If we're using GNU nm, then use its standard symbol codes.
10394case `$NM -V 2>&1` in
10395*GNU* | *'with BFD'*)
10396 symcode='[ABCDGIRSTW]' ;;
10397esac
10398
10399# Try without a prefix undercore, then with it.
10400for ac_symprfx in "" "_"; do
10401
Reid Spencera773bd52006-08-04 18:18:08 +000010402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10403 symxfrm="\\1 $ac_symprfx\\2 \\2"
10404
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010405 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000010406 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 +000010407
10408 # Check to see that the pipe works correctly.
10409 pipe_works=no
10410
10411 rm -f conftest*
10412 cat > conftest.$ac_ext <<EOF
10413#ifdef __cplusplus
10414extern "C" {
10415#endif
10416char nm_test_var;
10417void nm_test_func(){}
10418#ifdef __cplusplus
10419}
10420#endif
10421int main(){nm_test_var='a';nm_test_func();return(0);}
10422EOF
10423
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010425 (eval $ac_compile) 2>&5
10426 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429 # Now try to grab the symbols.
10430 nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010431 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 +000010432 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10433 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && test -s "$nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436 # Try sorting and uniquifying the output.
10437 if sort "$nlist" | uniq > "$nlist"T; then
10438 mv -f "$nlist"T "$nlist"
10439 else
10440 rm -f "$nlist"T
10441 fi
10442
10443 # Make sure that we snagged all the symbols we need.
10444 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10445 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10446 cat <<EOF > conftest.$ac_ext
10447#ifdef __cplusplus
10448extern "C" {
10449#endif
10450
10451EOF
10452 # Now generate the symbol file.
10453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10454
10455 cat <<EOF >> conftest.$ac_ext
10456#if defined (__STDC__) && __STDC__
10457# define lt_ptr_t void *
10458#else
10459# define lt_ptr_t char *
10460# define const
10461#endif
10462
10463/* The mapping between symbol names and symbols. */
10464const struct {
10465 const char *name;
10466 lt_ptr_t address;
10467}
10468lt_preloaded_symbols[] =
10469{
10470EOF
10471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10472 cat <<\EOF >> conftest.$ac_ext
10473 {0, (lt_ptr_t) 0}
10474};
10475
10476#ifdef __cplusplus
10477}
10478#endif
10479EOF
10480 # Now try linking the two files.
10481 mv conftest.$ac_objext conftstm.$ac_objext
10482 lt_save_LIBS="$LIBS"
10483 lt_save_CFLAGS="$CFLAGS"
10484 LIBS="conftstm.$ac_objext"
10485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487 (eval $ac_link) 2>&5
10488 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext}; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491 pipe_works=yes
10492 fi
10493 LIBS="$lt_save_LIBS"
10494 CFLAGS="$lt_save_CFLAGS"
10495 else
10496 echo "cannot find nm_test_func in $nlist" >&5
10497 fi
10498 else
10499 echo "cannot find nm_test_var in $nlist" >&5
10500 fi
10501 else
10502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10503 fi
10504 else
10505 echo "$progname: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10507 fi
10508 rm -f conftest* conftst*
10509
10510 # Do not use the global_symbol_pipe unless it works.
10511 if test "$pipe_works" = yes; then
10512 break
10513 else
10514 lt_cv_sys_global_symbol_pipe=
10515 fi
10516done
10517
10518fi
10519
10520if test -z "$lt_cv_sys_global_symbol_pipe"; then
10521 lt_cv_sys_global_symbol_to_cdecl=
10522fi
10523if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010524 { echo "$as_me:$LINENO: result: failed" >&5
10525echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010527 { echo "$as_me:$LINENO: result: ok" >&5
10528echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529fi
10530
10531
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010532{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10533echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10534if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536else
10537 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10538 libltdl_cv_preloaded_symbols=yes
10539 else
10540 libltdl_cv_preloaded_symbols=no
10541 fi
10542
10543fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010544{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10545echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010546if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10547
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010548cat >>confdefs.h <<\_ACEOF
10549#define HAVE_PRELOADED_SYMBOLS 1
10550_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551
10552fi
10553
10554LIBADD_DL=
10555
10556ac_ext=c
10557ac_cpp='$CPP $CPPFLAGS'
10558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10560ac_compiler_gnu=$ac_cv_c_compiler_gnu
10561
10562
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010563{ echo "$as_me:$LINENO: checking for shl_load" >&5
10564echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10565if test "${ac_cv_func_shl_load+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 cat >conftest.$ac_ext <<_ACEOF
10569/* confdefs.h. */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h. */
10574/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10576#define shl_load innocuous_shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010578/* System header to define __stub macros and hopefully few prototypes,
10579 which can conflict with char shl_load (); below.
10580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581 <limits.h> exists even on freestanding compilers. */
10582
10583#ifdef __STDC__
10584# include <limits.h>
10585#else
10586# include <assert.h>
10587#endif
10588
10589#undef shl_load
10590
10591/* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10594#ifdef __cplusplus
10595extern "C"
10596#endif
10597char shl_load ();
10598/* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601#if defined __stub_shl_load || defined __stub___shl_load
10602choke me
10603#endif
10604
10605int
10606main ()
10607{
10608return shl_load ();
10609 ;
10610 return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (ac_try="$ac_link"
10615case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618esac
10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631esac
10632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_try") 2>&5
10634 ac_status=$?
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10641esac
10642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_try") 2>&5
10644 ac_status=$?
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_func_shl_load=yes
10648else
10649 echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652 ac_cv_func_shl_load=no
10653fi
10654
10655rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10657fi
10658{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10659echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10660if test $ac_cv_func_shl_load = yes; then
10661
10662cat >>confdefs.h <<\_ACEOF
10663#define HAVE_SHL_LOAD 1
10664_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665
10666else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010667 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10668echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10669if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671else
10672 ac_check_lib_save_LIBS=$LIBS
10673LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679/* end confdefs.h. */
10680
Reid Spencera773bd52006-08-04 18:18:08 +000010681/* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684#ifdef __cplusplus
10685extern "C"
10686#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687char shl_load ();
10688int
10689main ()
10690{
Reid Spencera773bd52006-08-04 18:18:08 +000010691return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692 ;
10693 return 0;
10694}
10695_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010696rm -f conftest.$ac_objext conftest$ac_exeext
10697if { (ac_try="$ac_link"
10698case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_link") 2>conftest.er1
10704 ac_status=$?
10705 grep -v '^ *+' conftest.er1 >conftest.err
10706 rm -f conftest.er1
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714esac
10715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10717 ac_status=$?
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010730 ac_cv_lib_dld_shl_load=yes
10731else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010732 echo "$as_me: failed program was:" >&5
10733sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010736fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010737
Bill Wendlingebcceee2009-04-18 11:20:33 +000010738rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010739 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740LIBS=$ac_check_lib_save_LIBS
10741fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010742{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10743echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10744if test $ac_cv_lib_dld_shl_load = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010746cat >>confdefs.h <<\_ACEOF
10747#define HAVE_SHL_LOAD 1
10748_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749
10750 LIBADD_DL="$LIBADD_DL -ldld"
10751else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010752 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10753echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10754if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010756else
10757 ac_check_lib_save_LIBS=$LIBS
10758LIBS="-ldl $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764/* end confdefs.h. */
10765
Reid Spencera773bd52006-08-04 18:18:08 +000010766/* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769#ifdef __cplusplus
10770extern "C"
10771#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772char dlopen ();
10773int
10774main ()
10775{
Reid Spencera773bd52006-08-04 18:18:08 +000010776return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777 ;
10778 return 0;
10779}
10780_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010781rm -f conftest.$ac_objext conftest$ac_exeext
10782if { (ac_try="$ac_link"
10783case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10786esac
10787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_link") 2>conftest.er1
10789 ac_status=$?
10790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796 { (case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
10800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_try") 2>&5
10802 ac_status=$?
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815 ac_cv_lib_dl_dlopen=yes
10816else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010817 echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010822
Bill Wendlingebcceee2009-04-18 11:20:33 +000010823rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010824 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010825LIBS=$ac_check_lib_save_LIBS
10826fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010827{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10828echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10829if test $ac_cv_lib_dl_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010831cat >>confdefs.h <<\_ACEOF
10832#define HAVE_LIBDL 1
10833_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834
10835 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10836else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010837 cat >conftest.$ac_ext <<_ACEOF
10838/* confdefs.h. */
10839_ACEOF
10840cat confdefs.h >>conftest.$ac_ext
10841cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010842/* end confdefs.h. */
10843#if HAVE_DLFCN_H
10844# include <dlfcn.h>
10845#endif
10846
10847int
10848main ()
10849{
10850dlopen(0, 0);
10851 ;
10852 return 0;
10853}
10854_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010855rm -f conftest.$ac_objext conftest$ac_exeext
10856if { (ac_try="$ac_link"
10857case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10860esac
10861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_link") 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10873esac
10874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try='test -s conftest$ac_exeext'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883esac
10884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010890cat >>confdefs.h <<\_ACEOF
10891#define HAVE_LIBDL 1
10892_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010893 libltdl_cv_func_dlopen="yes"
10894else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010902else
10903 ac_check_lib_save_LIBS=$LIBS
10904LIBS="-lsvld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010905cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010910/* end confdefs.h. */
10911
Reid Spencera773bd52006-08-04 18:18:08 +000010912/* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010915#ifdef __cplusplus
10916extern "C"
10917#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918char dlopen ();
10919int
10920main ()
10921{
Reid Spencera773bd52006-08-04 18:18:08 +000010922return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923 ;
10924 return 0;
10925}
10926_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010927rm -f conftest.$ac_objext conftest$ac_exeext
10928if { (ac_try="$ac_link"
10929case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10932esac
10933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945esac
10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest$ac_exeext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10955esac
10956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010961 ac_cv_lib_svld_dlopen=yes
10962else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010963 echo "$as_me: failed program was:" >&5
10964sed 's/^/| /' conftest.$ac_ext >&5
10965
10966 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010968
Bill Wendlingebcceee2009-04-18 11:20:33 +000010969rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010970 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010971LIBS=$ac_check_lib_save_LIBS
10972fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010973{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10974echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10975if test $ac_cv_lib_svld_dlopen = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010976
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010977cat >>confdefs.h <<\_ACEOF
10978#define HAVE_LIBDL 1
10979_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980
10981 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10982else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010983 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10984echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10985if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010987else
10988 ac_check_lib_save_LIBS=$LIBS
10989LIBS="-ldld $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000010990cat >conftest.$ac_ext <<_ACEOF
10991/* confdefs.h. */
10992_ACEOF
10993cat confdefs.h >>conftest.$ac_ext
10994cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995/* end confdefs.h. */
10996
Reid Spencera773bd52006-08-04 18:18:08 +000010997/* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000#ifdef __cplusplus
11001extern "C"
11002#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003char dld_link ();
11004int
11005main ()
11006{
Reid Spencera773bd52006-08-04 18:18:08 +000011007return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 ;
11009 return 0;
11010}
11011_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011012rm -f conftest.$ac_objext conftest$ac_exeext
11013if { (ac_try="$ac_link"
11014case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_link") 2>conftest.er1
11020 ac_status=$?
11021 grep -v '^ *+' conftest.er1 >conftest.err
11022 rm -f conftest.er1
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040esac
11041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046 ac_cv_lib_dld_dld_link=yes
11047else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011048 echo "$as_me: failed program was:" >&5
11049sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011053
Bill Wendlingebcceee2009-04-18 11:20:33 +000011054rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011055 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056LIBS=$ac_check_lib_save_LIBS
11057fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011058{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11059echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11060if test $ac_cv_lib_dld_dld_link = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011062cat >>confdefs.h <<\_ACEOF
11063#define HAVE_DLD 1
11064_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011065
11066 LIBADD_DL="$LIBADD_DL -ldld"
11067else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011068 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11069echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11070if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
11079/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11081#define _dyld_func_lookup innocuous__dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011082
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011083/* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char _dyld_func_lookup (); below.
11085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11086 <limits.h> exists even on freestanding compilers. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011087
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011088#ifdef __STDC__
11089# include <limits.h>
11090#else
11091# include <assert.h>
11092#endif
11093
11094#undef _dyld_func_lookup
11095
11096/* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11099#ifdef __cplusplus
11100extern "C"
11101#endif
11102char _dyld_func_lookup ();
11103/* The GNU C library defines this for functions which it implements
11104 to always fail with ENOSYS. Some functions are actually named
11105 something starting with __ and the normal name is an alias. */
11106#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11107choke me
11108#endif
11109
11110int
11111main ()
11112{
11113return _dyld_func_lookup ();
11114 ;
11115 return 0;
11116}
11117_ACEOF
11118rm -f conftest.$ac_objext conftest$ac_exeext
11119if { (ac_try="$ac_link"
11120case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest$ac_exeext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func__dyld_func_lookup=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011158fi
Reid Spencera773bd52006-08-04 18:18:08 +000011159
Bill Wendlingebcceee2009-04-18 11:20:33 +000011160rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011161 conftest$ac_exeext conftest.$ac_ext
11162fi
11163{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11164echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11165if test $ac_cv_func__dyld_func_lookup = yes; then
11166
11167cat >>confdefs.h <<\_ACEOF
11168#define HAVE_DYLD 1
11169_ACEOF
11170
11171fi
11172
11173
11174fi
11175
11176
11177fi
11178
11179
11180fi
11181
11182rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184
11185fi
11186
11187
11188fi
11189
11190
11191fi
11192
11193
11194if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11195then
11196 lt_save_LIBS="$LIBS"
11197 LIBS="$LIBS $LIBADD_DL"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011198
11199for ac_func in dlerror
11200do
11201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11204if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207 cat >conftest.$ac_ext <<_ACEOF
11208/* confdefs.h. */
11209_ACEOF
11210cat confdefs.h >>conftest.$ac_ext
11211cat >>conftest.$ac_ext <<_ACEOF
11212/* end confdefs.h. */
11213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11215#define $ac_func innocuous_$ac_func
11216
11217/* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func (); below.
11219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11220 <limits.h> exists even on freestanding compilers. */
11221
11222#ifdef __STDC__
11223# include <limits.h>
11224#else
11225# include <assert.h>
11226#endif
11227
11228#undef $ac_func
11229
11230/* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233#ifdef __cplusplus
11234extern "C"
11235#endif
11236char $ac_func ();
11237/* The GNU C library defines this for functions which it implements
11238 to always fail with ENOSYS. Some functions are actually named
11239 something starting with __ and the normal name is an alias. */
11240#if defined __stub_$ac_func || defined __stub___$ac_func
11241choke me
11242#endif
11243
11244int
11245main ()
11246{
11247return $ac_func ();
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252rm -f conftest.$ac_objext conftest$ac_exeext
11253if { (ac_try="$ac_link"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 eval "$as_ac_var=yes"
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 eval "$as_ac_var=no"
11292fi
11293
11294rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296fi
11297ac_res=`eval echo '${'$as_ac_var'}'`
11298 { echo "$as_me:$LINENO: result: $ac_res" >&5
11299echo "${ECHO_T}$ac_res" >&6; }
11300if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011302#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011303_ACEOF
11304
11305fi
11306done
11307
11308 LIBS="$lt_save_LIBS"
11309fi
11310ac_ext=c
11311ac_cpp='$CPP $CPPFLAGS'
11312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11314ac_compiler_gnu=$ac_cv_c_compiler_gnu
11315
11316
11317
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011318{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11319echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11320if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322else
11323 ac_cv_sys_symbol_underscore=no
11324 cat > conftest.$ac_ext <<EOF
11325void nm_test_func(){}
11326int main(){nm_test_func;return 0;}
11327EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329 (eval $ac_compile) 2>&5
11330 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333 # Now try to grab the symbols.
11334 ac_nlist=conftest.nm
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011335 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 +000011336 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11337 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && test -s "$ac_nlist"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340 # See whether the symbols have a leading underscore.
11341 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11342 ac_cv_sys_symbol_underscore=yes
11343 else
11344 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11345 :
11346 else
11347 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11348 fi
11349 fi
11350 else
11351 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11352 fi
11353 else
11354 echo "configure: failed program was:" >&5
11355 cat conftest.c >&5
11356 fi
11357 rm -rf conftest*
11358
11359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011360{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11361echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362
11363
11364if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11365 if test x"$libltdl_cv_func_dlopen" = xyes ||
11366 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011367 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11368echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11369if test "${libltdl_cv_need_uscore+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011371else
11372 libltdl_cv_need_uscore=unknown
11373 save_LIBS="$LIBS"
11374 LIBS="$LIBS $LIBADD_DL"
11375 if test "$cross_compiling" = yes; then :
11376 libltdl_cv_need_uscore=cross
11377else
11378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11379 lt_status=$lt_dlunknown
11380 cat > conftest.$ac_ext <<EOF
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000011381#line 11381 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382#include "confdefs.h"
11383
11384#if HAVE_DLFCN_H
11385#include <dlfcn.h>
11386#endif
11387
11388#include <stdio.h>
11389
11390#ifdef RTLD_GLOBAL
11391# define LT_DLGLOBAL RTLD_GLOBAL
11392#else
11393# ifdef DL_GLOBAL
11394# define LT_DLGLOBAL DL_GLOBAL
11395# else
11396# define LT_DLGLOBAL 0
11397# endif
11398#endif
11399
11400/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11401 find out it does not work in some platform. */
11402#ifndef LT_DLLAZY_OR_NOW
11403# ifdef RTLD_LAZY
11404# define LT_DLLAZY_OR_NOW RTLD_LAZY
11405# else
11406# ifdef DL_LAZY
11407# define LT_DLLAZY_OR_NOW DL_LAZY
11408# else
11409# ifdef RTLD_NOW
11410# define LT_DLLAZY_OR_NOW RTLD_NOW
11411# else
11412# ifdef DL_NOW
11413# define LT_DLLAZY_OR_NOW DL_NOW
11414# else
11415# define LT_DLLAZY_OR_NOW 0
11416# endif
11417# endif
11418# endif
11419# endif
11420#endif
11421
11422#ifdef __cplusplus
11423extern "C" void exit (int);
11424#endif
11425
11426void fnord() { int i=42;}
11427int main ()
11428{
11429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11430 int status = $lt_dlunknown;
11431
11432 if (self)
11433 {
11434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11436 /* dlclose (self); */
11437 }
Reid Spencera773bd52006-08-04 18:18:08 +000011438 else
11439 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440
11441 exit (status);
11442}
11443EOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445 (eval $ac_link) 2>&5
11446 ac_status=$?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000011449 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450 lt_status=$?
11451 case x$lt_status in
11452 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11453 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011454 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 esac
11456 else :
11457 # compilation failed
11458
11459 fi
11460fi
11461rm -fr conftest*
11462
11463 LIBS="$save_LIBS"
11464
11465fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011466{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11467echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468 fi
11469fi
11470
11471if test x"$libltdl_cv_need_uscore" = xyes; then
11472
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011473cat >>confdefs.h <<\_ACEOF
11474#define NEED_USCORE 1
11475_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476
11477fi
11478
11479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011480{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11481echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11482if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484else
11485 # PORTME does your system automatically load deplibs for dlopen?
11486 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11487 # For now, we just catch OSes we know something about -- in the
11488 # future, we'll try test this programmatically.
11489 libltdl_cv_sys_dlopen_deplibs=unknown
11490 case "$host_os" in
11491 aix3*|aix4.1.*|aix4.2.*)
11492 # Unknown whether this is true for these versions of AIX, but
11493 # we want this `case' here to explicitly catch those versions.
11494 libltdl_cv_sys_dlopen_deplibs=unknown
11495 ;;
11496 aix[45]*)
11497 libltdl_cv_sys_dlopen_deplibs=yes
11498 ;;
11499 darwin*)
11500 # Assuming the user has installed a libdl from somewhere, this is true
11501 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11502 libltdl_cv_sys_dlopen_deplibs=yes
11503 ;;
11504 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11505 # GNU and its variants, using gnu ld.so (Glibc)
11506 libltdl_cv_sys_dlopen_deplibs=yes
11507 ;;
11508 hpux10*|hpux11*)
11509 libltdl_cv_sys_dlopen_deplibs=yes
11510 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011511 interix*)
11512 libltdl_cv_sys_dlopen_deplibs=yes
11513 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514 irix[12345]*|irix6.[01]*)
11515 # Catch all versions of IRIX before 6.2, and indicate that we don't
11516 # know how it worked for any of those versions.
11517 libltdl_cv_sys_dlopen_deplibs=unknown
11518 ;;
11519 irix*)
11520 # The case above catches anything before 6.2, and it's known that
11521 # at 6.2 and later dlopen does load deplibs.
11522 libltdl_cv_sys_dlopen_deplibs=yes
11523 ;;
11524 netbsd*)
11525 libltdl_cv_sys_dlopen_deplibs=yes
11526 ;;
11527 openbsd*)
11528 libltdl_cv_sys_dlopen_deplibs=yes
11529 ;;
11530 osf[1234]*)
11531 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11532 # it did *not* use an RPATH in a shared library to find objects the
11533 # library depends on, so we explictly say `no'.
11534 libltdl_cv_sys_dlopen_deplibs=no
11535 ;;
11536 osf5.0|osf5.0a|osf5.1)
11537 # dlopen *does* load deplibs and with the right loader patch applied
11538 # it even uses RPATH in a shared library to search for shared objects
11539 # that the library depends on, but there's no easy way to know if that
11540 # patch is installed. Since this is the case, all we can really
11541 # say is unknown -- it depends on the patch being installed. If
11542 # it is, this changes to `yes'. Without it, it would be `no'.
11543 libltdl_cv_sys_dlopen_deplibs=unknown
11544 ;;
11545 osf*)
11546 # the two cases above should catch all versions of osf <= 5.1. Read
11547 # the comments above for what we know about them.
11548 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11549 # is used to find them so we can finally say `yes'.
11550 libltdl_cv_sys_dlopen_deplibs=yes
11551 ;;
11552 solaris*)
11553 libltdl_cv_sys_dlopen_deplibs=yes
11554 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11556 libltdl_cv_sys_dlopen_deplibs=yes
11557 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558 esac
11559
11560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011561{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11562echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11564
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011565cat >>confdefs.h <<\_ACEOF
11566#define LTDL_DLOPEN_DEPLIBS 1
11567_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568
11569fi
11570
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011571
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572for ac_header in argz.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011573do
11574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11580fi
11581ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583echo "${ECHO_T}$ac_res" >&6; }
11584else
11585 # Is the header compilable?
11586{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588cat >conftest.$ac_ext <<_ACEOF
11589/* confdefs.h. */
11590_ACEOF
11591cat confdefs.h >>conftest.$ac_ext
11592cat >>conftest.$ac_ext <<_ACEOF
11593/* end confdefs.h. */
11594$ac_includes_default
11595#include <$ac_header>
11596_ACEOF
11597rm -f conftest.$ac_objext
11598if { (ac_try="$ac_compile"
11599case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11602esac
11603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
11605 ac_status=$?
11606 grep -v '^ *+' conftest.er1 >conftest.err
11607 rm -f conftest.er1
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_header_compiler=yes
11632else
11633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 ac_header_compiler=no
11637fi
11638
11639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641echo "${ECHO_T}$ac_header_compiler" >&6; }
11642
11643# Is the header present?
11644{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646cat >conftest.$ac_ext <<_ACEOF
11647/* confdefs.h. */
11648_ACEOF
11649cat confdefs.h >>conftest.$ac_ext
11650cat >>conftest.$ac_ext <<_ACEOF
11651/* end confdefs.h. */
11652#include <$ac_header>
11653_ACEOF
11654if { (ac_try="$ac_cpp conftest.$ac_ext"
11655case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } >/dev/null; then
11667 if test -s conftest.err; then
11668 ac_cpp_err=$ac_c_preproc_warn_flag
11669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11670 else
11671 ac_cpp_err=
11672 fi
11673else
11674 ac_cpp_err=yes
11675fi
11676if test -z "$ac_cpp_err"; then
11677 ac_header_preproc=yes
11678else
11679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 ac_header_preproc=no
11683fi
11684
11685rm -f conftest.err conftest.$ac_ext
11686{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687echo "${ECHO_T}$ac_header_preproc" >&6; }
11688
11689# So? What about this header?
11690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11691 yes:no: )
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 ac_header_preproc=yes
11697 ;;
11698 no:yes:* )
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11711 ( cat <<\_ASBOX
11712## ----------------------------------- ##
11713## Report this to llvmbugs@cs.uiuc.edu ##
11714## ----------------------------------- ##
11715_ASBOX
11716 ) | sed "s/^/$as_me: WARNING: /" >&2
11717 ;;
11718esac
11719{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 eval "$as_ac_Header=\$ac_header_preproc"
11725fi
11726ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728echo "${ECHO_T}$ac_res" >&6; }
11729
11730fi
11731if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011734_ACEOF
11735
11736fi
11737
11738done
11739
11740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011741{ echo "$as_me:$LINENO: checking for error_t" >&5
11742echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11743if test "${ac_cv_type_error_t+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752#if HAVE_ARGZ_H
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753# include <argz.h>
11754#endif
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011755
11756typedef error_t ac__type_new_;
11757int
11758main ()
11759{
11760if ((ac__type_new_ *) 0)
11761 return 0;
11762if (sizeof (ac__type_new_))
11763 return 0;
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext
11769if { (ac_try="$ac_compile"
11770case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773esac
11774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11786esac
11787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest.$ac_objext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_type_error_t=yes
11803else
11804 echo "$as_me: failed program was:" >&5
11805sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 ac_cv_type_error_t=no
11808fi
11809
11810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811fi
11812{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11813echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11814if test $ac_cv_type_error_t = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815
11816cat >>confdefs.h <<_ACEOF
11817#define HAVE_ERROR_T 1
11818_ACEOF
11819
11820
11821else
11822
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011823cat >>confdefs.h <<\_ACEOF
11824#define error_t int
11825_ACEOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011826
11827fi
11828
11829
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011830
11831
11832
11833
11834
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011836do
11837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11840if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
11843 cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11851#define $ac_func innocuous_$ac_func
11852
11853/* System header to define __stub macros and hopefully few prototypes,
11854 which can conflict with char $ac_func (); below.
11855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856 <limits.h> exists even on freestanding compilers. */
11857
11858#ifdef __STDC__
11859# include <limits.h>
11860#else
11861# include <assert.h>
11862#endif
11863
11864#undef $ac_func
11865
11866/* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11869#ifdef __cplusplus
11870extern "C"
11871#endif
11872char $ac_func ();
11873/* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876#if defined __stub_$ac_func || defined __stub___$ac_func
11877choke me
11878#endif
11879
11880int
11881main ()
11882{
11883return $ac_func ();
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext conftest$ac_exeext
11889if { (ac_try="$ac_link"
11890case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893esac
11894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11909 ac_status=$?
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 eval "$as_ac_var=yes"
11923else
11924 echo "$as_me: failed program was:" >&5
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 eval "$as_ac_var=no"
11928fi
11929
11930rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11932fi
11933ac_res=`eval echo '${'$as_ac_var'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935echo "${ECHO_T}$ac_res" >&6; }
11936if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939_ACEOF
11940
11941fi
11942done
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011963
11964
11965
11966
11967
11968
11969
11970
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011971for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11972 stdio.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000011973do
11974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980fi
11981ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result: $ac_res" >&5
11983echo "${ECHO_T}$ac_res" >&6; }
11984else
11985 # Is the header compilable?
11986{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988cat >conftest.$ac_ext <<_ACEOF
11989/* confdefs.h. */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h. */
11994$ac_includes_default
11995#include <$ac_header>
11996_ACEOF
11997rm -f conftest.$ac_objext
11998if { (ac_try="$ac_compile"
11999case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002esac
12003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12005 ac_status=$?
12006 grep -v '^ *+' conftest.er1 >conftest.err
12007 rm -f conftest.er1
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12025esac
12026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12028 ac_status=$?
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_header_compiler=yes
12032else
12033 echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_compiler=no
12037fi
12038
12039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041echo "${ECHO_T}$ac_header_compiler" >&6; }
12042
12043# Is the header present?
12044{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052#include <$ac_header>
12053_ACEOF
12054if { (ac_try="$ac_cpp conftest.$ac_ext"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12070 else
12071 ac_cpp_err=
12072 fi
12073else
12074 ac_cpp_err=yes
12075fi
12076if test -z "$ac_cpp_err"; then
12077 ac_header_preproc=yes
12078else
12079 echo "$as_me: failed program was:" >&5
12080sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 ac_header_preproc=no
12083fi
12084
12085rm -f conftest.err conftest.$ac_ext
12086{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087echo "${ECHO_T}$ac_header_preproc" >&6; }
12088
12089# So? What about this header?
12090case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12091 yes:no: )
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096 ac_header_preproc=yes
12097 ;;
12098 no:yes:* )
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12102echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12106echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12111 ( cat <<\_ASBOX
12112## ----------------------------------- ##
12113## Report this to llvmbugs@cs.uiuc.edu ##
12114## ----------------------------------- ##
12115_ASBOX
12116 ) | sed "s/^/$as_me: WARNING: /" >&2
12117 ;;
12118esac
12119{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 eval "$as_ac_Header=\$ac_header_preproc"
12125fi
12126ac_res=`eval echo '${'$as_ac_Header'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128echo "${ECHO_T}$ac_res" >&6; }
12129
12130fi
12131if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012134_ACEOF
12135
12136fi
12137
12138done
12139
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012140
12141
12142
12143
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012144for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012145do
12146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12150if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152fi
12153ac_res=`eval echo '${'$as_ac_Header'}'`
12154 { echo "$as_me:$LINENO: result: $ac_res" >&5
12155echo "${ECHO_T}$ac_res" >&6; }
12156else
12157 # Is the header compilable?
12158{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12159echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12160cat >conftest.$ac_ext <<_ACEOF
12161/* confdefs.h. */
12162_ACEOF
12163cat confdefs.h >>conftest.$ac_ext
12164cat >>conftest.$ac_ext <<_ACEOF
12165/* end confdefs.h. */
12166$ac_includes_default
12167#include <$ac_header>
12168_ACEOF
12169rm -f conftest.$ac_objext
12170if { (ac_try="$ac_compile"
12171case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12174esac
12175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_compile") 2>conftest.er1
12177 ac_status=$?
12178 grep -v '^ *+' conftest.er1 >conftest.err
12179 rm -f conftest.er1
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12187esac
12188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12197esac
12198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_header_compiler=yes
12204else
12205 echo "$as_me: failed program was:" >&5
12206sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 ac_header_compiler=no
12209fi
12210
12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12213echo "${ECHO_T}$ac_header_compiler" >&6; }
12214
12215# Is the header present?
12216{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12218cat >conftest.$ac_ext <<_ACEOF
12219/* confdefs.h. */
12220_ACEOF
12221cat confdefs.h >>conftest.$ac_ext
12222cat >>conftest.$ac_ext <<_ACEOF
12223/* end confdefs.h. */
12224#include <$ac_header>
12225_ACEOF
12226if { (ac_try="$ac_cpp conftest.$ac_ext"
12227case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12230esac
12231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12233 ac_status=$?
12234 grep -v '^ *+' conftest.er1 >conftest.err
12235 rm -f conftest.er1
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } >/dev/null; then
12239 if test -s conftest.err; then
12240 ac_cpp_err=$ac_c_preproc_warn_flag
12241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12242 else
12243 ac_cpp_err=
12244 fi
12245else
12246 ac_cpp_err=yes
12247fi
12248if test -z "$ac_cpp_err"; then
12249 ac_header_preproc=yes
12250else
12251 echo "$as_me: failed program was:" >&5
12252sed 's/^/| /' conftest.$ac_ext >&5
12253
12254 ac_header_preproc=no
12255fi
12256
12257rm -f conftest.err conftest.$ac_ext
12258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12259echo "${ECHO_T}$ac_header_preproc" >&6; }
12260
12261# So? What about this header?
12262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12263 yes:no: )
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12268 ac_header_preproc=yes
12269 ;;
12270 no:yes:* )
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12283 ( cat <<\_ASBOX
12284## ----------------------------------- ##
12285## Report this to llvmbugs@cs.uiuc.edu ##
12286## ----------------------------------- ##
12287_ASBOX
12288 ) | sed "s/^/$as_me: WARNING: /" >&2
12289 ;;
12290esac
12291{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296 eval "$as_ac_Header=\$ac_header_preproc"
12297fi
12298ac_res=`eval echo '${'$as_ac_Header'}'`
12299 { echo "$as_me:$LINENO: result: $ac_res" >&5
12300echo "${ECHO_T}$ac_res" >&6; }
12301
12302fi
12303if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012306_ACEOF
12307
12308fi
12309
12310done
12311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012312
12313
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314for ac_header in string.h strings.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012315do
12316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322fi
12323ac_res=`eval echo '${'$as_ac_Header'}'`
12324 { echo "$as_me:$LINENO: result: $ac_res" >&5
12325echo "${ECHO_T}$ac_res" >&6; }
12326else
12327 # Is the header compilable?
12328{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12330cat >conftest.$ac_ext <<_ACEOF
12331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
12336$ac_includes_default
12337#include <$ac_header>
12338_ACEOF
12339rm -f conftest.$ac_objext
12340if { (ac_try="$ac_compile"
12341case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12344esac
12345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compile") 2>conftest.er1
12347 ac_status=$?
12348 grep -v '^ *+' conftest.er1 >conftest.err
12349 rm -f conftest.er1
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357esac
12358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest.$ac_objext'
12364 { (case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12367esac
12368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_try") 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_header_compiler=yes
12374else
12375 echo "$as_me: failed program was:" >&5
12376sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 ac_header_compiler=no
12379fi
12380
12381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383echo "${ECHO_T}$ac_header_compiler" >&6; }
12384
12385# Is the header present?
12386{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12388cat >conftest.$ac_ext <<_ACEOF
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394#include <$ac_header>
12395_ACEOF
12396if { (ac_try="$ac_cpp conftest.$ac_ext"
12397case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12400esac
12401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12403 ac_status=$?
12404 grep -v '^ *+' conftest.er1 >conftest.err
12405 rm -f conftest.er1
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } >/dev/null; then
12409 if test -s conftest.err; then
12410 ac_cpp_err=$ac_c_preproc_warn_flag
12411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12412 else
12413 ac_cpp_err=
12414 fi
12415else
12416 ac_cpp_err=yes
12417fi
12418if test -z "$ac_cpp_err"; then
12419 ac_header_preproc=yes
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 ac_header_preproc=no
12425fi
12426
12427rm -f conftest.err conftest.$ac_ext
12428{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12429echo "${ECHO_T}$ac_header_preproc" >&6; }
12430
12431# So? What about this header?
12432case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12433 yes:no: )
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12438 ac_header_preproc=yes
12439 ;;
12440 no:yes:* )
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12448echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12453 ( cat <<\_ASBOX
12454## ----------------------------------- ##
12455## Report this to llvmbugs@cs.uiuc.edu ##
12456## ----------------------------------- ##
12457_ASBOX
12458 ) | sed "s/^/$as_me: WARNING: /" >&2
12459 ;;
12460esac
12461{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12465else
12466 eval "$as_ac_Header=\$ac_header_preproc"
12467fi
12468ac_res=`eval echo '${'$as_ac_Header'}'`
12469 { echo "$as_me:$LINENO: result: $ac_res" >&5
12470echo "${ECHO_T}$ac_res" >&6; }
12471
12472fi
12473if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012474 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012476_ACEOF
12477 break
12478fi
12479
12480done
12481
12482
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012483
12484
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485for ac_func in strchr index
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012486do
12487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12488{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12490if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493 cat >conftest.$ac_ext <<_ACEOF
12494/* confdefs.h. */
12495_ACEOF
12496cat confdefs.h >>conftest.$ac_ext
12497cat >>conftest.$ac_ext <<_ACEOF
12498/* end confdefs.h. */
12499/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12501#define $ac_func innocuous_$ac_func
12502
12503/* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func (); below.
12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506 <limits.h> exists even on freestanding compilers. */
12507
12508#ifdef __STDC__
12509# include <limits.h>
12510#else
12511# include <assert.h>
12512#endif
12513
12514#undef $ac_func
12515
12516/* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12519#ifdef __cplusplus
12520extern "C"
12521#endif
12522char $ac_func ();
12523/* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526#if defined __stub_$ac_func || defined __stub___$ac_func
12527choke me
12528#endif
12529
12530int
12531main ()
12532{
12533return $ac_func ();
12534 ;
12535 return 0;
12536}
12537_ACEOF
12538rm -f conftest.$ac_objext conftest$ac_exeext
12539if { (ac_try="$ac_link"
12540case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12543esac
12544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12556esac
12557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12566esac
12567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 eval "$as_ac_var=yes"
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577 eval "$as_ac_var=no"
12578fi
12579
12580rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582fi
12583ac_res=`eval echo '${'$as_ac_var'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585echo "${ECHO_T}$ac_res" >&6; }
12586if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012588#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012589_ACEOF
12590 break
12591fi
12592done
12593
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012594
12595
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596for ac_func in strrchr rindex
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012597do
12598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12599{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12601if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12603else
12604 cat >conftest.$ac_ext <<_ACEOF
12605/* confdefs.h. */
12606_ACEOF
12607cat confdefs.h >>conftest.$ac_ext
12608cat >>conftest.$ac_ext <<_ACEOF
12609/* end confdefs.h. */
12610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12612#define $ac_func innocuous_$ac_func
12613
12614/* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char $ac_func (); below.
12616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617 <limits.h> exists even on freestanding compilers. */
12618
12619#ifdef __STDC__
12620# include <limits.h>
12621#else
12622# include <assert.h>
12623#endif
12624
12625#undef $ac_func
12626
12627/* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12630#ifdef __cplusplus
12631extern "C"
12632#endif
12633char $ac_func ();
12634/* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637#if defined __stub_$ac_func || defined __stub___$ac_func
12638choke me
12639#endif
12640
12641int
12642main ()
12643{
12644return $ac_func ();
12645 ;
12646 return 0;
12647}
12648_ACEOF
12649rm -f conftest.$ac_objext conftest$ac_exeext
12650if { (ac_try="$ac_link"
12651case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654esac
12655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_link") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677esac
12678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 eval "$as_ac_var=no"
12689fi
12690
12691rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693fi
12694ac_res=`eval echo '${'$as_ac_var'}'`
12695 { echo "$as_me:$LINENO: result: $ac_res" >&5
12696echo "${ECHO_T}$ac_res" >&6; }
12697if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700_ACEOF
12701 break
12702fi
12703done
12704
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012705
12706
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707for ac_func in memcpy bcopy
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012708do
12709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12712if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 cat >conftest.$ac_ext <<_ACEOF
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
12721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12723#define $ac_func innocuous_$ac_func
12724
12725/* System header to define __stub macros and hopefully few prototypes,
12726 which can conflict with char $ac_func (); below.
12727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728 <limits.h> exists even on freestanding compilers. */
12729
12730#ifdef __STDC__
12731# include <limits.h>
12732#else
12733# include <assert.h>
12734#endif
12735
12736#undef $ac_func
12737
12738/* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12741#ifdef __cplusplus
12742extern "C"
12743#endif
12744char $ac_func ();
12745/* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748#if defined __stub_$ac_func || defined __stub___$ac_func
12749choke me
12750#endif
12751
12752int
12753main ()
12754{
12755return $ac_func ();
12756 ;
12757 return 0;
12758}
12759_ACEOF
12760rm -f conftest.$ac_objext conftest$ac_exeext
12761if { (ac_try="$ac_link"
12762case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12765esac
12766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_link") 2>conftest.er1
12768 ac_status=$?
12769 grep -v '^ *+' conftest.er1 >conftest.err
12770 rm -f conftest.er1
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12788esac
12789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12791 ac_status=$?
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 eval "$as_ac_var=yes"
12795else
12796 echo "$as_me: failed program was:" >&5
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 eval "$as_ac_var=no"
12800fi
12801
12802rm -f core conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12804fi
12805ac_res=`eval echo '${'$as_ac_var'}'`
12806 { echo "$as_me:$LINENO: result: $ac_res" >&5
12807echo "${ECHO_T}$ac_res" >&6; }
12808if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012811_ACEOF
12812 break
12813fi
12814done
12815
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012816
12817
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012818for ac_func in memmove strcmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012819do
12820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825else
12826 cat >conftest.$ac_ext <<_ACEOF
12827/* confdefs.h. */
12828_ACEOF
12829cat confdefs.h >>conftest.$ac_ext
12830cat >>conftest.$ac_ext <<_ACEOF
12831/* end confdefs.h. */
12832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12834#define $ac_func innocuous_$ac_func
12835
12836/* System header to define __stub macros and hopefully few prototypes,
12837 which can conflict with char $ac_func (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12840
12841#ifdef __STDC__
12842# include <limits.h>
12843#else
12844# include <assert.h>
12845#endif
12846
12847#undef $ac_func
12848
12849/* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12852#ifdef __cplusplus
12853extern "C"
12854#endif
12855char $ac_func ();
12856/* The GNU C library defines this for functions which it implements
12857 to always fail with ENOSYS. Some functions are actually named
12858 something starting with __ and the normal name is an alias. */
12859#if defined __stub_$ac_func || defined __stub___$ac_func
12860choke me
12861#endif
12862
12863int
12864main ()
12865{
12866return $ac_func ();
12867 ;
12868 return 0;
12869}
12870_ACEOF
12871rm -f conftest.$ac_objext conftest$ac_exeext
12872if { (ac_try="$ac_link"
12873case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12876esac
12877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_link") 2>conftest.er1
12879 ac_status=$?
12880 grep -v '^ *+' conftest.er1 >conftest.err
12881 rm -f conftest.er1
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest$ac_exeext'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899esac
12900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 eval "$as_ac_var=yes"
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 eval "$as_ac_var=no"
12911fi
12912
12913rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12915fi
12916ac_res=`eval echo '${'$as_ac_var'}'`
12917 { echo "$as_me:$LINENO: result: $ac_res" >&5
12918echo "${ECHO_T}$ac_res" >&6; }
12919if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012920 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012922_ACEOF
12923
12924fi
12925done
12926
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012927
12928
12929
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012930for ac_func in closedir opendir readdir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000012931do
12932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12933{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12935if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937else
12938 cat >conftest.$ac_ext <<_ACEOF
12939/* confdefs.h. */
12940_ACEOF
12941cat confdefs.h >>conftest.$ac_ext
12942cat >>conftest.$ac_ext <<_ACEOF
12943/* end confdefs.h. */
12944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12946#define $ac_func innocuous_$ac_func
12947
12948/* System header to define __stub macros and hopefully few prototypes,
12949 which can conflict with char $ac_func (); below.
12950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951 <limits.h> exists even on freestanding compilers. */
12952
12953#ifdef __STDC__
12954# include <limits.h>
12955#else
12956# include <assert.h>
12957#endif
12958
12959#undef $ac_func
12960
12961/* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12964#ifdef __cplusplus
12965extern "C"
12966#endif
12967char $ac_func ();
12968/* The GNU C library defines this for functions which it implements
12969 to always fail with ENOSYS. Some functions are actually named
12970 something starting with __ and the normal name is an alias. */
12971#if defined __stub_$ac_func || defined __stub___$ac_func
12972choke me
12973#endif
12974
12975int
12976main ()
12977{
12978return $ac_func ();
12979 ;
12980 return 0;
12981}
12982_ACEOF
12983rm -f conftest.$ac_objext conftest$ac_exeext
12984if { (ac_try="$ac_link"
12985case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12988esac
12989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12991 ac_status=$?
12992 grep -v '^ *+' conftest.er1 >conftest.err
12993 rm -f conftest.er1
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011esac
13012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_try") 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 eval "$as_ac_var=yes"
13018else
13019 echo "$as_me: failed program was:" >&5
13020sed 's/^/| /' conftest.$ac_ext >&5
13021
13022 eval "$as_ac_var=no"
13023fi
13024
13025rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13027fi
13028ac_res=`eval echo '${'$as_ac_var'}'`
13029 { echo "$as_me:$LINENO: result: $ac_res" >&5
13030echo "${ECHO_T}$ac_res" >&6; }
13031if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013032 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013034_ACEOF
13035
13036fi
13037done
13038
13039
Douglas Gregor01746742009-05-11 18:05:52 +000013040
Reid Spencer7931a782004-12-27 06:15:02 +000013041if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000013042 LLVMGCC="llvm-gcc${EXEEXT}"
13043 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013044 LLVMGCCCOMMAND="$LLVMGCC"
13045 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013046 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13047
13048 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13049
Reid Spencerc84492c2005-06-02 22:34:49 +000013050 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13051set dummy $LLVMGCC; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13054if test "${ac_cv_path_LLVMGCC+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013056else
13057 case $LLVMGCC in
13058 [\\/]* | ?:[\\/]*)
13059 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13060 ;;
13061 *)
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063for as_dir in $PATH
13064do
13065 IFS=$as_save_IFS
13066 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 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 +000013069 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013071 break 2
13072 fi
13073done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013074done
Reid Spencera773bd52006-08-04 18:18:08 +000013075IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013076
Reid Spencer59473af2004-12-25 07:31:29 +000013077 ;;
13078esac
13079fi
13080LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000013081if test -n "$LLVMGCC"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013082 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13083echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013084else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013085 { echo "$as_me:$LINENO: result: no" >&5
13086echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013087fi
13088
Reid Spencera773bd52006-08-04 18:18:08 +000013089
Reid Spencerc84492c2005-06-02 22:34:49 +000013090 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13091set dummy $LLVMGXX; ac_word=$2
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13094if test "${ac_cv_path_LLVMGXX+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000013096else
13097 case $LLVMGXX in
13098 [\\/]* | ?:[\\/]*)
13099 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13100 ;;
13101 *)
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103for as_dir in $PATH
13104do
13105 IFS=$as_save_IFS
13106 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 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 +000013109 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Reid Spencer59473af2004-12-25 07:31:29 +000013111 break 2
13112 fi
13113done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013114done
Reid Spencera773bd52006-08-04 18:18:08 +000013115IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000013116
Reid Spencer59473af2004-12-25 07:31:29 +000013117 ;;
13118esac
13119fi
13120LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000013121if test -n "$LLVMGXX"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013122 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13123echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013124else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013125 { echo "$as_me:$LINENO: result: no" >&5
13126echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000013127fi
13128
Reid Spencera773bd52006-08-04 18:18:08 +000013129
Reid Spencer59473af2004-12-25 07:31:29 +000013130else
Devang Patel5d28b882007-12-04 22:54:47 +000013131 if test -z "$LLVMGCC"; then
13132 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013133 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000013134 fi
13135 if test -z "$LLVMGXX"; then
13136 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013137 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000013138 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013139
Reid Spencer59473af2004-12-25 07:31:29 +000013140 LLVMGCC=$LLVMGCC
13141
13142 LLVMGXX=$LLVMGXX
13143
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013144 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13145
13146 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13147
Reid Spencer59473af2004-12-25 07:31:29 +000013148fi
13149
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000013150
Daniel Dunbar98515672010-02-23 10:00:49 +000013151# Check whether --with-llvmcc was given.
13152if test "${with_llvmcc+set}" = set; then
13153 withval=$with_llvmcc;
13154else
13155 with_llvmcc=check
13156fi
13157
13158{ echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13159echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13160if test "$with_llvmcc" != "check"; then
13161 if (test "$with_llvmcc" != "llvm-gcc" &&
13162 test "$with_llvmcc" != "clang" &&
13163 test "$with_llvmcc" != "none"); then
13164 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13165echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13166 { (exit 1); exit 1; }; }
13167 fi
13168 WITH_LLVMCC="$with_llvmcc"
13169elif test -n "$LLVMGCC"; then
13170 WITH_LLVMCC=llvm-gcc
13171elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13172 WITH_LLVMCC=clang
13173else
13174 WITH_LLVMCC=none
13175fi
13176{ echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13177echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13178LLVMCC_OPTION=$WITH_LLVMCC
13179
13180
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013181{ echo "$as_me:$LINENO: checking tool compatibility" >&5
13182echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013183
Reid Spencer86901802004-12-08 23:07:27 +000013184ICC=no
13185IXX=no
13186case $CC in
13187 icc*|icpc*)
13188 ICC=yes
13189 IXX=yes
13190 ;;
13191 *)
13192 ;;
13193esac
13194
Duraid Madina937c60a2006-02-15 07:57:42 +000013195if test "$GCC" != "yes" && test "$ICC" != "yes"
13196then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013197 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13198echo "$as_me: error: gcc|icc required but not found" >&2;}
13199 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013200fi
13201
13202if test "$GXX" != "yes" && test "$IXX" != "yes"
13203then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013204 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13205echo "$as_me: error: g++|icc required but not found" >&2;}
13206 { (exit 1); exit 1; }; }
Duraid Madina937c60a2006-02-15 07:57:42 +000013207fi
13208
Reid Spencer86901802004-12-08 23:07:27 +000013209if test "$GCC" = "yes"
13210then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013211 cat >conftest.$ac_ext <<_ACEOF
Chris Lattner399c7c72008-02-05 19:43:53 +000013212#if !defined(__GNUC__) || __GNUC__ < 3
13213#error Unsupported GCC version
13214#endif
13215
13216_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013217rm -f conftest.$ac_objext
13218if { (ac_try="$ac_compile"
13219case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13235esac
13236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13238 ac_status=$?
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest.$ac_objext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13245esac
13246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 :
Chris Lattner399c7c72008-02-05 19:43:53 +000013252else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013253 echo "$as_me: failed program was:" >&5
13254sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13257echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13258 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000013259fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013260
Chris Lattner399c7c72008-02-05 19:43:53 +000013261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013262fi
13263
13264if test -z "$llvm_cv_gnu_make_command"
13265then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013266 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13267echo "$as_me: error: GNU Make required but not found" >&2;}
13268 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013269fi
13270
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013271{ echo "$as_me:$LINENO: result: ok" >&5
13272echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000013273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013274{ echo "$as_me:$LINENO: checking optional compiler flags" >&5
13275echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013276NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13277
13278NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13279
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013280{ echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13281echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
Julien Lerouge3a96a4d2009-10-26 20:00:35 +000013282
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013283
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013284
13285{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
13286echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13287if test "${ac_cv_lib_m_sin+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer3484a992006-01-19 08:31:08 +000013289else
13290 ac_check_lib_save_LIBS=$LIBS
13291LIBS="-lm $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013292cat >conftest.$ac_ext <<_ACEOF
13293/* confdefs.h. */
13294_ACEOF
13295cat confdefs.h >>conftest.$ac_ext
13296cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer3484a992006-01-19 08:31:08 +000013297/* end confdefs.h. */
13298
Reid Spencera773bd52006-08-04 18:18:08 +000013299/* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000013302#ifdef __cplusplus
13303extern "C"
13304#endif
Reid Spencer3484a992006-01-19 08:31:08 +000013305char sin ();
13306int
13307main ()
13308{
Reid Spencera773bd52006-08-04 18:18:08 +000013309return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000013310 ;
13311 return 0;
13312}
13313_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013314rm -f conftest.$ac_objext conftest$ac_exeext
13315if { (ac_try="$ac_link"
13316case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13319esac
13320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_link") 2>conftest.er1
13322 ac_status=$?
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332esac
13333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342esac
13343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000013348 ac_cv_lib_m_sin=yes
13349else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000013354fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013355
Bill Wendlingebcceee2009-04-18 11:20:33 +000013356rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013357 conftest$ac_exeext conftest.$ac_ext
Reid Spencer3484a992006-01-19 08:31:08 +000013358LIBS=$ac_check_lib_save_LIBS
13359fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013360{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13361echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13362if test $ac_cv_lib_m_sin = yes; then
Reid Spencer3484a992006-01-19 08:31:08 +000013363 cat >>confdefs.h <<_ACEOF
13364#define HAVE_LIBM 1
13365_ACEOF
13366
13367 LIBS="-lm $LIBS"
13368
13369fi
13370
Jeff Cohen28783c32007-01-12 18:22:38 +000013371if test "$llvm_cv_os_type" = "MingW" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013372
13373{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13374echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13375if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013377else
13378 ac_check_lib_save_LIBS=$LIBS
13379LIBS="-limagehlp $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013380cat >conftest.$ac_ext <<_ACEOF
13381/* confdefs.h. */
13382_ACEOF
13383cat confdefs.h >>conftest.$ac_ext
13384cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013385/* end confdefs.h. */
13386
Reid Spencer48fdf912006-06-01 19:03:21 +000013387
Reid Spencer484fc8e2006-06-01 16:55:59 +000013388int
13389main ()
13390{
Reid Spencera773bd52006-08-04 18:18:08 +000013391return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013392 ;
13393 return 0;
13394}
13395_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013396rm -f conftest.$ac_objext conftest$ac_exeext
13397if { (ac_try="$ac_link"
13398case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13401esac
13402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_link") 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414esac
13415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest$ac_exeext'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13424esac
13425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13427 ac_status=$?
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013430 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013431else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013436fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013437
Bill Wendlingebcceee2009-04-18 11:20:33 +000013438rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013439 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013440LIBS=$ac_check_lib_save_LIBS
13441fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013442{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13443echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13444if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013445 cat >>confdefs.h <<_ACEOF
13446#define HAVE_LIBIMAGEHLP 1
13447_ACEOF
13448
13449 LIBS="-limagehlp $LIBS"
13450
13451fi
13452
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013453
13454{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13455echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13456if test "${ac_cv_lib_psapi_main+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer484fc8e2006-06-01 16:55:59 +000013458else
13459 ac_check_lib_save_LIBS=$LIBS
13460LIBS="-lpsapi $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013461cat >conftest.$ac_ext <<_ACEOF
13462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer484fc8e2006-06-01 16:55:59 +000013466/* end confdefs.h. */
13467
Reid Spencer48fdf912006-06-01 19:03:21 +000013468
Reid Spencer484fc8e2006-06-01 16:55:59 +000013469int
13470main ()
13471{
Reid Spencera773bd52006-08-04 18:18:08 +000013472return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000013473 ;
13474 return 0;
13475}
13476_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013477rm -f conftest.$ac_objext conftest$ac_exeext
13478if { (ac_try="$ac_link"
13479case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13482esac
13483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_link") 2>conftest.er1
13485 ac_status=$?
13486 grep -v '^ *+' conftest.er1 >conftest.err
13487 rm -f conftest.er1
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13495esac
13496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest$ac_exeext'
13502 { (case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505esac
13506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_try") 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000013511 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000013512else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013513 echo "$as_me: failed program was:" >&5
13514sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000013517fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013518
Bill Wendlingebcceee2009-04-18 11:20:33 +000013519rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013520 conftest$ac_exeext conftest.$ac_ext
Reid Spencer484fc8e2006-06-01 16:55:59 +000013521LIBS=$ac_check_lib_save_LIBS
13522fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013523{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13524echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13525if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000013526 cat >>confdefs.h <<_ACEOF
13527#define HAVE_LIBPSAPI 1
13528_ACEOF
13529
13530 LIBS="-lpsapi $LIBS"
13531
13532fi
13533
13534fi
Reid Spencer22177fe2005-07-12 15:24:20 +000013535
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013536{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13537echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13538if test "${ac_cv_search_dlopen+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013540else
13541 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013542cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013547/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013548
Reid Spencera773bd52006-08-04 18:18:08 +000013549/* Override any GCC internal prototype to avoid an error.
13550 Use char because int might match the return type of a GCC
13551 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013552#ifdef __cplusplus
13553extern "C"
13554#endif
John Criswell7a73b802003-06-30 21:59:07 +000013555char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013556int
13557main ()
13558{
Reid Spencera773bd52006-08-04 18:18:08 +000013559return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013560 ;
13561 return 0;
13562}
13563_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013564for ac_lib in '' dl; do
13565 if test -z "$ac_lib"; then
13566 ac_res="none required"
13567 else
13568 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013570 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013571 rm -f conftest.$ac_objext conftest$ac_exeext
13572if { (ac_try="$ac_link"
13573case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13576esac
13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_link") 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13589esac
13590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13599esac
13600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013605 ac_cv_search_dlopen=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013606else
13607 echo "$as_me: failed program was:" >&5
13608sed 's/^/| /' conftest.$ac_ext >&5
13609
13610
John Criswell7a73b802003-06-30 21:59:07 +000013611fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013612
Bill Wendlingebcceee2009-04-18 11:20:33 +000013613rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013614 conftest$ac_exeext
13615 if test "${ac_cv_search_dlopen+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013616 break
John Criswell7a73b802003-06-30 21:59:07 +000013617fi
Reid Spencera773bd52006-08-04 18:18:08 +000013618done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013619if test "${ac_cv_search_dlopen+set}" = set; then
13620 :
Reid Spencera773bd52006-08-04 18:18:08 +000013621else
13622 ac_cv_search_dlopen=no
13623fi
13624rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013625LIBS=$ac_func_search_save_LIBS
13626fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013627{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13628echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013629ac_res=$ac_cv_search_dlopen
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013630if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013632
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013633cat >>confdefs.h <<\_ACEOF
13634#define HAVE_DLOPEN 1
13635_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013636
13637else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013638 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13639echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000013640fi
13641
13642
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013643if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013644 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13645echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13646if test "${ac_cv_search_ffi_call+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013648else
Nick Lewycky267fddb2009-04-13 04:26:27 +000013649 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013650cat >conftest.$ac_ext <<_ACEOF
13651/* confdefs.h. */
13652_ACEOF
13653cat confdefs.h >>conftest.$ac_ext
13654cat >>conftest.$ac_ext <<_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013655/* end confdefs.h. */
13656
13657/* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13660#ifdef __cplusplus
13661extern "C"
13662#endif
13663char ffi_call ();
13664int
13665main ()
13666{
13667return ffi_call ();
13668 ;
13669 return 0;
13670}
13671_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013672for ac_lib in '' ffi; do
13673 if test -z "$ac_lib"; then
13674 ac_res="none required"
13675 else
13676 ac_res=-l$ac_lib
13677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13678 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013679 rm -f conftest.$ac_objext conftest$ac_exeext
13680if { (ac_try="$ac_link"
13681case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684esac
13685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13697esac
13698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13700 ac_status=$?
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013713 ac_cv_search_ffi_call=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013714else
13715 echo "$as_me: failed program was:" >&5
13716sed 's/^/| /' conftest.$ac_ext >&5
13717
13718
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013719fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013720
Bill Wendlingebcceee2009-04-18 11:20:33 +000013721rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013722 conftest$ac_exeext
13723 if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013724 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013725fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000013726done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013727if test "${ac_cv_search_ffi_call+set}" = set; then
13728 :
Nick Lewycky267fddb2009-04-13 04:26:27 +000013729else
13730 ac_cv_search_ffi_call=no
13731fi
13732rm conftest.$ac_ext
13733LIBS=$ac_func_search_save_LIBS
13734fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013735{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13736echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
Nick Lewycky267fddb2009-04-13 04:26:27 +000013737ac_res=$ac_cv_search_ffi_call
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013738if test "$ac_res" != no; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000013739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13740
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013741cat >>confdefs.h <<\_ACEOF
13742#define HAVE_FFI_CALL 1
13743_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000013744
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013745else
Jeffrey Yasskinbc83d062010-02-09 23:03:44 +000013746 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13747echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13748 { (exit 1); exit 1; }; }
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013749fi
13750
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000013751fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013752
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013753{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13754echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13755if test "${ac_cv_search_mallinfo+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013757else
13758 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013759cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013765
Reid Spencera773bd52006-08-04 18:18:08 +000013766/* Override any GCC internal prototype to avoid an error.
13767 Use char because int might match the return type of a GCC
13768 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000013769#ifdef __cplusplus
13770extern "C"
13771#endif
John Criswell7a73b802003-06-30 21:59:07 +000013772char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013773int
13774main ()
13775{
Reid Spencera773bd52006-08-04 18:18:08 +000013776return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000013777 ;
13778 return 0;
13779}
13780_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013781for ac_lib in '' malloc; do
13782 if test -z "$ac_lib"; then
13783 ac_res="none required"
13784 else
13785 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000013786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013787 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013788 rm -f conftest.$ac_objext conftest$ac_exeext
13789if { (ac_try="$ac_link"
13790case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_link") 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13803 { (case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13806esac
13807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_try") 2>&5
13809 ac_status=$?
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest$ac_exeext'
13813 { (case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13816esac
13817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_try") 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013822 ac_cv_search_mallinfo=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013823else
13824 echo "$as_me: failed program was:" >&5
13825sed 's/^/| /' conftest.$ac_ext >&5
13826
13827
John Criswell7a73b802003-06-30 21:59:07 +000013828fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013829
Bill Wendlingebcceee2009-04-18 11:20:33 +000013830rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013831 conftest$ac_exeext
13832 if test "${ac_cv_search_mallinfo+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013833 break
John Criswell7a73b802003-06-30 21:59:07 +000013834fi
Reid Spencera773bd52006-08-04 18:18:08 +000013835done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013836if test "${ac_cv_search_mallinfo+set}" = set; then
13837 :
Reid Spencera773bd52006-08-04 18:18:08 +000013838else
13839 ac_cv_search_mallinfo=no
13840fi
13841rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013842LIBS=$ac_func_search_save_LIBS
13843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013844{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13845echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000013846ac_res=$ac_cv_search_mallinfo
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013847if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000013848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000013849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013850cat >>confdefs.h <<\_ACEOF
13851#define HAVE_MALLINFO 1
13852_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000013853
13854fi
13855
13856
Reid Spencer0a262ba2005-08-24 10:07:20 +000013857if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013858
13859{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13860echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13861if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer22177fe2005-07-12 15:24:20 +000013863else
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013864 ac_check_lib_save_LIBS=$LIBS
13865LIBS="-lpthread $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013866cat >conftest.$ac_ext <<_ACEOF
13867/* confdefs.h. */
13868_ACEOF
13869cat confdefs.h >>conftest.$ac_ext
13870cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013871/* end confdefs.h. */
13872
Reid Spencera773bd52006-08-04 18:18:08 +000013873/* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000013876#ifdef __cplusplus
13877extern "C"
13878#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000013879char pthread_mutex_init ();
13880int
13881main ()
13882{
Reid Spencera773bd52006-08-04 18:18:08 +000013883return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000013884 ;
13885 return 0;
13886}
13887_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013888rm -f conftest.$ac_objext conftest$ac_exeext
13889if { (ac_try="$ac_link"
13890case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893esac
13894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_link") 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906esac
13907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest$ac_exeext'
13913 { (case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13916esac
13917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_try") 2>&5
13919 ac_status=$?
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013922 ac_cv_lib_pthread_pthread_mutex_init=yes
Reid Spencer22177fe2005-07-12 15:24:20 +000013923else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013924 echo "$as_me: failed program was:" >&5
13925sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000013928fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013929
Bill Wendlingebcceee2009-04-18 11:20:33 +000013930rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013931 conftest$ac_exeext conftest.$ac_ext
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013932LIBS=$ac_check_lib_save_LIBS
Reid Spencer22177fe2005-07-12 15:24:20 +000013933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013934{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13935echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13936if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013937 cat >>confdefs.h <<_ACEOF
13938#define HAVE_LIBPTHREAD 1
Edward O'Callaghan2b7b37a2009-10-13 01:01:38 +000013939_ACEOF
Reid Spencer22177fe2005-07-12 15:24:20 +000013940
Edward O'Callaghan5da60462009-10-14 11:12:33 +000013941 LIBS="-lpthread $LIBS"
13942
Reid Spencer22177fe2005-07-12 15:24:20 +000013943fi
13944
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013945 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13946echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13947if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke5f268f72003-12-05 19:29:01 +000013949else
13950 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013951cat >conftest.$ac_ext <<_ACEOF
13952/* confdefs.h. */
13953_ACEOF
13954cat confdefs.h >>conftest.$ac_ext
13955cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000013956/* end confdefs.h. */
13957
Reid Spencera773bd52006-08-04 18:18:08 +000013958/* Override any GCC internal prototype to avoid an error.
13959 Use char because int might match the return type of a GCC
13960 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000013961#ifdef __cplusplus
13962extern "C"
13963#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000013964char pthread_mutex_lock ();
13965int
13966main ()
13967{
Reid Spencera773bd52006-08-04 18:18:08 +000013968return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000013969 ;
13970 return 0;
13971}
13972_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013973for ac_lib in '' pthread; do
13974 if test -z "$ac_lib"; then
13975 ac_res="none required"
13976 else
13977 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000013978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000013979 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000013980 rm -f conftest.$ac_objext conftest$ac_exeext
13981if { (ac_try="$ac_link"
13982case "(($ac_try" in
13983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984 *) ac_try_echo=$ac_try;;
13985esac
13986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987 (eval "$ac_link") 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13995 { (case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_try") 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; } &&
14004 { ac_try='test -s conftest$ac_exeext'
14005 { (case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008esac
14009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_try") 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014014 ac_cv_search_pthread_mutex_lock=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014015else
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
14019
Brian Gaeke5f268f72003-12-05 19:29:01 +000014020fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014021
Bill Wendlingebcceee2009-04-18 11:20:33 +000014022rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014023 conftest$ac_exeext
14024 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014025 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000014026fi
Reid Spencera773bd52006-08-04 18:18:08 +000014027done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014028if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14029 :
Reid Spencera773bd52006-08-04 18:18:08 +000014030else
14031 ac_cv_search_pthread_mutex_lock=no
14032fi
14033rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000014034LIBS=$ac_func_search_save_LIBS
14035fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014036{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14037echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014038ac_res=$ac_cv_search_pthread_mutex_lock
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014039if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000014041
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014042cat >>confdefs.h <<\_ACEOF
14043#define HAVE_PTHREAD_MUTEX_LOCK 1
14044_ACEOF
John Criswell40468462004-09-24 21:19:06 +000014045
14046fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000014047
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014048 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14049echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14050if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Andersonde8aed22009-06-16 18:20:20 +000014052else
14053 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014054cat >conftest.$ac_ext <<_ACEOF
14055/* confdefs.h. */
14056_ACEOF
14057cat confdefs.h >>conftest.$ac_ext
14058cat >>conftest.$ac_ext <<_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014059/* end confdefs.h. */
14060
14061/* Override any GCC internal prototype to avoid an error.
14062 Use char because int might match the return type of a GCC
14063 builtin and then its argument prototype would still apply. */
14064#ifdef __cplusplus
14065extern "C"
14066#endif
14067char pthread_rwlock_init ();
14068int
14069main ()
14070{
14071return pthread_rwlock_init ();
14072 ;
14073 return 0;
14074}
14075_ACEOF
14076for ac_lib in '' pthread; do
14077 if test -z "$ac_lib"; then
14078 ac_res="none required"
14079 else
14080 ac_res=-l$ac_lib
14081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14082 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014083 rm -f conftest.$ac_objext conftest$ac_exeext
14084if { (ac_try="$ac_link"
14085case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14088esac
14089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14098 { (case "(($ac_try" in
14099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14100 *) ac_try_echo=$ac_try;;
14101esac
14102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14103 (eval "$ac_try") 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest$ac_exeext'
14108 { (case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14111esac
14112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_try") 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; }; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014117 ac_cv_search_pthread_rwlock_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014118else
14119 echo "$as_me: failed program was:" >&5
14120sed 's/^/| /' conftest.$ac_ext >&5
14121
14122
Owen Andersonde8aed22009-06-16 18:20:20 +000014123fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014124
Owen Andersonde8aed22009-06-16 18:20:20 +000014125rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014126 conftest$ac_exeext
14127 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014128 break
14129fi
14130done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014131if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14132 :
Owen Andersonde8aed22009-06-16 18:20:20 +000014133else
14134 ac_cv_search_pthread_rwlock_init=no
14135fi
14136rm conftest.$ac_ext
14137LIBS=$ac_func_search_save_LIBS
14138fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014139{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14140echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
Owen Andersonde8aed22009-06-16 18:20:20 +000014141ac_res=$ac_cv_search_pthread_rwlock_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014142if test "$ac_res" != no; then
Owen Andersonde8aed22009-06-16 18:20:20 +000014143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014145cat >>confdefs.h <<\_ACEOF
14146#define HAVE_PTHREAD_RWLOCK_INIT 1
14147_ACEOF
Owen Andersonde8aed22009-06-16 18:20:20 +000014148
14149fi
14150
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014151 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14152echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14153if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
Owen Anderson27fcfe12009-06-25 23:10:26 +000014155else
14156 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014157cat >conftest.$ac_ext <<_ACEOF
14158/* confdefs.h. */
14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014162/* end confdefs.h. */
14163
14164/* Override any GCC internal prototype to avoid an error.
14165 Use char because int might match the return type of a GCC
14166 builtin and then its argument prototype would still apply. */
14167#ifdef __cplusplus
14168extern "C"
14169#endif
14170char pthread_getspecific ();
14171int
14172main ()
14173{
14174return pthread_getspecific ();
14175 ;
14176 return 0;
14177}
14178_ACEOF
14179for ac_lib in '' pthread; do
14180 if test -z "$ac_lib"; then
14181 ac_res="none required"
14182 else
14183 ac_res=-l$ac_lib
14184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14185 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014186 rm -f conftest.$ac_objext conftest$ac_exeext
14187if { (ac_try="$ac_link"
14188case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14191esac
14192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_link") 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14201 { (case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14204esac
14205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_try") 2>&5
14207 ac_status=$?
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; } &&
14210 { ac_try='test -s conftest$ac_exeext'
14211 { (case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214esac
14215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_try") 2>&5
14217 ac_status=$?
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014220 ac_cv_search_pthread_getspecific=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225
Owen Anderson27fcfe12009-06-25 23:10:26 +000014226fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014227
Owen Anderson27fcfe12009-06-25 23:10:26 +000014228rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014229 conftest$ac_exeext
14230 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014231 break
14232fi
14233done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014234if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14235 :
Owen Anderson27fcfe12009-06-25 23:10:26 +000014236else
14237 ac_cv_search_pthread_getspecific=no
14238fi
14239rm conftest.$ac_ext
14240LIBS=$ac_func_search_save_LIBS
14241fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014242{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14243echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
Owen Anderson27fcfe12009-06-25 23:10:26 +000014244ac_res=$ac_cv_search_pthread_getspecific
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014245if test "$ac_res" != no; then
Owen Anderson27fcfe12009-06-25 23:10:26 +000014246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14247
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014248cat >>confdefs.h <<\_ACEOF
14249#define HAVE_PTHREAD_GETSPECIFIC 1
14250_ACEOF
Owen Anderson27fcfe12009-06-25 23:10:26 +000014251
14252fi
14253
Reid Spencer0a262ba2005-08-24 10:07:20 +000014254fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000014255
Reid Spencer5e1d9a52004-11-25 04:51:04 +000014256
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014257# Check whether --with-udis86 was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014258if test "${with_udis86+set}" = set; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014259 withval=$with_udis86;
14260 USE_UDIS86=1
14261
14262 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000014263 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014264 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14265 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014266
14267{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14268echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14269if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014271else
14272 ac_check_lib_save_LIBS=$LIBS
14273LIBS="-ludis86 $LIBS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014274cat >conftest.$ac_ext <<_ACEOF
14275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014279/* end confdefs.h. */
14280
14281/* Override any GCC internal prototype to avoid an error.
14282 Use char because int might match the return type of a GCC
14283 builtin and then its argument prototype would still apply. */
14284#ifdef __cplusplus
14285extern "C"
14286#endif
14287char ud_init ();
14288int
14289main ()
14290{
14291return ud_init ();
14292 ;
14293 return 0;
14294}
14295_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014296rm -f conftest.$ac_objext conftest$ac_exeext
14297if { (ac_try="$ac_link"
14298case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301esac
14302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_link") 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14314esac
14315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14317 ac_status=$?
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest$ac_exeext'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14324esac
14325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14327 ac_status=$?
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014330 ac_cv_lib_udis86_ud_init=yes
14331else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014332 echo "$as_me: failed program was:" >&5
14333sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 ac_cv_lib_udis86_ud_init=no
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014336fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014337
Bill Wendlingebcceee2009-04-18 11:20:33 +000014338rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014339 conftest$ac_exeext conftest.$ac_ext
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014340LIBS=$ac_check_lib_save_LIBS
14341fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014342{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14343echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14344if test $ac_cv_lib_udis86_ud_init = yes; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014345 cat >>confdefs.h <<_ACEOF
14346#define HAVE_LIBUDIS86 1
14347_ACEOF
14348
14349 LIBS="-ludis86 $LIBS"
14350
14351else
14352
14353 echo "Error! You need to have libudis86 around."
14354 exit -1
14355
14356fi
14357
14358
14359else
14360 USE_UDIS86=0
14361
14362fi
14363
14364
14365cat >>confdefs.h <<_ACEOF
14366#define USE_UDIS86 $USE_UDIS86
14367_ACEOF
14368
14369
14370
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014371# Check whether --with-oprofile was given.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014372if test "${with_oprofile+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014373 withval=$with_oprofile;
14374 USE_OPROFILE=1
14375
14376 case "$withval" in
14377 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014378 no) llvm_cv_oppath=
14379 USE_OPROFILE=0
14380 ;;
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014381 *) llvm_cv_oppath="${withval}/lib/oprofile"
14382 CPPFLAGS="-I${withval}/include";;
14383 esac
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014384 if test -n "$llvm_cv_oppath" ; then
14385 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014386 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14387echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14388if test "${ac_cv_search_bfd_init+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014390else
14391 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014392cat >conftest.$ac_ext <<_ACEOF
14393/* confdefs.h. */
14394_ACEOF
14395cat confdefs.h >>conftest.$ac_ext
14396cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014397/* end confdefs.h. */
14398
14399/* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14402#ifdef __cplusplus
14403extern "C"
14404#endif
14405char bfd_init ();
14406int
14407main ()
14408{
14409return bfd_init ();
14410 ;
14411 return 0;
14412}
14413_ACEOF
14414for ac_lib in '' bfd; do
14415 if test -z "$ac_lib"; then
14416 ac_res="none required"
14417 else
14418 ac_res=-l$ac_lib
14419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14420 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014421 rm -f conftest.$ac_objext conftest$ac_exeext
14422if { (ac_try="$ac_link"
14423case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14426esac
14427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_link") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14439esac
14440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest$ac_exeext'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14449esac
14450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14452 ac_status=$?
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014455 ac_cv_search_bfd_init=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014456else
14457 echo "$as_me: failed program was:" >&5
14458sed 's/^/| /' conftest.$ac_ext >&5
14459
14460
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014461fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014462
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014463rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014464 conftest$ac_exeext
14465 if test "${ac_cv_search_bfd_init+set}" = set; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014466 break
14467fi
14468done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014469if test "${ac_cv_search_bfd_init+set}" = set; then
14470 :
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014471else
14472 ac_cv_search_bfd_init=no
14473fi
14474rm conftest.$ac_ext
14475LIBS=$ac_func_search_save_LIBS
14476fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014477{ echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14478echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014479ac_res=$ac_cv_search_bfd_init
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014480if test "$ac_res" != no; then
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14482
14483fi
14484
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014485 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14486echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14487if test "${ac_cv_search_op_open_agent+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014489else
14490 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014491cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014496/* end confdefs.h. */
14497
14498/* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14501#ifdef __cplusplus
14502extern "C"
14503#endif
14504char op_open_agent ();
14505int
14506main ()
14507{
14508return op_open_agent ();
14509 ;
14510 return 0;
14511}
14512_ACEOF
14513for ac_lib in '' opagent; do
14514 if test -z "$ac_lib"; then
14515 ac_res="none required"
14516 else
14517 ac_res=-l$ac_lib
14518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14519 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014520 rm -f conftest.$ac_objext conftest$ac_exeext
14521if { (ac_try="$ac_link"
14522case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_link") 2>conftest.er1
14528 ac_status=$?
14529 grep -v '^ *+' conftest.er1 >conftest.err
14530 rm -f conftest.er1
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538esac
14539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14541 ac_status=$?
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14548esac
14549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14551 ac_status=$?
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014554 ac_cv_search_op_open_agent=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014560fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014561
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014562rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014563 conftest$ac_exeext
14564 if test "${ac_cv_search_op_open_agent+set}" = set; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014565 break
14566fi
14567done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014568if test "${ac_cv_search_op_open_agent+set}" = set; then
14569 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014570else
14571 ac_cv_search_op_open_agent=no
14572fi
14573rm conftest.$ac_ext
14574LIBS=$ac_func_search_save_LIBS
14575fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014576{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14577echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014578ac_res=$ac_cv_search_op_open_agent
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014579if test "$ac_res" != no; then
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14581
14582else
14583
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014584 echo "Error! You need to have libopagent around."
14585 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014586
14587fi
14588
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014589 if test "${ac_cv_header_opagent_h+set}" = set; then
14590 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14591echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14592if test "${ac_cv_header_opagent_h+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594fi
14595{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14596echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14597else
14598 # Is the header compilable?
14599{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
14600echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14601cat >conftest.$ac_ext <<_ACEOF
14602/* confdefs.h. */
14603_ACEOF
14604cat confdefs.h >>conftest.$ac_ext
14605cat >>conftest.$ac_ext <<_ACEOF
14606/* end confdefs.h. */
14607$ac_includes_default
14608#include <opagent.h>
14609_ACEOF
14610rm -f conftest.$ac_objext
14611if { (ac_try="$ac_compile"
14612case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615esac
14616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_compile") 2>conftest.er1
14618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14625 { (case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14628esac
14629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_try") 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638esac
14639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14641 ac_status=$?
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_header_compiler=yes
14645else
14646 echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014648
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014649 ac_header_compiler=no
14650fi
14651
14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14654echo "${ECHO_T}$ac_header_compiler" >&6; }
14655
14656# Is the header present?
14657{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
14658echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14659cat >conftest.$ac_ext <<_ACEOF
14660/* confdefs.h. */
14661_ACEOF
14662cat confdefs.h >>conftest.$ac_ext
14663cat >>conftest.$ac_ext <<_ACEOF
14664/* end confdefs.h. */
14665#include <opagent.h>
14666_ACEOF
14667if { (ac_try="$ac_cpp conftest.$ac_ext"
14668case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14671esac
14672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14674 ac_status=$?
14675 grep -v '^ *+' conftest.er1 >conftest.err
14676 rm -f conftest.er1
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } >/dev/null; then
14680 if test -s conftest.err; then
14681 ac_cpp_err=$ac_c_preproc_warn_flag
14682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14683 else
14684 ac_cpp_err=
14685 fi
14686else
14687 ac_cpp_err=yes
14688fi
14689if test -z "$ac_cpp_err"; then
14690 ac_header_preproc=yes
14691else
14692 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5
14694
14695 ac_header_preproc=no
14696fi
14697
14698rm -f conftest.err conftest.$ac_ext
14699{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14700echo "${ECHO_T}$ac_header_preproc" >&6; }
14701
14702# So? What about this header?
14703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14704 yes:no: )
14705 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14706echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14708echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14709 ac_header_preproc=yes
14710 ;;
14711 no:yes:* )
14712 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14713echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14715echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14717echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14719echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14721echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14723echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14724 ( cat <<\_ASBOX
14725## ----------------------------------- ##
14726## Report this to llvmbugs@cs.uiuc.edu ##
14727## ----------------------------------- ##
14728_ASBOX
14729 ) | sed "s/^/$as_me: WARNING: /" >&2
14730 ;;
14731esac
14732{ echo "$as_me:$LINENO: checking for opagent.h" >&5
14733echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14734if test "${ac_cv_header_opagent_h+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14736else
14737 ac_cv_header_opagent_h=$ac_header_preproc
14738fi
14739{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14740echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14741
14742fi
14743if test $ac_cv_header_opagent_h = yes; then
14744 :
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014745else
14746
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014747 echo "Error! You need to have opagent.h around."
14748 exit -1
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014749
14750fi
14751
14752
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014753 fi
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014754
14755else
14756
Jeffrey Yasskinfe897b22009-10-07 23:22:42 +000014757 USE_OPROFILE=0
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000014758
14759
14760fi
14761
14762
14763cat >>confdefs.h <<_ACEOF
14764#define USE_OPROFILE $USE_OPROFILE
14765_ACEOF
14766
14767
14768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014769
14770
14771
14772
14773
Reid Spencer59473af2004-12-25 07:31:29 +000014774ac_header_dirent=no
14775for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014776 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14777{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14778echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014781else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014782 cat >conftest.$ac_ext <<_ACEOF
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014787/* end confdefs.h. */
14788#include <sys/types.h>
14789#include <$ac_hdr>
14790
14791int
14792main ()
14793{
14794if ((DIR *) 0)
14795return 0;
14796 ;
14797 return 0;
14798}
14799_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014800rm -f conftest.$ac_objext
14801if { (ac_try="$ac_compile"
14802case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14805esac
14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_compile") 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14815 { (case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14818esac
14819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_try") 2>&5
14821 ac_status=$?
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); }; } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14828esac
14829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_try") 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000014834 eval "$as_ac_Header=yes"
14835else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014836 echo "$as_me: failed program was:" >&5
14837sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000014840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014841
Reid Spencera773bd52006-08-04 18:18:08 +000014842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014844ac_res=`eval echo '${'$as_ac_Header'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846echo "${ECHO_T}$ac_res" >&6; }
14847if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000014848 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014849#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000014850_ACEOF
14851
14852ac_header_dirent=$ac_hdr; break
14853fi
14854
14855done
14856# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14857if test $ac_header_dirent = dirent.h; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14859echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14860if test "${ac_cv_search_opendir+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014862else
14863 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014869/* end confdefs.h. */
14870
Reid Spencera773bd52006-08-04 18:18:08 +000014871/* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014874#ifdef __cplusplus
14875extern "C"
14876#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014877char opendir ();
14878int
14879main ()
14880{
Reid Spencera773bd52006-08-04 18:18:08 +000014881return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014882 ;
14883 return 0;
14884}
14885_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014886for ac_lib in '' dir; do
14887 if test -z "$ac_lib"; then
14888 ac_res="none required"
14889 else
14890 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014892 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014893 rm -f conftest.$ac_objext conftest$ac_exeext
14894if { (ac_try="$ac_link"
14895case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14898esac
14899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_link") 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14908 { (case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14911esac
14912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_try") 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
14922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_try") 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000014927 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014928else
14929 echo "$as_me: failed program was:" >&5
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
14932
Reid Spencer59473af2004-12-25 07:31:29 +000014933fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014934
Bill Wendlingebcceee2009-04-18 11:20:33 +000014935rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014936 conftest$ac_exeext
14937 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014938 break
Reid Spencer59473af2004-12-25 07:31:29 +000014939fi
Reid Spencera773bd52006-08-04 18:18:08 +000014940done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014941if test "${ac_cv_search_opendir+set}" = set; then
14942 :
Reid Spencera773bd52006-08-04 18:18:08 +000014943else
14944 ac_cv_search_opendir=no
14945fi
14946rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000014947LIBS=$ac_func_search_save_LIBS
14948fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014949{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14950echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000014951ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014952if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000014953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000014954
14955fi
14956
14957else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14959echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14960if test "${ac_cv_search_opendir+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000014962else
14963 ac_func_search_save_LIBS=$LIBS
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014964cat >conftest.$ac_ext <<_ACEOF
14965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000014969/* end confdefs.h. */
14970
Reid Spencera773bd52006-08-04 18:18:08 +000014971/* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000014974#ifdef __cplusplus
14975extern "C"
14976#endif
Reid Spencer59473af2004-12-25 07:31:29 +000014977char opendir ();
14978int
14979main ()
14980{
Reid Spencera773bd52006-08-04 18:18:08 +000014981return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000014982 ;
14983 return 0;
14984}
14985_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000014986for ac_lib in '' x; do
14987 if test -z "$ac_lib"; then
14988 ac_res="none required"
14989 else
14990 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000014991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000014992 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000014993 rm -f conftest.$ac_objext conftest$ac_exeext
14994if { (ac_try="$ac_link"
14995case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998esac
14999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_link") 2>conftest.er1
15001 ac_status=$?
15002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest$ac_exeext'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000015027 ac_cv_search_opendir=$ac_res
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015028else
15029 echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
15032
Reid Spencer59473af2004-12-25 07:31:29 +000015033fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015034
Bill Wendlingebcceee2009-04-18 11:20:33 +000015035rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015036 conftest$ac_exeext
15037 if test "${ac_cv_search_opendir+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000015038 break
Reid Spencer59473af2004-12-25 07:31:29 +000015039fi
Reid Spencera773bd52006-08-04 18:18:08 +000015040done
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015041if test "${ac_cv_search_opendir+set}" = set; then
15042 :
Reid Spencera773bd52006-08-04 18:18:08 +000015043else
15044 ac_cv_search_opendir=no
15045fi
15046rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015047LIBS=$ac_func_search_save_LIBS
15048fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015049{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15050echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
Reid Spencera773bd52006-08-04 18:18:08 +000015051ac_res=$ac_cv_search_opendir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015052if test "$ac_res" != no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000015054
15055fi
15056
15057fi
15058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015059{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15060echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15061if test "${ac_cv_header_mmap_anon+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015063else
15064 ac_ext=c
15065ac_cpp='$CPP $CPPFLAGS'
15066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068ac_compiler_gnu=$ac_cv_c_compiler_gnu
15069
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015070 cat >conftest.$ac_ext <<_ACEOF
15071/* confdefs.h. */
15072_ACEOF
15073cat confdefs.h >>conftest.$ac_ext
15074cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015075/* end confdefs.h. */
15076#include <sys/mman.h>
15077#include <unistd.h>
15078#include <fcntl.h>
15079int
15080main ()
15081{
15082mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15083 ;
15084 return 0;
15085}
15086_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015087rm -f conftest.$ac_objext
15088if { (ac_try="$ac_compile"
15089case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092esac
15093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_compile") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105esac
15106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try='test -s conftest.$ac_objext'
15112 { (case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115esac
15116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_try") 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000015121 ac_cv_header_mmap_anon=yes
15122else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000015127fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015128
Reid Spencera773bd52006-08-04 18:18:08 +000015129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000015130 ac_ext=c
15131ac_cpp='$CPP $CPPFLAGS'
15132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134ac_compiler_gnu=$ac_cv_c_compiler_gnu
15135
15136
15137fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015138{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15139echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015140if test "$ac_cv_header_mmap_anon" = yes; then
15141
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015142cat >>confdefs.h <<\_ACEOF
15143#define HAVE_MMAP_ANONYMOUS 1
15144_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015145
15146fi
15147
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015148{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15149echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15150if test "${ac_cv_header_stat_broken+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer59473af2004-12-25 07:31:29 +000015152else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015153 cat >conftest.$ac_ext <<_ACEOF
15154/* confdefs.h. */
15155_ACEOF
15156cat confdefs.h >>conftest.$ac_ext
15157cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015158/* end confdefs.h. */
15159#include <sys/types.h>
15160#include <sys/stat.h>
15161
Reid Spencera773bd52006-08-04 18:18:08 +000015162#if defined S_ISBLK && defined S_IFDIR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015163# if S_ISBLK (S_IFDIR)
15164You lose.
15165# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015166#endif
15167
Reid Spencera773bd52006-08-04 18:18:08 +000015168#if defined S_ISBLK && defined S_IFCHR
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015169# if S_ISBLK (S_IFCHR)
15170You lose.
15171# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015172#endif
15173
Reid Spencera773bd52006-08-04 18:18:08 +000015174#if defined S_ISLNK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015175# if S_ISLNK (S_IFREG)
15176You lose.
15177# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015178#endif
15179
Reid Spencera773bd52006-08-04 18:18:08 +000015180#if defined S_ISSOCK && defined S_IFREG
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015181# if S_ISSOCK (S_IFREG)
15182You lose.
15183# endif
Reid Spencer59473af2004-12-25 07:31:29 +000015184#endif
15185
15186_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15188 $EGREP "You lose" >/dev/null 2>&1; then
Torok Edwin871384f2010-01-26 08:50:50 +000015189 ac_cv_header_stat_broken=yes
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015190else
15191 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000015192fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015193rm -f conftest*
15194
Reid Spencer59473af2004-12-25 07:31:29 +000015195fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015196{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15197echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000015198if test $ac_cv_header_stat_broken = yes; then
15199
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015200cat >>confdefs.h <<\_ACEOF
15201#define STAT_MACROS_BROKEN 1
15202_ACEOF
Reid Spencer59473af2004-12-25 07:31:29 +000015203
15204fi
15205
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015206{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15207echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15208if test "${ac_cv_header_stdc+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015210else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015211 cat >conftest.$ac_ext <<_ACEOF
15212/* confdefs.h. */
15213_ACEOF
15214cat confdefs.h >>conftest.$ac_ext
15215cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015217#include <stdlib.h>
15218#include <stdarg.h>
15219#include <string.h>
15220#include <float.h>
15221
John Criswell0c38eaf2003-09-10 15:17:25 +000015222int
15223main ()
15224{
15225
15226 ;
15227 return 0;
15228}
John Criswell7a73b802003-06-30 21:59:07 +000015229_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015230rm -f conftest.$ac_objext
15231if { (ac_try="$ac_compile"
15232case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_compile") 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest.$ac_objext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015264 ac_cv_header_stdc=yes
15265else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015266 echo "$as_me: failed program was:" >&5
15267sed 's/^/| /' conftest.$ac_ext >&5
15268
15269 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015270fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015271
Reid Spencera773bd52006-08-04 18:18:08 +000015272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015273
15274if test $ac_cv_header_stdc = yes; then
15275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015276 cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h. */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015282#include <string.h>
15283
15284_ACEOF
15285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015286 $EGREP "memchr" >/dev/null 2>&1; then
15287 :
John Criswell7a73b802003-06-30 21:59:07 +000015288else
15289 ac_cv_header_stdc=no
15290fi
15291rm -f conftest*
15292
15293fi
15294
15295if test $ac_cv_header_stdc = yes; then
15296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015297 cat >conftest.$ac_ext <<_ACEOF
15298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015303#include <stdlib.h>
15304
15305_ACEOF
15306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015307 $EGREP "free" >/dev/null 2>&1; then
15308 :
John Criswell7a73b802003-06-30 21:59:07 +000015309else
15310 ac_cv_header_stdc=no
15311fi
15312rm -f conftest*
15313
15314fi
15315
15316if test $ac_cv_header_stdc = yes; then
15317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015318 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000015319 :
15320else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015321 cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015327#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000015328#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000015329#if ((' ' & 0x0FF) == 0x020)
15330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15332#else
John Criswell0c38eaf2003-09-10 15:17:25 +000015333# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015334 (('a' <= (c) && (c) <= 'i') \
15335 || ('j' <= (c) && (c) <= 'r') \
15336 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000015337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15338#endif
15339
15340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15341int
15342main ()
15343{
15344 int i;
15345 for (i = 0; i < 256; i++)
15346 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000015347 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000015348 return 2;
15349 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000015350}
15351_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015352rm -f conftest$ac_exeext
15353if { (ac_try="$ac_link"
15354case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357esac
15358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
15367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 :
John Criswell7a73b802003-06-30 21:59:07 +000015373else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015374 echo "$as_me: program exited with status $ac_status" >&5
15375echo "$as_me: failed program was:" >&5
15376sed 's/^/| /' conftest.$ac_ext >&5
15377
15378( exit $ac_status )
15379ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000015380fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015381rm -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 +000015382fi
15383
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015384
John Criswell7a73b802003-06-30 21:59:07 +000015385fi
15386fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015387{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15388echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015389if test $ac_cv_header_stdc = yes; then
15390
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015391cat >>confdefs.h <<\_ACEOF
15392#define STDC_HEADERS 1
15393_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015394
15395fi
15396
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015397{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15398echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15399if test "${ac_cv_header_sys_wait_h+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000015401else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015402 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015408#include <sys/types.h>
15409#include <sys/wait.h>
15410#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000015411# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000015412#endif
15413#ifndef WIFEXITED
15414# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15415#endif
15416
John Criswell7a73b802003-06-30 21:59:07 +000015417int
15418main ()
15419{
15420 int s;
15421 wait (&s);
15422 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15423 ;
15424 return 0;
15425}
15426_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015427rm -f conftest.$ac_objext
15428if { (ac_try="$ac_compile"
15429case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15432esac
15433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_compile") 2>conftest.er1
15435 ac_status=$?
15436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445esac
15446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15448 ac_status=$?
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try='test -s conftest.$ac_objext'
15452 { (case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455esac
15456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_try") 2>&5
15458 ac_status=$?
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015461 ac_cv_header_sys_wait_h=yes
15462else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015463 echo "$as_me: failed program was:" >&5
15464sed 's/^/| /' conftest.$ac_ext >&5
15465
15466 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000015467fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015468
Reid Spencera773bd52006-08-04 18:18:08 +000015469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015470fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015471{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15472echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015473if test $ac_cv_header_sys_wait_h = yes; then
15474
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015475cat >>confdefs.h <<\_ACEOF
15476#define HAVE_SYS_WAIT_H 1
15477_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000015478
15479fi
15480
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015481{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15482echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15483if test "${ac_cv_header_time+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015485else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015486 cat >conftest.$ac_ext <<_ACEOF
15487/* confdefs.h. */
15488_ACEOF
15489cat confdefs.h >>conftest.$ac_ext
15490cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015491/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015492#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015493#include <sys/time.h>
15494#include <time.h>
15495
15496int
15497main ()
15498{
15499if ((struct tm *) 0)
15500return 0;
15501 ;
15502 return 0;
15503}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015504_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015505rm -f conftest.$ac_objext
15506if { (ac_try="$ac_compile"
15507case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15510esac
15511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_compile") 2>conftest.er1
15513 ac_status=$?
15514 grep -v '^ *+' conftest.er1 >conftest.err
15515 rm -f conftest.er1
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15520 { (case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15523esac
15524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_try") 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try='test -s conftest.$ac_objext'
15530 { (case "(($ac_try" in
15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15533esac
15534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_try") 2>&5
15536 ac_status=$?
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015539 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015540else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015541 echo "$as_me: failed program was:" >&5
15542sed 's/^/| /' conftest.$ac_ext >&5
15543
15544 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015545fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015546
Reid Spencera773bd52006-08-04 18:18:08 +000015547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015548fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015549{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15550echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015551if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015552
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015553cat >>confdefs.h <<\_ACEOF
15554#define TIME_WITH_SYS_TIME 1
15555_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015556
15557fi
15558
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015559
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015560
15561
15562
15563
15564
15565
Reid Spencer59473af2004-12-25 07:31:29 +000015566for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015567do
15568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574fi
15575ac_res=`eval echo '${'$as_ac_Header'}'`
15576 { echo "$as_me:$LINENO: result: $ac_res" >&5
15577echo "${ECHO_T}$ac_res" >&6; }
15578else
15579 # Is the header compilable?
15580{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15582cat >conftest.$ac_ext <<_ACEOF
15583/* confdefs.h. */
15584_ACEOF
15585cat confdefs.h >>conftest.$ac_ext
15586cat >>conftest.$ac_ext <<_ACEOF
15587/* end confdefs.h. */
15588$ac_includes_default
15589#include <$ac_header>
15590_ACEOF
15591rm -f conftest.$ac_objext
15592if { (ac_try="$ac_compile"
15593case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15596esac
15597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_compile") 2>conftest.er1
15599 ac_status=$?
15600 grep -v '^ *+' conftest.er1 >conftest.err
15601 rm -f conftest.er1
15602 cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15606 { (case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15609esac
15610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_try") 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; } &&
15615 { ac_try='test -s conftest.$ac_objext'
15616 { (case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15619esac
15620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_try") 2>&5
15622 ac_status=$?
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 ac_header_compiler=yes
15626else
15627 echo "$as_me: failed program was:" >&5
15628sed 's/^/| /' conftest.$ac_ext >&5
15629
15630 ac_header_compiler=no
15631fi
15632
15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15635echo "${ECHO_T}$ac_header_compiler" >&6; }
15636
15637# Is the header present?
15638{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15640cat >conftest.$ac_ext <<_ACEOF
15641/* confdefs.h. */
15642_ACEOF
15643cat confdefs.h >>conftest.$ac_ext
15644cat >>conftest.$ac_ext <<_ACEOF
15645/* end confdefs.h. */
15646#include <$ac_header>
15647_ACEOF
15648if { (ac_try="$ac_cpp conftest.$ac_ext"
15649case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15652esac
15653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15664 else
15665 ac_cpp_err=
15666 fi
15667else
15668 ac_cpp_err=yes
15669fi
15670if test -z "$ac_cpp_err"; then
15671 ac_header_preproc=yes
15672else
15673 echo "$as_me: failed program was:" >&5
15674sed 's/^/| /' conftest.$ac_ext >&5
15675
15676 ac_header_preproc=no
15677fi
15678
15679rm -f conftest.err conftest.$ac_ext
15680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15681echo "${ECHO_T}$ac_header_preproc" >&6; }
15682
15683# So? What about this header?
15684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15685 yes:no: )
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15690 ac_header_preproc=yes
15691 ;;
15692 no:yes:* )
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15705 ( cat <<\_ASBOX
15706## ----------------------------------- ##
15707## Report this to llvmbugs@cs.uiuc.edu ##
15708## ----------------------------------- ##
15709_ASBOX
15710 ) | sed "s/^/$as_me: WARNING: /" >&2
15711 ;;
15712esac
15713{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15717else
15718 eval "$as_ac_Header=\$ac_header_preproc"
15719fi
15720ac_res=`eval echo '${'$as_ac_Header'}'`
15721 { echo "$as_me:$LINENO: result: $ac_res" >&5
15722echo "${ECHO_T}$ac_res" >&6; }
15723
15724fi
15725if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015726 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000015728_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015729
15730fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015731
Reid Spencer59473af2004-12-25 07:31:29 +000015732done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000015733
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015734
15735
15736
15737
15738
15739
Douglas Gregor071d73d2009-05-18 17:21:34 +000015740for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015741do
15742as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15748fi
15749ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751echo "${ECHO_T}$ac_res" >&6; }
15752else
15753 # Is the header compilable?
15754{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756cat >conftest.$ac_ext <<_ACEOF
15757/* confdefs.h. */
15758_ACEOF
15759cat confdefs.h >>conftest.$ac_ext
15760cat >>conftest.$ac_ext <<_ACEOF
15761/* end confdefs.h. */
15762$ac_includes_default
15763#include <$ac_header>
15764_ACEOF
15765rm -f conftest.$ac_objext
15766if { (ac_try="$ac_compile"
15767case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15770esac
15771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_compile") 2>conftest.er1
15773 ac_status=$?
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15783esac
15784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15793esac
15794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_header_compiler=yes
15800else
15801 echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804 ac_header_compiler=no
15805fi
15806
15807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809echo "${ECHO_T}$ac_header_compiler" >&6; }
15810
15811# Is the header present?
15812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15814cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
15820#include <$ac_header>
15821_ACEOF
15822if { (ac_try="$ac_cpp conftest.$ac_ext"
15823case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15826esac
15827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15829 ac_status=$?
15830 grep -v '^ *+' conftest.er1 >conftest.err
15831 rm -f conftest.er1
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } >/dev/null; then
15835 if test -s conftest.err; then
15836 ac_cpp_err=$ac_c_preproc_warn_flag
15837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15838 else
15839 ac_cpp_err=
15840 fi
15841else
15842 ac_cpp_err=yes
15843fi
15844if test -z "$ac_cpp_err"; then
15845 ac_header_preproc=yes
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850 ac_header_preproc=no
15851fi
15852
15853rm -f conftest.err conftest.$ac_ext
15854{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855echo "${ECHO_T}$ac_header_preproc" >&6; }
15856
15857# So? What about this header?
15858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15859 yes:no: )
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864 ac_header_preproc=yes
15865 ;;
15866 no:yes:* )
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15874echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15879 ( cat <<\_ASBOX
15880## ----------------------------------- ##
15881## Report this to llvmbugs@cs.uiuc.edu ##
15882## ----------------------------------- ##
15883_ASBOX
15884 ) | sed "s/^/$as_me: WARNING: /" >&2
15885 ;;
15886esac
15887{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15891else
15892 eval "$as_ac_Header=\$ac_header_preproc"
15893fi
15894ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896echo "${ECHO_T}$ac_res" >&6; }
15897
15898fi
15899if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer59473af2004-12-25 07:31:29 +000015900 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer59473af2004-12-25 07:31:29 +000015902_ACEOF
15903
15904fi
15905
15906done
15907
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015908
15909
Douglas Gregor071d73d2009-05-18 17:21:34 +000015910for ac_header in utime.h windows.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000015911do
15912as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15918fi
15919ac_res=`eval echo '${'$as_ac_Header'}'`
15920 { echo "$as_me:$LINENO: result: $ac_res" >&5
15921echo "${ECHO_T}$ac_res" >&6; }
15922else
15923 # Is the header compilable?
15924{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15926cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932$ac_includes_default
15933#include <$ac_header>
15934_ACEOF
15935rm -f conftest.$ac_objext
15936if { (ac_try="$ac_compile"
15937case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940esac
15941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_compile") 2>conftest.er1
15943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest.$ac_objext'
15960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15963esac
15964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_header_compiler=yes
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 ac_header_compiler=no
15975fi
15976
15977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979echo "${ECHO_T}$ac_header_compiler" >&6; }
15980
15981# Is the header present?
15982{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15984cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
15990#include <$ac_header>
15991_ACEOF
15992if { (ac_try="$ac_cpp conftest.$ac_ext"
15993case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15996esac
15997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } >/dev/null; then
16005 if test -s conftest.err; then
16006 ac_cpp_err=$ac_c_preproc_warn_flag
16007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16008 else
16009 ac_cpp_err=
16010 fi
16011else
16012 ac_cpp_err=yes
16013fi
16014if test -z "$ac_cpp_err"; then
16015 ac_header_preproc=yes
16016else
16017 echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 ac_header_preproc=no
16021fi
16022
16023rm -f conftest.err conftest.$ac_ext
16024{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025echo "${ECHO_T}$ac_header_preproc" >&6; }
16026
16027# So? What about this header?
16028case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16029 yes:no: )
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034 ac_header_preproc=yes
16035 ;;
16036 no:yes:* )
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16049 ( cat <<\_ASBOX
16050## ----------------------------------- ##
16051## Report this to llvmbugs@cs.uiuc.edu ##
16052## ----------------------------------- ##
16053_ASBOX
16054 ) | sed "s/^/$as_me: WARNING: /" >&2
16055 ;;
16056esac
16057{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061else
16062 eval "$as_ac_Header=\$ac_header_preproc"
16063fi
16064ac_res=`eval echo '${'$as_ac_Header'}'`
16065 { echo "$as_me:$LINENO: result: $ac_res" >&5
16066echo "${ECHO_T}$ac_res" >&6; }
16067
16068fi
16069if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016070 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016072_ACEOF
16073
16074fi
16075
16076done
Reid Spencer59473af2004-12-25 07:31:29 +000016077
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016078
16079
16080
16081
Reid Spencerbe3e4192007-08-17 05:45:26 +000016082for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016083do
16084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090fi
16091ac_res=`eval echo '${'$as_ac_Header'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093echo "${ECHO_T}$ac_res" >&6; }
16094else
16095 # Is the header compilable?
16096{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098cat >conftest.$ac_ext <<_ACEOF
16099/* confdefs.h. */
16100_ACEOF
16101cat confdefs.h >>conftest.$ac_ext
16102cat >>conftest.$ac_ext <<_ACEOF
16103/* end confdefs.h. */
16104$ac_includes_default
16105#include <$ac_header>
16106_ACEOF
16107rm -f conftest.$ac_objext
16108if { (ac_try="$ac_compile"
16109case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112esac
16113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16125esac
16126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16135esac
16136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16138 ac_status=$?
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16142else
16143 echo "$as_me: failed program was:" >&5
16144sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_header_compiler=no
16147fi
16148
16149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153# Is the header present?
16154{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156cat >conftest.$ac_ext <<_ACEOF
16157/* confdefs.h. */
16158_ACEOF
16159cat confdefs.h >>conftest.$ac_ext
16160cat >>conftest.$ac_ext <<_ACEOF
16161/* end confdefs.h. */
16162#include <$ac_header>
16163_ACEOF
16164if { (ac_try="$ac_cpp conftest.$ac_ext"
16165case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16168esac
16169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null; then
16177 if test -s conftest.err; then
16178 ac_cpp_err=$ac_c_preproc_warn_flag
16179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180 else
16181 ac_cpp_err=
16182 fi
16183else
16184 ac_cpp_err=yes
16185fi
16186if test -z "$ac_cpp_err"; then
16187 ac_header_preproc=yes
16188else
16189 echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 ac_header_preproc=no
16193fi
16194
16195rm -f conftest.err conftest.$ac_ext
16196{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199# So? What about this header?
16200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201 yes:no: )
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206 ac_header_preproc=yes
16207 ;;
16208 no:yes:* )
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16212echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16216echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16221 ( cat <<\_ASBOX
16222## ----------------------------------- ##
16223## Report this to llvmbugs@cs.uiuc.edu ##
16224## ----------------------------------- ##
16225_ASBOX
16226 ) | sed "s/^/$as_me: WARNING: /" >&2
16227 ;;
16228esac
16229{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234 eval "$as_ac_Header=\$ac_header_preproc"
16235fi
16236ac_res=`eval echo '${'$as_ac_Header'}'`
16237 { echo "$as_me:$LINENO: result: $ac_res" >&5
16238echo "${ECHO_T}$ac_res" >&6; }
16239
16240fi
16241if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016242 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000016244_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000016245
16246fi
John Criswell7ed43ad2004-07-19 16:12:29 +000016247
Reid Spencer5e1d9a52004-11-25 04:51:04 +000016248done
16249
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016250
16251
16252
16253
Douglas Gregor01746742009-05-11 18:05:52 +000016254for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016255do
16256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16262fi
16263ac_res=`eval echo '${'$as_ac_Header'}'`
16264 { echo "$as_me:$LINENO: result: $ac_res" >&5
16265echo "${ECHO_T}$ac_res" >&6; }
16266else
16267 # Is the header compilable?
16268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16270cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276$ac_includes_default
16277#include <$ac_header>
16278_ACEOF
16279rm -f conftest.$ac_objext
16280if { (ac_try="$ac_compile"
16281case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
16285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_compile") 2>conftest.er1
16287 ac_status=$?
16288 grep -v '^ *+' conftest.er1 >conftest.err
16289 rm -f conftest.er1
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16294 { (case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
16298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_try") 2>&5
16300 ac_status=$?
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307esac
16308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_try") 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_header_compiler=yes
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
16318 ac_header_compiler=no
16319fi
16320
16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16323echo "${ECHO_T}$ac_header_compiler" >&6; }
16324
16325# Is the header present?
16326{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16327echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16328cat >conftest.$ac_ext <<_ACEOF
16329/* confdefs.h. */
16330_ACEOF
16331cat confdefs.h >>conftest.$ac_ext
16332cat >>conftest.$ac_ext <<_ACEOF
16333/* end confdefs.h. */
16334#include <$ac_header>
16335_ACEOF
16336if { (ac_try="$ac_cpp conftest.$ac_ext"
16337case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340esac
16341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } >/dev/null; then
16349 if test -s conftest.err; then
16350 ac_cpp_err=$ac_c_preproc_warn_flag
16351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16352 else
16353 ac_cpp_err=
16354 fi
16355else
16356 ac_cpp_err=yes
16357fi
16358if test -z "$ac_cpp_err"; then
16359 ac_header_preproc=yes
16360else
16361 echo "$as_me: failed program was:" >&5
16362sed 's/^/| /' conftest.$ac_ext >&5
16363
16364 ac_header_preproc=no
16365fi
16366
16367rm -f conftest.err conftest.$ac_ext
16368{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369echo "${ECHO_T}$ac_header_preproc" >&6; }
16370
16371# So? What about this header?
16372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373 yes:no: )
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16375echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16377echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16378 ac_header_preproc=yes
16379 ;;
16380 no:yes:* )
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16382echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16384echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16386echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16388echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16390echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16392echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16393 ( cat <<\_ASBOX
16394## ----------------------------------- ##
16395## Report this to llvmbugs@cs.uiuc.edu ##
16396## ----------------------------------- ##
16397_ASBOX
16398 ) | sed "s/^/$as_me: WARNING: /" >&2
16399 ;;
16400esac
16401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16405else
16406 eval "$as_ac_Header=\$ac_header_preproc"
16407fi
16408ac_res=`eval echo '${'$as_ac_Header'}'`
16409 { echo "$as_me:$LINENO: result: $ac_res" >&5
16410echo "${ECHO_T}$ac_res" >&6; }
16411
16412fi
16413if test `eval echo '${'$as_ac_Header'}'` = yes; then
Chris Lattner0b142592005-11-14 06:57:34 +000016414 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Chris Lattner0b142592005-11-14 06:57:34 +000016416_ACEOF
16417
16418fi
16419
16420done
16421
Jeffrey Yasskinf28411f2010-03-15 04:57:55 +000016422
16423for ac_header in valgrind/valgrind.h
16424do
16425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16431fi
16432ac_res=`eval echo '${'$as_ac_Header'}'`
16433 { echo "$as_me:$LINENO: result: $ac_res" >&5
16434echo "${ECHO_T}$ac_res" >&6; }
16435else
16436 # Is the header compilable?
16437{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16439cat >conftest.$ac_ext <<_ACEOF
16440/* confdefs.h. */
16441_ACEOF
16442cat confdefs.h >>conftest.$ac_ext
16443cat >>conftest.$ac_ext <<_ACEOF
16444/* end confdefs.h. */
16445$ac_includes_default
16446#include <$ac_header>
16447_ACEOF
16448rm -f conftest.$ac_objext
16449if { (ac_try="$ac_compile"
16450case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463 { (case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466esac
16467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_try") 2>&5
16469 ac_status=$?
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest.$ac_objext'
16473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476esac
16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_header_compiler=yes
16483else
16484 echo "$as_me: failed program was:" >&5
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
16487 ac_header_compiler=no
16488fi
16489
16490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16492echo "${ECHO_T}$ac_header_compiler" >&6; }
16493
16494# Is the header present?
16495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16497cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
16503#include <$ac_header>
16504_ACEOF
16505if { (ac_try="$ac_cpp conftest.$ac_ext"
16506case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16509esac
16510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16512 ac_status=$?
16513 grep -v '^ *+' conftest.er1 >conftest.err
16514 rm -f conftest.er1
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } >/dev/null; then
16518 if test -s conftest.err; then
16519 ac_cpp_err=$ac_c_preproc_warn_flag
16520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16521 else
16522 ac_cpp_err=
16523 fi
16524else
16525 ac_cpp_err=yes
16526fi
16527if test -z "$ac_cpp_err"; then
16528 ac_header_preproc=yes
16529else
16530 echo "$as_me: failed program was:" >&5
16531sed 's/^/| /' conftest.$ac_ext >&5
16532
16533 ac_header_preproc=no
16534fi
16535
16536rm -f conftest.err conftest.$ac_ext
16537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16538echo "${ECHO_T}$ac_header_preproc" >&6; }
16539
16540# So? What about this header?
16541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16542 yes:no: )
16543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16547 ac_header_preproc=yes
16548 ;;
16549 no:yes:* )
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16562 ( cat <<\_ASBOX
16563## ----------------------------------- ##
16564## Report this to llvmbugs@cs.uiuc.edu ##
16565## ----------------------------------- ##
16566_ASBOX
16567 ) | sed "s/^/$as_me: WARNING: /" >&2
16568 ;;
16569esac
16570{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16574else
16575 eval "$as_ac_Header=\$ac_header_preproc"
16576fi
16577ac_res=`eval echo '${'$as_ac_Header'}'`
16578 { echo "$as_me:$LINENO: result: $ac_res" >&5
16579echo "${ECHO_T}$ac_res" >&6; }
16580
16581fi
16582if test `eval echo '${'$as_ac_Header'}'` = yes; then
16583 cat >>confdefs.h <<_ACEOF
16584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16585_ACEOF
16586
16587fi
16588
16589done
16590
Reid Spencer0a262ba2005-08-24 10:07:20 +000016591if test "$ENABLE_THREADS" -eq 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016592
16593for ac_header in pthread.h
16594do
16595as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16599if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16601fi
16602ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604echo "${ECHO_T}$ac_res" >&6; }
16605else
16606 # Is the header compilable?
16607{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16609cat >conftest.$ac_ext <<_ACEOF
16610/* confdefs.h. */
16611_ACEOF
16612cat confdefs.h >>conftest.$ac_ext
16613cat >>conftest.$ac_ext <<_ACEOF
16614/* end confdefs.h. */
16615$ac_includes_default
16616#include <$ac_header>
16617_ACEOF
16618rm -f conftest.$ac_objext
16619if { (ac_try="$ac_compile"
16620case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16626 ac_status=$?
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16636esac
16637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16646esac
16647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_header_compiler=yes
16653else
16654 echo "$as_me: failed program was:" >&5
16655sed 's/^/| /' conftest.$ac_ext >&5
16656
16657 ac_header_compiler=no
16658fi
16659
16660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16662echo "${ECHO_T}$ac_header_compiler" >&6; }
16663
16664# Is the header present?
16665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16667cat >conftest.$ac_ext <<_ACEOF
16668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
16673#include <$ac_header>
16674_ACEOF
16675if { (ac_try="$ac_cpp conftest.$ac_ext"
16676case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16682 ac_status=$?
16683 grep -v '^ *+' conftest.er1 >conftest.err
16684 rm -f conftest.er1
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } >/dev/null; then
16688 if test -s conftest.err; then
16689 ac_cpp_err=$ac_c_preproc_warn_flag
16690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16691 else
16692 ac_cpp_err=
16693 fi
16694else
16695 ac_cpp_err=yes
16696fi
16697if test -z "$ac_cpp_err"; then
16698 ac_header_preproc=yes
16699else
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 ac_header_preproc=no
16704fi
16705
16706rm -f conftest.err conftest.$ac_ext
16707{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708echo "${ECHO_T}$ac_header_preproc" >&6; }
16709
16710# So? What about this header?
16711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712 yes:no: )
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16718 ;;
16719 no:yes:* )
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16732 ( cat <<\_ASBOX
16733## ----------------------------------- ##
16734## Report this to llvmbugs@cs.uiuc.edu ##
16735## ----------------------------------- ##
16736_ASBOX
16737 ) | sed "s/^/$as_me: WARNING: /" >&2
16738 ;;
16739esac
16740{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16744else
16745 eval "$as_ac_Header=\$ac_header_preproc"
16746fi
16747ac_res=`eval echo '${'$as_ac_Header'}'`
16748 { echo "$as_me:$LINENO: result: $ac_res" >&5
16749echo "${ECHO_T}$ac_res" >&6; }
16750
16751fi
16752if test `eval echo '${'$as_ac_Header'}'` = yes; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000016753 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencerbe3e4192007-08-17 05:45:26 +000016755_ACEOF
16756 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000016757
16758else
16759 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016760
16761fi
16762
Reid Spencerbe3e4192007-08-17 05:45:26 +000016763done
Reid Spencer1000b732006-12-01 00:37:14 +000016764
16765else
16766 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000016767
16768fi
Reid Spencer8085cff2005-01-16 02:58:39 +000016769
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016770if test "$llvm_cv_enable_libffi" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016771
16772
16773for ac_header in ffi.h ffi/ffi.h
16774do
16775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781fi
16782ac_res=`eval echo '${'$as_ac_Header'}'`
16783 { echo "$as_me:$LINENO: result: $ac_res" >&5
16784echo "${ECHO_T}$ac_res" >&6; }
16785else
16786 # Is the header compilable?
16787{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16789cat >conftest.$ac_ext <<_ACEOF
16790/* confdefs.h. */
16791_ACEOF
16792cat confdefs.h >>conftest.$ac_ext
16793cat >>conftest.$ac_ext <<_ACEOF
16794/* end confdefs.h. */
16795$ac_includes_default
16796#include <$ac_header>
16797_ACEOF
16798rm -f conftest.$ac_objext
16799if { (ac_try="$ac_compile"
16800case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803esac
16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
16817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_header_compiler=yes
16833else
16834 echo "$as_me: failed program was:" >&5
16835sed 's/^/| /' conftest.$ac_ext >&5
16836
16837 ac_header_compiler=no
16838fi
16839
16840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16842echo "${ECHO_T}$ac_header_compiler" >&6; }
16843
16844# Is the header present?
16845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16847cat >conftest.$ac_ext <<_ACEOF
16848/* confdefs.h. */
16849_ACEOF
16850cat confdefs.h >>conftest.$ac_ext
16851cat >>conftest.$ac_ext <<_ACEOF
16852/* end confdefs.h. */
16853#include <$ac_header>
16854_ACEOF
16855if { (ac_try="$ac_cpp conftest.$ac_ext"
16856case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859esac
16860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } >/dev/null; then
16868 if test -s conftest.err; then
16869 ac_cpp_err=$ac_c_preproc_warn_flag
16870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16871 else
16872 ac_cpp_err=
16873 fi
16874else
16875 ac_cpp_err=yes
16876fi
16877if test -z "$ac_cpp_err"; then
16878 ac_header_preproc=yes
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883 ac_header_preproc=no
16884fi
16885
16886rm -f conftest.err conftest.$ac_ext
16887{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16888echo "${ECHO_T}$ac_header_preproc" >&6; }
16889
16890# So? What about this header?
16891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16892 yes:no: )
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16897 ac_header_preproc=yes
16898 ;;
16899 no:yes:* )
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16912 ( cat <<\_ASBOX
16913## ----------------------------------- ##
16914## Report this to llvmbugs@cs.uiuc.edu ##
16915## ----------------------------------- ##
16916_ASBOX
16917 ) | sed "s/^/$as_me: WARNING: /" >&2
16918 ;;
16919esac
16920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16924else
16925 eval "$as_ac_Header=\$ac_header_preproc"
16926fi
16927ac_res=`eval echo '${'$as_ac_Header'}'`
16928 { echo "$as_me:$LINENO: result: $ac_res" >&5
16929echo "${ECHO_T}$ac_res" >&6; }
16930
16931fi
16932if test `eval echo '${'$as_ac_Header'}'` = yes; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016933 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000016934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016935_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016936
16937fi
16938
16939done
16940
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000016941fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000016942
Nick Lewycky2ab1d862009-01-20 00:52:24 +000016943
Eric Christopher654dee42010-06-22 21:01:04 +000016944for ac_header in CrashReporterClient.h
16945do
16946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16950if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16952fi
16953ac_res=`eval echo '${'$as_ac_Header'}'`
16954 { echo "$as_me:$LINENO: result: $ac_res" >&5
16955echo "${ECHO_T}$ac_res" >&6; }
16956else
16957 # Is the header compilable?
16958{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16959echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16960cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966$ac_includes_default
16967#include <$ac_header>
16968_ACEOF
16969rm -f conftest.$ac_objext
16970if { (ac_try="$ac_compile"
16971case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974esac
16975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_compile") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987esac
16988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_header_compiler=yes
17004else
17005 echo "$as_me: failed program was:" >&5
17006sed 's/^/| /' conftest.$ac_ext >&5
17007
17008 ac_header_compiler=no
17009fi
17010
17011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17013echo "${ECHO_T}$ac_header_compiler" >&6; }
17014
17015# Is the header present?
17016{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17018cat >conftest.$ac_ext <<_ACEOF
17019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
17024#include <$ac_header>
17025_ACEOF
17026if { (ac_try="$ac_cpp conftest.$ac_ext"
17027case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17030esac
17031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17033 ac_status=$?
17034 grep -v '^ *+' conftest.er1 >conftest.err
17035 rm -f conftest.er1
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } >/dev/null; then
17039 if test -s conftest.err; then
17040 ac_cpp_err=$ac_c_preproc_warn_flag
17041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17042 else
17043 ac_cpp_err=
17044 fi
17045else
17046 ac_cpp_err=yes
17047fi
17048if test -z "$ac_cpp_err"; then
17049 ac_header_preproc=yes
17050else
17051 echo "$as_me: failed program was:" >&5
17052sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 ac_header_preproc=no
17055fi
17056
17057rm -f conftest.err conftest.$ac_ext
17058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17059echo "${ECHO_T}$ac_header_preproc" >&6; }
17060
17061# So? What about this header?
17062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17063 yes:no: )
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17068 ac_header_preproc=yes
17069 ;;
17070 no:yes:* )
17071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17078echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17083 ( cat <<\_ASBOX
17084## ----------------------------------- ##
17085## Report this to llvmbugs@cs.uiuc.edu ##
17086## ----------------------------------- ##
17087_ASBOX
17088 ) | sed "s/^/$as_me: WARNING: /" >&2
17089 ;;
17090esac
17091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095else
17096 eval "$as_ac_Header=\$ac_header_preproc"
17097fi
17098ac_res=`eval echo '${'$as_ac_Header'}'`
17099 { echo "$as_me:$LINENO: result: $ac_res" >&5
17100echo "${ECHO_T}$ac_res" >&6; }
17101
17102fi
17103if test `eval echo '${'$as_ac_Header'}'` = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17106_ACEOF
17107
17108fi
17109
17110done
17111
17112
17113
Reid Spencer8085cff2005-01-16 02:58:39 +000017114
Torok Edwin871384f2010-01-26 08:50:50 +000017115
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017116 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17117echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17118if test "${ac_cv_huge_val_sanity+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencerb2ed05262006-11-03 18:04:08 +000017120else
17121
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017122 ac_ext=cpp
17123ac_cpp='$CXXCPP $CPPFLAGS'
17124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000017127
Eric Christopherc7718502010-03-02 05:06:54 +000017128 ac_save_CXXFLAGS=$CXXFLAGS
Reid Spencer6a7c0b72006-11-03 19:49:16 +000017129 CXXFLAGS=-pedantic
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017130 if test "$cross_compiling" = yes; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017131 ac_cv_huge_val_sanity=yes
17132else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017133 cat >conftest.$ac_ext <<_ACEOF
17134/* confdefs.h. */
17135_ACEOF
17136cat confdefs.h >>conftest.$ac_ext
17137cat >>conftest.$ac_ext <<_ACEOF
Reid Spencerb2ed05262006-11-03 18:04:08 +000017138/* end confdefs.h. */
17139#include <math.h>
17140int
17141main ()
17142{
17143double x = HUGE_VAL; return x != x;
17144 ;
17145 return 0;
17146}
17147_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017148rm -f conftest$ac_exeext
17149if { (ac_try="$ac_link"
17150case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153esac
17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_link") 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
Reid Spencerb2ed05262006-11-03 18:04:08 +000017168 ac_cv_huge_val_sanity=yes
17169else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017170 echo "$as_me: program exited with status $ac_status" >&5
17171echo "$as_me: failed program was:" >&5
17172sed 's/^/| /' conftest.$ac_ext >&5
17173
17174( exit $ac_status )
17175ac_cv_huge_val_sanity=no
Reid Spencerb2ed05262006-11-03 18:04:08 +000017176fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017177rm -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 +000017178fi
17179
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017180
Eric Christopherc7718502010-03-02 05:06:54 +000017181 CXXFLAGS=$ac_save_CXXFLAGS
Reid Spencerb2ed05262006-11-03 18:04:08 +000017182 ac_ext=c
17183ac_cpp='$CPP $CPPFLAGS'
17184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186ac_compiler_gnu=$ac_cv_c_compiler_gnu
17187
17188
17189fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017190{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17191echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
Reid Spencerb2ed05262006-11-03 18:04:08 +000017192 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17193
17194
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017195{ echo "$as_me:$LINENO: checking for pid_t" >&5
17196echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17197if test "${ac_cv_type_pid_t+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199else
17200 cat >conftest.$ac_ext <<_ACEOF
17201/* confdefs.h. */
17202_ACEOF
17203cat confdefs.h >>conftest.$ac_ext
17204cat >>conftest.$ac_ext <<_ACEOF
17205/* end confdefs.h. */
17206$ac_includes_default
17207typedef pid_t ac__type_new_;
17208int
17209main ()
17210{
17211if ((ac__type_new_ *) 0)
17212 return 0;
17213if (sizeof (ac__type_new_))
17214 return 0;
17215 ;
17216 return 0;
17217}
17218_ACEOF
17219rm -f conftest.$ac_objext
17220if { (ac_try="$ac_compile"
17221case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224esac
17225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_compile") 2>conftest.er1
17227 ac_status=$?
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
17233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237esac
17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest.$ac_objext'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247esac
17248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_type_pid_t=yes
17254else
17255 echo "$as_me: failed program was:" >&5
17256sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017257
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017258 ac_cv_type_pid_t=no
17259fi
17260
17261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262fi
17263{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17264echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17265if test $ac_cv_type_pid_t = yes; then
17266 :
John Criswell7a73b802003-06-30 21:59:07 +000017267else
17268
17269cat >>confdefs.h <<_ACEOF
17270#define pid_t int
17271_ACEOF
17272
17273fi
17274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017275{ echo "$as_me:$LINENO: checking for size_t" >&5
17276echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17277if test "${ac_cv_type_size_t+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17279else
17280 cat >conftest.$ac_ext <<_ACEOF
17281/* confdefs.h. */
17282_ACEOF
17283cat confdefs.h >>conftest.$ac_ext
17284cat >>conftest.$ac_ext <<_ACEOF
17285/* end confdefs.h. */
17286$ac_includes_default
17287typedef size_t ac__type_new_;
17288int
17289main ()
17290{
17291if ((ac__type_new_ *) 0)
17292 return 0;
17293if (sizeof (ac__type_new_))
17294 return 0;
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext
17300if { (ac_try="$ac_compile"
17301case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304esac
17305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17317esac
17318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_try") 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17327esac
17328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_try") 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_type_size_t=yes
17334else
17335 echo "$as_me: failed program was:" >&5
17336sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017337
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017338 ac_cv_type_size_t=no
17339fi
17340
17341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342fi
17343{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17344echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17345if test $ac_cv_type_size_t = yes; then
17346 :
John Criswell7a73b802003-06-30 21:59:07 +000017347else
17348
17349cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000017350#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000017351_ACEOF
17352
17353fi
17354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017355
17356cat >>confdefs.h <<_ACEOF
Torok Edwin871384f2010-01-26 08:50:50 +000017357#define RETSIGTYPE void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017358_ACEOF
17359
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017360{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17361echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17362if test "${ac_cv_struct_tm+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017364else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017365 cat >conftest.$ac_ext <<_ACEOF
17366/* confdefs.h. */
17367_ACEOF
17368cat confdefs.h >>conftest.$ac_ext
17369cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017370/* end confdefs.h. */
17371#include <sys/types.h>
17372#include <time.h>
17373
17374int
17375main ()
17376{
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017377struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017378 ;
17379 return 0;
17380}
17381_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017382rm -f conftest.$ac_objext
17383if { (ac_try="$ac_compile"
17384case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_compile") 2>conftest.er1
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400esac
17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest.$ac_objext'
17407 { (case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17410esac
17411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_try") 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017416 ac_cv_struct_tm=time.h
17417else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017418 echo "$as_me: failed program was:" >&5
17419sed 's/^/| /' conftest.$ac_ext >&5
17420
17421 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017422fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017423
Reid Spencera773bd52006-08-04 18:18:08 +000017424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017425fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017426{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17427echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017428if test $ac_cv_struct_tm = sys/time.h; then
17429
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017430cat >>confdefs.h <<\_ACEOF
17431#define TM_IN_SYS_TIME 1
17432_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017433
17434fi
17435
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017436{ echo "$as_me:$LINENO: checking for int64_t" >&5
17437echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17438if test "${ac_cv_type_int64_t+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17440else
17441 cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447$ac_includes_default
17448typedef int64_t ac__type_new_;
17449int
17450main ()
17451{
17452if ((ac__type_new_ *) 0)
17453 return 0;
17454if (sizeof (ac__type_new_))
17455 return 0;
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext
17461if { (ac_try="$ac_compile"
17462case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17465esac
17466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_compile") 2>conftest.er1
17468 ac_status=$?
17469 grep -v '^ *+' conftest.er1 >conftest.err
17470 rm -f conftest.er1
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475 { (case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17478esac
17479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_try") 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17488esac
17489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17491 ac_status=$?
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_cv_type_int64_t=yes
17495else
17496 echo "$as_me: failed program was:" >&5
17497sed 's/^/| /' conftest.$ac_ext >&5
17498
17499 ac_cv_type_int64_t=no
17500fi
17501
17502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503fi
17504{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17505echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17506if test $ac_cv_type_int64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017507
17508cat >>confdefs.h <<_ACEOF
17509#define HAVE_INT64_T 1
17510_ACEOF
17511
17512
17513else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017514 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17515echo "$as_me: error: Type int64_t required but not found" >&2;}
17516 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +000017517fi
17518
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017519{ echo "$as_me:$LINENO: checking for uint64_t" >&5
17520echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17521if test "${ac_cv_type_uint64_t+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17523else
17524 cat >conftest.$ac_ext <<_ACEOF
17525/* confdefs.h. */
17526_ACEOF
17527cat confdefs.h >>conftest.$ac_ext
17528cat >>conftest.$ac_ext <<_ACEOF
17529/* end confdefs.h. */
17530$ac_includes_default
17531typedef uint64_t ac__type_new_;
17532int
17533main ()
17534{
17535if ((ac__type_new_ *) 0)
17536 return 0;
17537if (sizeof (ac__type_new_))
17538 return 0;
17539 ;
17540 return 0;
17541}
17542_ACEOF
17543rm -f conftest.$ac_objext
17544if { (ac_try="$ac_compile"
17545case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17548esac
17549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_compile") 2>conftest.er1
17551 ac_status=$?
17552 grep -v '^ *+' conftest.er1 >conftest.err
17553 rm -f conftest.er1
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558 { (case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17561esac
17562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_try") 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest.$ac_objext'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571esac
17572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_type_uint64_t=yes
17578else
17579 echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ac_cv_type_uint64_t=no
17583fi
17584
17585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586fi
17587{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17588echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17589if test $ac_cv_type_uint64_t = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000017590
17591cat >>confdefs.h <<_ACEOF
17592#define HAVE_UINT64_T 1
17593_ACEOF
17594
17595
17596else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017597 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17598echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17599if test "${ac_cv_type_u_int64_t+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601else
17602 cat >conftest.$ac_ext <<_ACEOF
17603/* confdefs.h. */
17604_ACEOF
17605cat confdefs.h >>conftest.$ac_ext
17606cat >>conftest.$ac_ext <<_ACEOF
17607/* end confdefs.h. */
17608$ac_includes_default
17609typedef u_int64_t ac__type_new_;
17610int
17611main ()
17612{
17613if ((ac__type_new_ *) 0)
17614 return 0;
17615if (sizeof (ac__type_new_))
17616 return 0;
17617 ;
17618 return 0;
17619}
17620_ACEOF
17621rm -f conftest.$ac_objext
17622if { (ac_try="$ac_compile"
17623case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_compile") 2>conftest.er1
17629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_type_u_int64_t=yes
17656else
17657 echo "$as_me: failed program was:" >&5
17658sed 's/^/| /' conftest.$ac_ext >&5
17659
17660 ac_cv_type_u_int64_t=no
17661fi
17662
17663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17664fi
17665{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17666echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17667if test $ac_cv_type_u_int64_t = yes; then
John Criswell679ff312004-09-02 18:44:44 +000017668
17669cat >>confdefs.h <<_ACEOF
17670#define HAVE_U_INT64_T 1
17671_ACEOF
17672
17673
Misha Brukmanceca9042004-09-02 23:02:30 +000017674else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017675 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17676echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17677 { (exit 1); exit 1; }; }
Misha Brukmanceca9042004-09-02 23:02:30 +000017678fi
17679
John Criswell679ff312004-09-02 18:44:44 +000017680fi
17681
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017682
17683
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017684
17685
17686
17687
17688
17689
17690
Reid Spencerdf3be822006-01-23 08:15:53 +000017691for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017692do
17693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17696if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698else
17699 cat >conftest.$ac_ext <<_ACEOF
17700/* confdefs.h. */
17701_ACEOF
17702cat confdefs.h >>conftest.$ac_ext
17703cat >>conftest.$ac_ext <<_ACEOF
17704/* end confdefs.h. */
17705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707#define $ac_func innocuous_$ac_func
17708
17709/* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char $ac_func (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17713
17714#ifdef __STDC__
17715# include <limits.h>
17716#else
17717# include <assert.h>
17718#endif
17719
17720#undef $ac_func
17721
17722/* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17725#ifdef __cplusplus
17726extern "C"
17727#endif
17728char $ac_func ();
17729/* The GNU C library defines this for functions which it implements
17730 to always fail with ENOSYS. Some functions are actually named
17731 something starting with __ and the normal name is an alias. */
17732#if defined __stub_$ac_func || defined __stub___$ac_func
17733choke me
17734#endif
17735
17736int
17737main ()
17738{
17739return $ac_func ();
17740 ;
17741 return 0;
17742}
17743_ACEOF
17744rm -f conftest.$ac_objext conftest$ac_exeext
17745if { (ac_try="$ac_link"
17746case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17749esac
17750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17752 ac_status=$?
17753 grep -v '^ *+' conftest.er1 >conftest.err
17754 rm -f conftest.er1
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17762esac
17763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17765 ac_status=$?
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772esac
17773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_try") 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 eval "$as_ac_var=yes"
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783 eval "$as_ac_var=no"
17784fi
17785
17786rm -f core conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17788fi
17789ac_res=`eval echo '${'$as_ac_var'}'`
17790 { echo "$as_me:$LINENO: result: $ac_res" >&5
17791echo "${ECHO_T}$ac_res" >&6; }
17792if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017793 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000017795_ACEOF
17796
17797fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000017798done
John Criswell7a73b802003-06-30 21:59:07 +000017799
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017800
17801
17802
17803
Reid Spencer96cf5872007-07-13 10:05:30 +000017804for ac_func in powf fmodf strtof round
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017805do
17806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17811else
17812 cat >conftest.$ac_ext <<_ACEOF
17813/* confdefs.h. */
17814_ACEOF
17815cat confdefs.h >>conftest.$ac_ext
17816cat >>conftest.$ac_ext <<_ACEOF
17817/* end confdefs.h. */
17818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17820#define $ac_func innocuous_$ac_func
17821
17822/* System header to define __stub macros and hopefully few prototypes,
17823 which can conflict with char $ac_func (); below.
17824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17825 <limits.h> exists even on freestanding compilers. */
17826
17827#ifdef __STDC__
17828# include <limits.h>
17829#else
17830# include <assert.h>
17831#endif
17832
17833#undef $ac_func
17834
17835/* Override any GCC internal prototype to avoid an error.
17836 Use char because int might match the return type of a GCC
17837 builtin and then its argument prototype would still apply. */
17838#ifdef __cplusplus
17839extern "C"
17840#endif
17841char $ac_func ();
17842/* The GNU C library defines this for functions which it implements
17843 to always fail with ENOSYS. Some functions are actually named
17844 something starting with __ and the normal name is an alias. */
17845#if defined __stub_$ac_func || defined __stub___$ac_func
17846choke me
17847#endif
17848
17849int
17850main ()
17851{
17852return $ac_func ();
17853 ;
17854 return 0;
17855}
17856_ACEOF
17857rm -f conftest.$ac_objext conftest$ac_exeext
17858if { (ac_try="$ac_link"
17859case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862esac
17863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_link") 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17872 { (case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17875esac
17876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17877 (eval "$ac_try") 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17885esac
17886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_try") 2>&5
17888 ac_status=$?
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 eval "$as_ac_var=yes"
17892else
17893 echo "$as_me: failed program was:" >&5
17894sed 's/^/| /' conftest.$ac_ext >&5
17895
17896 eval "$as_ac_var=no"
17897fi
17898
17899rm -f core conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17901fi
17902ac_res=`eval echo '${'$as_ac_var'}'`
17903 { echo "$as_me:$LINENO: result: $ac_res" >&5
17904echo "${ECHO_T}$ac_res" >&6; }
17905if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer96cf5872007-07-13 10:05:30 +000017906 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer96cf5872007-07-13 10:05:30 +000017908_ACEOF
17909
17910fi
17911done
17912
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017913
17914
17915
17916
17917
Reid Spencerb90645c2007-02-16 19:17:20 +000017918for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000017919do
17920as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17922echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925else
17926 cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
17932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17934#define $ac_func innocuous_$ac_func
17935
17936/* System header to define __stub macros and hopefully few prototypes,
17937 which can conflict with char $ac_func (); below.
17938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939 <limits.h> exists even on freestanding compilers. */
17940
17941#ifdef __STDC__
17942# include <limits.h>
17943#else
17944# include <assert.h>
17945#endif
17946
17947#undef $ac_func
17948
17949/* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17952#ifdef __cplusplus
17953extern "C"
17954#endif
17955char $ac_func ();
17956/* The GNU C library defines this for functions which it implements
17957 to always fail with ENOSYS. Some functions are actually named
17958 something starting with __ and the normal name is an alias. */
17959#if defined __stub_$ac_func || defined __stub___$ac_func
17960choke me
17961#endif
17962
17963int
17964main ()
17965{
17966return $ac_func ();
17967 ;
17968 return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext conftest$ac_exeext
17972if { (ac_try="$ac_link"
17973case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17976esac
17977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_link") 2>conftest.er1
17979 ac_status=$?
17980 grep -v '^ *+' conftest.er1 >conftest.err
17981 rm -f conftest.er1
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17989esac
17990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
17999esac
18000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18002 ac_status=$?
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 eval "$as_ac_var=yes"
18006else
18007 echo "$as_me: failed program was:" >&5
18008sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 eval "$as_ac_var=no"
18011fi
18012
18013rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18015fi
18016ac_res=`eval echo '${'$as_ac_var'}'`
18017 { echo "$as_me:$LINENO: result: $ac_res" >&5
18018echo "${ECHO_T}$ac_res" >&6; }
18019if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerb90645c2007-02-16 19:17:20 +000018020 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018021#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerb90645c2007-02-16 19:17:20 +000018022_ACEOF
18023
18024fi
18025done
18026
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018027
18028
18029
Reid Spencerb90645c2007-02-16 19:17:20 +000018030for ac_func in isatty mkdtemp mkstemp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018031do
18032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18037else
18038 cat >conftest.$ac_ext <<_ACEOF
18039/* confdefs.h. */
18040_ACEOF
18041cat confdefs.h >>conftest.$ac_ext
18042cat >>conftest.$ac_ext <<_ACEOF
18043/* end confdefs.h. */
18044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18046#define $ac_func innocuous_$ac_func
18047
18048/* System header to define __stub macros and hopefully few prototypes,
18049 which can conflict with char $ac_func (); below.
18050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18051 <limits.h> exists even on freestanding compilers. */
18052
18053#ifdef __STDC__
18054# include <limits.h>
18055#else
18056# include <assert.h>
18057#endif
18058
18059#undef $ac_func
18060
18061/* Override any GCC internal prototype to avoid an error.
18062 Use char because int might match the return type of a GCC
18063 builtin and then its argument prototype would still apply. */
18064#ifdef __cplusplus
18065extern "C"
18066#endif
18067char $ac_func ();
18068/* The GNU C library defines this for functions which it implements
18069 to always fail with ENOSYS. Some functions are actually named
18070 something starting with __ and the normal name is an alias. */
18071#if defined __stub_$ac_func || defined __stub___$ac_func
18072choke me
18073#endif
18074
18075int
18076main ()
18077{
18078return $ac_func ();
18079 ;
18080 return 0;
18081}
18082_ACEOF
18083rm -f conftest.$ac_objext conftest$ac_exeext
18084if { (ac_try="$ac_link"
18085case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088esac
18089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_link") 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101esac
18102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18104 ac_status=$?
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest$ac_exeext'
18108 { (case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18111esac
18112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 eval "$as_ac_var=yes"
18118else
18119 echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122 eval "$as_ac_var=no"
18123fi
18124
18125rm -f core conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127fi
18128ac_res=`eval echo '${'$as_ac_var'}'`
18129 { echo "$as_me:$LINENO: result: $ac_res" >&5
18130echo "${ECHO_T}$ac_res" >&6; }
18131if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencerdf3be822006-01-23 08:15:53 +000018132 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencerdf3be822006-01-23 08:15:53 +000018134_ACEOF
18135
18136fi
18137done
18138
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018139
18140
18141
18142
18143
Eric Christophere4291822010-04-16 05:14:21 +000018144
18145for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018146do
18147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18152else
18153 cat >conftest.$ac_ext <<_ACEOF
18154/* confdefs.h. */
18155_ACEOF
18156cat confdefs.h >>conftest.$ac_ext
18157cat >>conftest.$ac_ext <<_ACEOF
18158/* end confdefs.h. */
18159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161#define $ac_func innocuous_$ac_func
18162
18163/* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18167
18168#ifdef __STDC__
18169# include <limits.h>
18170#else
18171# include <assert.h>
18172#endif
18173
18174#undef $ac_func
18175
18176/* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18179#ifdef __cplusplus
18180extern "C"
18181#endif
18182char $ac_func ();
18183/* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186#if defined __stub_$ac_func || defined __stub___$ac_func
18187choke me
18188#endif
18189
18190int
18191main ()
18192{
18193return $ac_func ();
18194 ;
18195 return 0;
18196}
18197_ACEOF
18198rm -f conftest.$ac_objext conftest$ac_exeext
18199if { (ac_try="$ac_link"
18200case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18203esac
18204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18206 ac_status=$?
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18216esac
18217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18226esac
18227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18229 ac_status=$?
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 eval "$as_ac_var=yes"
18233else
18234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
18237 eval "$as_ac_var=no"
18238fi
18239
18240rm -f core conftest.err conftest.$ac_objext \
18241 conftest$ac_exeext conftest.$ac_ext
18242fi
18243ac_res=`eval echo '${'$as_ac_var'}'`
18244 { echo "$as_me:$LINENO: result: $ac_res" >&5
18245echo "${ECHO_T}$ac_res" >&6; }
18246if test `eval echo '${'$as_ac_var'}'` = yes; then
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018247 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018248#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000018249_ACEOF
18250
18251fi
18252done
Reid Spencerdf3be822006-01-23 08:15:53 +000018253
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018254
18255
18256
18257
Jeffrey Yasskinb7a8d402009-09-25 21:07:20 +000018258for ac_func in strerror strerror_r strerror_s setenv
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018259do
18260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18265else
18266 cat >conftest.$ac_ext <<_ACEOF
18267/* confdefs.h. */
18268_ACEOF
18269cat confdefs.h >>conftest.$ac_ext
18270cat >>conftest.$ac_ext <<_ACEOF
18271/* end confdefs.h. */
18272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274#define $ac_func innocuous_$ac_func
18275
18276/* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18280
18281#ifdef __STDC__
18282# include <limits.h>
18283#else
18284# include <assert.h>
18285#endif
18286
18287#undef $ac_func
18288
18289/* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18292#ifdef __cplusplus
18293extern "C"
18294#endif
18295char $ac_func ();
18296/* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299#if defined __stub_$ac_func || defined __stub___$ac_func
18300choke me
18301#endif
18302
18303int
18304main ()
18305{
18306return $ac_func ();
18307 ;
18308 return 0;
18309}
18310_ACEOF
18311rm -f conftest.$ac_objext conftest$ac_exeext
18312if { (ac_try="$ac_link"
18313case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18316esac
18317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18319 ac_status=$?
18320 grep -v '^ *+' conftest.er1 >conftest.err
18321 rm -f conftest.er1
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18329esac
18330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339esac
18340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18342 ac_status=$?
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 eval "$as_ac_var=yes"
18346else
18347 echo "$as_me: failed program was:" >&5
18348sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 eval "$as_ac_var=no"
18351fi
18352
18353rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355fi
18356ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358echo "${ECHO_T}$ac_res" >&6; }
18359if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer7931a782004-12-27 06:15:02 +000018360 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018361#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer7931a782004-12-27 06:15:02 +000018362_ACEOF
18363
18364fi
18365done
18366
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018367
18368
18369
18370
Chris Lattner511f11d2005-11-14 07:25:50 +000018371for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018372do
18373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18374{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18376if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18378else
18379 cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
18385/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18387#define $ac_func innocuous_$ac_func
18388
18389/* System header to define __stub macros and hopefully few prototypes,
18390 which can conflict with char $ac_func (); below.
18391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18392 <limits.h> exists even on freestanding compilers. */
18393
18394#ifdef __STDC__
18395# include <limits.h>
18396#else
18397# include <assert.h>
18398#endif
18399
18400#undef $ac_func
18401
18402/* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18405#ifdef __cplusplus
18406extern "C"
18407#endif
18408char $ac_func ();
18409/* The GNU C library defines this for functions which it implements
18410 to always fail with ENOSYS. Some functions are actually named
18411 something starting with __ and the normal name is an alias. */
18412#if defined __stub_$ac_func || defined __stub___$ac_func
18413choke me
18414#endif
18415
18416int
18417main ()
18418{
18419return $ac_func ();
18420 ;
18421 return 0;
18422}
18423_ACEOF
18424rm -f conftest.$ac_objext conftest$ac_exeext
18425if { (ac_try="$ac_link"
18426case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18429esac
18430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_link") 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18439 { (case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442esac
18443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_try") 2>&5
18445 ac_status=$?
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; } &&
18448 { ac_try='test -s conftest$ac_exeext'
18449 { (case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452esac
18453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_try") 2>&5
18455 ac_status=$?
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; }; then
18458 eval "$as_ac_var=yes"
18459else
18460 echo "$as_me: failed program was:" >&5
18461sed 's/^/| /' conftest.$ac_ext >&5
18462
18463 eval "$as_ac_var=no"
18464fi
18465
18466rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18468fi
18469ac_res=`eval echo '${'$as_ac_var'}'`
18470 { echo "$as_me:$LINENO: result: $ac_res" >&5
18471echo "${ECHO_T}$ac_res" >&6; }
18472if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018473 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000018475_ACEOF
18476
18477fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018478done
John Criswell7a73b802003-06-30 21:59:07 +000018479
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018480
18481
18482
18483
Reid Spencerafa22e22006-12-10 23:29:19 +000018484for ac_func in setjmp longjmp sigsetjmp siglongjmp
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018485do
18486as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18487{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18488echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18489if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18491else
18492 cat >conftest.$ac_ext <<_ACEOF
18493/* confdefs.h. */
18494_ACEOF
18495cat confdefs.h >>conftest.$ac_ext
18496cat >>conftest.$ac_ext <<_ACEOF
18497/* end confdefs.h. */
18498/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18500#define $ac_func innocuous_$ac_func
18501
18502/* System header to define __stub macros and hopefully few prototypes,
18503 which can conflict with char $ac_func (); below.
18504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18505 <limits.h> exists even on freestanding compilers. */
18506
18507#ifdef __STDC__
18508# include <limits.h>
18509#else
18510# include <assert.h>
18511#endif
18512
18513#undef $ac_func
18514
18515/* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18518#ifdef __cplusplus
18519extern "C"
18520#endif
18521char $ac_func ();
18522/* The GNU C library defines this for functions which it implements
18523 to always fail with ENOSYS. Some functions are actually named
18524 something starting with __ and the normal name is an alias. */
18525#if defined __stub_$ac_func || defined __stub___$ac_func
18526choke me
18527#endif
18528
18529int
18530main ()
18531{
18532return $ac_func ();
18533 ;
18534 return 0;
18535}
18536_ACEOF
18537rm -f conftest.$ac_objext conftest$ac_exeext
18538if { (ac_try="$ac_link"
18539case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542esac
18543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_link") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18555esac
18556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18558 ac_status=$?
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565esac
18566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 eval "$as_ac_var=yes"
18572else
18573 echo "$as_me: failed program was:" >&5
18574sed 's/^/| /' conftest.$ac_ext >&5
18575
18576 eval "$as_ac_var=no"
18577fi
18578
18579rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18581fi
18582ac_res=`eval echo '${'$as_ac_var'}'`
18583 { echo "$as_me:$LINENO: result: $ac_res" >&5
18584echo "${ECHO_T}$ac_res" >&6; }
18585if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencercdb08a32006-06-05 16:11:07 +000018586 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencercdb08a32006-06-05 16:11:07 +000018588_ACEOF
18589
18590fi
18591done
18592
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018593{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18594echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18595if test "${llvm_cv_c_printf_a+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018597else
Reid Spencer2706f8c2004-09-19 23:53:36 +000018598 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018599ac_cpp='$CPP $CPPFLAGS'
18600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602ac_compiler_gnu=$ac_cv_c_compiler_gnu
18603
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018604 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018605 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018606else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018607 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000018608
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018609 /* confdefs.h. */
18610_ACEOF
18611cat confdefs.h >>conftest.$ac_ext
18612cat >>conftest.$ac_ext <<_ACEOF
18613/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000018614
John Criswella0137d32003-10-13 16:22:01 +000018615#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000018616#include <stdlib.h>
18617
John Criswella0137d32003-10-13 16:22:01 +000018618int
18619main ()
18620{
18621
Reid Spencer2706f8c2004-09-19 23:53:36 +000018622volatile double A, B;
18623char Buffer[100];
18624A = 1;
18625A /= 10.0;
18626sprintf(Buffer, "%a", A);
18627B = atof(Buffer);
18628if (A != B)
18629 return (1);
18630if (A != 0x1.999999999999ap-4)
18631 return (1);
18632return (0);
John Criswella0137d32003-10-13 16:22:01 +000018633 ;
18634 return 0;
18635}
18636_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018637rm -f conftest$ac_exeext
18638if { (ac_try="$ac_link"
18639case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18642esac
18643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>&5
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000018657 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000018658else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018659 echo "$as_me: program exited with status $ac_status" >&5
18660echo "$as_me: failed program was:" >&5
18661sed 's/^/| /' conftest.$ac_ext >&5
18662
18663( exit $ac_status )
18664llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000018665fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018666rm -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 +000018667fi
Reid Spencera773bd52006-08-04 18:18:08 +000018668
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018669
Reid Spencer2706f8c2004-09-19 23:53:36 +000018670 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000018671ac_cpp='$CPP $CPPFLAGS'
18672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018676fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018677{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18678echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000018679 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000018680
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018681cat >>confdefs.h <<\_ACEOF
18682#define HAVE_PRINTF_A 1
18683_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000018684
Reid Spencer2706f8c2004-09-19 23:53:36 +000018685 fi
John Criswella0137d32003-10-13 16:22:01 +000018686
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018687
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018688{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18689echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18690if test "${ac_cv_func_rand48+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018692else
Reid Spencera773bd52006-08-04 18:18:08 +000018693 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018694ac_cpp='$CXXCPP $CPPFLAGS'
18695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18698
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018699 cat >conftest.$ac_ext <<_ACEOF
18700/* confdefs.h. */
18701_ACEOF
18702cat confdefs.h >>conftest.$ac_ext
18703cat >>conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018704/* end confdefs.h. */
18705#include <stdlib.h>
18706int
18707main ()
18708{
18709srand48(0);lrand48();drand48();
18710 ;
18711 return 0;
18712}
18713_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018714rm -f conftest.$ac_objext
18715if { (ac_try="$ac_compile"
18716case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18719esac
18720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_compile") 2>conftest.er1
18722 ac_status=$?
18723 grep -v '^ *+' conftest.er1 >conftest.err
18724 rm -f conftest.er1
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18732esac
18733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18735 ac_status=$?
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest.$ac_objext'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018748 ac_cv_func_rand48=yes
18749else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018750 echo "$as_me: failed program was:" >&5
18751sed 's/^/| /' conftest.$ac_ext >&5
18752
18753 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018754fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018755
Reid Spencera773bd52006-08-04 18:18:08 +000018756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018757 ac_ext=c
18758ac_cpp='$CPP $CPPFLAGS'
18759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761ac_compiler_gnu=$ac_cv_c_compiler_gnu
18762
18763fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018764{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18765echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018766
18767if test "$ac_cv_func_rand48" = "yes" ; then
18768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018769cat >>confdefs.h <<\_ACEOF
18770#define HAVE_RAND48 1
18771_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000018772
18773fi
John Criswell0021c312004-02-13 21:57:29 +000018774
18775
Torok Edwin871384f2010-01-26 08:50:50 +000018776
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018777{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18778echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18779if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000018781else
Reid Spencera773bd52006-08-04 18:18:08 +000018782 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000018783ac_cpp='$CXXCPP $CPPFLAGS'
18784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018788 cat >conftest.$ac_ext <<_ACEOF
18789/* confdefs.h. */
18790_ACEOF
18791cat confdefs.h >>conftest.$ac_ext
18792cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018793/* end confdefs.h. */
18794#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000018795int
18796main ()
18797{
18798float f; isnan(f);
18799 ;
18800 return 0;
18801}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018802_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018803rm -f conftest.$ac_objext
18804if { (ac_try="$ac_compile"
18805case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808esac
18809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_compile") 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821esac
18822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18834 ac_status=$?
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018837 ac_cv_func_isnan_in_math_h=yes
18838else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018839 echo "$as_me: failed program was:" >&5
18840sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018843fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018844
Reid Spencera773bd52006-08-04 18:18:08 +000018845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018846 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018847ac_cpp='$CPP $CPPFLAGS'
18848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850ac_compiler_gnu=$ac_cv_c_compiler_gnu
18851
18852fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018853{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18854echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018855
18856
18857if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018858
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018859cat >>confdefs.h <<\_ACEOF
18860#define HAVE_ISNAN_IN_MATH_H 1
18861_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018862
Reid Spencerabec8f92004-10-27 23:03:44 +000018863fi
18864
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018865{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18866echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18867if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018869else
Reid Spencera773bd52006-08-04 18:18:08 +000018870 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018871ac_cpp='$CXXCPP $CPPFLAGS'
18872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18875
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018876 cat >conftest.$ac_ext <<_ACEOF
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018881/* end confdefs.h. */
18882#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018883int
18884main ()
18885{
18886float f; isnan(f);
18887 ;
18888 return 0;
18889}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018890_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018891rm -f conftest.$ac_objext
18892if { (ac_try="$ac_compile"
18893case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18896esac
18897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_compile") 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18906 { (case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18909esac
18910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_try") 2>&5
18912 ac_status=$?
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; } &&
18915 { ac_try='test -s conftest.$ac_objext'
18916 { (case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919esac
18920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_try") 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018925 ac_cv_func_isnan_in_cmath=yes
18926else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018927 echo "$as_me: failed program was:" >&5
18928sed 's/^/| /' conftest.$ac_ext >&5
18929
18930 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018931fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018932
Reid Spencera773bd52006-08-04 18:18:08 +000018933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000018934 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018935ac_cpp='$CPP $CPPFLAGS'
18936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938ac_compiler_gnu=$ac_cv_c_compiler_gnu
18939
18940fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018941{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18942echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000018943
18944if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018945
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018946cat >>confdefs.h <<\_ACEOF
18947#define HAVE_ISNAN_IN_CMATH 1
18948_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018949
Reid Spencerabec8f92004-10-27 23:03:44 +000018950fi
18951
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018952{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18953echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18954if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018956else
Reid Spencera773bd52006-08-04 18:18:08 +000018957 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018958ac_cpp='$CXXCPP $CPPFLAGS'
18959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18962
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018963 cat >conftest.$ac_ext <<_ACEOF
18964/* confdefs.h. */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018968/* end confdefs.h. */
18969#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000018970int
18971main ()
18972{
18973float f; std::isnan(f);
18974 ;
18975 return 0;
18976}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000018977_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000018978rm -f conftest.$ac_objext
18979if { (ac_try="$ac_compile"
18980case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18983esac
18984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_compile") 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18996esac
18997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19006esac
19007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019012 ac_cv_func_std_isnan_in_cmath=yes
19013else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019014 echo "$as_me: failed program was:" >&5
19015sed 's/^/| /' conftest.$ac_ext >&5
19016
19017 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019018fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019019
Reid Spencera773bd52006-08-04 18:18:08 +000019020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019021 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019022ac_cpp='$CPP $CPPFLAGS'
19023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025ac_compiler_gnu=$ac_cv_c_compiler_gnu
19026
19027fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019028{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19029echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019030
19031if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019033cat >>confdefs.h <<\_ACEOF
19034#define HAVE_STD_ISNAN_IN_CMATH 1
19035_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019036
Reid Spencerabec8f92004-10-27 23:03:44 +000019037fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000019038
19039
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019040{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19041echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19042if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019044else
Reid Spencera773bd52006-08-04 18:18:08 +000019045 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019046ac_cpp='$CXXCPP $CPPFLAGS'
19047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019051 cat >conftest.$ac_ext <<_ACEOF
19052/* confdefs.h. */
19053_ACEOF
19054cat confdefs.h >>conftest.$ac_ext
19055cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019056/* end confdefs.h. */
19057#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019058int
19059main ()
19060{
19061float f; isinf(f);
19062 ;
19063 return 0;
19064}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019065_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019066rm -f conftest.$ac_objext
19067if { (ac_try="$ac_compile"
19068case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071esac
19072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_compile") 2>conftest.er1
19074 ac_status=$?
19075 grep -v '^ *+' conftest.er1 >conftest.err
19076 rm -f conftest.er1
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19081 { (case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19084esac
19085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_try") 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019100 ac_cv_func_isinf_in_math_h=yes
19101else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019102 echo "$as_me: failed program was:" >&5
19103sed 's/^/| /' conftest.$ac_ext >&5
19104
19105 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019106fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019107
Reid Spencera773bd52006-08-04 18:18:08 +000019108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019109 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019110ac_cpp='$CPP $CPPFLAGS'
19111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19113ac_compiler_gnu=$ac_cv_c_compiler_gnu
19114
19115fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019116{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19117echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019118
19119if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019120
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019121cat >>confdefs.h <<\_ACEOF
19122#define HAVE_ISINF_IN_MATH_H 1
19123_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019124
Reid Spencerabec8f92004-10-27 23:03:44 +000019125fi
19126
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019127{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19128echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19129if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019131else
Reid Spencera773bd52006-08-04 18:18:08 +000019132 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019133ac_cpp='$CXXCPP $CPPFLAGS'
19134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19137
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019138 cat >conftest.$ac_ext <<_ACEOF
19139/* confdefs.h. */
19140_ACEOF
19141cat confdefs.h >>conftest.$ac_ext
19142cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019143/* end confdefs.h. */
19144#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019145int
19146main ()
19147{
19148float f; isinf(f);
19149 ;
19150 return 0;
19151}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019152_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019153rm -f conftest.$ac_objext
19154if { (ac_try="$ac_compile"
19155case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19158esac
19159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_compile") 2>conftest.er1
19161 ac_status=$?
19162 grep -v '^ *+' conftest.er1 >conftest.err
19163 rm -f conftest.er1
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19168 { (case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19171esac
19172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_try") 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest.$ac_objext'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019187 ac_cv_func_isinf_in_cmath=yes
19188else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019189 echo "$as_me: failed program was:" >&5
19190sed 's/^/| /' conftest.$ac_ext >&5
19191
19192 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019193fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019194
Reid Spencera773bd52006-08-04 18:18:08 +000019195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019196 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019197ac_cpp='$CPP $CPPFLAGS'
19198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19200ac_compiler_gnu=$ac_cv_c_compiler_gnu
19201
19202fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019203{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19204echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019205
19206if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019207
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019208cat >>confdefs.h <<\_ACEOF
19209#define HAVE_ISINF_IN_CMATH 1
19210_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019211
Reid Spencerabec8f92004-10-27 23:03:44 +000019212fi
19213
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019214{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19215echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19216if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke52a551d2004-07-21 03:14:12 +000019218else
Reid Spencera773bd52006-08-04 18:18:08 +000019219 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000019220ac_cpp='$CXXCPP $CPPFLAGS'
19221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19224
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019225 cat >conftest.$ac_ext <<_ACEOF
19226/* confdefs.h. */
19227_ACEOF
19228cat confdefs.h >>conftest.$ac_ext
19229cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019230/* end confdefs.h. */
19231#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000019232int
19233main ()
19234{
19235float f; std::isinf(f)}
19236 ;
19237 return 0;
19238}
Brian Gaeke52a551d2004-07-21 03:14:12 +000019239_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019240rm -f conftest.$ac_objext
19241if { (ac_try="$ac_compile"
19242case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19245esac
19246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_compile") 2>conftest.er1
19248 ac_status=$?
19249 grep -v '^ *+' conftest.er1 >conftest.err
19250 rm -f conftest.er1
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19255 { (case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19258esac
19259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_try") 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; } &&
19264 { ac_try='test -s conftest.$ac_objext'
19265 { (case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19268esac
19269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_try") 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019274 ac_cv_func_std_isinf_in_cmath=yes
19275else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000019280fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019281
Reid Spencera773bd52006-08-04 18:18:08 +000019282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019283 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000019284ac_cpp='$CPP $CPPFLAGS'
19285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287ac_compiler_gnu=$ac_cv_c_compiler_gnu
19288
19289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019290{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19291echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019292
19293if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000019294
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019295cat >>confdefs.h <<\_ACEOF
19296#define HAVE_STD_ISINF_IN_CMATH 1
19297_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000019298
Reid Spencerabec8f92004-10-27 23:03:44 +000019299fi
19300
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019301{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19302echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19303if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeked59a6472004-07-21 03:33:58 +000019305else
Reid Spencera773bd52006-08-04 18:18:08 +000019306 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000019307ac_cpp='$CXXCPP $CPPFLAGS'
19308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19311
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019312 cat >conftest.$ac_ext <<_ACEOF
19313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019317/* end confdefs.h. */
19318#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000019319int
19320main ()
19321{
19322float f; finite(f);
19323 ;
19324 return 0;
19325}
Brian Gaeked59a6472004-07-21 03:33:58 +000019326_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019327rm -f conftest.$ac_objext
19328if { (ac_try="$ac_compile"
19329case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332esac
19333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19345esac
19346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest.$ac_objext'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355esac
19356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019361 ac_cv_func_finite_in_ieeefp_h=yes
19362else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019363 echo "$as_me: failed program was:" >&5
19364sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000019367fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019368
Reid Spencera773bd52006-08-04 18:18:08 +000019369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000019370 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000019371ac_cpp='$CPP $CPPFLAGS'
19372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19374ac_compiler_gnu=$ac_cv_c_compiler_gnu
19375
19376fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019377{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19378echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000019379
Brian Gaeke6802b552004-10-28 05:06:45 +000019380if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000019381
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019382cat >>confdefs.h <<\_ACEOF
19383#define HAVE_FINITE_IN_IEEEFP_H 1
19384_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000019385
Reid Spencerabec8f92004-10-27 23:03:44 +000019386fi
19387
19388
19389
Reid Spencer30fe5262007-01-20 07:48:49 +000019390if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000019391
19392
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019393for ac_header in stdlib.h unistd.h
19394do
19395as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401fi
19402ac_res=`eval echo '${'$as_ac_Header'}'`
19403 { echo "$as_me:$LINENO: result: $ac_res" >&5
19404echo "${ECHO_T}$ac_res" >&6; }
19405else
19406 # Is the header compilable?
19407{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19408echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19409cat >conftest.$ac_ext <<_ACEOF
19410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
19415$ac_includes_default
19416#include <$ac_header>
19417_ACEOF
19418rm -f conftest.$ac_objext
19419if { (ac_try="$ac_compile"
19420case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19423esac
19424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_compile") 2>conftest.er1
19426 ac_status=$?
19427 grep -v '^ *+' conftest.er1 >conftest.err
19428 rm -f conftest.er1
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436esac
19437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19446esac
19447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_header_compiler=yes
19453else
19454 echo "$as_me: failed program was:" >&5
19455sed 's/^/| /' conftest.$ac_ext >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019456
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019457 ac_header_compiler=no
19458fi
19459
19460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19462echo "${ECHO_T}$ac_header_compiler" >&6; }
19463
19464# Is the header present?
19465{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19467cat >conftest.$ac_ext <<_ACEOF
19468/* confdefs.h. */
19469_ACEOF
19470cat confdefs.h >>conftest.$ac_ext
19471cat >>conftest.$ac_ext <<_ACEOF
19472/* end confdefs.h. */
19473#include <$ac_header>
19474_ACEOF
19475if { (ac_try="$ac_cpp conftest.$ac_ext"
19476case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479esac
19480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } >/dev/null; then
19488 if test -s conftest.err; then
19489 ac_cpp_err=$ac_c_preproc_warn_flag
19490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19491 else
19492 ac_cpp_err=
19493 fi
19494else
19495 ac_cpp_err=yes
19496fi
19497if test -z "$ac_cpp_err"; then
19498 ac_header_preproc=yes
19499else
19500 echo "$as_me: failed program was:" >&5
19501sed 's/^/| /' conftest.$ac_ext >&5
19502
19503 ac_header_preproc=no
19504fi
19505
19506rm -f conftest.err conftest.$ac_ext
19507{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19508echo "${ECHO_T}$ac_header_preproc" >&6; }
19509
19510# So? What about this header?
19511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19512 yes:no: )
19513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19517 ac_header_preproc=yes
19518 ;;
19519 no:yes:* )
19520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19532 ( cat <<\_ASBOX
19533## ----------------------------------- ##
19534## Report this to llvmbugs@cs.uiuc.edu ##
19535## ----------------------------------- ##
19536_ASBOX
19537 ) | sed "s/^/$as_me: WARNING: /" >&2
19538 ;;
19539esac
19540{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19542if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19544else
19545 eval "$as_ac_Header=\$ac_header_preproc"
19546fi
19547ac_res=`eval echo '${'$as_ac_Header'}'`
19548 { echo "$as_me:$LINENO: result: $ac_res" >&5
19549echo "${ECHO_T}$ac_res" >&6; }
19550
19551fi
19552if test `eval echo '${'$as_ac_Header'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019553 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019555_ACEOF
19556
19557fi
19558
19559done
19560
19561
19562for ac_func in getpagesize
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019563do
19564as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19565{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19566echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19567if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19569else
19570 cat >conftest.$ac_ext <<_ACEOF
19571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h. */
19576/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19578#define $ac_func innocuous_$ac_func
19579
19580/* System header to define __stub macros and hopefully few prototypes,
19581 which can conflict with char $ac_func (); below.
19582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19583 <limits.h> exists even on freestanding compilers. */
19584
19585#ifdef __STDC__
19586# include <limits.h>
19587#else
19588# include <assert.h>
19589#endif
19590
19591#undef $ac_func
19592
19593/* Override any GCC internal prototype to avoid an error.
19594 Use char because int might match the return type of a GCC
19595 builtin and then its argument prototype would still apply. */
19596#ifdef __cplusplus
19597extern "C"
19598#endif
19599char $ac_func ();
19600/* The GNU C library defines this for functions which it implements
19601 to always fail with ENOSYS. Some functions are actually named
19602 something starting with __ and the normal name is an alias. */
19603#if defined __stub_$ac_func || defined __stub___$ac_func
19604choke me
19605#endif
19606
19607int
19608main ()
19609{
19610return $ac_func ();
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615rm -f conftest.$ac_objext conftest$ac_exeext
19616if { (ac_try="$ac_link"
19617case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19620esac
19621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19623 ac_status=$?
19624 grep -v '^ *+' conftest.er1 >conftest.err
19625 rm -f conftest.er1
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19643esac
19644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19646 ac_status=$?
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19650else
19651 echo "$as_me: failed program was:" >&5
19652sed 's/^/| /' conftest.$ac_ext >&5
19653
19654 eval "$as_ac_var=no"
19655fi
19656
19657rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19659fi
19660ac_res=`eval echo '${'$as_ac_var'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662echo "${ECHO_T}$ac_res" >&6; }
19663if test `eval echo '${'$as_ac_var'}'` = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019664 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000019666_ACEOF
19667
19668fi
19669done
19670
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019671{ echo "$as_me:$LINENO: checking for working mmap" >&5
19672echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19673if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019675else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019676 if test "$cross_compiling" = yes; then
John Criswell7a73b802003-06-30 21:59:07 +000019677 ac_cv_func_mmap_fixed_mapped=no
19678else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019679 cat >conftest.$ac_ext <<_ACEOF
19680/* confdefs.h. */
19681_ACEOF
19682cat confdefs.h >>conftest.$ac_ext
19683cat >>conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019684/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019685$ac_includes_default
19686/* malloc might have been renamed as rpl_malloc. */
19687#undef malloc
19688
19689/* Thanks to Mike Haertel and Jim Avera for this test.
19690 Here is a matrix of mmap possibilities:
19691 mmap private not fixed
19692 mmap private fixed at somewhere currently unmapped
19693 mmap private fixed at somewhere already mapped
19694 mmap shared not fixed
19695 mmap shared fixed at somewhere currently unmapped
19696 mmap shared fixed at somewhere already mapped
19697 For private mappings, we should verify that changes cannot be read()
19698 back from the file, nor mmap's back from the file at a different
19699 address. (There have been systems where private was not correctly
19700 implemented like the infamous i386 svr4.0, and systems where the
19701 VM page cache was not coherent with the file system buffer cache
19702 like early versions of FreeBSD and possibly contemporary NetBSD.)
19703 For shared mappings, we should conversely verify that changes get
19704 propagated back to all the places they're supposed to be.
19705
19706 Grep wants private fixed already mapped.
19707 The main things grep needs to know about mmap are:
19708 * does it exist and is it safe to write into the mmap'd area
19709 * how to use it (BSD variants) */
19710
19711#include <fcntl.h>
19712#include <sys/mman.h>
19713
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019714#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000019715char *malloc ();
19716#endif
19717
19718/* This mess was copied from the GNU getpagesize.h. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019719#if !HAVE_GETPAGESIZE
19720/* Assume that all systems that can run configure have sys/param.h. */
19721# if !HAVE_SYS_PARAM_H
19722# define HAVE_SYS_PARAM_H 1
19723# endif
19724
John Criswell7a73b802003-06-30 21:59:07 +000019725# ifdef _SC_PAGESIZE
19726# define getpagesize() sysconf(_SC_PAGESIZE)
19727# else /* no _SC_PAGESIZE */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019728# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000019729# include <sys/param.h>
19730# ifdef EXEC_PAGESIZE
19731# define getpagesize() EXEC_PAGESIZE
19732# else /* no EXEC_PAGESIZE */
19733# ifdef NBPG
19734# define getpagesize() NBPG * CLSIZE
19735# ifndef CLSIZE
19736# define CLSIZE 1
19737# endif /* no CLSIZE */
19738# else /* no NBPG */
19739# ifdef NBPC
19740# define getpagesize() NBPC
19741# else /* no NBPC */
19742# ifdef PAGESIZE
19743# define getpagesize() PAGESIZE
19744# endif /* PAGESIZE */
19745# endif /* no NBPC */
19746# endif /* no NBPG */
19747# endif /* no EXEC_PAGESIZE */
19748# else /* no HAVE_SYS_PARAM_H */
19749# define getpagesize() 8192 /* punt totally */
19750# endif /* no HAVE_SYS_PARAM_H */
19751# endif /* no _SC_PAGESIZE */
19752
19753#endif /* no HAVE_GETPAGESIZE */
19754
19755int
19756main ()
19757{
19758 char *data, *data2, *data3;
19759 int i, pagesize;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019760 int fd;
John Criswell7a73b802003-06-30 21:59:07 +000019761
19762 pagesize = getpagesize ();
19763
19764 /* First, make a file with some known garbage in it. */
19765 data = (char *) malloc (pagesize);
19766 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000019767 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019768 for (i = 0; i < pagesize; ++i)
19769 *(data + i) = rand ();
19770 umask (0);
19771 fd = creat ("conftest.mmap", 0600);
19772 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019773 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019774 if (write (fd, data, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019775 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019776 close (fd);
19777
19778 /* Next, try to mmap the file at a fixed address which already has
19779 something else allocated at it. If we can, also make sure that
19780 we see the same garbage. */
19781 fd = open ("conftest.mmap", O_RDWR);
19782 if (fd < 0)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019783 return 1;
19784 data2 = (char *) malloc (2 * pagesize);
19785 if (!data2)
19786 return 1;
19787 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000019788 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000019789 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019790 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019791 for (i = 0; i < pagesize; ++i)
19792 if (*(data + i) != *(data2 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019793 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019794
19795 /* Finally, make sure that changes to the mapped area do not
19796 percolate back to the file as seen by read(). (This is a bug on
19797 some variants of i386 svr4.0.) */
19798 for (i = 0; i < pagesize; ++i)
19799 *(data2 + i) = *(data2 + i) + 1;
19800 data3 = (char *) malloc (pagesize);
19801 if (!data3)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019802 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019803 if (read (fd, data3, pagesize) != pagesize)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019804 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019805 for (i = 0; i < pagesize; ++i)
19806 if (*(data + i) != *(data3 + i))
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019807 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000019808 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000019809 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000019810}
19811_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019812rm -f conftest$ac_exeext
19813if { (ac_try="$ac_link"
19814case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19817esac
19818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_link") 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19826esac
19827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019832 ac_cv_func_mmap_fixed_mapped=yes
19833else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019834 echo "$as_me: program exited with status $ac_status" >&5
19835echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
19838( exit $ac_status )
19839ac_cv_func_mmap_fixed_mapped=no
John Criswell7a73b802003-06-30 21:59:07 +000019840fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019841rm -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 +000019842fi
Reid Spencera773bd52006-08-04 18:18:08 +000019843
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019844
John Criswell7a73b802003-06-30 21:59:07 +000019845fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019846{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19847echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019848if test $ac_cv_func_mmap_fixed_mapped = yes; then
19849
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019850cat >>confdefs.h <<\_ACEOF
19851#define HAVE_MMAP 1
19852_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019853
19854fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019855rm -f conftest.mmap
John Criswell7a73b802003-06-30 21:59:07 +000019856
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019857 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19858echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19859if test "${ac_cv_func_mmap_file+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000019861else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019862 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000019863ac_cpp='$CPP $CPPFLAGS'
19864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19866ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019868 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019869 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019870else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019871 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000019872
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019873 /* confdefs.h. */
19874_ACEOF
19875cat confdefs.h >>conftest.$ac_ext
19876cat >>conftest.$ac_ext <<_ACEOF
19877/* end confdefs.h. */
Torok Edwin871384f2010-01-26 08:50:50 +000019878
John Criswell7a73b802003-06-30 21:59:07 +000019879#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000019880#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000019881#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000019882
19883int
19884main ()
19885{
John Criswell7a73b802003-06-30 21:59:07 +000019886
19887 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000019888 fd = creat ("foo",0777);
19889 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19890 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000019891 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000019892 ;
19893 return 0;
19894}
John Criswell7a73b802003-06-30 21:59:07 +000019895_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019896rm -f conftest$ac_exeext
19897if { (ac_try="$ac_link"
19898case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19901esac
19902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_link") 2>&5
19904 ac_status=$?
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19910esac
19911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019916 ac_cv_func_mmap_file=yes
19917else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019918 echo "$as_me: program exited with status $ac_status" >&5
19919echo "$as_me: failed program was:" >&5
19920sed 's/^/| /' conftest.$ac_ext >&5
19921
19922( exit $ac_status )
19923ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000019924fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019925rm -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 +000019926fi
Reid Spencera773bd52006-08-04 18:18:08 +000019927
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019928
John Criswell7a73b802003-06-30 21:59:07 +000019929 ac_ext=c
19930ac_cpp='$CPP $CPPFLAGS'
19931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933ac_compiler_gnu=$ac_cv_c_compiler_gnu
19934
19935
19936fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019937{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19938echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000019939if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000019940
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019941cat >>confdefs.h <<\_ACEOF
19942#define HAVE_MMAP_FILE
19943_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019944
19945 MMAP_FILE=yes
19946
19947fi
19948
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019949 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19950echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19951if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer7931a782004-12-27 06:15:02 +000019953else
Reid Spencer582a23c2004-12-29 07:07:57 +000019954 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000019955 ac_cv_need_dev_zero_for_mmap=yes
19956 else
19957 ac_cv_need_dev_zero_for_mmap=no
19958 fi
19959
19960fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019961{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19962echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000019963if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19964
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019965cat >>confdefs.h <<\_ACEOF
19966#define NEED_DEV_ZERO_FOR_MMAP 1
19967_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000019968
19969fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019970
Reid Spencer30fe5262007-01-20 07:48:49 +000019971 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19972 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019973 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19974echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019975 fi
19976 if test "$ac_cv_func_mmap_file" = "no"
19977 then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019978 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19979echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000019980 fi
John Criswellb13092b2003-07-22 21:00:24 +000019981fi
John Criswell7a73b802003-06-30 21:59:07 +000019982
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019983{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19984echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Eric Christopherf7598412010-07-28 20:26:43 +000019985ac_ext=cpp
19986ac_cpp='$CXXCPP $CPPFLAGS'
19987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19990
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000019991cat >conftest.$ac_ext <<_ACEOF
19992/* confdefs.h. */
19993_ACEOF
19994cat confdefs.h >>conftest.$ac_ext
19995cat >>conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000019996/* end confdefs.h. */
19997int main() {
Owen Andersona8603702009-05-19 22:18:56 +000019998 volatile unsigned long val = 1;
19999 __sync_synchronize();
20000 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000020001 __sync_add_and_fetch(&val, 1);
20002 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000020003 return 0;
20004 }
Owen Andersond4b272b2009-05-18 23:58:51 +000020005
20006_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020007rm -f conftest.$ac_objext conftest$ac_exeext
20008if { (ac_try="$ac_link"
20009case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20012esac
20013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_link") 2>conftest.er1
20015 ac_status=$?
20016 grep -v '^ *+' conftest.er1 >conftest.err
20017 rm -f conftest.er1
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20025esac
20026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest$ac_exeext'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20035esac
20036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20038 ac_status=$?
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
Eric Christopherf7598412010-07-28 20:26:43 +000020041 ac_ext=c
20042ac_cpp='$CPP $CPPFLAGS'
20043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045ac_compiler_gnu=$ac_cv_c_compiler_gnu
20046
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020047 { echo "$as_me:$LINENO: result: yes" >&5
20048echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000020049
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020050cat >>confdefs.h <<\_ACEOF
20051#define LLVM_MULTITHREADED 1
20052_ACEOF
Owen Andersona8603702009-05-19 22:18:56 +000020053
Owen Andersond4b272b2009-05-18 23:58:51 +000020054else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000020057
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020058 { echo "$as_me:$LINENO: result: no" >&5
20059echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000020060
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020061cat >>confdefs.h <<\_ACEOF
20062#define LLVM_MULTITHREADED 0
20063_ACEOF
20064
20065 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20066echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000020067fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020068
Owen Andersond4b272b2009-05-18 23:58:51 +000020069rm -f core conftest.err conftest.$ac_objext \
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020070 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000020071
John Criswell7a73b802003-06-30 21:59:07 +000020072
Nick Lewycky4372e692009-09-29 06:18:23 +000020073if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020074 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20075echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20076if test "${llvm_cv_linux_mixed+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
Nick Lewycky4372e692009-09-29 06:18:23 +000020078else
20079 ac_ext=c
20080ac_cpp='$CPP $CPPFLAGS'
20081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083ac_compiler_gnu=$ac_cv_c_compiler_gnu
20084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
Nick Lewycky4372e692009-09-29 06:18:23 +000020090/* end confdefs.h. */
20091#ifndef __x86_64__
20092 error: Not x86-64 even if uname says so!
20093 #endif
20094
20095int
20096main ()
20097{
20098
20099 ;
20100 return 0;
20101}
20102_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020103rm -f conftest.$ac_objext
20104if { (ac_try="$ac_compile"
20105case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20108esac
20109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_compile") 2>conftest.er1
20111 ac_status=$?
20112 grep -v '^ *+' conftest.er1 >conftest.err
20113 rm -f conftest.er1
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
20117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20121esac
20122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20124 ac_status=$?
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest.$ac_objext'
20128 { (case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20131esac
20132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_try") 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
Nick Lewycky4372e692009-09-29 06:18:23 +000020137 llvm_cv_linux_mixed=no
20138else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020139 echo "$as_me: failed program was:" >&5
20140sed 's/^/| /' conftest.$ac_ext >&5
20141
20142 llvm_cv_linux_mixed=yes
Nick Lewycky4372e692009-09-29 06:18:23 +000020143fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020144
Nick Lewycky4372e692009-09-29 06:18:23 +000020145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20146 ac_ext=c
20147ac_cpp='$CPP $CPPFLAGS'
20148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150ac_compiler_gnu=$ac_cv_c_compiler_gnu
20151
20152
20153fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020154{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20155echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
Nick Lewycky4372e692009-09-29 06:18:23 +000020156
20157 if test "$llvm_cv_linux_mixed" = "yes"; then
20158 llvm_cv_target_arch="x86"
20159 ARCH="x86"
20160 fi
20161fi
20162
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020163
Reid Spencer9372f152007-07-30 20:13:24 +000020164for ac_func in __dso_handle
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020165do
20166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20171else
20172 cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h. */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h. */
20178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20180#define $ac_func innocuous_$ac_func
20181
20182/* System header to define __stub macros and hopefully few prototypes,
20183 which can conflict with char $ac_func (); below.
20184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20185 <limits.h> exists even on freestanding compilers. */
20186
20187#ifdef __STDC__
20188# include <limits.h>
20189#else
20190# include <assert.h>
20191#endif
20192
20193#undef $ac_func
20194
20195/* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20198#ifdef __cplusplus
20199extern "C"
20200#endif
20201char $ac_func ();
20202/* The GNU C library defines this for functions which it implements
20203 to always fail with ENOSYS. Some functions are actually named
20204 something starting with __ and the normal name is an alias. */
20205#if defined __stub_$ac_func || defined __stub___$ac_func
20206choke me
20207#endif
20208
20209int
20210main ()
20211{
20212return $ac_func ();
20213 ;
20214 return 0;
20215}
20216_ACEOF
20217rm -f conftest.$ac_objext conftest$ac_exeext
20218if { (ac_try="$ac_link"
20219case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20222esac
20223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_link") 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20232 { (case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20235esac
20236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_try") 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest$ac_exeext'
20242 { (case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20245esac
20246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_try") 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 eval "$as_ac_var=yes"
20252else
20253 echo "$as_me: failed program was:" >&5
20254sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 eval "$as_ac_var=no"
20257fi
20258
20259rm -f core conftest.err conftest.$ac_objext \
20260 conftest$ac_exeext conftest.$ac_ext
20261fi
20262ac_res=`eval echo '${'$as_ac_var'}'`
20263 { echo "$as_me:$LINENO: result: $ac_res" >&5
20264echo "${ECHO_T}$ac_res" >&6; }
20265if test `eval echo '${'$as_ac_var'}'` = yes; then
Reid Spencer9372f152007-07-30 20:13:24 +000020266 cat >>confdefs.h <<_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020267#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Reid Spencer9372f152007-07-30 20:13:24 +000020268_ACEOF
20269
20270fi
20271done
20272
20273
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020274{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20275echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20276if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020278else
20279 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000020280if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020281 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000020282 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20283 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020284 if test $? -eq 0 ; then
20285 llvm_cv_llvmgcc_sanity="yes"
20286 fi
20287 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000020288fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020289fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020290{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20291echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020292
20293if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020294 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20295echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000020296 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020297 LLVMCC1=$llvmcc1path
20298
Reid Spencer502935f2004-12-22 05:56:56 +000020299 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020300 LLVMCC1PLUS=$llvmcc1pluspath
20301
Reid Spencer502935f2004-12-22 05:56:56 +000020302 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20303 LLVMGCCDIR=$llvmgccdir
20304
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000020305 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000020306 LLVMGCC_LANGS=$llvmgcclangs
20307
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020308 { echo "$as_me:$LINENO: result: ok" >&5
20309echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000020310fi
20311
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020312SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000020313
20314
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000020315SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20316
20317
Reid Spencere9de0912004-08-20 09:03:57 +000020318# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020319# information into substitutions that will end up in Makefile.config.in
20320# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000020321if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000020322 prefix="/usr/local"
20323fi
Reid Spencere9de0912004-08-20 09:03:57 +000020324eval LLVM_PREFIX="${prefix}";
20325eval LLVM_BINDIR="${prefix}/bin";
20326eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000020327eval LLVM_DATADIR="${prefix}/share/llvm";
Eric Christopherec274962010-03-02 05:17:21 +000020328eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
Reid Spencer1f319422004-11-29 04:56:35 +000020329eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000020330eval LLVM_INCLUDEDIR="${prefix}/include";
20331eval LLVM_INFODIR="${prefix}/info";
20332eval LLVM_MANDIR="${prefix}/man";
20333LLVM_CONFIGTIME=`date`
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020345# Place the various directores into the config.h file as #defines so that we
20346# can know about the installation paths within LLVM.
20347
Reid Spencere9de0912004-08-20 09:03:57 +000020348cat >>confdefs.h <<_ACEOF
20349#define LLVM_PREFIX "$LLVM_PREFIX"
20350_ACEOF
20351
20352
20353cat >>confdefs.h <<_ACEOF
20354#define LLVM_BINDIR "$LLVM_BINDIR"
20355_ACEOF
20356
20357
20358cat >>confdefs.h <<_ACEOF
20359#define LLVM_LIBDIR "$LLVM_LIBDIR"
20360_ACEOF
20361
20362
20363cat >>confdefs.h <<_ACEOF
20364#define LLVM_DATADIR "$LLVM_DATADIR"
20365_ACEOF
20366
20367
20368cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000020369#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020370_ACEOF
20371
20372
20373cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000020374#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000020375_ACEOF
20376
20377
20378cat >>confdefs.h <<_ACEOF
20379#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20380_ACEOF
20381
20382
20383cat >>confdefs.h <<_ACEOF
20384#define LLVM_INFODIR "$LLVM_INFODIR"
20385_ACEOF
20386
20387
20388cat >>confdefs.h <<_ACEOF
20389#define LLVM_MANDIR "$LLVM_MANDIR"
20390_ACEOF
20391
20392
20393cat >>confdefs.h <<_ACEOF
20394#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20395_ACEOF
20396
20397
Eric Christopher790e11c2007-12-01 00:34:39 +000020398cat >>confdefs.h <<_ACEOF
20399#define LLVM_HOSTTRIPLE "$host"
20400_ACEOF
20401
20402
Gordon Henriksenc0efff82007-10-02 09:50:32 +000020403# Determine which bindings to build.
20404if test "$BINDINGS_TO_BUILD" = auto ; then
20405 BINDINGS_TO_BUILD=""
20406 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20407 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20408 fi
20409fi
20410BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20411
20412
20413# This isn't really configurey, but it avoids having to repeat the list in
20414# other files.
20415ALL_BINDINGS=ocaml
20416
20417
Gordon Henriksenf0915682007-10-02 16:42:22 +000020418# Do any work necessary to ensure that bindings have what they need.
20419binding_prereqs_failed=0
20420for a_binding in $BINDINGS_TO_BUILD ; do
20421 case "$a_binding" in
20422 ocaml)
20423 if test "x$OCAMLC" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020424 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20425echo "$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 +000020426 binding_prereqs_failed=1
20427 fi
20428 if test "x$OCAMLDEP" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020429 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20430echo "$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 +000020431 binding_prereqs_failed=1
20432 fi
20433 if test "x$OCAMLOPT" = x ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020434 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20435echo "$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 +000020436 fi
20437 if test "x$with_ocaml_libdir" != xauto ; then
20438 OCAML_LIBDIR=$with_ocaml_libdir
20439
20440 else
20441 ocaml_stdlib="`"$OCAMLC" -where`"
20442 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20443 then
20444 # ocaml stdlib is beneath our prefix; use stdlib
20445 OCAML_LIBDIR=$ocaml_stdlib
20446
20447 else
20448 # ocaml stdlib is outside our prefix; use libdir/ocaml
20449 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20450
20451 fi
20452 fi
20453 ;;
20454 esac
20455done
20456if test "$binding_prereqs_failed" = 1 ; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020457 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20458echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20459 { (exit 1); exit 1; }; }
Gordon Henriksenf0915682007-10-02 16:42:22 +000020460fi
20461
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020462{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20463echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20464if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020466else
20467 ac_ext=cpp
20468ac_cpp='$CXXCPP $CPPFLAGS'
20469ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20470ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20471ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20472
20473 oldcxxflags="$CXXFLAGS"
20474 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020475 cat >conftest.$ac_ext <<_ACEOF
20476/* confdefs.h. */
20477_ACEOF
20478cat confdefs.h >>conftest.$ac_ext
20479cat >>conftest.$ac_ext <<_ACEOF
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020480/* end confdefs.h. */
20481
20482int
20483main ()
20484{
20485
20486 ;
20487 return 0;
20488}
20489_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020490rm -f conftest.$ac_objext
20491if { (ac_try="$ac_compile"
20492case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20495esac
20496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_compile") 2>conftest.er1
20498 ac_status=$?
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
20504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20505 { (case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20508esac
20509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_try") 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
20515 { (case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20518esac
20519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_try") 2>&5
20521 ac_status=$?
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020524 llvm_cv_cxx_visibility_inlines_hidden=yes
20525else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020526 echo "$as_me: failed program was:" >&5
20527sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 llvm_cv_cxx_visibility_inlines_hidden=no
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020530fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020531
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 CXXFLAGS="$oldcxxflags"
20534 ac_ext=c
20535ac_cpp='$CPP $CPPFLAGS'
20536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20538ac_compiler_gnu=$ac_cv_c_compiler_gnu
20539
20540
20541fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020542{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20543echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
Daniel Dunbardcf114e2008-08-30 01:16:19 +000020544if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20545 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20546
20547else
20548 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20549
20550fi
20551
Gordon Henriksenf0915682007-10-02 16:42:22 +000020552
Nick Lewycky731c6ab2009-03-05 08:20:44 +000020553if test "$llvm_cv_link_use_r" = "yes" ; then
20554 RPATH="-Wl,-R"
20555else
20556 RPATH="-Wl,-rpath"
20557fi
20558
20559
20560if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20561 RDYNAMIC="-Wl,-export-dynamic"
20562else
20563 RDYNAMIC=""
20564fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000020565
20566
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020567
Eric Christophera1cba682010-08-08 02:44:25 +000020568ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020569
Eric Christopher21d3eeb2010-08-08 09:20:39 +000020570
20571
20572
20573
20574
Douglas Gregor1555a232009-06-16 20:12:29 +000020575ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20576
20577ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20578
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020579ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20580
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000020581ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20582
Chandler Carruth8b67f772009-10-26 01:35:46 +000020583ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020584
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020585
Reid Spencera773bd52006-08-04 18:18:08 +000020586ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020587
20588
Reid Spencerea949cf2006-08-16 00:45:38 +000020589ac_config_files="$ac_config_files llvm.spec"
20590
20591
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000020592ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000020593
20594
Reid Spencera773bd52006-08-04 18:18:08 +000020595ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000020596
20597
Reid Spencera773bd52006-08-04 18:18:08 +000020598ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000020599
Reid Spencera773bd52006-08-04 18:18:08 +000020600ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020601
20602
Reid Spencera773bd52006-08-04 18:18:08 +000020603ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020604
20605
Reid Spencera773bd52006-08-04 18:18:08 +000020606ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020607
20608
Reid Spencera773bd52006-08-04 18:18:08 +000020609ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020610
20611
Reid Spencer8b2e1412006-11-17 03:32:33 +000020612ac_config_commands="$ac_config_commands runtime/Makefile"
20613
20614
Reid Spencera773bd52006-08-04 18:18:08 +000020615ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020616
20617
Reid Spencera773bd52006-08-04 18:18:08 +000020618ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020619
20620
Bill Wendlingf24eb392009-01-04 23:12:30 +000020621ac_config_commands="$ac_config_commands unittests/Makefile"
20622
20623
Reid Spencera773bd52006-08-04 18:18:08 +000020624ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020625
20626
Reid Spencera773bd52006-08-04 18:18:08 +000020627ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020628
20629
Reid Spencera773bd52006-08-04 18:18:08 +000020630ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020631
20632
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000020633ac_config_commands="$ac_config_commands bindings/Makefile"
20634
20635
20636ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20637
20638
Reid Spencer5e1d9a52004-11-25 04:51:04 +000020639
John Criswell7a73b802003-06-30 21:59:07 +000020640cat >confcache <<\_ACEOF
20641# This file is a shell script that caches the results of configure
20642# tests run on this system so they can be shared between configure
20643# scripts and configure runs, see configure's option --config-cache.
20644# It is not useful on other systems. If it contains results you don't
20645# want to keep, you may remove or edit it.
20646#
20647# config.status only pays attention to the cache file if you give it
20648# the --recheck option to rerun configure.
20649#
John Criswell0c38eaf2003-09-10 15:17:25 +000020650# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000020651# loading this file, other *unset* `ac_cv_foo' will be assigned the
20652# following values.
20653
20654_ACEOF
20655
20656# The following way of writing the cache mishandles newlines in values,
20657# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000020658# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000020659# Ultrix sh set writes to stderr and can't be redirected directly,
20660# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000020661(
20662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20663 eval ac_val=\$$ac_var
20664 case $ac_val in #(
20665 *${as_nl}*)
20666 case $ac_var in #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020667 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20668echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020669 esac
20670 case $ac_var in #(
20671 _ | IFS | as_nl) ;; #(
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020672 *) $as_unset $ac_var ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020673 esac ;;
20674 esac
20675 done
20676
John Criswell7a73b802003-06-30 21:59:07 +000020677 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000020678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20679 *${as_nl}ac_space=\ *)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020680 # `set' does not quote correctly, so add quotes (double-quote
20681 # substitution turns \\\\ into \\, and sed turns \\ into \).
John Criswell7a73b802003-06-30 21:59:07 +000020682 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020683 "s/'/'\\\\''/g;
20684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000020685 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000020686 *)
20687 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000020688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000020689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020690 esac |
20691 sort
20692) |
John Criswell7a73b802003-06-30 21:59:07 +000020693 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000020694 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000020695 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000020696 :clear
John Criswell7a73b802003-06-30 21:59:07 +000020697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20698 t end
Reid Spencera773bd52006-08-04 18:18:08 +000020699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20700 :end' >>confcache
20701if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20702 if test -w "$cache_file"; then
20703 test "x$cache_file" != "x/dev/null" &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020704 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20705echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020706 cat confcache >$cache_file
20707 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020708 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20709echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000020710 fi
20711fi
20712rm -f confcache
20713
20714test "x$prefix" = xNONE && prefix=$ac_default_prefix
20715# Let make expand exec_prefix.
20716test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20717
John Criswell7a73b802003-06-30 21:59:07 +000020718DEFS=-DHAVE_CONFIG_H
20719
John Criswell0c38eaf2003-09-10 15:17:25 +000020720ac_libobjs=
20721ac_ltlibobjs=
20722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20723 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000020724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020725 ac_i=`echo "$ac_i" | sed "$ac_script"`
Reid Spencera773bd52006-08-04 18:18:08 +000020726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20727 # will be set to the directory where LIBOBJS objects are built.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020728 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20729 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000020730done
20731LIBOBJS=$ac_libobjs
20732
20733LTLIBOBJS=$ac_ltlibobjs
20734
20735
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020736if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020737 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20738Usually this means the macro was only invoked conditionally." >&5
20739echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20740Usually this means the macro was only invoked conditionally." >&2;}
20741 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020742fi
20743if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020744 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20745Usually this means the macro was only invoked conditionally." >&5
20746echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20747Usually this means the macro was only invoked conditionally." >&2;}
20748 { (exit 1); exit 1; }; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020749fi
John Criswell7a73b802003-06-30 21:59:07 +000020750
20751: ${CONFIG_STATUS=./config.status}
20752ac_clean_files_save=$ac_clean_files
20753ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020754{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20755echo "$as_me: creating $CONFIG_STATUS" >&6;}
20756cat >$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020757#! $SHELL
20758# Generated by $as_me.
20759# Run this file to recreate the current configuration.
20760# Compiler output produced by configure, useful for debugging
20761# configure, is in config.log if it exists.
20762
20763debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000020764ac_cs_recheck=false
20765ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000020766SHELL=\${CONFIG_SHELL-$SHELL}
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020767_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000020768
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020769cat >>$CONFIG_STATUS <<\_ACEOF
20770## --------------------- ##
20771## M4sh Initialization. ##
20772## --------------------- ##
20773
20774# Be Bourne compatible
20775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020776 emulate sh
20777 NULLCMD=:
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
John Criswell0c38eaf2003-09-10 15:17:25 +000020779 # is contrary to our usage. Disable this feature.
20780 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000020781 setopt NO_GLOB_SUBST
20782else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020783 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000020784fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020785BIN_SH=xpg4; export BIN_SH # for Tru64
20786DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000020787
John Criswell7a73b802003-06-30 21:59:07 +000020788
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020789# PATH needs CR
20790# Avoid depending upon Character Ranges.
20791as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20793as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20794as_cr_digits='0123456789'
20795as_cr_alnum=$as_cr_Letters$as_cr_digits
John Criswell7a73b802003-06-30 21:59:07 +000020796
20797# The user is always right.
20798if test "${PATH_SEPARATOR+set}" != set; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020799 echo "#! /bin/sh" >conf$$.sh
20800 echo "exit 0" >>conf$$.sh
20801 chmod +x conf$$.sh
20802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20803 PATH_SEPARATOR=';'
20804 else
20805 PATH_SEPARATOR=:
20806 fi
20807 rm -f conf$$.sh
20808fi
20809
20810# Support unset when possible.
20811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20812 as_unset=unset
20813else
20814 as_unset=false
Reid Spencera773bd52006-08-04 18:18:08 +000020815fi
John Criswell7a73b802003-06-30 21:59:07 +000020816
Reid Spencera773bd52006-08-04 18:18:08 +000020817
20818# IFS
20819# We need space, tab and new line, in precisely that order. Quoting is
20820# there to prevent editors from complaining about space-tab.
20821# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20822# splitting by setting IFS to empty value.)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020823as_nl='
20824'
Reid Spencera773bd52006-08-04 18:18:08 +000020825IFS=" "" $as_nl"
20826
20827# Find who we are. Look in the path if we contain no directory separator.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020828case $0 in
Reid Spencera773bd52006-08-04 18:18:08 +000020829 *[\\/]* ) as_myself=$0 ;;
20830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000020831for as_dir in $PATH
20832do
20833 IFS=$as_save_IFS
20834 test -z "$as_dir" && as_dir=.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20836done
Reid Spencera773bd52006-08-04 18:18:08 +000020837IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000020838
Reid Spencera773bd52006-08-04 18:18:08 +000020839 ;;
20840esac
20841# We did not find ourselves, most probably we were run as `sh COMMAND'
20842# in which case we are not to be found in the path.
20843if test "x$as_myself" = x; then
20844 as_myself=$0
20845fi
20846if test ! -f "$as_myself"; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020847 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20848 { (exit 1); exit 1; }
Reid Spencera773bd52006-08-04 18:18:08 +000020849fi
20850
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020851# Work around bugs in pre-3.0 UWIN ksh.
20852for as_var in ENV MAIL MAILPATH
20853do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Reid Spencera773bd52006-08-04 18:18:08 +000020854done
20855PS1='$ '
20856PS2='> '
20857PS4='+ '
20858
20859# NLS nuisances.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020860for as_var in \
20861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20863 LC_TELEPHONE LC_TIME
20864do
20865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20866 eval $as_var=C; export $as_var
20867 else
20868 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Torok Edwin871384f2010-01-26 08:50:50 +000020869 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020870done
Torok Edwin871384f2010-01-26 08:50:50 +000020871
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020872# Required to use basename.
Reid Spencera773bd52006-08-04 18:18:08 +000020873if expr a : '\(a\)' >/dev/null 2>&1 &&
20874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20875 as_expr=expr
20876else
20877 as_expr=false
20878fi
20879
20880if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20881 as_basename=basename
20882else
20883 as_basename=false
20884fi
20885
20886
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020887# Name of the executable.
Reid Spencera773bd52006-08-04 18:18:08 +000020888as_me=`$as_basename -- "$0" ||
20889$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20890 X"$0" : 'X\(//\)$' \| \
20891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020892echo X/"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +000020893 sed '/^.*\/\([^/][^/]*\)\/*$/{
20894 s//\1/
20895 q
20896 }
20897 /^X\/\(\/\/\)$/{
20898 s//\1/
20899 q
20900 }
20901 /^X\/\(\/\).*/{
20902 s//\1/
20903 q
20904 }
20905 s/.*/./; q'`
20906
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020907# CDPATH.
20908$as_unset CDPATH
20909
20910
20911
20912 as_lineno_1=$LINENO
20913 as_lineno_2=$LINENO
20914 test "x$as_lineno_1" != "x$as_lineno_2" &&
20915 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20916
20917 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20918 # uniformly replaced by the line number. The first 'sed' inserts a
20919 # line-number line after each line using $LINENO; the second 'sed'
20920 # does the real work. The second script uses 'N' to pair each
20921 # line-number line with the line containing $LINENO, and appends
20922 # trailing '-' during substitution so that $LINENO is not a special
20923 # case at line end.
20924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20925 # scripts with optimization help from Paolo Bonzini. Blame Lee
20926 # E. McMahon (1931-1989) for sed's syntax. :-)
20927 sed -n '
20928 p
20929 /[$]LINENO/=
20930 ' <$as_myself |
20931 sed '
20932 s/[$]LINENO.*/&-/
20933 t lineno
20934 b
20935 :lineno
20936 N
20937 :loop
20938 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20939 t loop
20940 s/-\n.*//
20941 ' >$as_me.lineno &&
20942 chmod +x "$as_me.lineno" ||
20943 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20944 { (exit 1); exit 1; }; }
20945
20946 # Don't try to exec as it changes $[0], causing all sort of problems
20947 # (the dirname of $[0] is not the place where we might find the
20948 # original and so on. Autoconf is especially sensitive to this).
20949 . "./$as_me.lineno"
20950 # Exit status is that of the last command.
20951 exit
20952}
20953
20954
20955if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20956 as_dirname=dirname
20957else
20958 as_dirname=false
20959fi
Reid Spencera773bd52006-08-04 18:18:08 +000020960
20961ECHO_C= ECHO_N= ECHO_T=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020962case `echo -n x` in
Reid Spencera773bd52006-08-04 18:18:08 +000020963-n*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020964 case `echo 'x\c'` in
Reid Spencera773bd52006-08-04 18:18:08 +000020965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020966 *) ECHO_C='\c';;
Reid Spencera773bd52006-08-04 18:18:08 +000020967 esac;;
20968*)
20969 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000020970esac
20971
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020972if expr a : '\(a\)' >/dev/null 2>&1 &&
20973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20974 as_expr=expr
20975else
20976 as_expr=false
20977fi
20978
John Criswell7a73b802003-06-30 21:59:07 +000020979rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000020980if test -d conf$$.dir; then
20981 rm -f conf$$.dir/conf$$.file
20982else
20983 rm -f conf$$.dir
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020984 mkdir conf$$.dir
Reid Spencera773bd52006-08-04 18:18:08 +000020985fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020986echo >conf$$.file
20987if ln -s conf$$.file conf$$ 2>/dev/null; then
20988 as_ln_s='ln -s'
20989 # ... but there are two gotchas:
20990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20992 # In both cases, we have to default to `cp -p'.
20993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000020994 as_ln_s='cp -p'
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000020995elif ln conf$$.file conf$$ 2>/dev/null; then
20996 as_ln_s=ln
John Criswell7a73b802003-06-30 21:59:07 +000020997else
20998 as_ln_s='cp -p'
20999fi
Reid Spencera773bd52006-08-04 18:18:08 +000021000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21001rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000021002
John Criswell0c38eaf2003-09-10 15:17:25 +000021003if mkdir -p . 2>/dev/null; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021004 as_mkdir_p=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021005else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021006 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000021007 as_mkdir_p=false
21008fi
21009
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021010# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21011# systems may use methods other than mode bits to determine executability.
21012cat >conf$$.file <<_ASEOF
21013#! /bin/sh
21014exit 0
21015_ASEOF
21016chmod +x conf$$.file
21017if test -x conf$$.file >/dev/null 2>&1; then
21018 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000021019else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021020 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000021021fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021022rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000021023
21024# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021026
21027# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021028as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000021029
21030
John Criswell7a73b802003-06-30 21:59:07 +000021031exec 6>&1
21032
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021033# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000021034# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000021035# values after options handling.
21036ac_log="
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021037This file was extended by llvm $as_me 2.8svn, which was
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021038generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000021039
21040 CONFIG_FILES = $CONFIG_FILES
21041 CONFIG_HEADERS = $CONFIG_HEADERS
21042 CONFIG_LINKS = $CONFIG_LINKS
21043 CONFIG_COMMANDS = $CONFIG_COMMANDS
21044 $ $0 $@
21045
Reid Spencera773bd52006-08-04 18:18:08 +000021046on `(hostname || uname -n) 2>/dev/null | sed 1q`
21047"
21048
John Criswell7a73b802003-06-30 21:59:07 +000021049_ACEOF
21050
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021051cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021052# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000021053config_files="$ac_config_files"
21054config_headers="$ac_config_headers"
21055config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000021056
Reid Spencera773bd52006-08-04 18:18:08 +000021057_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021058
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021059cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021060ac_cs_usage="\
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021061\`$as_me' instantiates files from templates according to the
21062current configuration.
John Criswell7a73b802003-06-30 21:59:07 +000021063
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021064Usage: $0 [OPTIONS] [FILE]...
John Criswell7a73b802003-06-30 21:59:07 +000021065
21066 -h, --help print this help, then exit
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021067 -V, --version print version number, then exit
21068 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000021069 -d, --debug don't remove temporary files
21070 --recheck update $as_me by reconfiguring in the same conditions
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021071 --file=FILE[:TEMPLATE]
21072 instantiate the configuration file FILE
21073 --header=FILE[:TEMPLATE]
21074 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000021075
21076Configuration files:
21077$config_files
21078
21079Configuration headers:
21080$config_headers
21081
John Criswellc764fbc2003-09-06 15:17:13 +000021082Configuration commands:
21083$config_commands
21084
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021085Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000021086
Reid Spencera773bd52006-08-04 18:18:08 +000021087_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021088cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021089ac_cs_version="\\
Tanya Lattnerdc29dff2010-03-19 21:22:13 +000021090llvm config.status 2.8svn
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021091configured by $0, generated by GNU Autoconf 2.60,
21092 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000021093
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021094Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000021095This config.status script is free software; the Free Software Foundation
21096gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000021097
21098ac_pwd='$ac_pwd'
21099srcdir='$srcdir'
21100INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000021101_ACEOF
21102
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021103cat >>$CONFIG_STATUS <<\_ACEOF
21104# If no file are specified by the user, then we need to provide default
21105# value. By we need to know if files were specified by the user.
John Criswell7a73b802003-06-30 21:59:07 +000021106ac_need_defaults=:
21107while test $# != 0
21108do
21109 case $1 in
21110 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000021111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000021113 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000021114 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021115 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000021116 ac_option=$1
21117 ac_optarg=$2
21118 ac_shift=shift
21119 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021120 esac
21121
John Criswell0c38eaf2003-09-10 15:17:25 +000021122 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000021123 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000021124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21125 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021127 echo "$ac_cs_version"; exit ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021128 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000021129 debug=: ;;
21130 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000021131 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021132 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021133 ac_need_defaults=false;;
21134 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000021135 $ac_shift
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021136 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000021137 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000021138 --he | --h)
21139 # Conflict between --help and --header
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021140 { echo "$as_me: error: ambiguous option: $1
21141Try \`$0 --help' for more information." >&2
21142 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021143 --help | --hel | -h )
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021144 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000021145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21147 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000021148
21149 # This is an error.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021150 -*) { echo "$as_me: error: unrecognized option: $1
21151Try \`$0 --help' for more information." >&2
21152 { (exit 1); exit 1; }; } ;;
John Criswell7a73b802003-06-30 21:59:07 +000021153
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021154 *) ac_config_targets="$ac_config_targets $1"
Reid Spencera773bd52006-08-04 18:18:08 +000021155 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000021156
21157 esac
21158 shift
21159done
21160
John Criswell0c38eaf2003-09-10 15:17:25 +000021161ac_configure_extra_args=
21162
21163if $ac_cs_silent; then
21164 exec 6>/dev/null
21165 ac_configure_extra_args="$ac_configure_extra_args --silent"
21166fi
21167
21168_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021169cat >>$CONFIG_STATUS <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021170if \$ac_cs_recheck; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021171 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21172 CONFIG_SHELL=$SHELL
Reid Spencera773bd52006-08-04 18:18:08 +000021173 export CONFIG_SHELL
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021174 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000021175fi
21176
John Criswell7a73b802003-06-30 21:59:07 +000021177_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021178cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021179exec 5>>config.log
21180{
21181 echo
21182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21183## Running $as_me. ##
21184_ASBOX
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021185 echo "$ac_log"
Reid Spencera773bd52006-08-04 18:18:08 +000021186} >&5
John Criswell7a73b802003-06-30 21:59:07 +000021187
Reid Spencera773bd52006-08-04 18:18:08 +000021188_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021189cat >>$CONFIG_STATUS <<_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000021190#
Reid Spencera773bd52006-08-04 18:18:08 +000021191# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000021192#
Reid Spencerc0682832005-02-24 19:05:19 +000021193llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000021194
21195_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021196
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021197cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021198
21199# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000021200for ac_config_target in $ac_config_targets
21201do
Reid Spencera773bd52006-08-04 18:18:08 +000021202 case $ac_config_target in
21203 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Eric Christophera1cba682010-08-08 02:44:25 +000021204 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000021205 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21206 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021207 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Daniel Dunbar4fc760e2009-11-25 04:37:28 +000021208 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
Chandler Carruth8b67f772009-10-26 01:35:46 +000021209 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021210 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000021211 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021212 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021213 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21214 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21215 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21216 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21217 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21218 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021219 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021220 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21221 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021222 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021223 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21224 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21225 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021226 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21227 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021228
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21230echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21231 { (exit 1); exit 1; }; };;
John Criswell7a73b802003-06-30 21:59:07 +000021232 esac
21233done
21234
Reid Spencera773bd52006-08-04 18:18:08 +000021235
John Criswell7a73b802003-06-30 21:59:07 +000021236# If the user did not use the arguments to specify the items to instantiate,
21237# then the envvar interface is used. Set only those that are not.
21238# We use the long form for the default assignment because of an extremely
21239# bizarre bug on SunOS 4.1.3.
21240if $ac_need_defaults; then
21241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000021243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000021244fi
21245
John Criswell0c38eaf2003-09-10 15:17:25 +000021246# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000021247# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000021248# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000021249# Hook for its removal unless debugging.
21250# Note that there is a small window in which the directory will not be cleaned:
21251# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000021252$debug ||
21253{
Reid Spencera773bd52006-08-04 18:18:08 +000021254 tmp=
21255 trap 'exit_status=$?
21256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21257' 0
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021258 trap '{ (exit 1); exit 1; }' 1 2 13 15
John Criswell7a73b802003-06-30 21:59:07 +000021259}
John Criswell7a73b802003-06-30 21:59:07 +000021260# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000021261
John Criswell7a73b802003-06-30 21:59:07 +000021262{
Reid Spencera773bd52006-08-04 18:18:08 +000021263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000021264 test -n "$tmp" && test -d "$tmp"
21265} ||
21266{
Reid Spencera773bd52006-08-04 18:18:08 +000021267 tmp=./conf$$-$RANDOM
21268 (umask 077 && mkdir "$tmp")
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021269} ||
21270{
21271 echo "$me: cannot create a temporary directory in ." >&2
21272 { (exit 1); exit 1; }
21273}
John Criswell7a73b802003-06-30 21:59:07 +000021274
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021275#
21276# Set up the sed scripts for CONFIG_FILES section.
21277#
21278
21279# No need to generate the scripts if there are no CONFIG_FILES.
21280# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000021281if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000021282
21283_ACEOF
21284
Reid Spencera773bd52006-08-04 18:18:08 +000021285
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021286
Reid Spencera773bd52006-08-04 18:18:08 +000021287ac_delim='%!_!# '
21288for ac_last_try in false false false false false :; do
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021289 cat >conf$$subs.sed <<_ACEOF
21290SHELL!$SHELL$ac_delim
21291PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21292PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21293PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21294PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21295PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21296PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21297exec_prefix!$exec_prefix$ac_delim
21298prefix!$prefix$ac_delim
21299program_transform_name!$program_transform_name$ac_delim
21300bindir!$bindir$ac_delim
21301sbindir!$sbindir$ac_delim
21302libexecdir!$libexecdir$ac_delim
21303datarootdir!$datarootdir$ac_delim
21304datadir!$datadir$ac_delim
21305sysconfdir!$sysconfdir$ac_delim
21306sharedstatedir!$sharedstatedir$ac_delim
21307localstatedir!$localstatedir$ac_delim
21308includedir!$includedir$ac_delim
21309oldincludedir!$oldincludedir$ac_delim
21310docdir!$docdir$ac_delim
21311infodir!$infodir$ac_delim
21312htmldir!$htmldir$ac_delim
21313dvidir!$dvidir$ac_delim
21314pdfdir!$pdfdir$ac_delim
21315psdir!$psdir$ac_delim
21316libdir!$libdir$ac_delim
21317localedir!$localedir$ac_delim
21318mandir!$mandir$ac_delim
21319DEFS!$DEFS$ac_delim
21320ECHO_C!$ECHO_C$ac_delim
21321ECHO_N!$ECHO_N$ac_delim
21322ECHO_T!$ECHO_T$ac_delim
21323LIBS!$LIBS$ac_delim
21324build_alias!$build_alias$ac_delim
21325host_alias!$host_alias$ac_delim
21326target_alias!$target_alias$ac_delim
21327LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21328subdirs!$subdirs$ac_delim
21329build!$build$ac_delim
21330build_cpu!$build_cpu$ac_delim
21331build_vendor!$build_vendor$ac_delim
21332build_os!$build_os$ac_delim
21333host!$host$ac_delim
21334host_cpu!$host_cpu$ac_delim
21335host_vendor!$host_vendor$ac_delim
21336host_os!$host_os$ac_delim
21337target!$target$ac_delim
21338target_cpu!$target_cpu$ac_delim
21339target_vendor!$target_vendor$ac_delim
21340target_os!$target_os$ac_delim
21341OS!$OS$ac_delim
21342HOST_OS!$HOST_OS$ac_delim
21343TARGET_OS!$TARGET_OS$ac_delim
21344LINKALL!$LINKALL$ac_delim
21345NOLINKALL!$NOLINKALL$ac_delim
21346LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21347LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21348ARCH!$ARCH$ac_delim
21349ENDIAN!$ENDIAN$ac_delim
21350CC!$CC$ac_delim
21351CFLAGS!$CFLAGS$ac_delim
21352LDFLAGS!$LDFLAGS$ac_delim
21353CPPFLAGS!$CPPFLAGS$ac_delim
21354ac_ct_CC!$ac_ct_CC$ac_delim
21355EXEEXT!$EXEEXT$ac_delim
21356OBJEXT!$OBJEXT$ac_delim
21357CPP!$CPP$ac_delim
21358GREP!$GREP$ac_delim
21359EGREP!$EGREP$ac_delim
21360LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21361BUILD_CC!$BUILD_CC$ac_delim
21362BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21363BUILD_CXX!$BUILD_CXX$ac_delim
21364CVSBUILD!$CVSBUILD$ac_delim
21365ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21366ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21367DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21368ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21369EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21370DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21371DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21372JIT!$JIT$ac_delim
21373TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21374ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21375ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21376ENABLE_PIC!$ENABLE_PIC$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021377ENABLE_SHARED!$ENABLE_SHARED$ac_delim
Daniel Dunbardd464df2010-05-10 20:11:56 +000021378ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021379TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21380LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21381LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21382LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21383LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21384ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021385CLANGPATH!$CLANGPATH$ac_delim
21386CLANGXXPATH!$CLANGXXPATH$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021387_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021388
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
Reid Spencera773bd52006-08-04 18:18:08 +000021390 break
21391 elif $ac_last_try; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21393echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21394 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000021395 else
21396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000021397 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021398done
21399
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021400ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21401if test -n "$ac_eof"; then
21402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21403 ac_eof=`expr $ac_eof + 1`
21404fi
21405
21406cat >>$CONFIG_STATUS <<_ACEOF
21407cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000021409_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021410sed '
21411s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21412s/^/s,@/; s/!/@,|#_!!_#|/
21413:n
21414t n
21415s/'"$ac_delim"'$/,g/; t
21416s/$/\\/; p
21417N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21418' >>$CONFIG_STATUS <conf$$subs.sed
21419rm -f conf$$subs.sed
21420cat >>$CONFIG_STATUS <<_ACEOF
21421CEOF$ac_eof
Reid Spencera773bd52006-08-04 18:18:08 +000021422_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021423
21424
21425ac_delim='%!_!# '
21426for ac_last_try in false false false false false :; do
21427 cat >conf$$subs.sed <<_ACEOF
Daniel Dunbardd464df2010-05-10 20:11:56 +000021428ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021429OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021430EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21431BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021432CXX!$CXX$ac_delim
21433CXXFLAGS!$CXXFLAGS$ac_delim
21434ac_ct_CXX!$ac_ct_CXX$ac_delim
21435NM!$NM$ac_delim
21436ifGNUmake!$ifGNUmake$ac_delim
21437LN_S!$LN_S$ac_delim
21438CMP!$CMP$ac_delim
21439CP!$CP$ac_delim
21440DATE!$DATE$ac_delim
21441FIND!$FIND$ac_delim
21442MKDIR!$MKDIR$ac_delim
21443MV!$MV$ac_delim
21444RANLIB!$RANLIB$ac_delim
21445AR!$AR$ac_delim
21446RM!$RM$ac_delim
21447SED!$SED$ac_delim
21448TAR!$TAR$ac_delim
21449BINPWD!$BINPWD$ac_delim
21450GRAPHVIZ!$GRAPHVIZ$ac_delim
21451DOT!$DOT$ac_delim
21452FDP!$FDP$ac_delim
21453NEATO!$NEATO$ac_delim
21454TWOPI!$TWOPI$ac_delim
21455CIRCO!$CIRCO$ac_delim
21456GV!$GV$ac_delim
21457DOTTY!$DOTTY$ac_delim
21458PERL!$PERL$ac_delim
21459HAVE_PERL!$HAVE_PERL$ac_delim
21460INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21461INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21462INSTALL_DATA!$INSTALL_DATA$ac_delim
21463BZIP2!$BZIP2$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021464CAT!$CAT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021465DOXYGEN!$DOXYGEN$ac_delim
21466GROFF!$GROFF$ac_delim
21467GZIP!$GZIP$ac_delim
21468POD2HTML!$POD2HTML$ac_delim
21469POD2MAN!$POD2MAN$ac_delim
mike-m68cb3192010-05-06 23:45:43 +000021470PDFROFF!$PDFROFF$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021471RUNTEST!$RUNTEST$ac_delim
21472TCLSH!$TCLSH$ac_delim
21473ZIP!$ZIP$ac_delim
21474OCAMLC!$OCAMLC$ac_delim
21475OCAMLOPT!$OCAMLOPT$ac_delim
21476OCAMLDEP!$OCAMLDEP$ac_delim
21477OCAMLDOC!$OCAMLDOC$ac_delim
21478GAS!$GAS$ac_delim
Dan Gohmanda612d62010-06-01 14:56:56 +000021479HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021480INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21481INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21482CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21483CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21484LIBADD_DL!$LIBADD_DL$ac_delim
21485LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21486LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21487LLVMGCC!$LLVMGCC$ac_delim
21488LLVMGXX!$LLVMGXX$ac_delim
Daniel Dunbar98515672010-02-23 10:00:49 +000021489LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021490NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21491NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21492USE_UDIS86!$USE_UDIS86$ac_delim
21493USE_OPROFILE!$USE_OPROFILE$ac_delim
21494HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21495HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21496MMAP_FILE!$MMAP_FILE$ac_delim
21497LLVMCC1!$LLVMCC1$ac_delim
21498LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21499LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021500LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21501SHLIBEXT!$SHLIBEXT$ac_delim
Jeffrey Yasskinc9017192010-02-25 06:34:33 +000021502SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021503LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21504LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21505LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21506LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21507LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21508LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21509LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21510LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21511LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21512LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21513BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21514ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21515OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21516ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21517RPATH!$RPATH$ac_delim
21518RDYNAMIC!$RDYNAMIC$ac_delim
21519LIBOBJS!$LIBOBJS$ac_delim
21520LTLIBOBJS!$LTLIBOBJS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000021521_ACEOF
21522
Mikhail Glushenkov4b643c02010-08-15 07:07:17 +000021523 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021524 break
21525 elif $ac_last_try; then
21526 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21527echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21528 { (exit 1); exit 1; }; }
21529 else
21530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21531 fi
21532done
21533
21534ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21535if test -n "$ac_eof"; then
21536 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21537 ac_eof=`expr $ac_eof + 1`
21538fi
21539
21540cat >>$CONFIG_STATUS <<_ACEOF
21541cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21542/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21543_ACEOF
21544sed '
21545s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21546s/^/s,@/; s/!/@,|#_!!_#|/
21547:n
21548t n
21549s/'"$ac_delim"'$/,g/; t
21550s/$/\\/; p
21551N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21552' >>$CONFIG_STATUS <conf$$subs.sed
21553rm -f conf$$subs.sed
21554cat >>$CONFIG_STATUS <<_ACEOF
21555:end
21556s/|#_!!_#|//g
21557CEOF$ac_eof
21558_ACEOF
21559
21560
Reid Spencera773bd52006-08-04 18:18:08 +000021561# VPATH may cause trouble with some makes, so we remove $(srcdir),
21562# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21563# trailing colons and then remove the whole line if VPATH becomes empty
21564# (actually we leave an empty line to preserve line numbers).
21565if test "x$srcdir" = x.; then
21566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21567s/:*\$(srcdir):*/:/
21568s/:*\${srcdir}:*/:/
21569s/:*@srcdir@:*/:/
21570s/^\([^=]*=[ ]*\):*/\1/
21571s/:*$//
21572s/^[^=]*=[ ]*$//
21573}'
21574fi
21575
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021576cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021577fi # test -n "$CONFIG_FILES"
21578
Reid Spencera773bd52006-08-04 18:18:08 +000021579
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021580for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
Reid Spencera773bd52006-08-04 18:18:08 +000021581do
21582 case $ac_tag in
21583 :[FHLC]) ac_mode=$ac_tag; continue;;
21584 esac
21585 case $ac_mode$ac_tag in
21586 :[FHL]*:*);;
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021587 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21588echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21589 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021590 :[FH]-) ac_tag=-:-;;
21591 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21592 esac
21593 ac_save_IFS=$IFS
21594 IFS=:
21595 set x $ac_tag
21596 IFS=$ac_save_IFS
21597 shift
21598 ac_file=$1
21599 shift
21600
21601 case $ac_mode in
21602 :L) ac_source=$1;;
21603 :[FH])
21604 ac_file_inputs=
21605 for ac_f
21606 do
21607 case $ac_f in
21608 -) ac_f="$tmp/stdin";;
21609 *) # Look for the file first in the build tree, then in the source tree
21610 # (if the path is not absolute). The absolute path cannot be DOS-style,
21611 # because $ac_f cannot contain `:'.
21612 test -f "$ac_f" ||
21613 case $ac_f in
21614 [\\/$]*) false;;
21615 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21616 esac ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021617 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21618echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21619 { (exit 1); exit 1; }; };;
Reid Spencera773bd52006-08-04 18:18:08 +000021620 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021621 ac_file_inputs="$ac_file_inputs $ac_f"
Reid Spencera773bd52006-08-04 18:18:08 +000021622 done
21623
21624 # Let's still pretend it is `configure' which instantiates (i.e., don't
21625 # use $as_me), people would be surprised to read:
21626 # /* config.h. Generated by config.status. */
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021627 configure_input="Generated from "`IFS=:
21628 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
Reid Spencera773bd52006-08-04 18:18:08 +000021629 if test x"$ac_file" != x-; then
21630 configure_input="$ac_file. $configure_input"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021631 { echo "$as_me:$LINENO: creating $ac_file" >&5
21632echo "$as_me: creating $ac_file" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021633 fi
21634
21635 case $ac_tag in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021636 *:-:* | *:-) cat >"$tmp/stdin";;
Reid Spencera773bd52006-08-04 18:18:08 +000021637 esac
21638 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021639 esac
21640
Reid Spencera773bd52006-08-04 18:18:08 +000021641 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000021642$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021643 X"$ac_file" : 'X\(//\)[^/]' \| \
21644 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000021645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021646echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000021647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21648 s//\1/
21649 q
21650 }
21651 /^X\(\/\/\)[^/].*/{
21652 s//\1/
21653 q
21654 }
21655 /^X\(\/\/\)$/{
21656 s//\1/
21657 q
21658 }
21659 /^X\(\/\).*/{
21660 s//\1/
21661 q
21662 }
21663 s/.*/./; q'`
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021664 { as_dir="$ac_dir"
21665 case $as_dir in #(
21666 -*) as_dir=./$as_dir;;
21667 esac
21668 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21669 as_dirs=
21670 while :; do
21671 case $as_dir in #(
21672 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21673 *) as_qdir=$as_dir;;
21674 esac
21675 as_dirs="'$as_qdir' $as_dirs"
21676 as_dir=`$as_dirname -- "$as_dir" ||
21677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21678 X"$as_dir" : 'X\(//\)[^/]' \| \
21679 X"$as_dir" : 'X\(//\)$' \| \
21680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21681echo X"$as_dir" |
21682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21683 s//\1/
21684 q
21685 }
21686 /^X\(\/\/\)[^/].*/{
21687 s//\1/
21688 q
21689 }
21690 /^X\(\/\/\)$/{
21691 s//\1/
21692 q
21693 }
21694 /^X\(\/\).*/{
21695 s//\1/
21696 q
21697 }
21698 s/.*/./; q'`
21699 test -d "$as_dir" && break
21700 done
21701 test -z "$as_dirs" || eval "mkdir $as_dirs"
21702 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21703echo "$as_me: error: cannot create directory $as_dir" >&2;}
21704 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000021705 ac_builddir=.
21706
Reid Spencera773bd52006-08-04 18:18:08 +000021707case "$ac_dir" in
21708.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21709*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021711 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021712 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000021713 case $ac_top_builddir_sub in
21714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21716 esac ;;
21717esac
21718ac_abs_top_builddir=$ac_pwd
21719ac_abs_builddir=$ac_pwd$ac_dir_suffix
21720# for backward compatibility:
21721ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000021722
21723case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000021724 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000021725 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000021726 ac_top_srcdir=$ac_top_builddir_sub
21727 ac_abs_top_srcdir=$ac_pwd ;;
21728 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000021729 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000021730 ac_top_srcdir=$srcdir
21731 ac_abs_top_srcdir=$srcdir ;;
21732 *) # Relative name.
21733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21734 ac_top_srcdir=$ac_top_build_prefix$srcdir
21735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000021736esac
Reid Spencera773bd52006-08-04 18:18:08 +000021737ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738
John Criswell7a73b802003-06-30 21:59:07 +000021739
Reid Spencera773bd52006-08-04 18:18:08 +000021740 case $ac_mode in
21741 :F)
21742 #
21743 # CONFIG_FILE
21744 #
John Criswell7a73b802003-06-30 21:59:07 +000021745
21746 case $INSTALL in
21747 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021748 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000021749 esac
John Criswell7a73b802003-06-30 21:59:07 +000021750_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021751
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021752cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021753# If the template does not know about datarootdir, expand it.
21754# FIXME: This hack should be removed a few years after 2.60.
21755ac_datarootdir_hack=; ac_datarootdir_seen=
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021756
21757case `sed -n '/datarootdir/ {
Reid Spencera773bd52006-08-04 18:18:08 +000021758 p
21759 q
21760}
21761/@datadir@/p
21762/@docdir@/p
21763/@infodir@/p
21764/@localedir@/p
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021765/@mandir@/p
21766' $ac_file_inputs` in
Reid Spencera773bd52006-08-04 18:18:08 +000021767*datarootdir*) ac_datarootdir_seen=yes;;
21768*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021769 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21770echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000021771_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021772cat >>$CONFIG_STATUS <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000021773 ac_datarootdir_hack='
21774 s&@datadir@&$datadir&g
21775 s&@docdir@&$docdir&g
21776 s&@infodir@&$infodir&g
21777 s&@localedir@&$localedir&g
21778 s&@mandir@&$mandir&g
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021779 s&\\\${datarootdir}&$datarootdir&g' ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021780esac
21781_ACEOF
21782
21783# Neutralize VPATH when `$srcdir' = `.'.
21784# Shell code in configure.ac might set extrasub.
21785# FIXME: do we really want to maintain this feature?
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021786cat >>$CONFIG_STATUS <<_ACEOF
21787 sed "$ac_vpsub
John Criswell7a73b802003-06-30 21:59:07 +000021788$extrasub
21789_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021790cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021791:t
21792/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021793s&@configure_input@&$configure_input&;t t
Reid Spencera773bd52006-08-04 18:18:08 +000021794s&@top_builddir@&$ac_top_builddir_sub&;t t
21795s&@srcdir@&$ac_srcdir&;t t
21796s&@abs_srcdir@&$ac_abs_srcdir&;t t
21797s&@top_srcdir@&$ac_top_srcdir&;t t
21798s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21799s&@builddir@&$ac_builddir&;t t
21800s&@abs_builddir@&$ac_abs_builddir&;t t
21801s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21802s&@INSTALL@&$ac_INSTALL&;t t
21803$ac_datarootdir_hack
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021804" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000021805
Reid Spencera773bd52006-08-04 18:18:08 +000021806test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21807 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021809 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021810which seems to be undefined. Please make sure it is defined." >&5
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021811echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Reid Spencera773bd52006-08-04 18:18:08 +000021812which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000021813
Reid Spencera773bd52006-08-04 18:18:08 +000021814 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000021815 case $ac_file in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021816 -) cat "$tmp/out"; rm -f "$tmp/out";;
21817 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21818 esac
Reid Spencera773bd52006-08-04 18:18:08 +000021819 ;;
21820 :H)
21821 #
21822 # CONFIG_HEADER
21823 #
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021824_ACEOF
21825
21826# Transform confdefs.h into a sed script `conftest.defines', that
21827# substitutes the proper values into config.h.in to produce config.h.
21828rm -f conftest.defines conftest.tail
21829# First, append a space to every undef/define line, to ease matching.
21830echo 's/$/ /' >conftest.defines
21831# Then, protect against being on the right side of a sed subst, or in
21832# an unquoted here document, in config.status. If some macros were
21833# called several times there might be several #defines for the same
21834# symbol, which is useless. But do not sort them, since the last
21835# AC_DEFINE must be honored.
21836ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21837# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21838# NAME is the cpp macro being defined, VALUE is the value it is being given.
21839# PARAMS is the parameter list in the macro definition--in most cases, it's
21840# just an empty string.
21841ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21842ac_dB='\\)[ (].*,\\1define\\2'
21843ac_dC=' '
21844ac_dD=' ,'
21845
21846uniq confdefs.h |
21847 sed -n '
21848 t rset
21849 :rset
21850 s/^[ ]*#[ ]*define[ ][ ]*//
21851 t ok
21852 d
21853 :ok
21854 s/[\\&,]/\\&/g
21855 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21856 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21857 ' >>conftest.defines
21858
21859# Remove the space that was appended to ease matching.
21860# Then replace #undef with comments. This is necessary, for
21861# example, in the case of _POSIX_SOURCE, which is predefined and required
21862# on some systems where configure will not decide to define it.
21863# (The regexp can be short, since the line contains either #define or #undef.)
21864echo 's/ $//
21865s,^[ #]*u.*,/* & */,' >>conftest.defines
21866
21867# Break up conftest.defines:
21868ac_max_sed_lines=50
21869
21870# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21871# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21872# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21873# et cetera.
21874ac_in='$ac_file_inputs'
21875ac_out='"$tmp/out1"'
21876ac_nxt='"$tmp/out2"'
21877
21878while :
21879do
21880 # Write a here document:
21881 cat >>$CONFIG_STATUS <<_ACEOF
21882 # First, check the format of the line:
21883 cat >"\$tmp/defines.sed" <<\\CEOF
21884/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21885/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21886b
21887:def
21888_ACEOF
21889 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21890 echo 'CEOF
21891 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21892 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21893 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21894 grep . conftest.tail >/dev/null || break
21895 rm -f conftest.defines
21896 mv conftest.tail conftest.defines
21897done
21898rm -f conftest.defines conftest.tail
21899
21900echo "ac_result=$ac_in" >>$CONFIG_STATUS
21901cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000021902 if test x"$ac_file" != x-; then
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021903 echo "/* $configure_input */" >"$tmp/config.h"
21904 cat "$ac_result" >>"$tmp/config.h"
21905 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21906 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21907echo "$as_me: $ac_file is unchanged" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000021908 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021909 rm -f $ac_file
21910 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000021911 fi
21912 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021913 echo "/* $configure_input */"
21914 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000021915 fi
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021916 rm -f "$tmp/out12"
Reid Spencera773bd52006-08-04 18:18:08 +000021917 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021918
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021919 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21920echo "$as_me: executing $ac_file commands" >&6;}
Reid Spencera773bd52006-08-04 18:18:08 +000021921 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000021922 esac
John Criswell7a73b802003-06-30 21:59:07 +000021923
Reid Spencera773bd52006-08-04 18:18:08 +000021924
21925 case $ac_file$ac_mode in
21926 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021927 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021928 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
Torok Edwin64937982009-08-28 16:12:48 +000021929 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021930 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021931 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021932 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021933 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000021934 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021935 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021936 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021937 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021938 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
Torok Edwin64937982009-08-28 16:12:48 +000021939 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000021940 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021941 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021942 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021943 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021944 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021945 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021946 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021947 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021948 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
Torok Edwin64937982009-08-28 16:12:48 +000021949 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000021950 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
Torok Edwin64937982009-08-28 16:12:48 +000021951 ${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 +000021952
21953 esac
21954done # for ac_tag
21955
John Criswell7a73b802003-06-30 21:59:07 +000021956
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021957{ (exit 0); exit 0; }
John Criswell7a73b802003-06-30 21:59:07 +000021958_ACEOF
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021959chmod +x $CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000021960ac_clean_files=$ac_clean_files_save
21961
21962
21963# configure is writing to config.log, and then calls config.status.
21964# config.status does its own redirection, appending to config.log.
21965# Unfortunately, on DOS this fails, as config.log is still kept open
21966# by configure, so config.status won't be able to write to it; its
21967# output is simply discarded. So we exec the FD to /dev/null,
21968# effectively closing config.log, so it can be properly (re)opened and
21969# appended to by config.status. When coming back to configure, we
21970# need to make the FD available again.
21971if test "$no_create" != yes; then
21972 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000021973 ac_config_status_args=
21974 test "$silent" = yes &&
21975 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000021976 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000021977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000021978 exec 5>>config.log
21979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21980 # would make configure fail if this is the last instruction.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021981 $ac_cs_success || { (exit 1); exit 1; }
John Criswell7a73b802003-06-30 21:59:07 +000021982fi
21983
John Criswell12399a12003-09-30 15:55:44 +000021984#
21985# CONFIG_SUBDIRS section.
21986#
21987if test "$no_recursion" != yes; then
21988
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000021989 # Remove --cache-file and --srcdir arguments so they do not pile up.
John Criswell12399a12003-09-30 15:55:44 +000021990 ac_sub_configure_args=
21991 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000021992 eval "set x $ac_configure_args"
21993 shift
21994 for ac_arg
21995 do
John Criswell12399a12003-09-30 15:55:44 +000021996 if test -n "$ac_prev"; then
21997 ac_prev=
21998 continue
21999 fi
22000 case $ac_arg in
22001 -cache-file | --cache-file | --cache-fil | --cache-fi \
22002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22003 ac_prev=cache_file ;;
22004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22006 | --c=*)
22007 ;;
22008 --config-cache | -C)
22009 ;;
22010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22011 ac_prev=srcdir ;;
22012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22013 ;;
22014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22015 ac_prev=prefix ;;
22016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22017 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022018 *)
22019 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022020 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022021 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022022 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000022023 esac
22024 done
22025
22026 # Always prepend --prefix to ensure using the same prefix
22027 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000022028 ac_arg="--prefix=$prefix"
22029 case $ac_arg in
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022030 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022031 esac
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022032 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000022033
22034 ac_popdir=`pwd`
22035 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22036
22037 # Do not complain, so a configure script can configure whichever
22038 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000022039 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000022040
Reid Spencera773bd52006-08-04 18:18:08 +000022041 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022042 echo "$as_me:$LINENO: $ac_msg" >&5
22043 echo "$ac_msg" >&6
22044 { as_dir="$ac_dir"
22045 case $as_dir in #(
22046 -*) as_dir=./$as_dir;;
22047 esac
22048 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22049 as_dirs=
22050 while :; do
22051 case $as_dir in #(
22052 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22053 *) as_qdir=$as_dir;;
22054 esac
22055 as_dirs="'$as_qdir' $as_dirs"
22056 as_dir=`$as_dirname -- "$as_dir" ||
22057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22058 X"$as_dir" : 'X\(//\)[^/]' \| \
22059 X"$as_dir" : 'X\(//\)$' \| \
22060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22061echo X"$as_dir" |
22062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22063 s//\1/
22064 q
22065 }
22066 /^X\(\/\/\)[^/].*/{
22067 s//\1/
22068 q
22069 }
22070 /^X\(\/\/\)$/{
22071 s//\1/
22072 q
22073 }
22074 /^X\(\/\).*/{
22075 s//\1/
22076 q
22077 }
22078 s/.*/./; q'`
22079 test -d "$as_dir" && break
22080 done
22081 test -z "$as_dirs" || eval "mkdir $as_dirs"
22082 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22083echo "$as_me: error: cannot create directory $as_dir" >&2;}
22084 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000022085 ac_builddir=.
22086
Reid Spencera773bd52006-08-04 18:18:08 +000022087case "$ac_dir" in
22088.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22089*)
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022091 # A ".." for each directory in $ac_dir_suffix.
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022092 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
Reid Spencera773bd52006-08-04 18:18:08 +000022093 case $ac_top_builddir_sub in
22094 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22095 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22096 esac ;;
22097esac
22098ac_abs_top_builddir=$ac_pwd
22099ac_abs_builddir=$ac_pwd$ac_dir_suffix
22100# for backward compatibility:
22101ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000022102
22103case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000022104 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000022105 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000022106 ac_top_srcdir=$ac_top_builddir_sub
22107 ac_abs_top_srcdir=$ac_pwd ;;
22108 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000022109 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000022110 ac_top_srcdir=$srcdir
22111 ac_abs_top_srcdir=$srcdir ;;
22112 *) # Relative name.
22113 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22114 ac_top_srcdir=$ac_top_build_prefix$srcdir
22115 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000022116esac
Reid Spencera773bd52006-08-04 18:18:08 +000022117ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000022118
22119
Reid Spencera773bd52006-08-04 18:18:08 +000022120 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000022121
22122 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000022123 if test -f "$ac_srcdir/configure.gnu"; then
22124 ac_sub_configure=$ac_srcdir/configure.gnu
22125 elif test -f "$ac_srcdir/configure"; then
22126 ac_sub_configure=$ac_srcdir/configure
22127 elif test -f "$ac_srcdir/configure.in"; then
22128 # This should be Cygnus configure.
22129 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000022130 else
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022131 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22132echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000022133 ac_sub_configure=
22134 fi
22135
22136 # The recursion is here.
22137 if test -n "$ac_sub_configure"; then
22138 # Make the cache file name correct relative to the subdirectory.
22139 case $cache_file in
22140 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022141 *) # Relative name.
22142 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000022143 esac
22144
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022145 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22146echo "$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 +000022147 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000022148 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22149 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Jeffrey Yasskin1611ebb2010-02-03 02:11:49 +000022150 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22151echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22152 { (exit 1); exit 1; }; }
John Criswell12399a12003-09-30 15:55:44 +000022153 fi
22154
Reid Spencera773bd52006-08-04 18:18:08 +000022155 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000022156 done
22157fi
22158